f6d7f09fb7d2adbb2b85e8a39985affbfbbffd7c
[gnulib.git] / ChangeLog
1 2011-09-23  Bruno Haible  <bruno@clisp.org>
2
3         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4         * lib/msvc-nothrow.h: New file.
5         * lib/msvc-nothrow.c: New file.
6         * m4/msvc-nothrow.m4: New file.
7         * modules/msvc-nothrow: New file.
8         * lib/dup2.c: Include msvc-nothrow.h.
9         (rpl_dup2): No need to protect _get_osfhandle call here.
10         * lib/accept4.c: Include msvc-nothrow.h.
11         * lib/error.c: Likewise.
12         * lib/fcntl.c: Likewise.
13         * lib/lseek.c: Likewise.
14         * lib/nonblocking.c: Likewise.
15         * lib/poll.c: Likewise.
16         * lib/read.c: Likewise.
17         * lib/select.c: Likewise.
18         * lib/sockets.h: Likewise.
19         * lib/sockets.c: Likewise.
20         * lib/stdio-read.c: Likewise.
21         * lib/stdio-write.c: Likewise.
22         * lib/write.c: Likewise.
23         * lib/w32sock.h: Likewise.
24         * lib/w32spawn.h: Likewise.
25         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
26         * lib/fsync.c: Likewise.
27         * lib/isapipe.c: Likewise.
28         * modules/dup2 (Depends-on): Add msvc-nothrow.
29         * modules/accept4 (Depends-on): Likewise.
30         * modules/error (Depends-on): Likewise.
31         * modules/fcntl (Depends-on): Likewise.
32         * modules/lseek (Depends-on): Likewise.
33         * modules/nonblocking (Depends-on): Likewise.
34         * modules/poll (Depends-on): Likewise.
35         * modules/read (Depends-on): Likewise.
36         * modules/select (Depends-on): Likewise.
37         * modules/sockets (Depends-on): Likewise.
38         * modules/sigpipe (Depends-on): Likewise.
39         * modules/write (Depends-on): Likewise.
40         * modules/accept (Depends-on): Likewise.
41         * modules/bind (Depends-on): Likewise.
42         * modules/connect (Depends-on): Likewise.
43         * modules/gethostname (Depends-on): Likewise.
44         * modules/getpeername (Depends-on): Likewise.
45         * modules/getsockname (Depends-on): Likewise.
46         * modules/getsockopt (Depends-on): Likewise.
47         * modules/ioctl (Depends-on): Likewise.
48         * modules/listen (Depends-on): Likewise.
49         * modules/recv (Depends-on): Likewise.
50         * modules/recvfrom (Depends-on): Likewise.
51         * modules/send (Depends-on): Likewise.
52         * modules/sendto (Depends-on): Likewise.
53         * modules/setsockopt (Depends-on): Likewise.
54         * modules/shutdown (Depends-on): Likewise.
55         * modules/socket (Depends-on): Likewise.
56         * modules/execute (Depends-on): Likewise.
57         * modules/spawn-pipe (Depends-on): Likewise.
58         * modules/flock (Depends-on): Likewise.
59         * modules/fsync (Depends-on): Likewise.
60         * modules/isapipe (Depends-on): Likewise.
61         * tests/test-cloexec.c: Include msvc-nothrow.h.
62         * tests/test-dup-safer.c: Likewise.
63         * tests/test-dup2.c: Likewise.
64         * tests/test-dup3.c: Likewise.
65         * tests/test-fcntl.c: Likewise.
66         * tests/test-pipe.c: Likewise.
67         * tests/test-pipe2.c: Likewise.
68         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
69         * modules/unistd-safer-tests (Depends-on): Likewise.
70         * modules/dup2-tests (Depends-on): Likewise.
71         * modules/dup3-tests (Depends-on): Likewise.
72         * modules/fcntl-tests (Depends-on): Likewise.
73         * modules/pipe-posix-tests (Depends-on): Likewise.
74         * modules/pipe2-tests (Depends-on): Likewise.
75
76 2011-09-23  Bruno Haible  <bruno@clisp.org>
77
78         dup2: Make code more maintainable.
79         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
80         (rpl_dup2): Use it.
81         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
82         * modules/dup2 (configure.ac): Invoke it.
83         Reported by Paul Eggert.
84
85 2011-09-23  Bruno Haible  <bruno@clisp.org>
86
87         msvc-inval: Fix compilation error.
88         * lib/msvc-inval.h: Include <excpt.h>.
89
90 2011-09-23  Bruno Haible  <bruno@clisp.org>
91
92         mkdir: Tweak for MSVC 9.
93         * lib/sys_stat.in.h: Update comments.
94         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
95
96         Tests for module 'chdir'.
97         * modules/chdir-tests: New file.
98         * tests/test-chdir.c: New file.
99
100         New module 'chdir'.
101         * modules/chdir: New file.
102         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
103         (chdir): New declaration.
104         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
105         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
106         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
107         * tests/test-unistd-c++.cc: Check signature of chdir.
108         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
109         * modules/chdir-long (Depends-on): Add chdir.
110         * modules/fchdir (Depends-on): Likewise.
111         * modules/rename (Depends-on): Likewise.
112         * modules/savewd (Depends-on): Likewise.
113
114         rmdir: Support for mingw, MSVC 9.
115         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
116         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
117
118         getcwd: Tweak for MSVC 9.
119         * lib/unistd.in.h: Update comments.
120         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
121
122 2011-09-22  Bruno Haible  <bruno@clisp.org>
123
124         strerror_r-posix: Avoid a link error on MSVC.
125         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
126         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
127
128 2011-09-22  Bruno Haible  <bruno@clisp.org>
129
130         select: Avoid link errors on MSVC.
131         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
132         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
133         * modules/pselect (Link): Likewise.
134         * NEWS: Mention the change.
135         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
136         test-select-stdin against $(LIB_SELECT).
137         * modules/pselect-tests (Makefile.am): Link test-pselect against
138         $(LIB_SELECT).
139
140 2011-09-22  Bruno Haible  <bruno@clisp.org>
141
142         select: Avoid compilation error on MSVC.
143         * lib/select.c: Don't include <stdbool.h>.
144
145 2011-09-21  Bruno Haible  <bruno@clisp.org>
146
147         Consolidate all uses of PATH_MAX in *.m4 files.
148         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
149         macros.
150         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
151         and gl_PATHMAX_SNIPPET.
152         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
153         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
154         * modules/chdir-long (Files): Add m4/pathmax.m4.
155         * modules/getcwd (Files): Likewise.
156
157 2011-09-21  Bruno Haible  <bruno@clisp.org>
158
159         ftruncate: Un-deprecate, concentrate on Win32 support.
160         * modules/ftruncate (Status, Notice): Remove sections.
161         (Depends-on): Add largefile.
162         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
163         non-mingw platforms.
164         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
165         include <io.h>.
166         * modules/perror-tests (Depends-on): Add ftruncate.
167         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
168         'ftruncate' module.
169
170 2011-09-21  Bruno Haible  <bruno@clisp.org>
171
172         Add dependencies to new dirent related modules.
173         * modules/opendir (Depends-on): Add closedir.
174         * modules/getcwd (Depends-on): Add opendir, closedir.
175         * modules/dirent-safer-tests (Depends-on): Likewise.
176         * modules/fdopendir-tests (Depends-on): Likewise.
177         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
178         * modules/renameat-tests (Depends-on): Likewise.
179
180 2011-09-21  Bruno Haible  <bruno@clisp.org>
181
182         opendir: Avoid compilation error on mingw.
183         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
184         * modules/opendir (Depends-on): Add unistd.
185
186 2011-09-21  Bruno Haible  <bruno@clisp.org>
187
188         ftruncate tests: Avoid a test failure on mingw.
189         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
190
191 2011-09-21  Bruno Haible  <bruno@clisp.org>
192
193         select tests: Avoid test failures on OSF/1 5.1 and mingw.
194         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
195         native Windows.
196
197 2011-09-21  Bruno Haible  <bruno@clisp.org>
198
199         New module 'fdopen'.
200         * lib/stdio.in.h (fdopen): New declaration.
201         * lib/fdopen.c: New file.
202         * m4/fdopen.m4: New file.
203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
204         REPLACE_FDOPEN.
205         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
206         REPLACE_FDOPEN.
207         * modules/fdopen: New file.
208         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
209         * tests/test-stdio-c++.cc: Check signature of fdopen.
210         * doc/posix-functions/fdopen.texi: Mention the new module.
211
212 2011-09-21  Bruno Haible  <bruno@clisp.org>
213
214         unlockpt tests: Avoid test failure on NetBSD 5.1.
215         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
216         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
217
218 2011-09-21  Bruno Haible  <bruno@clisp.org>
219
220         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
221         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
222         * tests/test-getlogin_r.c (main): Likewise.
223
224 2011-09-20  Bruno Haible  <bruno@clisp.org>
225
226         time tests: Don't require pid_t.
227         * doc/posix-headers/time.texi: Revert last change.
228         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
229         * tests/test-time.c: Comment out the check for pid_t.
230
231 2011-09-20  Bruno Haible  <bruno@clisp.org>
232
233         fsync tests: Avoid a test failure on mingw.
234         * tests/test-fsync.c (main): Allow a failure with EIO.
235
236 2011-09-20  Bruno Haible  <bruno@clisp.org>
237
238         euidaccess: Update comments.
239         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
240
241 2011-09-20  Bruno Haible  <bruno@clisp.org>
242
243         Ensure EBADF returns for socket functions on mingw.
244         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
245         descriptor is invalid.
246         * lib/bind.c (rpl_bind): Likewise.
247         * lib/connect.c (rpl_connect): Likewise.
248         * lib/getpeername.c (rpl_getpeername): Likewise.
249         * lib/getsockname.c (rpl_getsockname): Likewise.
250         * lib/getsockopt.c (rpl_getsockopt): Likewise.
251         * lib/listen.c (rpl_listen): Likewise.
252         * lib/recv.c (rpl_recv): Likewise.
253         * lib/recvfrom.c (rpl_recvfrom): Likewise.
254         * lib/send.c (rpl_send): Likewise.
255         * lib/sendto.c (rpl_sendto): Likewise.
256         * lib/setsockopt.c (rpl_setsockopt): Likewise.
257         * lib/shutdown.c (rpl_shutdown): Likewise.
258
259 2011-09-20  Bruno Haible  <bruno@clisp.org>
260
261         select tests: EBADF tests.
262         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
263         test_bad_fd): New functions.
264         (test_function): Invoke also test_bad_fd.
265
266 2011-09-20  Bruno Haible  <bruno@clisp.org>
267
268         Tests for module 'posix_spawn_file_actions_addopen.
269         * modules/posix_spawn_file_actions_addopen-tests: New file.
270         * tests/test-posix_spawn_file_actions_addopen.c: New file.
271
272         Tests for module 'posix_spawn_file_actions_adddup2'.
273         * modules/posix_spawn_file_actions_adddup2-tests: New file.
274         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
275
276         Tests for module 'posix_spawn_file_actions_addclose'.
277         * modules/posix_spawn_file_actions_addclose-tests: New file.
278         * tests/test-posix_spawn_file_actions_addclose.c: New file.
279
280 2011-09-20  Bruno Haible  <bruno@clisp.org>
281
282         Tests for module 'unlockpt'.
283         * modules/unlockpt-tests: New file.
284         * tests/test-unlockpt.c: New file.
285         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
286
287         Tests for module 'grantpt'.
288         * modules/grantpt-tests: New file.
289         * tests/test-grantpt.c: New file.
290         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
291
292 2011-09-20  Bruno Haible  <bruno@clisp.org>
293
294         freopen tests: EBADF tests.
295         * tests/test-freopen.c: Include errno.h, unistd.h.
296         (main): Add tests for EBADF, commented out for the moment.
297
298         fclose tests: EBADF tests.
299         * tests/test-fclose.c (main): Add tests for EBADF.
300
301         fflush tests: EBADF tests.
302         * tests/test-fflush.c: Include errno.h, macros.h.
303         (main): Add tests for EBADF.
304
305         ftello tests: EBADF tests.
306         * tests/test-ftello4.sh: New file.
307         * tests/test-ftello4.c: New file.
308         * modules/ftello-tests (Files): Add them.
309         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
310
311         fseeko tests: EBADF tests.
312         * tests/test-fseeko4.sh: New file.
313         * tests/test-fseeko4.c: New file.
314         * modules/fseeko-tests (Files): Add them.
315         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
316
317         Tests for function fputc().
318         * modules/fputc-tests: New file.
319         * tests/test-fputc.c: New file.
320         * modules/stdio-tests (Depends-on): Add fputc-tests.
321
322         Tests for function fgetc().
323         * modules/fgetc-tests: New file.
324         * tests/test-fgetc.c: New file.
325         * modules/stdio-tests (Depends-on): Add fgetc-tests.
326
327         Tests for function fdopen().
328         * modules/fdopen-tests: New file.
329         * tests/test-fdopen.c: New file.
330         * modules/stdio-tests (Depends-on): Add fdopen-tests.
331
332         Tests for module 'vdprintf'.
333         * modules/vdprintf-tests: New file.
334         * tests/test-vdprintf.c: New file.
335
336         Tests for module 'dprintf'.
337         * modules/dprintf-tests: New file.
338         * tests/test-dprintf.c: New file.
339
340 2011-09-20  Bruno Haible  <bruno@clisp.org>
341
342         Tests for module 'ioctl'.
343         * modules/ioctl-tests: New file.
344         * tests/test-ioctl.c: New file.
345
346 2011-09-20  Bruno Haible  <bruno@clisp.org>
347
348         fcntl tests: EBADF tests.
349         * tests/test-fcntl.c (main): Add more tests for EBADF.
350
351 2011-09-20  Bruno Haible  <bruno@clisp.org>
352
353         utimensat tests: EBADF tests.
354         * tests/test-utimensat.c (main): Add tests for EBADF.
355
356         renameat tests: EBADF tests.
357         * tests/test-renameat.c (main): Add tests for EBADF.
358
359         mkfifoat tests: EBADF tests.
360         * tests/test-mkfifoat.c (main): Add tests for EBADF.
361
362         readlinkat tests: EBADF tests.
363         * tests/test-readlinkat.c (main): Add tests for EBADF.
364
365         symlinkat tests: EBADF tests.
366         * tests/test-symlinkat.c (main): Add tests for EBADF.
367
368         linkat tests: EBADF tests.
369         * tests/test-linkat.c (main): Add tests for EBADF.
370
371         Tests for module 'faccessat'.
372         * modules/faccessat-tests: New file.
373         * tests/test-faccessat.c: New file.
374
375         fdopendir tests: EBADF tests.
376         * tests/test-fdopendir.c (main): Add more tests for EBADF.
377
378         openat tests: EBADF tests.
379         * tests/test-fchownat.c (main): Add tests for EBADF.
380         * tests/test-fstatat.c (main): Likewise.
381         * tests/test-mkdirat.c (main): Likewise.
382         * tests/test-openat.c (main): Likewise.
383         * tests/test-unlinkat.c (main): Likewise.
384         * tests/test-fchmodat.c: New file.
385         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
386         (Makefile.am): Also run 'test-fchmodat'.
387
388 2011-09-20  Bruno Haible  <bruno@clisp.org>
389
390         utimens, futimens, fdutimensat tests: EBADF tests.
391         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
392
393         Tests for function fstat().
394         * modules/fstat-tests: New file.
395         * tests/test-fstat.c: New file.
396         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
397
398 2011-09-20  Bruno Haible  <bruno@clisp.org>
399
400         test-ttyname_r tests: EBADF tests.
401         * tests/test-ttyname_r.c (main): Add tests for EBADF.
402
403         Tests for module 'isatty'.
404         * modules/isatty-tests: New file.
405         * tests/test-isatty.c: New file.
406
407         Tests for module 'write'.
408         * modules/write-tests: New file.
409         * tests/test-write.c: New file.
410
411         Tests for module 'read'.
412         * modules/read-tests: New file.
413         * tests/test-read.c: New file.
414
415         pwrite tests: EBADF tests.
416         * tests/test-pwrite.c (main): Add tests for EBADF.
417
418         pread tests: EBADF tests.
419         * tests/test-pread.c (main): Add tests for EBADF.
420
421         lseek tests: EBADF tests.
422         * tests/test-lseek.c (main): Add more tests for EBADF.
423
424         Tests for module 'ftruncate'.
425         * modules/ftruncate-tests: New file.
426         * tests/test-ftruncate.sh: New file.
427         * tests/test-ftruncate.c: New file.
428
429         fsync tests: EBADF tests.
430         * tests/test-fsync.c (main): Add more tests for EBADF.
431
432         fdatasync tests: EBADF tests.
433         * tests/test-fdatasync.c (main): Add more tests for EBADF.
434
435         Tests for module 'fchown'.
436         * modules/fchown-tests: New file.
437         * tests/test-fchown.c: New file.
438
439         Tests for module 'fchmod'.
440         * modules/fchmod-tests: New file.
441         * tests/test-fchmod.c: New file.
442
443         fchdir tests: EBADF tests.
444         * tests/test-fchdir.c (main): Add more tests for EBADF.
445
446         dup2 tests: EBADF tests.
447         * tests/test-dup2.c (main): Add more tests for EBADF.
448
449         Tests for module 'dup'.
450         * modules/dup-tests: New file.
451         * tests/test-dup.c: New file.
452
453         Tests for module 'close'.
454         * modules/close-tests: New file.
455         * tests/test-close.c: New file.
456
457 2011-09-20  Bruno Haible  <bruno@clisp.org>
458
459         Tests for module 'shutdown'.
460         * modules/shutdown-tests: New file.
461         * tests/test-shutdown.c: New file.
462
463         Tests for module 'setsockopt'.
464         * modules/setsockopt-tests: New file.
465         * tests/test-setsockopt.c: New file.
466
467         Tests for module 'sendto'.
468         * modules/sendto-tests: New file.
469         * tests/test-sendto.c: New file.
470
471         Tests for module 'send'.
472         * modules/send-tests: New file.
473         * tests/test-send.c: New file.
474
475         Tests for module 'recvfrom'.
476         * modules/recvfrom-tests: New file.
477         * tests/test-recvfrom.c: New file.
478
479         Tests for module 'recv'.
480         * modules/recv-tests: New file.
481         * tests/test-recv.c: New file.
482
483         Tests for module 'listen'.
484         * modules/listen-tests: New file.
485         * tests/test-listen.c: New file.
486
487         Tests for module 'getsockopt'.
488         * modules/getsockopt-tests: New file.
489         * tests/test-getsockopt.c: New file.
490
491         Tests for module 'getsockname'.
492         * modules/getsockname-tests: New file.
493         * tests/test-getsockname.c: New file.
494
495         Tests for module 'getpeername'.
496         * modules/getpeername-tests: New file.
497         * tests/test-getpeername.c: New file.
498
499         Tests for module 'connect'.
500         * modules/connect-tests: New file.
501         * tests/test-connect.c: New file.
502
503         Tests for module 'bind'.
504         * modules/bind-tests: New file.
505         * tests/test-bind.c: New file.
506
507         accept4 tests: Fix for native Windows.
508         * tests/test-accept4.c: Include sockets.h.
509         (main): Invoke gl_sockets_startup.
510         * modules/accept4-tests (Depends-on): Add sockets.
511
512         accept tests: Fix for native Windows.
513         * tests/test-accept.c: Include sockets.h.
514         (main): Invoke gl_sockets_startup.
515         * modules/accept-tests (Depends-on): Add sockets.
516
517 2011-09-19  Bruno Haible  <bruno@clisp.org>
518
519         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
520         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
521         do...while(0).
522         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
523         Suggested by Paul Eggert.
524
525 2011-09-19  Bruno Haible  <bruno@clisp.org>
526
527         sched: Ensure pid_t is defined.
528         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
529         not define pid_t.
530         * lib/sched.in.h: Include <sys/types.h>.
531         * doc/posix-headers/sched.texi: Mention the pid_t problem.
532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
533
534 2011-09-19  Bruno Haible  <bruno@clisp.org>
535
536         msvc-inval: Ensure the entire expansion is a single statement.
537         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
538         of braces.
539
540 2011-09-19  Jim Meyering  <meyering@redhat.com>
541
542         tests: use printf, not echo in init.sh's warn_ function
543         * tests/init.sh (warn_): Use printf, not echo.  The latter would
544         misbehave when given strings containing a backslash or starting
545         with e.g., -n.  James Youngman suggested setting IFS.
546
547 2011-09-19  Eric Blake  <eblake@redhat.com>
548
549         futimens: enhance test
550         * tests/test-futimens.h (test_futimens): Also check for EBADF on
551         closed non-negative fd.
552
553         date: accept 'hence' as opposite of 'ago'
554         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
555         * tests/test-parse-datetime.c (main): Enhance test.
556         Suggested by Jesse Wilson.
557
558 2011-09-19  Jim Meyering  <meyering@redhat.com>
559
560         getcwd: don't fail in a deep directory on a system without openat
561         Before this change, getcwd would fail when called from a directory
562         of depth PATH_MAX / 3 or greater.  That was due to the fact that
563         the non-openat implementation used "..", "../..", "../../..", etc.
564         to access ancestor directories.  With too many, that string would
565         be longer than PATH_MAX.
566         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
567         using gnulib's openat replacement.
568         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
569         we're using the replacement function.
570
571 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
572
573         maint.mk: avoid warnings from perl about missing files
574         * top/maint.mk (def_sym_regex): Ignore files listed in
575         $(gl_other_headers_) that do not exist, say because a project
576         does not use a corresponding module.
577
578 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
579
580         stat: use pathmax.h only if needed
581         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
582         This is better for Emacs, which does not have a mingw port and
583         therefore can avoid the pathmax module.
584
585         utimens: remove dependency on dup2
586         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
587         to work around the Linux kernel bug.
588         * modules/utimens (Depends-on): Remove dup2.
589
590 2011-09-18  Bruno Haible  <bruno@clisp.org>
591
592         inet_ntop, inet_pton: Look for it also in libresolv.
593         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
594         libnsl, search for it in libresolv.
595         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
596         Needed on Solaris 7.
597
598 2011-09-18  Bruno Haible  <bruno@clisp.org>
599
600         accept, accept4 tests: Avoid link error on Solaris.
601         * modules/accept-tests (Makefile.am): Link test-accept against
602         $(LIBSOCKET).
603         * modules/accept4-tests (Makefile.am): Link test-accept4 against
604         $(LIBSOCKET).
605
606         accept4: Avoid link error on Solaris.
607         * modules/accept4 (Link): New section.
608
609         socket functions: Avoid link errors on Solaris.
610         * modules/accept (Depends-on): Add socketlib.
611         (Link): New section.
612         * modules/bind (Depends-on): Add socketlib.
613         (Link): New section.
614         * modules/connect (Depends-on): Add socketlib.
615         (Link): New section.
616         * modules/getpeername (Depends-on): Add socketlib.
617         (Link): New section.
618         * modules/getsockname (Depends-on): Add socketlib.
619         (Link): New section.
620         * modules/getsockopt (Depends-on): Add socketlib.
621         (Link): New section.
622         * modules/listen (Depends-on): Add socketlib.
623         (Link): New section.
624         * modules/recv (Depends-on): Add socketlib.
625         (Link): New section.
626         * modules/recvfrom (Depends-on): Add socketlib.
627         (Link): New section.
628         * modules/send (Depends-on): Add socketlib.
629         (Link): New section.
630         * modules/sendto (Depends-on): Add socketlib.
631         (Link): New section.
632         * modules/setsockopt (Depends-on): Add socketlib.
633         (Link): New section.
634         * modules/shutdown (Depends-on): Add socketlib.
635         (Link): New section.
636         * modules/socket (Depends-on): Add socketlib.
637         (Link): New section.
638
639 2011-09-18  Bruno Haible  <bruno@clisp.org>
640
641         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
642         * tests/test-ptsname.c (main): Terminate the test if it takes longer
643         than 5 seconds.
644         * modules/ptsname-tests (configure.ac): Test for alarm.
645
646 2011-09-18  Bruno Haible  <bruno@clisp.org>
647
648         posix_spawn_file_actions_add*: Fix module dependencies.
649         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
650         posix_spawn_file_actions_init.
651         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
652         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
653
654 2011-09-18  Bruno Haible  <bruno@clisp.org>
655
656         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
657         * tests/test-rename.h (test_rename): Allow error code EEXIST.
658         * tests/test-renameat.c (main): Likewise.
659
660 2011-09-18  Bruno Haible  <bruno@clisp.org>
661
662         Tests for module 'accept4'.
663         * modules/accept4-tests: New file.
664         * tests/test-accept4.c: New file.
665
666 2011-09-18  Bruno Haible  <bruno@clisp.org>
667
668         Tests for module 'accept'.
669         * modules/accept-tests: New file.
670         * tests/test-accept.c: New file.
671
672 2011-09-18  Bruno Haible  <bruno@clisp.org>
673
674         dup2: Support for MSVC.
675         * lib/dup2.c: Include msvc-inval.h.
676         (rpl_dup2): Handle invalid parameter notifications during dup2 and
677         _get_osfhandle calls.
678         * modules/dup2 (Depends-on): Add msvc-inval.
679         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
680
681         New module 'msvc-inval'.
682         * lib/msvc-inval.h: New file.
683         * lib/msvc-inval.c: New file.
684         * m4/msvc-inval.m4: New file.
685         * modules/msvc-inval: New file.
686
687 2011-09-17  Bruno Haible  <bruno@clisp.org>
688
689         Tests for module 'pclose'.
690         * modules/pclose-tests: New file.
691
692         New module 'pclose'.
693         * lib/stdio.in.h (pclose): New declaration.
694         * lib/pclose.c: New file.
695         * m4/pclose.m4: New file.
696         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
697         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
698         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
699         * modules/pclose: New file.
700         * modules/popen-tests (Depends-on): Add pclose.
701         * modules/popen-safer-tests (Depends-on): Likewise.
702         * doc/posix-functions/pclose.texi: Mention the new module.
703
704 2011-09-17  Bruno Haible  <bruno@clisp.org>
705
706         popen: Support for MSVC.
707         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
708         * lib/popen.c (popen): Provide alternate definition for native Windows.
709         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
711         * modules/popen (Depends-on, configure.ac): Update condition.
712         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
713         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
714         fixed.
715
716 2011-09-17  Bruno Haible  <bruno@clisp.org>
717
718         isnanl, isnand, isnanf: Work around MSVC bug.
719         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
720
721 2011-09-17  Bruno Haible  <bruno@clisp.org>
722
723         sys_socket tests: Fix recent mistake.
724         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
725
726 2011-09-17  Bruno Haible  <bruno@clisp.org>
727
728         putenv: Support for MSVC.
729         * modules/putenv (Depends-on): Add environ.
730         * lib/putenv.c (environ): Disable declaration.
731         * lib/unistd.in.h: Update comment.
732
733 2011-09-17  Bruno Haible  <bruno@clisp.org>
734
735         math: Avoid macro redefinition warnings on MSVC.
736         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
737         Undefine before redefining.
738
739 2011-09-17  Bruno Haible  <bruno@clisp.org>
740
741         doc: Mention functions which are declared as macros.
742         * doc/posix-functions/*[fl].texi: Mention that some functions are
743         defined as macros with arguments only.
744
745 2011-09-17  Bruno Haible  <bruno@clisp.org>
746
747         Add dependencies to new dirent related modules.
748         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
749         * modules/fts (Depends-on): Likewise.
750         * modules/glob (Depends-on): Likewise.
751         * modules/savedir (Depends-on): Likewise.
752         * modules/scandir (Depends-on): Likewise.
753         * modules/dirent-safer (Depends-on): Add opendir, closedir.
754         * modules/fdopendir (Depends-on): Add opendir.
755
756 2011-09-17  Bruno Haible  <bruno@clisp.org>
757
758         inet_pton: Support for MSVC on Windows Vista or newer.
759         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
760         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
761         HAVE_DECL_INET_PTON is defined.
762         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
763         On platforms with <winsock2.h>, test whether inet_pton is declared in
764         <ws2tcpip.h>. If so, arrange to replace it.
765         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
766         REPLACE_INET_PTON.
767         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
768         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
769         (Depends-on, configure.ac): Update condition.
770         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
771
772 2011-09-17  Bruno Haible  <bruno@clisp.org>
773
774         inet_ntop: Support for MSVC on Windows Vista or newer.
775         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
776         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
777         HAVE_DECL_INET_NTOP is defined.
778         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
779         On platforms with <winsock2.h>, test whether inet_ntop is declared in
780         <ws2tcpip.h>. If so, arrange to replace it.
781         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
782         REPLACE_INET_NTOP.
783         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
784         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
785         (Depends-on, configure.ac): Update condition.
786         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
787
788 2011-09-16  Eric Blake  <eblake@redhat.com>
789
790         test-fsync: yet another enhancement
791         * tests/test-fsync.c (main): Also test behavior on read-only text
792         file.
793
794 2011-09-16  Bruno Haible  <bruno@clisp.org>
795
796         Enhance fsync, fdatasync tests.
797         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
798         * tests/test-fdatasync.c (main): Likewise.
799
800 2011-09-16  Bruno Haible  <bruno@clisp.org>
801
802         Support for MSVC compiler: Ensure mode_t gets defined.
803         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
804         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
806         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
807         * tests/test-fcntl-h.c: Check that mode_t is defined.
808         * tests/test-sys_stat.c: Likewise.
809         * tests/test-sys_types.c: Likewise.
810         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
811         * doc/posix-headers/sys_stat.texi: Likewise.
812         * doc/posix-headers/sys_types.texi: Likewise.
813
814 2011-09-16  Bruno Haible  <bruno@clisp.org>
815
816         sys_stat: Support for MSVC.
817         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
818         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
819         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
820         MSVC.
821
822 2011-09-16  Bruno Haible  <bruno@clisp.org>
823
824         Support for MSVC compiler: Ensure off_t gets defined.
825         * lib/unistd.in.h: Include <sys/types.h>.
826         * tests/test-fcntl-h.c: Check that off_t is defined.
827         * tests/test-sys_stat.c: Likewise.
828         * tests/test-sys_types.c: Likewise.
829
830 2011-09-16  Eric Blake  <eblake@redhat.com>
831
832         fdatasync: port to Solaris
833         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
834         * modules/fdatasync (Link): Document it.
835         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
836
837         fdatasync: port to MacOS X 10.7
838         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
839         declared.
840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
841         * modules/unistd (Makefile.am): Substitute it.
842         * lib/unistd.in.h (fdatasync): Declare on MacOS.
843         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
844
845         fdatasync: minor improvements
846         * modules/fdatasync (Depends-on): Add condition for fsync.
847         * lib/fdatasync.c (fdatasync): Add comment.
848         * tests/test-unistd-c++.cc: Test fdatasync.
849
850         unistd: update refs to newer POSIX
851         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
852         Suggested by Bruno Haible.
853
854         fdatasync: new module
855         * modules/fsync (Description): Document difference to fdatasync.
856         * modules/fdatasync: New module.
857         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
858         * lib/fdatasync.c (fdatasync): Likewise.
859         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
860         defaults.
861         * modules/unistd (Makefile.am): Set witnesses.
862         * lib/unistd.in.h (fdatasync): Declare.
863         * MODULES.html.sh: Document it.
864         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
865         * modules/fdatasync-tests: New test.
866         * tests/test-fdatasync.c: Likewise.
867
868 2011-09-16  Eric Blake  <eblake@redhat.com>
869
870         test-fsync: enhance tests
871         * modules/fsync-tests (Depends-on): Add errno, for mingw.
872         * tests/test-fsync.c (main): Enhance test.
873
874 2011-09-15  Bruno Haible  <bruno@clisp.org>
875
876         Support for MSVC compiler: Ensure ssize_t gets defined.
877         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
878         * doc/posix-headers/stdio.texi: Likewise.
879         * modules/stdio (Depends-on): Add ssize_t.
880         * modules/sys_socket (Depends-on): Likewise.
881         * modules/sys_types (Depends-on): Likewise.
882         * modules/sys_uio (Depends-on): Likewise.
883         * modules/unistd (Depends-on): Likewise.
884         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
885         * tests/test-sys_types.c: Check that ssize_t is defined.
886
887 2011-09-14  Bruno Haible  <bruno@clisp.org>
888
889         Avoid using #, the m4 comment starter character, near brackets.
890         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
891         delimiter character in sed expressions.
892         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
893         Suggested by Eric Blake.
894
895         Properly quote AC_CHECK_DECLS' 4th argument.
896         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
897         argument.
898         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
899         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
900         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
901         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
902         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
903         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
904         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
905         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
906         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
907         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
908         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
909         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
910         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
911         * m4/isinf.m4 (gl_ISINF): Likewise.
912         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
913         * m4/readutmp.m4 (gl_READUTMP): Likewise.
914         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
915         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
916         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
917         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
918         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
919         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
920         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
921         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
922         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
923         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
925         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
927         Reported by Eric Blake.
928
929         Properly quote AC_CHECK_DECL's 4th argument.
930         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
931         argument.
932         * m4/argp.m4 (gl_ARGP): Likewise.
933         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
934         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
935         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
936         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
937         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
938         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
939         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
940         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
941         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
942         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
943         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
944         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
945         Reported by Eric Blake.
946
947 2011-09-14  Eric Blake  <eblake@redhat.com>
948
949         opendir: avoid compile warning
950         * lib/opendir.c (includes): Always include errno.h.
951         Reported by Tatsuro MATSUOKA.
952
953 2011-09-14  Jim Meyering  <meyering@redhat.com>
954
955         maint.mk: sc_tight_scope: propagate failure from sub-make
956         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
957         Reported by Martin von Gagern.
958
959 2011-09-13  Bruno Haible  <bruno@clisp.org>
960
961         tempname: Support for MSVC.
962         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
963         MSVC.
964         * modules/tempname (Depends-on): Add fcntl-h.
965
966 2011-09-13  Bruno Haible  <bruno@clisp.org>
967
968         sys_time: Support for MSVC.
969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
970         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
971         include <winsock2.h>.
972         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
973         function declarations that collide with POSIX.
974         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
975         (Makefile.am): Substitute HAVE_WINSOCK2_H.
976
977 2011-09-13  Bruno Haible  <bruno@clisp.org>
978
979         stat: Support for MSVC.
980         * lib/stat.c: Include pathmax.h.
981         * modules/stat (Depends-on): Add pathmax.
982
983         pathmax: Support for native Windows.
984         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
985
986 2011-09-12  Bruno Haible  <bruno@clisp.org>
987
988         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
989         * lib/dirent.in.h (struct dirent): New type.
990         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
991         DT_WHT): New macros.
992         (DIR): New type.
993         (opendir, closedir): Declare only if the module 'opendir' is enabled.
994         (readdir, rewinddir): New declarations.
995         * lib/dirent-private.h: New file.
996         * lib/opendir.c: New file.
997         * lib/readdir.c: New file.
998         * lib/rewinddir.c: New file.
999         * lib/closedir.c: New file.
1000         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1001         * m4/opendir.m4: New file.
1002         * m4/readdir.m4: New file.
1003         * m4/rewinddir.m4: New file.
1004         * m4/closedir.m4: New file.
1005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1006         REPLACE_CLOSEDIR here.
1007         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1008         readdir, rewinddir are declared.
1009         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1010         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1011         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1012         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1013         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1014         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1015         * modules/opendir: New file.
1016         * modules/readdir: New file.
1017         * modules/rewinddir: New file.
1018         * modules/closedir: New file.
1019         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1020         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1021         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1022         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1023         * NEWS: Mention the 'fchdir' change.
1024
1025 2011-09-11  Bruno Haible  <bruno@clisp.org>
1026
1027         asm-underscore.m4: Support for MSVC.
1028         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1029         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1030
1031 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1032
1033         Doc about crypt functions.
1034         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1035         needing for _GNU_SOURCE to get crypt.
1036         * doc/posix-functions/encrypt.texi: Likewise.
1037         * doc/posix-functions/setkey.texi: Likewise.
1038
1039 2011-09-11  Bruno Haible  <bruno@clisp.org>
1040
1041         doc: Update regarding MSVC 9.
1042         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1043         tested".
1044         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1045         * doc/posix-headers/*.texi: Likewise.
1046         * doc/pastposix-functions/*.texi: Likewise.
1047         * doc/glibc-functions/*.texi: Likewise.
1048         * doc/glibc-headers/*.texi: Likewise.
1049
1050 2011-09-11  Bruno Haible  <bruno@clisp.org>
1051
1052         unistd et al.: Don't assume <unistd.h> exists.
1053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1054         does not exist.
1055         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1056         exist. But include <stdlib.h>.
1057         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1058         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1059         symlink() does not exist.
1060         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1061         include <io.h> instead.
1062         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1063         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1064         include <direct.h> instead.
1065         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1066         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1067         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1068         <io.h> instead.
1069         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1070         correctly if the system does not have hard links.
1071         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1072         <direct.h> instead.
1073         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1074         it when looking for function declarations.
1075         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1076         <direct.h> and <io.h> instead.
1077         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1078
1079 2011-09-11  Bruno Haible  <bruno@clisp.org>
1080
1081         strcase: Support for MSVC.
1082         * modules/strcase (Status, Notice): Remove obsoletion mark.
1083         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1084         * doc/posix-functions/strncasecmp.texi: Likewise.
1085
1086         strings: Don't assume <strings.h> exists.
1087         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1088         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1089         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1090         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1091
1092 2011-09-11  Bruno Haible  <bruno@clisp.org>
1093
1094         dirent: Don't assume <dirent.h> exists.
1095         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1096         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1097         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1098         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1099
1100 2011-09-11  Bruno Haible  <bruno@clisp.org>
1101
1102         Fix wint_t on MSVC.
1103         * lib/wchar.in.h (wint_t): On MSVC, override it.
1104         * lib/wctype.in.h (wint_t): Likewise.
1105         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1106         MSVC.
1107         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1108         * doc/posix-headers/wctype.texi: Likewise.
1109
1110 2011-09-11  Bruno Haible  <bruno@clisp.org>
1111
1112         sys_types: Fix typo.
1113         * lib/sys_types.in.h: Fix typo in comment.
1114         Reported by Paul Eggert.
1115
1116         Support for MSVC compiler: Ensure size_t gets defined.
1117         * modules/strings (Depends-on): Add 'sys_types'.
1118         * modules/sys_uio (Depends-on): Likewise.
1119         * lib/sys_uio.in.h: Update comment.
1120
1121         C++ tests for module 'sys_types'.
1122         * modules/sys_types-c++-tests: New file.
1123         * tests/test-sys_types-c++.cc: New file.
1124
1125         Tests for module 'sys_types'.
1126         * modules/sys_types-tests: New file.
1127         * tests/test-sys_types.c: New file.
1128
1129         New module 'sys_types'.
1130         * lib/sys_types.in.h: New file.
1131         * m4/sys_types_h.m4: New file.
1132         * modules/sys_types: New file.
1133         * doc/posix-headers/sys_types.texi: Mention the new module and the
1134         size_t problem on MSVC 9.
1135
1136 2011-09-11  Bruno Haible  <bruno@clisp.org>
1137
1138         Support for MSVC compiler: Avoid division by a literal 0.
1139         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1141         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1142         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1143         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1144         * tests/infinity.h: New file.
1145         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1146         on MSVC.
1147         * tests/test-ceilf1.c: Include infinity.h.
1148         (main): Use Infinityf.
1149         * tests/test-ceil1.c: Include infinity.h.
1150         (main): Use Infinityd.
1151         * tests/test-ceill.c: Include infinity.h.
1152         (main): Use Infinityl.
1153         * tests/test-dprintf-posix.c: Include infinity.h.
1154         (test_function): Use Infinityd.
1155         * tests/test-floorf1.c: Include infinity.h.
1156         (main): Use Infinityf.
1157         * tests/test-floor1.c: Include infinity.h.
1158         (main): Use Infinityd.
1159         * tests/test-floorl.c: Include infinity.h.
1160         (main): Use Infinityl.
1161         * tests/test-fprintf-posix.c: Include infinity.h.
1162         (test_function): Use Infinityd.
1163         * tests/test-frexp.c: Include infinity.h.
1164         (main): Use Infinityd.
1165         * tests/test-frexpl.c: Include infinity.h.
1166         (main): Use Infinityl.
1167         * tests/test-isfinite.c: Include infinity.h.
1168         (test_isfinitef): Use Infinityf.
1169         (test_isfinited): Use Infinityd.
1170         (test_isfinitel): Use Infinityl.
1171         * tests/test-isinf.c: Include infinity.h.
1172         (test_isinff): Use Infinityf.
1173         (test_isinfd): Use Infinityd.
1174         (test_isinfl): Use Infinityl.
1175         * tests/test-isnan.c: Include infinity.h.
1176         (test_float): Use Infinityf.
1177         (test_double): Use Infinityd.
1178         (test_long_double): Use Infinityl.
1179         * tests/test-isnanf.h: Include infinity.h.
1180         (main): Use Infinityf.
1181         * tests/test-isnand.h: Include infinity.h.
1182         (main): Use Infinityd.
1183         * tests/test-isnanl.h: Include infinity.h.
1184         (main): Use Infinityl.
1185         * tests/test-ldexpl.c: Include infinity.h.
1186         (main): Use Infinityl.
1187         * tests/test-printf-posix.h: Include infinity.h.
1188         (test_function): Use Infinityd.
1189         * tests/test-roundf1.c: Include infinity.h.
1190         (main): Use Infinityf.
1191         * tests/test-round1.c: Include infinity.h.
1192         (main): Use Infinityd.
1193         * tests/test-roundl.c: Include infinity.h.
1194         (main): Use Infinityl.
1195         * tests/test-signbit.c: Include infinity.h.
1196         (test_signbitf): Use Infinityf.
1197         (test_signbitd): Use Infinityd.
1198         (test_signbitl): Use Infinityl.
1199         * tests/test-snprintf-posix.h: Include infinity.h.
1200         (test_function): Use Infinityd, Infinityl.
1201         * tests/test-sprintf-posix.h: Include infinity.h.
1202         (test_function): Use Infinityd, Infinityl.
1203         * tests/test-truncf1.c: Include infinity.h.
1204         (main): Use Infinityf.
1205         * tests/test-trunc1.c: Include infinity.h.
1206         (main): Use Infinityd.
1207         * tests/test-truncl.c: Include infinity.h.
1208         (main): Use Infinityl.
1209         * tests/test-vasnprintf-posix.c: Include infinity.h.
1210         (test_function): Use Infinityd, Infinityl.
1211         * tests/test-vasprintf-posix.c: Include infinity.h.
1212         (test_function): Use Infinityd, Infinityl.
1213         * modules/ceilf-tests (Files): Add tests/infinity.h.
1214         * modules/ceil-tests (Files): Likewise.
1215         * modules/ceill-tests (Files): Likewise.
1216         * modules/dprintf-posix-tests (Files): Likewise.
1217         * modules/floorf-tests (Files): Likewise.
1218         * modules/floor-tests (Files): Likewise.
1219         * modules/floorl-tests (Files): Likewise.
1220         * modules/fprintf-posix-tests (Files): Likewise.
1221         * modules/frexp-tests (Files): Likewise.
1222         * modules/frexp-nolibm-tests (Files): Likewise.
1223         * modules/frexpl-tests (Files): Likewise.
1224         * modules/frexpl-nolibm-tests (Files): Likewise.
1225         * modules/isfinite-tests (Files): Likewise.
1226         * modules/isinf-tests (Files): Likewise.
1227         * modules/isnan-tests (Files): Likewise.
1228         * modules/isnanf-tests (Files): Likewise.
1229         * modules/isnanf-nolibm-tests (Files): Likewise.
1230         * modules/isnand-tests (Files): Likewise.
1231         * modules/isnand-nolibm-tests (Files): Likewise.
1232         * modules/isnanl-tests (Files): Likewise.
1233         * modules/isnanl-nolibm-tests (Files): Likewise.
1234         * modules/ldexpl-tests (Files): Likewise.
1235         * modules/printf-posix-tests (Files): Likewise.
1236         * modules/roundf-tests (Files): Likewise.
1237         * modules/round-tests (Files): Likewise.
1238         * modules/roundl-tests (Files): Likewise.
1239         * modules/signbit-tests (Files): Likewise.
1240         * modules/snprintf-posix-tests (Files): Likewise.
1241         * modules/sprintf-posix-tests (Files): Likewise.
1242         * modules/truncf-tests (Files): Likewise.
1243         * modules/trunc-tests (Files): Likewise.
1244         * modules/truncl-tests (Files): Likewise.
1245         * modules/vasnprintf-posix-tests (Files): Likewise.
1246         * modules/vasprintf-posix-tests (Files): Likewise.
1247         * modules/vdprintf-posix-tests (Files): Likewise.
1248         * modules/vfprintf-posix-tests (Files): Likewise.
1249         * modules/vprintf-posix-tests (Files): Likewise.
1250         * modules/vsnprintf-posix-tests (Files): Likewise.
1251         * modules/vsprintf-posix-tests (Files): Likewise.
1252         * modules/xprintf-posix-tests (Files): Likewise.
1253
1254 2011-09-11  Bruno Haible  <bruno@clisp.org>
1255
1256         Ensure pid_t gets defined.
1257         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1258         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1259         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1260         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1261         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1262         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1263         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1264         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1265         * tests/test-fcntl-h.c: Check that pid_t is defined.
1266         * tests/test-sched.c: Likewise.
1267         * tests/test-termios.c: Likewise.
1268         * tests/test-time.c: Likewise.
1269         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1270         * doc/posix-headers/signal.texi: Likewise.
1271         * doc/posix-headers/sys_types.texi: Likewise.
1272         * doc/posix-headers/time.texi: Likewise.
1273
1274 2011-09-11  Bruno Haible  <bruno@clisp.org>
1275
1276         acl: Fix compilation on Solaris 10 (older version).
1277         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1278         of ACE_EVERYONE.
1279         * lib/set-mode-acl.c (qset_acl): Likewise.
1280         Reported by Christian Jullien <eligis@orange.fr>.
1281
1282 2011-09-10  Bruno Haible  <bruno@clisp.org>
1283
1284         iconv, unsetenv: Add support for MSVC compiler.
1285         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1286         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1287
1288 2011-09-10  Bruno Haible  <bruno@clisp.org>
1289
1290         *printf: Add support for MSVC compiler.
1291         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1292         handles the exception caused by the %n directive. When cross-compiling,
1293         guess no on native Windows.
1294         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1295         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1296         emulate it through vsnprintf.
1297         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1298         * doc/posix-functions/dprintf.texi: Update documentation regarding
1299         MSVC 9.
1300         * doc/posix-functions/fprintf.texi: Likewise.
1301         * doc/posix-functions/printf.texi: Likewise.
1302         * doc/posix-functions/snprintf.texi: Likewise.
1303         * doc/posix-functions/sprintf.texi: Likewise.
1304         * doc/posix-functions/swprintf.texi: Likewise.
1305         * doc/posix-functions/vdprintf.texi: Likewise.
1306         * doc/posix-functions/vfprintf.texi: Likewise.
1307         * doc/posix-functions/vprintf.texi: Likewise.
1308         * doc/posix-functions/vsnprintf.texi: Likewise.
1309         * doc/posix-functions/vsprintf.texi: Likewise.
1310         * doc/glibc-functions/asprintf.texi: Likewise.
1311         * doc/glibc-functions/obstack_printf.texi: Likewise.
1312         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1313         * doc/glibc-functions/vasprintf.texi: Likewise.
1314
1315 2011-09-10  Bruno Haible  <bruno@clisp.org>
1316
1317         nocrash: Add support for native Windows.
1318         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1319
1320 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1321             Bruno Haible  <bruno@clisp.org>
1322
1323         absolute-header, include-next: Add support for MSVC compiler.
1324         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1325         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1326         directory separator in #line directives.
1327         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1328         recognize also backslash as directory separator in #line directives.
1329
1330 2011-09-08  Jim Meyering  <meyering@redhat.com>
1331
1332         maint.mk: mark the post-release commit log with "maint: " prefix
1333         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1334         one-line commit-log summary.
1335
1336 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1337             Bruno Haible  <bruno@clisp.org>
1338
1339         Doc about crypt functions.
1340         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1341         systems.
1342         * doc/posix-functions/encrypt.texi: Likewise.
1343         * doc/posix-functions/setkey.texi: Likewise.
1344
1345 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1346
1347         * lib/gc.h: Fix copyright header.
1348
1349 2011-09-07  Bruno Haible  <bruno@clisp.org>
1350
1351         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1352         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1353         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1354
1355 2011-09-07  Bruno Haible  <bruno@clisp.org>
1356
1357         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1358         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1359         * lib/freopen.c: Likewise.
1360         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1361         * lib/lstat.c: Likewise.
1362         * lib/stat.c: Likewise.
1363         * lib/open.c: Use different syntax for include of <fcntl.h>.
1364         * lib/openat.c: Include fcntl.h again, explicitly.
1365
1366 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1367
1368         parse-datetime: document the newly accepted format
1369         * doc/parse-datetime.texi (Combined date and time of day items):
1370         New section.
1371
1372 2011-09-06  Bruno Haible  <bruno@clisp.org>
1373
1374         acl: Fix a test failure on newer Solaris 10 with ZFS.
1375         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1376         ENOSYS as no ACL.
1377         Reported by Jim Meyering.
1378
1379 2011-09-06  Bruno Haible  <bruno@clisp.org>
1380
1381         acl: Update for AIX >= 5.3 with NFS.
1382         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1383         ENOSYS as no ACL.
1384
1385         acl: Fix a test failure on AIX >= 5.3 with NFS.
1386         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1387         as no ACL.
1388
1389 2011-09-06  Bruno Haible  <bruno@clisp.org>
1390
1391         acl: Fix a test failure on IRIX 6.5 with NFS.
1392         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1393         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1394         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1395         * lib/copy-acl.c (qcopy_acl): Likewise.
1396
1397 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1398
1399         openat: port to AIX 7.1 with large files
1400         AIX 7.1 does a "#define openat open64at" if large files are in use,
1401         so we can't simply #undef openat.  Use the orig_openat trick (similar
1402         to orig_open in lib/open.c) to work around the problem.  Problem
1403         reported by Kevin Brott for GNU tar, in the thread containing
1404         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1405         * lib/openat.c (__need_system_fcntl_h): Define first.
1406         Include <fcntl.h> and <sys/types.h> before undefining.
1407         (orig_openat) [HAVE_OPENAT]: New inline function.
1408         (openat) [HAVE_OPENAT]: Do not undef.
1409         (rpl_openat): Use orig_openat, not openat.
1410
1411 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1412             Bruno Haible  <bruno@clisp.org>
1413
1414         acl: Avoid errors on NonStop Kernel.
1415         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1416         ENOTSUP errors.
1417
1418 2011-09-05  Bruno Haible  <bruno@clisp.org>
1419
1420         acl: Clean up Solaris code.
1421         * lib/acl-internal.h: Remove no-op #if.
1422         * lib/file-has-acl.c: Likewise.
1423         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1424         * lib/copy-acl.c (qcopy_acl): Likewise.
1425
1426 2011-09-05  Bruno Haible  <bruno@clisp.org>
1427
1428         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1429         binaries built on the original Solaris 10.
1430         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1431         trivial.
1432
1433 2011-09-05  Bruno Haible  <bruno@clisp.org>
1434
1435         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1436         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1437         10.
1438         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1439         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1440         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1441         instead of acl_get, facl_get, acl_set, facl_set.
1442
1443 2011-09-05  Bruno Haible  <bruno@clisp.org>
1444
1445         copy-file: Try unit tests on more file systems.
1446         * tests/test-copy-file-1.sh: New file.
1447         * tests/test-copy-file-2.sh: New file.
1448         * modules/copy-file-tests (Files): Add them.
1449         (Makefile.am): Add them to TESTS.
1450
1451         acl: Try unit tests on more file systems.
1452         * tests/test-file-has-acl-1.sh: New file.
1453         * tests/test-file-has-acl-2.sh: New file.
1454         * tests/test-set-mode-acl-1.sh: New file.
1455         * tests/test-set-mode-acl-2.sh: New file.
1456         * tests/test-copy-acl-1.sh: New file.
1457         * tests/test-copy-acl-2.sh: New file.
1458         * modules/acl-tests (Files): Add them.
1459         (Makefile.am): Add them to TESTS.
1460
1461 2011-09-04  Bruno Haible  <bruno@clisp.org>
1462
1463         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1464         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1465         10.
1466         (OLD_ALLOW, OLD_DENY): New macros.
1467         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1468         ACE_ACCESS_ALLOWED_ACE_TYPE.
1469         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1470         ACE_ACCESS_DENIED_ACE_TYPE.
1471         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1472         (NEW_ACE_EXECUTE): Fix value.
1473         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1474         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1475         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1476         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1477         NEW_ACE_SYNCHRONIZE): New macros.
1478         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1479         instead of acl_fromtext, acl_set, facl_set.
1480         Fixes a coreutils/tests/cp/perm failure.
1481
1482 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1483
1484         openat: test for fstatat (..., 0) bug
1485         Further testing with tar suggests that fstatat (..., 0)
1486         does not work in general, on AIX 7.1; see
1487         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1488         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1489         replacement fstatat (which is what older AIX releases were using
1490         anyway).
1491         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1492         use is now changed to orig_fstatat.  This was probably the right
1493         thing to do anyway.
1494         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1495         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1496         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1497         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1498         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1499         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1500         if the bug is found.
1501
1502         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1503         This tests for another fstatat bug on AIX 7.1:
1504         fstatat (AT_FDCWD, ..., 0) does not work.  See
1505         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1506         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1507         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1508         (rpl_fstatat): Adjust so that it works around either (or both)
1509         bugs if present.
1510         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1511
1512 2011-09-03  Karl Berry  <karl@gnu.org>
1513
1514         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1515         in index entries.
1516
1517 2011-09-02  Bruno Haible  <bruno@clisp.org>
1518
1519         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1520         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1521         values of AR, ARFLAGS, RANLIB.
1522         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1523
1524 2011-09-02  Bruno Haible  <bruno@clisp.org>
1525
1526         Find 'ar' program that fits with --host argument.
1527         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1528
1529 2011-09-02  Bruno Haible  <bruno@clisp.org>
1530
1531         tests: init.sh: Support any non-GNU diff.
1532         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1533         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1534         Solaris 8.
1535
1536 2011-09-02  Bruno Haible  <bruno@clisp.org>
1537
1538         tests: init.sh: work also with any non-GNU diff that supports -u
1539         * tests/init.sh: Relax check for diff -u support.
1540         Rather than checking for GNU diff via --version, simply check
1541         for support for -u itself.  Useful at least on OpenBSD 4.9,
1542         AIX 7.1, IRIX 6.5, and Solaris 10.
1543
1544 2011-09-01  Bruno Haible  <bruno@clisp.org>
1545
1546         strtoimax, strtoumax: Document problem on HP-UX 11.
1547         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1548         * doc/posix-functions/strtoumax.texi: Likewise.
1549
1550 2011-09-01  Bruno Haible  <bruno@clisp.org>
1551
1552         strtoumax: Avoid link error on OSF/1 with DTK cc.
1553         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1554         defined as a function.
1555         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1556         strtoumax is defined, not whether it is declared.
1557
1558 2011-09-01  Bruno Haible  <bruno@clisp.org>
1559
1560         strtoimax: Avoid link error on OSF/1 with DTK cc.
1561         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1562         defined as a function.
1563         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1564         strtoimax is defined, not whether it is declared.
1565
1566 2011-09-01  Bruno Haible  <bruno@clisp.org>
1567
1568         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1569         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1570         as a function.
1571         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1572         whether it is declared.
1573
1574 2011-09-01  Bruno Haible  <bruno@clisp.org>
1575
1576         imaxabs: Avoid link error on OSF/1 with DTK cc.
1577         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1578         as a function.
1579         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1580         whether it is declared.
1581
1582 2011-09-01  Bruno Haible  <bruno@clisp.org>
1583
1584         Tests for module 'strtoumax'.
1585         * modules/strtoumax-tests: New file.
1586         * tests/test-strtoumax.c: New file.
1587
1588         Tests for module 'strtoimax'.
1589         * modules/strtoimax-tests: New file.
1590         * tests/test-strtoimax.c: New file.
1591
1592         Tests for module 'imaxdiv'.
1593         * modules/imaxdiv-tests: New file.
1594         * tests/test-imaxdiv.c: New file.
1595
1596         Tests for module 'imaxabs'.
1597         * modules/imaxabs-tests: New file.
1598         * tests/test-imaxabs.c: New file.
1599
1600 2011-09-01  Bruno Haible  <bruno@clisp.org>
1601
1602         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1603         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1604         pthread_create.
1605
1606 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1607
1608         openat: work around AIX 7.1 fstatat issue
1609         This should fix the problem that was not properly fixed
1610         in the previous change, dated 2011-08-30.
1611         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1612         __need_system_stat_h defined.
1613         (orig_fstatat) [HAVE_FSTATAT]: New function.
1614         (rpl_fstatat): Go back to the old way of doing things,
1615         except call orig_fstatat instead of fstatat.
1616         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1617         Remove unnecessary check whether fstatat fills in st_size etc.
1618
1619 2011-09-01  Bruno Haible  <bruno@clisp.org>
1620
1621         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1622         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1623         just include the system's header.
1624
1625 2011-08-31  Jim Meyering  <meyering@redhat.com>
1626
1627         tests: avoid spurious assertion failure in test-float.c on ppc64
1628         * tests/test-float.c (test_long_double): Comment out an assertion,
1629         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1630         with gcc-4.4.4.
1631
1632         maint: indent with spaces, not TABs
1633         I need to get in the habit of running gnulib's "make check".
1634         Both of these would have been caught.
1635         * m4/largefile.m4: Indent with spaces, not TABs.
1636         * lib/parse-datetime.y (iso_8601_time): Likewise.
1637         Spotted by Pádraig Brady.
1638
1639         test-parse-datetime.c: accommodate a relatively strict gcc warning
1640         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1641         to avoid a warning from gcc's -Werror=missing-declarations.
1642         Insert a few spaces-before-funcall-parenthesis.
1643
1644 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1645
1646         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1647         The parser now accepts ISO 8601 date-time strings with "T" as the
1648         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1649         with a space between the date and time strings.  Now it also parses
1650         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1651         variants like "2004-02-29T16:21:42.333-07:00"
1652         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1653         of day representation using the 'T' separator character.
1654         * doc/parse-datetime.texi (General date syntax): replace use of
1655         deprecated --iso-8601 option with --rfc-3339 in example of date
1656         command output formats that can be parsed.
1657         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1658         lib/parse-datetime.y.
1659         (gmt_offset): New function.
1660         (main): Add additional test cases to validate ISO8601 extended
1661         date and time of day parsing.
1662
1663 2011-08-31  Bruno Haible  <bruno@clisp.org>
1664
1665         freopen: Documentation.
1666         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1667         name.
1668         Reported by Claudio Bley <claudio.bley@gmail.com>.
1669
1670 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1671
1672         freopen: Don't crash if the filename argument is NULL.
1673         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1674         NULL.
1675
1676 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1677
1678         openat: work around AIX 7.1 fstatat bug
1679         Problem reported by Kevin Brott for GNU tar, in the thread containing
1680         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1681         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1682         FSTATAT_ST_SIZE_ETC_BROKEN.
1683         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1684         rpl_fstatat.
1685         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1686         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1687         AC_CHECK_FUNCS_ONCE for fstatat.
1688         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1689         fchmodat, mkdirat, openat and unlinkat.
1690
1691 2011-08-30  Bruno Haible  <bruno@clisp.org>
1692
1693         Avoid endless recursions if config.h includes some header files.
1694         * lib/fopen.c (__need_FILE): Define already before including config.h.
1695         * lib/freopen.c (__need_FILE): Likewise.
1696         * lib/open.c (__need_system_fcntl_h): Likewise.
1697         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1698         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1699         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1700
1701 2011-08-25  Karl Berry  <karl@gnu.org>
1702
1703         * config/srclist.txt (ylwrap): new try.
1704         * build-aux/ylwrap: new file.
1705
1706 2011-08-23  Bruno Haible  <bruno@clisp.org>
1707
1708         tmpdir: Use a good default directory on native Windows.
1709         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1710         (P_tmpdir): Default to _P_tmpdir on native Windows.
1711         (path_search): On native Windows, try the value returned by GetTempPath
1712         before trying P_tmpdir.
1713         * modules/tmpdir (Depends-on): Add pathmax.
1714         Suggested by John Darrington <john@darrington.wattle.id.au>.
1715
1716 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1717
1718         doc: fix typo in README-release
1719         * top/README-release: Capitalize first word of a sentence.
1720
1721 2011-08-19  Jim Meyering  <meyering@redhat.com>
1722
1723         fts: do not exhaust memory when processing million-entry directories
1724         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1725         directory would require about 256*N bytes of memory.  Thus, it was
1726         easy to construct a directory too large to be processed by any of
1727         those tools.  With this change, fts' maximum memory utilization is
1728         now limited to around 30MB.
1729         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1730         (fts_read): When we've processed the final entry (i.e., when
1731         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1732         using the parent entry to read any remaining entries.  Dispatch
1733         depending on what fts_build returns:
1734         - NULL+stop, aka failure: stop
1735         - NULL otherwise: move up in the dir hierarchy
1736         - non-NULL: handle this new entry
1737         (fts_build): Declare and use new local, continue_readdir.
1738         Prepare to be called from fts_read, when the entries
1739         from a partially-read directory have just been exhausted.
1740         In that case, we'll skip the opendir and instead use the parent's
1741         fts_dirp and derive dir_fd from that.
1742         Finally, in the readdir loop, if we read max_entries entries,
1743         exit the loop ensuring *not* to call closedir.  This is required
1744         so that fts_dirp can be reused on a subsequent call.
1745         Prompted by Ben England's report of memory exhaustion in find
1746         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1747
1748         maint: fts: move decl of `dp' down into while loop; split a long line
1749         * lib/fts.c (fts_build): No semantic change.
1750
1751         fts: add/use new struct member, fts_dirp
1752         We are about to use this to manage any directory with
1753         too many entries to read all of them into memory at once.
1754         To do that, we'll need to save the DIR* pointer in each
1755         affected FTSENT struct.
1756         * lib/fts_.h: Include <dirent.h>.
1757         (struct FTSENT) [fts_dirp]: New member.
1758         * lib/fts.c (closedir_and_clear): Define.
1759         Use it in place of closedir so that we are sure to
1760         clear the new fts_dirp member when done with it.
1761         (fts_alloc): Initialize the new member.
1762         (fts_lfree): Free, if needed.
1763
1764         maint: fts: give __opendir2 a new parameter and rename
1765         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1766         than surreptitiously using sole caller's "dir_fd".
1767         (fts_opendir): Rename from __opendir2.
1768
1769         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1770         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1771
1772         maint: fts.c: correct off-by-one indentation
1773         * lib/fts.c (fts_build): Correct indentation, change style
1774         of a couple of block comments, and bracing style.
1775
1776         maint: fts.c: move __opendir2 #define "up" out of function body
1777         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1778
1779         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1780         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1781         out for a long time and besides was useful only on BSD systems.
1782
1783 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1784
1785         regex: port to Stratus OpenVOS
1786         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1787         define to empty, rather than attempting nonportable optimizations.
1788         Problem reported by Paul Green in:
1789         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1790         and fix suggested by Eric Blake in:
1791         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1792
1793 2011-08-17  Eric Blake  <eblake@redhat.com>
1794
1795         getcwd: fix test failures on mingw
1796         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1797         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1798         test if long directory cannot be created, and allow mingw errno.
1799
1800         getcwd-lgpl: fix m4 to match relaxed test for BSD
1801         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1802         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1803         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1804         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1805         signature problem.
1806
1807         getcwd: fix compilation on mingw64
1808         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1809         getcwd.
1810         Reported by Marc-André Lureau.
1811
1812         pipe2: silence compiler warning
1813         * lib/pipe2.c (pipe2): Hide label if it is not used.
1814
1815 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1816
1817         relocatable-prog: fix link error
1818         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1819         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1820         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1821         into modules/relocatable-lib without noticing that
1822         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1823         also needs to build relocatable.c.
1824
1825 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1828         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1829         shell code: it contained a 'break' that was not in a loop.
1830         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1831         via a shell-language loop; this may have been true in old Autoconf
1832         versions, but it's not true in Autoconf 2.68.  I found this bug
1833         when testing coreutils git on Solaris 8, whose shell complains
1834         about the syntax error.
1835
1836 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1837
1838         * lib/base64.c: Fix comment to reference RFC 4648.
1839         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1840         <gvtulder@gmail.com>.
1841
1842 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1845
1846         po/Makefile.in.in: fix make -q problem
1847         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1848         rule, since there's no file named 'check-macro-version' and its
1849         use as a file breaks make -q.
1850         (all): Don't depend on check-macro-version.
1851         (CHECK_MACRO_VERSION): New macro.
1852         (stamp-po): Use it.
1853
1854         configmake: fix make -q problem
1855         * modules/configmake (configmake.h): Update configmake.h's time stamp
1856         even if the file does not change.  Otherwise, 'make -q' fails.
1857         Problem reported by Simon Josefsson in
1858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1859
1860 2011-08-11  Jim Meyering  <meyering@redhat.com>
1861
1862         git-version-gen: correct the advice in a comment
1863         * build-aux/git-version-gen: Correct comment.
1864         Don't recommend to list .tarball-version in .gitignore.
1865
1866 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1867
1868         base64: fix off-by-one buffer size bug
1869         Problem and (trivial) fix reported by Gijs van Tulder in
1870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1871         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1872         * tests/test-base64.c (main): Catch the bug.
1873
1874 2011-08-10  Eric Blake  <eblake@redhat.com>
1875
1876         closein: correct comments
1877         * lib/closein.c (close_stdin): Improve comments.
1878
1879 2011-08-09  Bruno Haible  <bruno@clisp.org>
1880
1881         More tests for 'fseeko'.
1882         * tests/test-fseeko3.c: New file, from Eric Blake.
1883         * tests/test-fseeko3.sh: New file.
1884         * modules/fseeko-tests (Files): Add them.
1885         (TESTS): Add test-fseeko3.sh.
1886         (check_PROGRAMS): Add test-fseeko3.
1887
1888 2011-08-09  Eric Blake  <eblake@redhat.com>
1889
1890         fseeko: remove unneeded hack
1891         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1892
1893         fseeko: fix bug on glibc
1894         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1895         Reported by John W. Eaton.
1896
1897 2011-08-08  Bruno Haible  <bruno@clisp.org>
1898
1899         unictype/base: Fix interoperability with preinstalled libunistring.
1900         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1901         Reported by Simon Josefsson.
1902
1903 2011-08-08  Bruno Haible  <bruno@clisp.org>
1904
1905         iswblank: Detect declaration correctly.
1906         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1907         AC_CHECK_DECLS invocation.
1908
1909 2011-08-08  Bruno Haible  <bruno@clisp.org>
1910
1911         tcgetsid: Detect declaration correctly.
1912         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1913         AC_CHECK_DECLS invocation.
1914         Reported by Simon Josefsson.
1915
1916 2011-08-08  Eric Blake  <eblake@redhat.com>
1917
1918         largefile: fix typo that regressed large file support
1919         * modules/largefile (configure.ac-early): Fix section name.
1920
1921 2011-08-06  Karl Berry  <karl@gnu.org>
1922
1923         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1924         a separate module.
1925
1926 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1927
1928         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1929         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1930         get prototype for free.
1931
1932 2011-08-04  Bruno Haible  <bruno@clisp.org>
1933
1934         Tests for module 'pathmax'.
1935         * modules/pathmax-tests: New file.
1936         * tests/test-pathmax.c: New file.
1937
1938         canonicalize-lgpl: Support larger filenames on the Hurd.
1939         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1940         Reported by Paul Eggert.
1941
1942         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1943         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1944         * lib/chdir-long.h: Include pathmax.h.
1945         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1946         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1947         (PATH_MAX): Remove code that is done by pathmax.h.
1948         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1949         * lib/tmpfile.c: Add a comment.
1950         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1951         * modules/chdir-long (Depends-on): Add pathmax.
1952         * modules/getcwd (Depends-on): Add pathmax.
1953         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1954         is not defined.
1955         * doc/posix-headers/limits.texi: Mention the pathmax module.
1956         * NEWS: Mention the change.
1957
1958 2011-08-02  Bruno Haible  <bruno@clisp.org>
1959
1960         pthread_sigmask: Actually use results of gl_THREADLIB.
1961         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1962         gl_THREADLIB, not gl_[]THREADLIB.
1963         Reported by Eric Blake.
1964
1965 2011-08-02  Jim Meyering  <meyering@redhat.com>
1966
1967         maint.mk: relax the default _gl_TS_function_match regexp
1968         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1969         space between function name and "(" in an "extern" declaration.
1970         That would fail to match a decl with no space there: extern void foo();
1971
1972 2011-07-31  Iain Nicol  <iain@thenicols.net>
1973
1974         git-version-gen: document that EXTRA_DIST must include .version
1975         * build-aux/git-version-gen: In the how-to-use comment, document
1976         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1977         will fail when run from an unpacked distribution tarball.
1978
1979 2011-08-01  Bruno Haible  <bruno@clisp.org>
1980
1981         wctype-h: Fix last change.
1982         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1983         REPLACE_TOWLOWER to 0.
1984         Reported by Sam Steingold <sds@gnu.org>.
1985
1986 2011-07-31  Bruno Haible  <bruno@clisp.org>
1987
1988         frexpl: Update autoconf test.
1989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1990         according to changes of 2011-06-20.
1991
1992 2011-07-31  Bruno Haible  <bruno@clisp.org>
1993
1994         sys_utsname: Add support for Minix.
1995         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1996         <sys/utsname.h>.
1997         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1998         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1999
2000 2011-07-31  Bruno Haible  <bruno@clisp.org>
2001
2002         strings: Add support for Minix.
2003         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2004         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2005         * doc/posix-headers/strings.texi: Document the Minix problem.
2006
2007 2011-07-31  Bruno Haible  <bruno@clisp.org>
2008
2009         wctype-h: Add support for Minix.
2010         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2011         REPLACE_TOWLOWER.
2012         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2013         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2014         REPLACE_ISWCNTRL.
2015
2016 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2017
2018         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2019         This is a performance improvement for 64-bit hosts: it causes the
2020         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2021
2022 2011-07-31  Bruno Haible  <bruno@clisp.org>
2023
2024         stdioext: Add support for Minix.
2025         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2026         * lib/fpurge.c (fpurge): Likewise.
2027         * lib/freadahead.c (freadahead): Likewise.
2028         * lib/freadable.c (freadable): Likewise.
2029         * lib/freading.c (freading): Likewise.
2030         * lib/freadptr.c (freadptr): Likewise.
2031         * lib/freadseek.c (freadptrinc): Likewise.
2032         * lib/fseeko.c (rpl_fseeko): Likewise.
2033         * lib/fseterr.c (fseterr): Likewise.
2034         * lib/fwritable.c (fwritable): Likewise.
2035         * lib/fwriting.c (fwriting): Likewise.
2036         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2037         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2038
2039 2011-07-31  Bruno Haible  <bruno@clisp.org>
2040
2041         errno: Port to Minix.
2042         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2043         ECONNABORTED are defined.
2044         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2045         GNULIB_defined_ECONNABORTED): New macros.
2046         * lib/strerror-override.h (strerror_override): Test also
2047         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2048         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2049         ECONNABORTED.
2050         * doc/posix-headers/errno.texi: Mention the Minix problem.
2051
2052 2011-07-31  Bruno Haible  <bruno@clisp.org>
2053
2054         Work around declaration collisions on Minix.
2055         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2056         defined, set REPLACE_MBSINIT.
2057         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2058         defined, set REPLACE_MBRTOWC.
2059         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2060         set REPLACE_MBRLEN.
2061         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2062         defined, set REPLACE_MBSRTOWCS.
2063         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2064         defined, set REPLACE_WCRTOMB.
2065         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2066         defined, set REPLACE_WCSRTOMBS.
2067
2068 2011-07-31  Bruno Haible  <bruno@clisp.org>
2069
2070         Add support for Minix with ACK compiler.
2071         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2072         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2073         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2074
2075 2011-07-31  Bruno Haible  <bruno@clisp.org>
2076
2077         Documentation about Minix.
2078         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2079         * doc/glibc-headers/*.texi: Likewise.
2080         * doc/posix-functions/*.texi: Likewise.
2081         * doc/glibc-functions/*.texi: Likewise.
2082
2083 2011-07-31  Bruno Haible  <bruno@clisp.org>
2084
2085         snippet/warn-on-use: Fix indentation.
2086         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2087
2088 2011-07-25  Jim Meyering  <meyering@redhat.com>
2089
2090         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2091         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2092         commands.
2093
2094 2011-07-27  Jim Meyering  <meyering@redhat.com>
2095
2096         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2097         * top/maint.mk (gl_extract_significant_defines_): Now that
2098         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2099         gnulib/lib/signal.in.h, and now that we recommend to
2100         define-if-undefined those two symbols in application code,
2101         we must filter them out of the "significant" list.
2102         This avoids a "make syntax-check" failure in coreutils.
2103
2104 2011-07-26  Eric Blake  <eblake@redhat.com>
2105
2106         warnings: add comments about previous patch
2107         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2108         * m4/include_next.m4: Likewise.
2109         * m4/warn-on-use.m4: Likewise.
2110         * m4/warnings.m4: Likewise, and simplify use.
2111         Suggested by Stefano Lattarini.
2112
2113         include-next, warnings: support older autoconf
2114         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2115         AS_VAR_PUSHDEF in a way that works with older autoconf.
2116         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2117         Reported by Daniel P. Berrange.
2118
2119 2011-07-25  Bruno Haible  <bruno@clisp.org>
2120
2121         fseek, ftell: Fix doc.
2122         * doc/posix-functions/fseek.texi: Reword statement about
2123         AC_SYS_LARGEFILE.
2124         * doc/posix-functions/ftell.texi: Likewise.
2125
2126 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2127             Bruno Haible  <bruno@clisp.org>
2128
2129         Add dependencies to the 'largefile' module.
2130         * modules/fopen (Depends-on): Add 'largefile'.
2131         * modules/freopen (Depends-on): Likewise.
2132         * modules/fseeko (Depends-on): Likewise.
2133         * modules/ftello (Depends-on): Likewise.
2134         * modules/glob (Depends-on): Likewise.
2135         * modules/lseek (Depends-on): Likewise.
2136         * modules/lstat (Depends-on): Likewise.
2137         * modules/mkostemp (Depends-on): Likewise.
2138         * modules/mkostemps (Depends-on): Likewise.
2139         * modules/mkstemp (Depends-on): Likewise.
2140         * modules/mkstemps (Depends-on): Likewise.
2141         * modules/open (Depends-on): Likewise.
2142         * modules/openat (Depends-on): Likewise.
2143         * modules/pread (Depends-on): Likewise.
2144         * modules/pwrite (Depends-on): Likewise.
2145         * modules/scandir (Depends-on): Likewise.
2146         * modules/stat (Depends-on): Likewise.
2147         * modules/tmpfile (Depends-on): Likewise.
2148         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2149         since the containing module now depends on the largefile module.
2150         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2151         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2152         off_t is fixed by gnulib.
2153         * doc/posix-functions/freopen.texi: Likewise.
2154         * doc/posix-functions/fseeko.texi: Likewise.
2155         * doc/posix-functions/fstatat.texi: Likewise.
2156         * doc/posix-functions/ftello.texi: Likewise.
2157         * doc/posix-functions/glob.texi: Likewise.
2158         * doc/posix-functions/lseek.texi: Likewise.
2159         * doc/posix-functions/lstat.texi: Likewise.
2160         * doc/posix-functions/mkstemp.texi: Likewise.
2161         * doc/posix-functions/open.texi: Likewise.
2162         * doc/posix-functions/openat.texi: Likewise.
2163         * doc/posix-functions/pread.texi: Likewise.
2164         * doc/posix-functions/pwrite.texi: Likewise.
2165         * doc/posix-functions/scandir.texi: Likewise.
2166         * doc/posix-functions/stat.texi: Likewise.
2167         * doc/posix-functions/tmpfile.texi: Likewise.
2168         * doc/glibc-functions/mkostemp.texi: Likewise.
2169         * doc/glibc-functions/mkostemps.texi: Likewise.
2170         * doc/glibc-functions/mkstemps.texi: Likewise.
2171
2172 2011-07-25  Bruno Haible  <bruno@clisp.org>
2173
2174         fcntl: Move AC_LIBOBJ invocation to module description.
2175         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2176         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2177
2178         fcntl: Remove call-in from fchdir.m4.
2179         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2181
2182         dup3: Remove potential call-in from fchdir.m4.
2183         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2185
2186         dup2: Move AC_LIBOBJ invocation to module description.
2187         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2188         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2189         Don't invoke AC_LIBOBJ.
2190         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2191
2192         dup2: Remove call-in from fchdir.m4.
2193         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2195
2196         fclose: Move AC_LIBOBJ invocation to module description.
2197         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2198         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2199         to 1.
2200         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2201
2202         fclose: Remove call-in from close.m4.
2203         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2204         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2205
2206         close: Move AC_LIBOBJ invocation to module description.
2207         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2208         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2209         1.
2210         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2211
2212         close: Remove call-in from fchdir.m4.
2213         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2215
2216         open: Move AC_LIBOBJ invocation to module description.
2217         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2218         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2219         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2220
2221         open: Remove call-in from fchdir.m4.
2222         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2224
2225         fchdir: Start to remove gl_REPLACE_* idiom.
2226         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2227         (gl_FUNC_FCHDIR): Invoke it.
2228
2229 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2230
2231         * lib/ftell.c (ftell): Comment out cast.
2232
2233         close: use gl_REPLACE_FCLOSE only if defined
2234         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2235         is defined.  The close module doesn't depend on the fclose module
2236         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2238         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2239
2240 2011-07-24  Jim Meyering  <meyering@redhat.com>
2241
2242         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2243         * tests/test-select.h (test_function): Declare as "static".
2244
2245 2011-07-24  Bruno Haible  <bruno@clisp.org>
2246
2247         doc: Mention the effects of AC_SYS_LARGEFILE.
2248         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2249         on this function.
2250         * doc/posix-functions/aio_error.texi: Likewise.
2251         * doc/posix-functions/aio_fsync.texi: Likewise.
2252         * doc/posix-functions/aio_read.texi: Likewise.
2253         * doc/posix-functions/aio_return.texi: Likewise.
2254         * doc/posix-functions/aio_suspend.texi: Likewise.
2255         * doc/posix-functions/aio_write.texi: Likewise.
2256         * doc/posix-functions/fgetpos.texi: Likewise.
2257         * doc/posix-functions/fopen.texi: Likewise.
2258         * doc/posix-functions/freopen.texi: Likewise.
2259         * doc/posix-functions/fsetpos.texi: Likewise.
2260         * doc/posix-functions/fstatvfs.texi: Likewise.
2261         * doc/posix-functions/ftruncate.texi: Likewise.
2262         * doc/posix-functions/ftw.texi: Likewise.
2263         * doc/posix-functions/getrlimit.texi: Likewise.
2264         * doc/posix-functions/glob.texi: Likewise.
2265         * doc/posix-functions/lio_listio.texi: Likewise.
2266         * doc/posix-functions/lockf.texi: Likewise.
2267         * doc/posix-functions/mkstemp.texi: Likewise.
2268         * doc/posix-functions/mmap.texi: Likewise.
2269         * doc/posix-functions/nftw.texi: Likewise.
2270         * doc/posix-functions/openat.texi: Likewise.
2271         * doc/posix-functions/opendir.texi: Likewise.
2272         * doc/posix-functions/posix_fadvise.texi: Likewise.
2273         * doc/posix-functions/posix_fallocate.texi: Likewise.
2274         * doc/posix-functions/pread.texi: Likewise.
2275         * doc/posix-functions/pwrite.texi: Likewise.
2276         * doc/posix-functions/readdir.texi: Likewise.
2277         * doc/posix-functions/readdir_r.texi: Likewise.
2278         * doc/posix-functions/rewinddir.texi: Likewise.
2279         * doc/posix-functions/scandir.texi: Likewise.
2280         * doc/posix-functions/seekdir.texi: Likewise.
2281         * doc/posix-functions/setrlimit.texi: Likewise.
2282         * doc/posix-functions/statvfs.texi: Likewise.
2283         * doc/posix-functions/telldir.texi: Likewise.
2284         * doc/posix-functions/tmpfile.texi: Likewise.
2285         * doc/posix-functions/truncate.texi: Likewise.
2286         * doc/glibc-functions/fallocate.texi: Likewise.
2287         * doc/glibc-functions/fstatfs.texi: Likewise.
2288         * doc/glibc-functions/fts_children.texi: Likewise.
2289         * doc/glibc-functions/fts_read.texi: Likewise.
2290         * doc/glibc-functions/getdirentries.texi: Likewise.
2291         * doc/glibc-functions/mkostemp.texi: Likewise.
2292         * doc/glibc-functions/mkostemps.texi: Likewise.
2293         * doc/glibc-functions/mkstemps.texi: Likewise.
2294         * doc/glibc-functions/preadv.texi: Likewise.
2295         * doc/glibc-functions/pwritev.texi: Likewise.
2296         * doc/glibc-functions/sendfile.texi: Likewise.
2297         * doc/glibc-functions/statfs.texi: Likewise.
2298
2299 2011-07-24  Bruno Haible  <bruno@clisp.org>
2300
2301         doc: Fix typo.
2302         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2303
2304 2011-07-24  Bruno Haible  <bruno@clisp.org>
2305
2306         doc: Mention fsusage.
2307         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2308
2309 2011-07-24  Bruno Haible  <bruno@clisp.org>
2310
2311         doc: Mention new glibc headers and functions.
2312         * doc/glibc-headers/gshadow.texi: New file.
2313         * doc/glibc-functions/endsgent.texi: New file.
2314         * doc/glibc-functions/fgetsgent.texi: New file.
2315         * doc/glibc-functions/fgetsgent_r.texi: New file.
2316         * doc/glibc-functions/getsgent.texi: New file.
2317         * doc/glibc-functions/getsgent_r.texi: New file.
2318         * doc/glibc-functions/getsgnam.texi: New file.
2319         * doc/glibc-functions/getsgnam_r.texi: New file.
2320         * doc/glibc-functions/putsgent.texi: New file.
2321         * doc/glibc-functions/setsgent.texi: New file.
2322         * doc/glibc-functions/sgetsgent.texi: New file.
2323         * doc/glibc-functions/sgetsgent_r.texi: New file.
2324         * doc/glibc-functions/malloc_info.texi: New file.
2325         * doc/glibc-functions/preadv.texi: New file.
2326         * doc/glibc-functions/pwritev.texi: New file.
2327         * doc/glibc-functions/register_printf_modifier.texi: New file.
2328         * doc/glibc-functions/register_printf_specifier.texi: New file.
2329         * doc/glibc-functions/register_printf_type.texi: New file.
2330         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2331         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2332         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2333         * doc/glibc-functions/pthread_getname_np.texi: New file.
2334         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2335         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2336         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2337         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2338         * doc/glibc-functions/pthread_setname_np.texi: New file.
2339         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2340         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2341         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2342         * doc/glibc-functions/qsort_r.texi: New file.
2343         * doc/glibc-functions/quick_exit.texi: New file.
2344         * doc/glibc-functions/syncfs.texi: New file.
2345         * doc/gnulib.texi: Include them.
2346         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2347         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2348         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2349         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2350         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2351         * doc/glibc-functions/execvpe.texi: Likewise.
2352
2353 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2354
2355         ftell: don't include <unistd.h>
2356         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2357         guaranteed to define off_t, and the ftell module depends on the
2358         stdio module.
2359
2360         ftell: do not assume wraparound signed arithmetic
2361         * lib/ftell.c: Include <limits.h>.
2362         (ftell): Don't assume wraparound signed arithmetic.
2363
2364 2011-07-24  Bruno Haible  <bruno@clisp.org>
2365
2366         close: No longer depend on module 'fclose'.
2367         * modules/close (Depends-on): Remove fclose.
2368         * NEWS: Mention the change.
2369         Suggested by Sam Steingold <sds@gnu.org>.
2370
2371 2011-07-24  Bruno Haible  <bruno@clisp.org>
2372
2373         fsusage: Enable large volume support on AIX >= 5.2.
2374         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2375         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2376         instead of STAT_STATVFS.
2377         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2378
2379         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2380         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2381         f_blocks field only on MacOS X.
2382
2383         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2385         * modules/fsusage (Depends-on): Add largefile.
2386
2387 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2388
2389         * README: Modernize discussion of signed integers.
2390         Assuming overflow wraparound is no longer safe.
2391         Mention ones' complement and signed magnitude.
2392
2393 2011-07-22  Bruno Haible  <bruno@clisp.org>
2394
2395         select tests, pselect tests: Refactor.
2396         * tests/test-select.h: New file, extracted from tests/test-select.c.
2397         (select_fn): New type.
2398         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2399         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2400         test_pipe): Add my_select argument.
2401         (test_function): Renamed from main. Add my_select argument.
2402         * tests/test-select.c: Move most code to tests/test-select.h. Include
2403         test-select.h.
2404         * modules/select-tests (Files): Add tests/test-select.h.
2405         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2406         (my_select, main): New functions.
2407         * modules/pselect-tests (Files): Add tests/test-select.h,
2408         tests/macros.h, tests/signature.h.
2409         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2410         (configure.ac): Check for <sys/wait.h>.
2411
2412 2011-07-22  Bruno Haible  <bruno@clisp.org>
2413
2414         sys_select tests: Check the signature of FD_*.
2415         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2416         signature tests from here...
2417         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2418         here.
2419         * modules/sys_select-tests (Files): Add tests/signature.h.
2420
2421 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2422
2423         largefile: new module, replacing large-inode
2424         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2425         * MODULES.html.sh: Add largefile, remove large-inode.
2426         * modules/largefile, m4/largefile.m4: New files.
2427         * modules/large-inode, m4/large-inode.m4: Remove.
2428
2429         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2430         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2431         implementations that use only 32 bits to count blocks.
2432         On typical hosts with 1024-byte blocks, this fails with file
2433         systems as small as 4 TiB.  Problem reported by Herb Wartens
2434         <http://debbugs.gnu.org/9140> and this should also fix a similar
2435         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2436
2437         large-inode: New module
2438         * MODULES.html.sh: Add it.
2439         * modules/large-inode, m4/large-inode.m4: New files.
2440
2441         extensions: Enable extensions on MacOS X 10.5 and later.
2442         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2443
2444 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2445
2446         file-has-acl: use acl_extended_file_nofollow if available
2447         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2448         (acl_extended_file): New macro.
2449         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2450         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2451
2452 2011-07-21  Bruno Haible  <bruno@clisp.org>
2453
2454         Declare system functions in a way that works with C++.
2455         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2456         declare fdopendir as extern "C".
2457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2458         declare frexpl as extern "C".
2459         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2460         declare gai_strerror as extern "C".
2461         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2462         programs, declare gai_strerror as extern "C".
2463         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2464         declare getlogin_r as extern "C".
2465         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2466         as extern "C".
2467         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2468         declare ldexpl as extern "C".
2469         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2470         as extern "C".
2471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2472         program, declare getmntinfo as extern "C".
2473         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2474         stpncpy as extern "C".
2475         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2476         program, declare __xpg_strerror_r as extern "C".
2477         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2478         strndup as extern "C".
2479         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2480         declare memset and bzero as extern "C".
2481         Reported by Sam Steingold <sds@gnu.org>.
2482
2483 2011-07-12  Jim Meyering  <meyering@redhat.com>
2484
2485         maint.mk: prohibit inclusion of "verify.h" without use
2486         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2487
2488 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2489
2490         timer-time: A new module to check for timer_settime()
2491         * m4/timer_time.m4: Check for the posix function.
2492         * modules/timer-time: Add the new module.
2493         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2494         Mention it.
2495
2496 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2497             Bruno Haible  <bruno@clisp.org>
2498
2499         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2500         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2501         not defined, assume POSIX threads and look for pthread_sigmask in
2502         $LIBS, without changing $CPPFLAGS.
2503
2504 2011-07-19  Bruno Haible  <bruno@clisp.org>
2505
2506         strstr: Update cross-compilation guess.
2507         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2508         CPUs, guess no, in view of glibc
2509         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2510         Suggested by Eric Blake. Reported by Reuben Thomas.
2511
2512 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2513
2514         getopt-gnu: suppress core dumps from detection code
2515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2516         to suppress core dumps that may well occur on glibc systems.
2517         * modules/getopt-gnu: Depend on nocrash.
2518
2519 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2520
2521         pthread_sigmask: ensure usleep is declared
2522         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2523         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2524
2525 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2526
2527         doc: Document NonStop portability issues.
2528         * doc/posix-functions/sigaction.texi (sigaction):
2529         * doc/posix-headers/signal.texi (signal.h):
2530         Document NonStop.  See Joachim Schmitz in
2531         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2532
2533 2011-07-15  Bruno Haible  <bruno@clisp.org>
2534
2535         ffsl, ffsll: Avoid unportable behaviour.
2536         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2537
2538 2011-07-15  Bruno Haible  <bruno@clisp.org>
2539
2540         ffs: More tests.
2541         * tests/test-ffs.c (NBITS): New macro.
2542         (main): Add more tests.
2543         * tests/test-ffsl.c (NBITS): New macro.
2544         (main): Add more tests.
2545         * tests/test-ffsll.c (NBITS): New macro.
2546         (main): Add more tests.
2547
2548 2011-07-15  Eric Blake  <eblake@redhat.com>
2549
2550         ffsl, ffsll: new modules
2551         * modules/ffsl: New file.
2552         * modules/ffsll: Likewise.
2553         * m4/ffsl.m4: Likewise.
2554         * m4/ffsll.m4: Likewise.
2555         * lib/ffsl.c: Likewise.
2556         * lib/ffsl.h: Likewise.
2557         * lib/ffsll.c: Likewise.
2558         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2559         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2560         * modules/string (Makefile.am): Substitute witnesses.
2561         * lib/strings.in.h (ffsl, ffsll): Declare.
2562         * modules/ffsl-tests: New test file.
2563         * modules/ffsll-tests: Likewise.
2564         * tests/test-ffsl.c: Likewise.
2565         * tests/test-ffsll.c: Likewise.
2566         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2567         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2568         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2569
2570         ffs: fix m4 prerequisite
2571         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2572
2573         ffs: avoid undefined behavior
2574         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2575         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2576         Reported by Bruno Haible.
2577
2578 2011-07-12  Bruno Haible  <bruno@clisp.org>
2579
2580         pthread_sigmask: Rely on module 'threadlib'.
2581         * modules/pthread_sigmask (Depends-on): Add threadlib.
2582         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2583         is defined.
2584
2585 2011-07-12  Bruno Haible  <bruno@clisp.org>
2586
2587         regex: Depend on module 'strcase'.
2588         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2589
2590 2011-07-12  Jim Meyering  <meyering@redhat.com>
2591
2592         warn-on-use: fix typo in file name
2593         * modules/snippet/warn-on-use (Files): Correct file name:
2594         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2595
2596 2011-07-12  Bruno Haible  <bruno@clisp.org>
2597
2598         strings: Document module.
2599         * doc/posix-headers/strings.texi: Mention module 'strings'.
2600
2601 2011-07-12  Bruno Haible  <bruno@clisp.org>
2602
2603         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2604         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2605         (Files, Makefile.am): Update.
2606         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2607         * modules/stdlib (Depends-on): Update.
2608
2609 2011-07-12  Bruno Haible  <bruno@clisp.org>
2610
2611         * NEWS: Mention the changes.
2612
2613         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2614         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2615         (Files, Makefile.am): Update.
2616         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2617         * modules/arpa_inet (Depends-on): Update.
2618         * modules/ctype (Depends-on): Update.
2619         * modules/dirent (Depends-on): Update.
2620         * modules/fcntl-h (Depends-on): Update.
2621         * modules/glob (Depends-on): Update.
2622         * modules/iconv-h (Depends-on): Update.
2623         * modules/inttypes-incomplete (Depends-on): Update.
2624         * modules/langinfo (Depends-on): Update.
2625         * modules/locale (Depends-on): Update.
2626         * modules/math (Depends-on): Update.
2627         * modules/netdb (Depends-on): Update.
2628         * modules/poll-h (Depends-on): Update.
2629         * modules/pty (Depends-on): Update.
2630         * modules/search (Depends-on): Update.
2631         * modules/signal (Depends-on): Update.
2632         * modules/spawn (Depends-on): Update.
2633         * modules/stdio (Depends-on): Update.
2634         * modules/stdlib (Depends-on): Update.
2635         * modules/string (Depends-on): Update.
2636         * modules/strings (Depends-on): Update.
2637         * modules/sys_file (Depends-on): Update.
2638         * modules/sys_ioctl (Depends-on): Update.
2639         * modules/sys_select (Depends-on): Update.
2640         * modules/sys_socket (Depends-on): Update.
2641         * modules/sys_stat (Depends-on): Update.
2642         * modules/sys_time (Depends-on): Update.
2643         * modules/sys_times (Depends-on): Update.
2644         * modules/sys_utsname (Depends-on): Update.
2645         * modules/sys_wait (Depends-on): Update.
2646         * modules/termios (Depends-on): Update.
2647         * modules/time (Depends-on): Update.
2648         * modules/unistd (Depends-on): Update.
2649         * modules/wchar (Depends-on): Update.
2650         * modules/wctype-h (Depends-on): Update.
2651         * MODULES.html.sh (Support for building libraries and executables):
2652         Update.
2653
2654         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2655         * modules/snippet/unused-parameter: Renamed from
2656         modules/unused-parameter.
2657         (Files, Makefile.am): Update.
2658         * build-aux/snippet/unused-parameter.h: Renamed from
2659         build-aux/unused-parameter.h.
2660         * modules/selinux-h (Depends-on): Update.
2661         * modules/unistr/base (Depends-on): Update.
2662         * MODULES.html.sh (Core language properties): Update.
2663
2664         Rename module 'link-warning' to 'snippet/link-warning'.
2665         * modules/snippet/link-warning: Renamed from modules/link-warning.
2666         (Files, Makefile.am): Update.
2667         * build-aux/snippet/link-warning.h: Renamed from
2668         build-aux/link-warning.h.
2669         * MODULES.html.sh (Support for building libraries and executables):
2670         Update.
2671
2672         Rename module 'c++defs' to 'snippet/c++defs'.
2673         * modules/snippet/c++defs: Renamed from modules/c++defs.
2674         (Files, Makefile.am): Update.
2675         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2676         * modules/arpa_inet (Depends-on): Update.
2677         * modules/ctype (Depends-on): Update.
2678         * modules/dirent (Depends-on): Update.
2679         * modules/fcntl-h (Depends-on): Update.
2680         * modules/glob (Depends-on): Update.
2681         * modules/iconv-h (Depends-on): Update.
2682         * modules/langinfo (Depends-on): Update.
2683         * modules/locale (Depends-on): Update.
2684         * modules/math (Depends-on): Update.
2685         * modules/netdb (Depends-on): Update.
2686         * modules/poll-h (Depends-on): Update.
2687         * modules/pty (Depends-on): Update.
2688         * modules/search (Depends-on): Update.
2689         * modules/signal (Depends-on): Update.
2690         * modules/spawn (Depends-on): Update.
2691         * modules/stdio (Depends-on): Update.
2692         * modules/stdlib (Depends-on): Update.
2693         * modules/string (Depends-on): Update.
2694         * modules/strings (Depends-on): Update.
2695         * modules/sys_ioctl (Depends-on): Update.
2696         * modules/sys_select (Depends-on): Update.
2697         * modules/sys_socket (Depends-on): Update.
2698         * modules/sys_stat (Depends-on): Update.
2699         * modules/sys_time (Depends-on): Update.
2700         * modules/sys_wait (Depends-on): Update.
2701         * modules/termios (Depends-on): Update.
2702         * modules/time (Depends-on): Update.
2703         * modules/unistd (Depends-on): Update.
2704         * modules/wchar (Depends-on): Update.
2705         * modules/wctype-h (Depends-on): Update.
2706
2707         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2708         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2709         (Files, Makefile.am): Update.
2710         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2711         * modules/argv-iter (Depends-on): Update.
2712         * modules/arpa_inet (Depends-on): Update.
2713         * modules/dirent (Depends-on): Update.
2714         * modules/fcntl-h (Depends-on): Update.
2715         * modules/fnmatch (Depends-on): Update.
2716         * modules/getopt-posix (Depends-on): Update.
2717         * modules/glob (Depends-on): Update.
2718         * modules/iconv-h (Depends-on): Update.
2719         * modules/inttypes-incomplete (Depends-on): Update.
2720         * modules/locale (Depends-on): Update.
2721         * modules/math (Depends-on): Update.
2722         * modules/netdb (Depends-on): Update.
2723         * modules/search (Depends-on): Update.
2724         * modules/signal (Depends-on): Update.
2725         * modules/spawn (Depends-on): Update.
2726         * modules/stdio (Depends-on): Update.
2727         * modules/stdlib (Depends-on): Update.
2728         * modules/string (Depends-on): Update.
2729         * modules/strings (Depends-on): Update.
2730         * modules/sys_socket (Depends-on): Update.
2731         * modules/sys_stat (Depends-on): Update.
2732         * modules/sys_time (Depends-on): Update.
2733         * modules/sys_times (Depends-on): Update.
2734         * modules/sys_utsname (Depends-on): Update.
2735         * modules/time (Depends-on): Update.
2736         * modules/unistd (Depends-on): Update.
2737         * modules/wchar (Depends-on): Update.
2738         * MODULES.html.sh (Support for building libraries and executables):
2739         Update.
2740
2741 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2742
2743         Improvements on _Noreturn and related modules.
2744
2745         modules/_Exit-tests: test _Noreturn too
2746         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2747         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2748         (main): Use them.
2749
2750         stdnoreturn, stdnoreturn-tests: remove modules
2751         They're not needed here and a bit premature for use elsewhere.  See
2752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2753         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2754         * tests/test-stdnoreturn.c: Remove files.
2755         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2756         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2757         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2758         and using noreturn.
2759         * modules/openat, modules/sigpipe-die, modules/xalloc:
2760         * modules/xmemdup0, modules/xstrtol:
2761         Remove dependency on stdnoreturn.
2762
2763         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2764         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2765         Reparenthesize to avoid GCC warning.
2766         Support Microsoft's syntax.
2767         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2768
2769         _Noreturn-tests: remove module
2770         * modules/_Noreturn-tests: Remove.
2771         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2772         * tests/test-_Noreturn.c: Remove.
2773         * tests/test-stdnoreturn.c: Merge from the old
2774         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2775
2776 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2777
2778         _Noreturn, stdnoreturn, and related modules.
2779
2780         * top/maint.mk: Adjust to new noreturn support.
2781         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2782         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2783
2784         xalloc: use stdnoreturn.h
2785         * lib/xalloc.h: Include <stdnoreturn.h>.
2786         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2787         * modules/xalloc (Depends-on): Add stdnoreturn.
2788
2789         xstrtol: use stdnoreturn.h
2790         * lib/xstrtol.h: Include <stdnoreturn.h>.
2791         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2792         * modules/xstrtol (Depends-on): Add stdnoreturn.
2793
2794         xmemdup0: use stdnoreturn.h
2795         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2796         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2797         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2798
2799         sigpipe-die: use stdnoreturn.h
2800         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2801         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2802         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2803
2804         openat: use stdnoreturn.h
2805         * lib/openat.h: Include <stdnoreturn.h>.
2806         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2807         * modules/openat (Depends-on): Add stdnoreturn.
2808
2809         * lib/openat-die.c (openat_save_fail): Modernize comment.
2810
2811         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2812
2813         * lib/glthread/thread.h: Modernize comment.
2814
2815         obstack: use _Noreturn
2816         * lib/obstack.c (__attribute__): Remove macro.
2817         (print_and_abort): Use _Noreturn.
2818
2819         c-stack: use _Noreturn
2820         * lib/c-stack.c (die, overflow_handler, segv_handler):
2821         Use _Noreturn rather than __attribute__((noreturn)).
2822
2823         argmatch-tests, exclude_tests: use _Noreturn
2824         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2825         Remove.
2826         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2827
2828         stdlib: use _Noreturn
2829         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2830         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2831         * modules/stdlib (Depends-on): Add _Noreturn.
2832         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2833
2834         stdnoreturn-tests: new module
2835         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2836
2837         stdnoreturn: new module
2838         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2839         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2840
2841         _Noreturn-tests: new module
2842         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2843
2844         _Noreturn: new module
2845         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2846         New section, mentioning it.
2847         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2848
2849         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2850
2851 2011-07-11  Eric Blake  <eblake@redhat.com>
2852
2853         ffs: new module
2854         * modules/ffs: New file.
2855         * m4/ffs.m4: Likewise.
2856         * lib/ffs.c: Likewise.
2857         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2858         * modules/strings (Makefile.am): Substitute witness.
2859         (Depends-on): Add c++defs.
2860         * lib/strings.in.h (ffs): Declare.
2861         * modules/ffs-tests: New test file.
2862         * tests/test-ffs.c: Test new module.
2863         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2864         * doc/posix-functions/ffs.texi (ffs): Likewise.
2865
2866         regex: avoid compiler warning
2867         * lib/regex.c (includes): Include <strings.h>, for use of
2868         strcasecmp in regcomp.c.
2869         Reported by Joachim Schmitz.
2870
2871 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2872
2873         stdint: respect system's intmax_t if INTMAX_MAX
2874         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2875         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2876         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2877         long but int64_t is long long, and where we will clash with the
2878         system intmax_t if we override it.  See
2879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2880         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2881         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2882         similarly for UINTMAX_C.
2883
2884 2011-07-08  Bruno Haible  <bruno@clisp.org>
2885
2886         pthread_sigmask tests: Avoid a compiler warning.
2887         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2888         non-zero.
2889
2890         sigprocmask tests: A better way to avoid a compiler warning.
2891         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2892         (main): Complain if system() returns non-zero.
2893         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2894
2895 2011-07-08  Bruno Haible  <bruno@clisp.org>
2896
2897         pthread_sigmask: Work around IRIX bug.
2898         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2899         bug.
2900         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2901         there may be unblocked pending signals.
2902         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2903
2904 2011-07-08  Bruno Haible  <bruno@clisp.org>
2905
2906         pthread_sigmask: Work around Cygwin bug.
2907         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2908         bug.
2909         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2910         the system's pthread_sigmask function.
2911         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2912
2913 2011-07-08  Bruno Haible  <bruno@clisp.org>
2914
2915         pthread_sigmask: Work around bug in single-threaded implementation.
2916         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2917         FreeBSD, HP-UX, Solaris bug.
2918         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2919         * lib/pthread_sigmask.c: Include <stddef.h>.
2920         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2921         the system's pthread_sigmask function.
2922         * modules/pthread_sigmask (configure.ac): Invoke
2923         gl_PREREQ_PTHREAD_SIGMASK.
2924         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2925         HP-UX, Solaris.
2926
2927 2011-07-08  Eric Blake  <eblake@redhat.com>
2928
2929         test-sigprocmask: avoid compiler warning
2930         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2931         * tests/test-sigprocmask.c (main): Use it to silence warning.
2932         Reported by Jim Meyering.
2933
2934         test-snprintf: avoid compiler warning
2935         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2936         * tests/test-vsnprintf.c (main): Likewise.
2937         Reported by Jim Meyering.
2938
2939 2011-07-08  Bruno Haible  <bruno@clisp.org>
2940
2941         Tests for module 'pthread_sigmask'.
2942         * modules/pthread_sigmask-tests: New file.
2943         * tests/test-pthread_sigmask1.c: New file, based on
2944         tests/test-sigprocmask.c.
2945         * tests/test-pthread_sigmask2.c: New file.
2946
2947 2011-07-08  Jim Meyering  <meyering@redhat.com>
2948
2949         test-getopt.h: avoid warning about an unused variable
2950         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2951
2952 2011-07-07  Jim Meyering  <meyering@redhat.com>
2953
2954         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2955         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2956         now that it no longer contains leading TABs.
2957         Remove unused "url=FIXME" statement.
2958
2959 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2960
2961         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2962         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2963         When gl_THREADLIB is not in use, assume that the POSIX sematics
2964         are desired.  This is better for Emacs, which uses POSIX semantics
2965         on GNUish and/or POSIXish platforms, and does not use threads at
2966         all otherwise.
2967
2968         pthread_sigmask: fix typo when testing for libraries
2969         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2970         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2971
2972 2011-07-08  Eric Blake  <eblake@redhat.com>
2973
2974         fts: introduce FTS_NOATIME
2975         * lib/fts_.h (FTS_NOATIME): New bit flag.
2976         (FTS_OPTIONMASK): Adjust.
2977         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2978         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2979
2980 2011-07-08  Bruno Haible  <bruno@clisp.org>
2981
2982         Tests for module 'thread'.
2983         * modules/thread-tests: New file.
2984         * tests/test-thread_self.c: New file.
2985         * tests/test-thread_create.cc: New file.
2986
2987 2011-07-08  Bruno Haible  <bruno@clisp.org>
2988
2989         thread: Avoid gcc warnings when using gl_thread_self().
2990         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2991         'void *'.
2992         (gl_thread_self_pointer): Update.
2993
2994 2011-07-07  Bruno Haible  <bruno@clisp.org>
2995
2996         signal-c++-tests: Check declaration of pthread_sigmask.
2997         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2998         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2999         $(LIB_PTHREAD_SIGMASK).
3000
3001 2011-07-07  Bruno Haible  <bruno@clisp.org>
3002
3003         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3004         * lib/signal.in.h (pthread_sigmask): Override if
3005         REPLACE_PTHREAD_SIGMASK is 1.
3006         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3007         REPLACE_PTHREAD_SIGMASK.
3008         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3009         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3010         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3011         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3012         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3013
3014 2011-07-07  Bruno Haible  <bruno@clisp.org>
3015
3016         pthread_sigmask: Ensure declaration in <signal.h>.
3017         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3018         include <pthread.h>.
3019         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3020         problem.
3021
3022 2011-07-07  Bruno Haible  <bruno@clisp.org>
3023
3024         pthread_sigmask: Document the module.
3025         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3026
3027 2011-07-07  Bruno Haible  <bruno@clisp.org>
3028
3029         pthread_sigmask: Follow gnulib conventions.
3030         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3031         gl_PTHREAD_SIGMASK.
3032         * modules/pthread_sigmask (configure.ac): Update.
3033
3034 2011-07-07  Bruno Haible  <bruno@clisp.org>
3035
3036         pthread_sigmask: Make declaration C++ safe.
3037         * lib/signal.in.h: In two special conditions, just do an #include_next.
3038         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3039         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3040         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3041         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3042         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3043         not REPLACE_PTHREAD_MASK.
3044         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3045         not REPLACE_PTHREAD_MASK.
3046         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3047
3048 2011-07-07  Bruno Haible  <bruno@clisp.org>
3049
3050         pthread_sigmask: Fix return value.
3051         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3052         * lib/pthread_sigmask.c: New file.
3053         * modules/pthread_sigmask (Files): Add it.
3054         (configure.ac): Invoke AC_LIBOBJ.
3055
3056 2011-07-07  Eric Blake  <eblake@redhat.com>
3057
3058         getopt: more portable argv creation
3059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3060         const, use char arrays rather than strings.
3061         Suggested by Paul Eggert.
3062
3063 2011-07-07  Bruno Haible  <bruno@clisp.org>
3064
3065         Tests for module 'sigprocmask'.
3066         * modules/sigprocmask-tests: New file.
3067         * tests/test-sigprocmask.c: New file.
3068
3069 2011-07-07  Bruno Haible  <bruno@clisp.org>
3070
3071         float tests: Tweak.
3072         * tests/test-float.c (main): Tweak skip message.
3073
3074 2011-07-07  Eric Blake  <eblake@redhat.com>
3075
3076         getopt: avoid compiler warning during configure
3077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3078         assigning string literals to non-const pointer.
3079
3080         getopt-gnu: avoid crash in glibc getopt
3081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3082         * tests/test-getopt.h (test_getopt): Enhance test.
3083         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3084         * doc/posix-functions/getopt.texi (getopt): Document it.
3085         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3086         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3087         Likewise.
3088
3089 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3090
3091         getopt: handle W; without long options in getopt [BZ #12922]
3092         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3093         but no long options are defined, just return 'W'.
3094
3095 2011-07-07  Bruno Haible  <bruno@clisp.org>
3096
3097         Avoid literal tabs.
3098         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3099         variable containing a tab instead of a literal tab.
3100         Reported by Jim Meyering.
3101
3102 2011-07-07  Bruno Haible  <bruno@clisp.org>
3103
3104         Comments.
3105         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3106
3107 2011-07-06  Bruno Haible  <bruno@clisp.org>
3108
3109         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3110         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3111         <winsock2.h>.
3112         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3113         lib/sys_socket.in.h.
3114         (close, gethostname): Hide declarations from <winsock2.h>.
3115         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3116         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3117         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3118         (select): Don't override if gnulib's <sys/select.h> was already
3119         included.
3120         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3121         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3122         setsockopt, shutdown, select): Tweak indentation.
3123
3124 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3125
3126         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3127         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3128         in an application that does not use the sys_select module.
3129
3130 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3131
3132         poll: do not return 0 on timeout=-1
3133         * lib/poll.c: Loop with yield if no events occured
3134
3135 2011-07-06  Eric Blake  <eblake@redhat.com>
3136
3137         pthread_sigmask: always replace when not using pthread
3138         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3139         replacement when using some threading other than pthread.  Fix
3140         logic bug.
3141
3142 2011-07-06  Bruno Haible  <bruno@clisp.org>
3143
3144         Comments.
3145         * m4/printf.m4: Update comments about mingw.
3146
3147 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3148
3149         sys_select: define sigset_t more portably
3150         * lib/sys_select.in.h: Always include <sys/types.h>, since
3151         we now need sigset_t and mingw defines it there.
3152         Include <signal.h> before split inclusion guard, to avoid
3153         mishaps on Solaris, whose <signal.h> eventually includes us.
3154         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3155         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3156         which come from ...
3157         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3158         gl_CHECK_TYPE_SIGSET_T.
3159         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3160         does the real work.
3161         * modules/sys_select (Depends-on): Add 'signal'.
3162
3163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3164         Suggested by Bruno Haible.
3165
3166         pselect: Use pthread_sigmask, not sigprocmask.
3167         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3168         multithreaded apps better than sigprocmask does.
3169         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3170         sigprocmask directly.
3171
3172 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3173
3174         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3175         Don't #undef,  since we don't need any underlying pselect.
3176         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3177         (Depends-on): Add select.
3178         (Link): Add $(LIBSOCKET).
3179         These changes suggested by Bruno Haible.
3180
3181         pselect: document better
3182         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3183         * doc/posix-functions/pselect.texi (pselect): Document new module.
3184
3185         pthread_sigmask: new module
3186         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3187         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3188         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3189         This is done only as a macro; I don't know how well that'll
3190         work for C++.  Move <sys/types.h> include before the include_next,
3191         to avoid mishap on Solaris.
3192         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3193         * modules/signal (Makefile.am): Substitute the check's results.
3194         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3195
3196         test-pselect: new module
3197         * modules/pselect-tests, tests/test-pselect.c: New files.
3198         * tests/test-select.c, tests/test-sys_select-c++.cc:
3199         If TEST_PSELECT is defined, test pselect instead of testing select.
3200
3201         * tests/test-sys_select.c (sigset_t): Test for it, too.
3202         Suggested by Bruno Haible.
3203
3204 2011-07-05  Eric Blake  <eblake@redhat.com>
3205
3206         snprintf: guarantee %1$d, for libintl
3207         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3208         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3209         * doc/posix-functions/snprintf.texi (snprintf): Update.
3210         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3211         * tests/test-snprintf.c (main): Enhance test.
3212         * tests/test-vsnprintf.c (main): Likewise.
3213
3214 2011-07-05  Jim Meyering  <meyering@redhat.com>
3215
3216         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3217         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3218         per Bruno's request, to accommodate this idiom (no space after "#")
3219         even when the function is inside an #if block:
3220         char *
3221         gets (char *s)
3222         #undef gets
3223         {
3224           ...
3225         }
3226
3227 2011-07-04  Jim Meyering  <meyering@redhat.com>
3228
3229         maint: indent with spaces, not TABs, and add a rule to check this
3230         * tests/test-userspec.c: Indent with spaces, not TABs.
3231         * tests/test-argp.c: Likewise.
3232         * tests/test-c-stack2.sh: Likewise.
3233         * tests/test-parse-duration.sh: Likewise
3234         * m4/strtod.m4: Likewise.
3235         * m4/alloca.m4: Likewise.
3236         * m4/pselect.m4: Likewise.
3237         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3238
3239 2011-07-03  Jim Meyering  <meyering@redhat.com>
3240
3241         maint.mk: correct omissions in prohibit_argmatch_without_use check
3242         This rule would mistakenly report that argmatch.h is included without
3243         use even when both the argmatch and invalid_arg macro were used.
3244         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3245         of argmatch and invalid_arg.
3246
3247 2011-07-03  Bruno Haible  <bruno@clisp.org>
3248
3249         Comments about EINTR.
3250         * lib/safe-read.h: Explain the purpose of this module.
3251         * lib/safe-write.h: Likewise.
3252         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3253         module.
3254         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3255         module.
3256         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3257
3258 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3259
3260         xnanosleep: Rewrite to use new dtotimespec module.
3261         It has the conversion code that used to be in xnanosleep.
3262         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3263         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3264         (TIME_T_MAX): Remove.
3265         (xnanosleep): Rewrite in terms of dtotimespec.
3266         * modules/xnanosleep (Depends-on): Add dtotimespec.
3267         Remove intprops, stdbool.
3268
3269         timespec-add, timespec-sub: new modules
3270         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3271         * lib/timespec-add.c, lib/timespec-sub.c:
3272         * modules/timespec-add, modules/timespec-sub: New files.
3273
3274         dtotimespec: new module
3275         * lib/timespec.h (dtotimespec): New decl.
3276         * lib/dtotimespec.c, modules/dtotimespec: New files.
3277
3278         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3279
3280         pselect: new module
3281         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3282         (pselect): New decls.
3283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3284         since the standard pselect decl uses 'restrict'.
3285         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3286         HAVE_PSELECT, REPLACE_PSELECT.
3287         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3288         HAVE_PSELECT, REPLACE_PSELECT.
3289         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3290
3291         sys_select: don't depend on sys_socket
3292         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3294         This fix works on GNU and GNU-like platforms, but has not been tested
3295         on native Windows.
3296         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3297         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3298         gl_HEADER_SYS_SOCKET.
3299         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3300         gl_PREREQ_SYS_H_WINSOCK2.
3301
3302 2011-06-29  Eric Blake  <eblake@redhat.com>
3303
3304         pipe2: fix C89 compile problem
3305         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3306         Reported by Bruno Haible.
3307
3308         pipe, pipe2: don't corrupt fd on error
3309         * lib/pipe.c (pipe): Leave fd unchanged on error.
3310         * lib/pipe2.c (pipe2): Likewise.
3311         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3312         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3313
3314 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3315
3316         mmap-anon: do not use regular expressions inadvertently
3317         * m4/mmap-anon.m4: Remove trailing period from strings sought
3318         in the output.
3319
3320 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3321
3322         nanosleep: fix integer overflow problem
3323         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3324         arithmetic wraps around on overflow.
3325
3326         nanosleep: simplify carrying
3327         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3328         first call to the underyling nanosleep, not for the last one.
3329         This doesn't fix any bugs, but it simplifies the computation of
3330         the remaining delay.  Found while auditing integer overflow issues.
3331
3332         dup2: remove test for existence of fcntl
3333         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3334         "#if HAVE_FCNTL", in the configure-time test program.
3335         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3336         and therefore speeds up "configure" a bit.  Found while
3337         adding the dup2 module to Emacs.
3338
3339 2011-06-24  Eric Blake  <eblake@redhat.com>
3340
3341         maint.mk: enhance useless header checks
3342         * top/maint.mk (_sc_header_without_use): Check both include
3343         styles.
3344         (sc_prohibit_assert_without_use)
3345         (sc_prohibit_close_stream_without_use)
3346         (sc_prohibit_getopt_without_use)
3347         (sc_prohibit_quotearg_without_use)
3348         (sc_prohibit_quote_without_use)
3349         (sc_prohibit_long_options_without_use)
3350         (sc_prohibit_inttostr_without_use)
3351         (sc_prohibit_ignore_value_without_use)
3352         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3353         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3354         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3355         (sc_prohibit_hash_pjw_without_use)
3356         (sc_prohibit_safe_read_without_use)
3357         (sc_prohibit_argmatch_without_use)
3358         (sc_prohibit_canonicalize_without_use)
3359         (sc_prohibit_root_dev_ino_without_use)
3360         (sc_prohibit_openat_without_use)
3361         (sc_prohibit_c_ctype_without_use)
3362         (sc_prohibit_signal_without_use)
3363         (sc_prohibit_stdio--_without_use)
3364         (sc_prohibit_stdio-safer_without_use)
3365         (sc_prohibit_strings_without_use)
3366         (sc_prohibit_intprops_without_use)
3367         (sc_prohibit_stddef_without_use)
3368         (sc_prohibit_xfreopen_without_use): Update clients.
3369
3370 2011-06-24  Jim Meyering  <meyering@redhat.com>
3371
3372         syntax-check: keep one maint.mk rule in sync with its header
3373         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3374         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3375         I prefer to avoid temporary files here, so use <(...), but that
3376         is not supported by /bin/sh, so...
3377         (SHELL): Define to /bin/bash.
3378
3379 2011-06-24  Eric Blake  <eblake@redhat.com>
3380
3381         maint.mk: update sc_prohibit_intprops_without_use
3382         * top/maint.mk (_intprops_names): Match recent changes.
3383
3384 2011-06-24  Bruno Haible  <bruno@clisp.org>
3385
3386         strerror-override: No-op tweak.
3387         * lib/strerror-override.h (strerror_override): Reorder conditions,
3388         for consistency with lib/strerror-override.c.
3389
3390 2011-06-23  Eric Blake  <eblake@redhat.com>
3391
3392         maint.mk: test further PATH_MAX issues
3393         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3394         (sc_prohibit_path_max_allocation): ...and also test alloca.
3395         Suggested by Jim Meyering.
3396
3397 2011-06-22  Eric Blake  <eblake@redhat.com>
3398
3399         maint.mk: add syntax-check to avoid char[PATH_MAX]
3400         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3401
3402         stat: be robust to PATH_MAX definition
3403         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3404         * modules/stat (Depends-on): Add verify.
3405
3406         link: work around IRIX bug
3407         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3408         * lib/link.c (rpl_link): Work around it.
3409         * tests/test-link.h (test_link): Enhance test.
3410         * doc/posix-functions/link.texi (link): Document the bug.
3411
3412         getopt: silence clang warning
3413         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3414         dereference.
3415         Reported by Gustavo Martin Domato.
3416
3417 2011-06-22  Jim Meyering  <meyering@redhat.com>
3418
3419         bootstrap: do not insert a blank line into each .gitignore file
3420         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3421
3422 2011-06-21  Eric Blake  <eblake@redhat.com>
3423
3424         perror: test for output mismatch
3425         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3426         perror on IRIX.
3427
3428         strerror_r: fix OpenBSD behavior on out-of-range
3429         * lib/strerror_r.c (strerror_r): Always use maximal string.
3430         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3431
3432         strerror_r: fix OpenBSD behavior on 0
3433         * lib/strerror-override.c (strerror_override): Also override 0
3434         when needed.
3435         * lib/strerror-override.h (strerror_override): Likewise.
3436         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3437         earlier.
3438         * lib/strerror_r.c (strerror_r): Likewise.
3439         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3440         behavior...
3441         (gl_FUNC_STRERROR_0): ...into new macro.
3442         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3443         is overridden.
3444         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3445         * modules/strerror-override (Files): Add strerror.m4.
3446         (configure.ac): Also provide override for 0 when needed.
3447         * doc/posix-functions/strerror.texi (strerror): Document this.
3448         * doc/posix-functions/perror.texi (perror): Likewise.
3449
3450         perror: adjust array size
3451         * modules/perror (Depends-on): Add strerror-override.
3452         * lib/perror.c (perror): Use it to avoid magic number.
3453
3454         strerror-override: reduce size
3455         * lib/strerror-override.c (strerror_override): Use fewer lines.
3456
3457 2011-06-20  Bruno Haible  <bruno@clisp.org>
3458
3459         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3460         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3461
3462 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3463
3464         alloca: port to compilers that can optimize like GCC 4.6.0
3465         * lib/alloca.c (find_stack_direction): New signature, taken from
3466         Autoconf git.  This works with GCC 4.6.0.  This code should never
3467         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3468         be used with other compilers that optimize as well as GCC 4.6.0 does.
3469         (alloca): Adjust to new signature.
3470         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3471         New macro, which patches Autoconf in a similar way.
3472
3473         c-stack: stop worrying about stack direction
3474         * lib/c-stack.c (find_stack_direction): Remove.
3475         (segv_handler): Don't worry about stack direction growth, as it's
3476         too much of a pain to configure this correctly, given how compilers
3477         are optimizing-away our stack-growth detection code.  Instead, assume
3478         that any access to just before or just after the stack is OK.
3479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3480         Don't require AC_FUNC_ALLOCA; no longer needed.
3481
3482 2011-06-20  Eric Blake  <eblake@redhat.com>
3483
3484         test-stat: don't allocate PATH_MAX bytes
3485         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3486         PATH_MAX-sized buffer.
3487         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3488         * modules/stat-tests (Depends-on): Likewise.
3489         * tests/test-fstatat.c (includes): Drop pathmax.h.
3490         * tests/test-stat.c (includes): Likewise.
3491         Reported by Bruno Haible.
3492
3493 2011-06-20  Bruno Haible  <bruno@clisp.org>
3494
3495         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3496         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3497         * lib/float.c: New file.
3498         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3499         REPLACE_FLOAT_LDBL.
3500         * modules/float (Files): Add lib/float.c.
3501         (configure.ac): Invoke AC_LIBOBJ.
3502         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3503
3504 2011-06-20  Bruno Haible  <bruno@clisp.org>
3505
3506         Tests for module 'float'.
3507         * modules/float-tests: New file.
3508         * tests/test-float.c: New file.
3509
3510 2011-06-19  Bruno Haible  <bruno@clisp.org>
3511
3512         isinf: Coding style.
3513         * lib/isinf.c: Use GNU coding style.
3514
3515 2011-06-19  Bruno Haible  <bruno@clisp.org>
3516
3517         linkat test: Avoid test failure on AIX 7.1.
3518         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3519         * tests/test-link.h (test_link): Likewise.
3520
3521 2011-06-19  Bruno Haible  <bruno@clisp.org>
3522
3523         pread test: Avoid test failure on OpenBSD 4.9.
3524         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3525
3526 2011-06-19  Bruno Haible  <bruno@clisp.org>
3527
3528         sprintf-posix: Fix test failure on AIX 7.1.
3529         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3530         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3531         on AIX.
3532         * doc/posix-functions/fprintf.texi: Likewise.
3533         * doc/posix-functions/printf.texi: Likewise.
3534         * doc/posix-functions/snprintf.texi: Likewise.
3535         * doc/posix-functions/sprintf.texi: Likewise.
3536         * doc/posix-functions/vdprintf.texi: Likewise.
3537         * doc/posix-functions/vfprintf.texi: Likewise.
3538         * doc/posix-functions/vprintf.texi: Likewise.
3539         * doc/posix-functions/vsnprintf.texi: Likewise.
3540         * doc/posix-functions/vsprintf.texi: Likewise.
3541
3542 2011-06-19  Bruno Haible  <bruno@clisp.org>
3543
3544         roundl-ieee: Fix test failure on AIX 7.1.
3545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3546         * doc/posix-functions/roundl.texi: Mention problem with negative
3547         arguments.
3548
3549 2011-06-19  Bruno Haible  <bruno@clisp.org>
3550
3551         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3552         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3553         * doc/posix-functions/round.texi: Mention problem with negative
3554         arguments.
3555         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3556
3557 2011-06-19  Bruno Haible  <bruno@clisp.org>
3558
3559         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3560         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3561         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3562         * doc/posix-functions/roundf.texi: Mention problem with negative
3563         arguments.
3564         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3565
3566 2011-06-19  Bruno Haible  <bruno@clisp.org>
3567
3568         ceilf-ieee: Work around bug on MacOS X 10.5.
3569         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3570
3571         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3572         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3573         IEEE compliant, avoid compiler optimizations.
3574         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3575         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3576         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3577         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3578         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3579         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3580         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3581         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3582         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3583         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3584
3585 2011-06-19  Bruno Haible  <bruno@clisp.org>
3586
3587         ceilf-ieee: Work around bug on AIX 7.1.
3588         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3589         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3590
3591 2011-06-19  Bruno Haible  <bruno@clisp.org>
3592
3593         ceil-ieee: Work around bug on AIX 7.1.
3594         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3595         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3596
3597 2011-06-18  Bruno Haible  <bruno@clisp.org>
3598
3599         fsync test: Avoid test failure on MacOS X and AIX.
3600         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3601         EINVAL.
3602
3603 2011-06-18  Bruno Haible  <bruno@clisp.org>
3604
3605         openat, fdopendir tests: Fix link errors.
3606         * modules/openat-tests (Depends-on): Add progname.
3607         * modules/fdopendir-tests (Depends-on): Likewise.
3608         * tests/test-fchownat.c: Include progname.h.
3609         (main): Call set_program_name.
3610         * tests/test-fstatat.c: Include progname.h.
3611         (main): Call set_program_name.
3612         * tests/test-mkdirat.c: Include progname.h.
3613         (main): Call set_program_name.
3614         * tests/test-openat.c: Include progname.h.
3615         (main): Call set_program_name.
3616         * tests/test-unlinkat.c: Include progname.h.
3617         (main): Call set_program_name.
3618         * tests/test-fdopendir.c: Include progname.h.
3619         (main): Call set_program_name.
3620
3621 2011-06-18  Bruno Haible  <bruno@clisp.org>
3622
3623         Doc update.
3624         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3625         HP-UX.
3626         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3627
3628 2011-06-18  Bruno Haible  <bruno@clisp.org>
3629
3630         getcwd tests: Avoid compilation error on HP-UX 11.31.
3631         * modules/getcwd-tests (Depends-on): Add pathmax.
3632         * tests/test-getcwd.c: Include pathmax.h.
3633
3634 2011-06-18  Bruno Haible  <bruno@clisp.org>
3635
3636         isfinite, isinf: Fix link error on AIX 6 and 7.
3637         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3638         needed, also test the macro with a 'float' argument.
3639         * m4/isinf.m4 (gl_ISINF): Likewise.
3640
3641 2011-06-18  Bruno Haible  <bruno@clisp.org>
3642
3643         getloadavg: Don't clobber LIBS. Regression from previous commit.
3644         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3645         AC_CHECK_LIB from here...
3646         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3647         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3648         gl_func_getloadavg_done.
3649         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3650
3651 2011-06-18  Bruno Haible  <bruno@clisp.org>
3652
3653         clean-temp: Improve documentation.
3654         * lib/clean-temp.h: Explain better how to use this module.
3655         Reported by John Darrington <john@darrington.wattle.id.au>.
3656
3657 2011-06-17  Bruno Haible  <bruno@clisp.org>
3658
3659         pread, pwrite: Avoid cc warning on AIX.
3660         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3661         (pwrite): Likewise.
3662
3663 2011-06-17  Bruno Haible  <bruno@clisp.org>
3664
3665         spawn-pipe tests: Fix link error.
3666         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3668
3669 2011-06-17  Bruno Haible  <bruno@clisp.org>
3670
3671         Tests: Remove unnecessary dependency.
3672         * modules/canonicalize-tests (Depends-on): Remove progname.
3673         * modules/chown-tests (Depends-on): Likewise.
3674         * modules/dirname-tests (Depends-on): Likewise.
3675         * modules/fdopendir-tests (Depends-on): Likewise.
3676         * modules/fdutimensat-tests (Depends-on): Likewise.
3677         * modules/hash-tests (Depends-on): Likewise.
3678         * modules/lchown-tests (Depends-on): Likewise.
3679         * modules/linkat-tests (Depends-on): Likewise.
3680         * modules/renameat-tests (Depends-on): Likewise.
3681         * modules/spawn-pipe-tests (Depends-on): Likewise.
3682         * modules/utimensat-tests (Depends-on): Likewise.
3683
3684 2011-06-17  Bruno Haible  <bruno@clisp.org>
3685
3686         spawn-pipe tests: Fix link error.
3687         * tests/test-spawn-pipe-child.c: Undefine fflush.
3688
3689 2011-06-17  Bruno Haible  <bruno@clisp.org>
3690
3691         Fix tests link errors.
3692         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3693         * modules/chown-tests (Makefile.am): Don't link test-chown with
3694         LIBINTL.
3695         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3696         LIBINTL.
3697         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3698         LIBINTL.
3699         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3700         LIBINTL.
3701
3702 2011-06-16  Bruno Haible  <bruno@clisp.org>
3703
3704         crypto/gc-sha1: Fix recent regression.
3705         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3706         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3707
3708         crypto/gc-md5: Fix recent regression.
3709         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3710
3711         crypto/gc-md4: Fix recent regression.
3712         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3713         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3714
3715         crypto/gc-arctwo: Fix recent regression.
3716         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3717         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3718
3719         crypto/gc-rijndael: Fix recent regression.
3720         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3721         (configure.ac): Invoke AC_LIBOBJ here.
3722         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3724
3725         crypto/gc-hmac-sha1: Fix recent regression.
3726         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3727         (configure.ac): Invoke AC_LIBOBJ here.
3728         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3730
3731         crypto/gc-hmac-md5: Fix recent regression.
3732         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3733         (configure.ac): Invoke AC_LIBOBJ here.
3734         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3736
3737         crypto/gc-des: Fix recent regression.
3738         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3739         (configure.ac): Invoke AC_LIBOBJ here.
3740         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3742
3743         crypto/gc-arcfour: Fix recent regression.
3744         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3745         (configure.ac): Invoke AC_LIBOBJ here.
3746         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3748
3749 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3750
3751         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3752         After the 2011-05-21 change, this macro requires
3753         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3754         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3755
3756 2011-06-16  Bruno Haible  <bruno@clisp.org>
3757
3758         fprintftime: Move AC_LIBOBJ invocations to module description.
3759         * m4/fprintftime.m4: Remove file.
3760         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3761         (configure.ac): Remove gl_FPRINTFTIME call.
3762         (Makefile.am): Augment lib_SOURCES.
3763         Reported by Jim Meyering.
3764
3765 2011-06-16  Bruno Haible  <bruno@clisp.org>
3766
3767         tmpfile-safer: Finish 2011-05-23 commit.
3768         * m4/stdio-safer.m4: Really remove file.
3769         Reported by Jim Meyering.
3770
3771 2011-06-16  Bruno Haible  <bruno@clisp.org>
3772
3773         syntax-check: Fix typo.
3774         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3775         printf-posix.m4.
3776         Reported by Jim Meyering.
3777
3778 2011-06-13  Jim Meyering  <meyering@redhat.com>
3779
3780         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3781         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3782
3783 2011-05-23  Bruno Haible  <bruno@clisp.org>
3784
3785         yesno: Move AC_LIBOBJ invocations to module description.
3786         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3787         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3788
3789 2011-05-23  Bruno Haible  <bruno@clisp.org>
3790
3791         xstrtol: Move AC_LIBOBJ invocations to module description.
3792         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3793         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3794
3795 2011-05-23  Bruno Haible  <bruno@clisp.org>
3796
3797         xstrtold: Move AC_LIBOBJ invocations to module description.
3798         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3799         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3800
3801 2011-05-23  Bruno Haible  <bruno@clisp.org>
3802
3803         xstrtod: Move AC_LIBOBJ invocations to module description.
3804         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3805         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3806
3807 2011-05-23  Bruno Haible  <bruno@clisp.org>
3808
3809         xnanosleep: Move AC_LIBOBJ invocations to module description.
3810         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3811         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3812
3813 2011-05-23  Bruno Haible  <bruno@clisp.org>
3814
3815         xgetcwd: Move AC_LIBOBJ invocations to module description.
3816         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3817         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3818
3819 2011-05-23  Bruno Haible  <bruno@clisp.org>
3820
3821         xalloc: Move AC_LIBOBJ invocations to module description.
3822         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3823         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3824
3825 2011-05-23  Bruno Haible  <bruno@clisp.org>
3826
3827         write-any-file: Move AC_LIBOBJ invocations to module description.
3828         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3829         invocation.
3830         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3831
3832 2011-05-23  Bruno Haible  <bruno@clisp.org>
3833
3834         utimens: Move AC_LIBOBJ invocations to module description.
3835         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3836         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3837
3838 2011-05-23  Bruno Haible  <bruno@clisp.org>
3839
3840         utimecmp: Move AC_LIBOBJ invocations to module description.
3841         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3842         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3843
3844 2011-05-23  Bruno Haible  <bruno@clisp.org>
3845
3846         userspec: Move AC_LIBOBJ invocations to module description.
3847         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3848         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3849
3850 2011-05-23  Bruno Haible  <bruno@clisp.org>
3851
3852         unlinkdir: Move AC_LIBOBJ invocations to module description.
3853         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3854         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3855
3856 2011-05-23  Bruno Haible  <bruno@clisp.org>
3857
3858         unistd-safer: Move AC_LIBOBJ invocations to module description.
3859         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3860         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3861
3862 2011-05-23  Bruno Haible  <bruno@clisp.org>
3863
3864         tempname: Move AC_LIBOBJ invocations to module description.
3865         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3866         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3867
3868 2011-05-23  Bruno Haible  <bruno@clisp.org>
3869
3870         strftime: Move AC_LIBOBJ invocations to module description.
3871         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3872         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3873
3874 2011-05-23  Bruno Haible  <bruno@clisp.org>
3875
3876         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3877         * m4/stdlib-safer.m4: Remove file.
3878         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3879         (configure.ac): Remove gl_STDLIB_SAFER call.
3880         (Makefile.am): Augment lib_SOURCES.
3881
3882 2011-05-23  Bruno Haible  <bruno@clisp.org>
3883
3884         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3885         * m4/stdio-safer.m4: Remove file.
3886         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3887         (configure.ac): Remove gl_TMPFILE_SAFER call.
3888         (Makefile.am): Augment lib_SOURCES.
3889
3890 2011-05-23  Bruno Haible  <bruno@clisp.org>
3891
3892         popen-safer: Move AC_LIBOBJ invocations to module description.
3893         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3894         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3895         (configure.ac): Remove gl_POPEN_SAFER call.
3896         (Makefile.am): Augment lib_SOURCES.
3897
3898 2011-05-23  Bruno Haible  <bruno@clisp.org>
3899
3900         freopen-safer: Move AC_LIBOBJ invocations to module description.
3901         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3902         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3903         (configure.ac): Remove gl_FREOPEN_SAFER call.
3904         (Makefile.am): Augment lib_SOURCES.
3905
3906 2011-05-23  Bruno Haible  <bruno@clisp.org>
3907
3908         fopen-safer: Move AC_LIBOBJ invocations to module description.
3909         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3910         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3911         (configure.ac): Remove gl_FOPEN_SAFER call.
3912         (Makefile.am): Augment lib_SOURCES.
3913
3914 2011-05-23  Bruno Haible  <bruno@clisp.org>
3915
3916         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3917         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3918         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3919
3920 2011-05-23  Bruno Haible  <bruno@clisp.org>
3921
3922         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3923         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3924         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3925
3926 2011-05-23  Bruno Haible  <bruno@clisp.org>
3927
3928         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3929         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3930         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3931
3932 2011-05-23  Bruno Haible  <bruno@clisp.org>
3933
3934         settime: Move AC_LIBOBJ invocations to module description.
3935         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3936         * modules/settime (Makefile.am): Augment lib_SOURCES.
3937
3938 2011-05-23  Bruno Haible  <bruno@clisp.org>
3939
3940         savedir: Move AC_LIBOBJ invocations to module description.
3941         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3942         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3943
3944 2011-05-23  Bruno Haible  <bruno@clisp.org>
3945
3946         save-cwd: Move AC_LIBOBJ invocations to module description.
3947         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3948         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3949
3950 2011-05-23  Bruno Haible  <bruno@clisp.org>
3951
3952         same: Move AC_LIBOBJ invocations to module description.
3953         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3954         * modules/same (Makefile.am): Augment lib_SOURCES.
3955
3956 2011-05-23  Bruno Haible  <bruno@clisp.org>
3957
3958         safe-write: Move AC_LIBOBJ invocations to module description.
3959         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3960         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3961         instead of gl_SAFE_WRITE.
3962         (Makefile.am): Augment lib_SOURCES.
3963
3964 2011-05-23  Bruno Haible  <bruno@clisp.org>
3965
3966         safe-read: Move AC_LIBOBJ invocations to module description.
3967         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3968         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3969         of gl_SAFE_READ.
3970         (Makefile.am): Augment lib_SOURCES.
3971
3972 2011-05-23  Bruno Haible  <bruno@clisp.org>
3973
3974         safe-alloc: Move AC_LIBOBJ invocations to module description.
3975         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3976         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3977
3978 2011-05-23  Bruno Haible  <bruno@clisp.org>
3979
3980         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3981         * m4/rijndael.m4: Remove file.
3982         * modules/crypto/rijndael (Files): Remove it.
3983         (configure.ac): Remove gl_RIJNDAEL call.
3984         (Makefile.am): Augment lib_SOURCES.
3985
3986 2011-05-23  Bruno Haible  <bruno@clisp.org>
3987
3988         readtokens: Move AC_LIBOBJ invocations to module description.
3989         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3990         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3991
3992 2011-05-23  Bruno Haible  <bruno@clisp.org>
3993
3994         read-file: Move AC_LIBOBJ invocations to module description.
3995         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3996         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3997         of gl_FUNC_READ_FILE.
3998         (Makefile.am): Augment lib_SOURCES.
3999
4000 2011-05-23  Bruno Haible  <bruno@clisp.org>
4001
4002         quotearg: Move AC_LIBOBJ invocations to module description.
4003         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4004         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4005
4006 2011-05-23  Bruno Haible  <bruno@clisp.org>
4007
4008         quote: Move AC_LIBOBJ invocations to module description.
4009         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4010         * modules/quote (Makefile.am): Augment lib_SOURCES.
4011
4012 2011-05-23  Bruno Haible  <bruno@clisp.org>
4013
4014         posixver: Move AC_LIBOBJ invocations to module description.
4015         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4016         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4017
4018 2011-05-23  Bruno Haible  <bruno@clisp.org>
4019
4020         posixtm: Move AC_LIBOBJ invocations to module description.
4021         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4022         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4023
4024 2011-05-23  Bruno Haible  <bruno@clisp.org>
4025
4026         physmem: Move AC_LIBOBJ invocations to module description.
4027         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4028         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4029
4030 2011-05-23  Bruno Haible  <bruno@clisp.org>
4031
4032         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4033         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4034         invocation.
4035         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4036
4037 2011-05-23  Bruno Haible  <bruno@clisp.org>
4038
4039         mpsort: Move AC_LIBOBJ invocations to module description.
4040         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4041         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4042
4043 2011-05-23  Bruno Haible  <bruno@clisp.org>
4044
4045         modechange: Move AC_LIBOBJ invocations to module description.
4046         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4047         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4048
4049 2011-05-23  Bruno Haible  <bruno@clisp.org>
4050
4051         mkdir-p: Move AC_LIBOBJ invocations to module description.
4052         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4053         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4054
4055 2011-05-23  Bruno Haible  <bruno@clisp.org>
4056
4057         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4058         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4059         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4060
4061 2011-05-23  Bruno Haible  <bruno@clisp.org>
4062
4063         mgetgroups: Move AC_LIBOBJ invocations to module description.
4064         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4065         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4066
4067 2011-05-23  Bruno Haible  <bruno@clisp.org>
4068
4069         memxor: Move AC_LIBOBJ invocations to module description.
4070         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4071         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4072
4073 2011-05-23  Bruno Haible  <bruno@clisp.org>
4074
4075         memcoll: Move AC_LIBOBJ invocations to module description.
4076         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4077         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4078
4079 2011-05-23  Bruno Haible  <bruno@clisp.org>
4080
4081         memcasecmp: Move AC_LIBOBJ invocations to module description.
4082         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4083         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4084
4085 2011-05-23  Bruno Haible  <bruno@clisp.org>
4086
4087         crypto/md5: Move AC_LIBOBJ invocations to module description.
4088         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4089         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4090
4091 2011-05-23  Bruno Haible  <bruno@clisp.org>
4092
4093         crypto/md4: Move AC_LIBOBJ invocations to module description.
4094         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4095         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4096
4097 2011-05-23  Bruno Haible  <bruno@clisp.org>
4098
4099         crypto/md2: Move AC_LIBOBJ invocations to module description.
4100         * m4/md2.m4: Remove file.
4101         * modules/crypto/md2 (Files): Remove it.
4102         (configure.ac): Remove gl_MD2 call.
4103         (Makefile.am): Augment lib_SOURCES.
4104
4105 2011-05-23  Bruno Haible  <bruno@clisp.org>
4106
4107         long-options: Move AC_LIBOBJ invocations to module description.
4108         * m4/long-options.m4: Remove file.
4109         * modules/long-options (Files): Remove it.
4110         (configure.ac): Remove gl_LONG_OPTIONS call.
4111         (Makefile.am): Augment lib_SOURCES.
4112
4113 2011-05-23  Bruno Haible  <bruno@clisp.org>
4114
4115         i-ring: Move AC_LIBOBJ invocations to module description.
4116         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4117         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4118
4119 2011-05-23  Bruno Haible  <bruno@clisp.org>
4120
4121         idcache: Move AC_LIBOBJ invocations to module description.
4122         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4123         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4124
4125 2011-05-23  Bruno Haible  <bruno@clisp.org>
4126
4127         human: Move AC_LIBOBJ invocations to module description.
4128         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4129         * modules/human (Makefile.am): Augment lib_SOURCES.
4130
4131 2011-05-23  Bruno Haible  <bruno@clisp.org>
4132
4133         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4134         * m4/hmac-sha1.m4: Remove file.
4135         * modules/crypto/hmac-sha1 (Files): Remove it.
4136         (configure.ac): Remove gl_HMAC_SHA1 call.
4137         (Makefile.am): Augment lib_SOURCES.
4138
4139 2011-05-23  Bruno Haible  <bruno@clisp.org>
4140
4141         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4142         * m4/hmac-md5.m4: Remove file.
4143         * modules/crypto/hmac-md5 (Files): Remove it.
4144         (configure.ac): Remove gl_HMAC_MD5 call.
4145         (Makefile.am): Augment lib_SOURCES.
4146
4147 2011-05-23  Bruno Haible  <bruno@clisp.org>
4148
4149         hash: Move AC_LIBOBJ invocations to module description.
4150         * m4/hash.m4: Remove file.
4151         * modules/hash (Files): Remove it.
4152         (configure.ac): Remove gl_HASH call.
4153         (Makefile.am): Augment lib_SOURCES.
4154
4155 2011-05-23  Bruno Haible  <bruno@clisp.org>
4156
4157         hard-locale: Move AC_LIBOBJ invocations to module description.
4158         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4159         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4160
4161 2011-05-23  Bruno Haible  <bruno@clisp.org>
4162
4163         getugroups: Move AC_LIBOBJ invocations to module description.
4164         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4165         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4166
4167 2011-05-23  Bruno Haible  <bruno@clisp.org>
4168
4169         gettime: Move AC_LIBOBJ invocations to module description.
4170         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4171         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4172
4173 2011-05-23  Bruno Haible  <bruno@clisp.org>
4174
4175         getndelim2: Move AC_LIBOBJ invocations to module description.
4176         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4177         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4178
4179 2011-05-23  Bruno Haible  <bruno@clisp.org>
4180
4181         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4182         * m4/gc-pbkdf2-sha1.m4: Remove file.
4183         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4184         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4185         (Makefile.am): Augment lib_SOURCES.
4186
4187 2011-05-23  Bruno Haible  <bruno@clisp.org>
4188
4189         fts: Move AC_LIBOBJ invocations to module description.
4190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4191         * modules/fts (configure.ac): ... to here.
4192
4193 2011-05-23  Bruno Haible  <bruno@clisp.org>
4194
4195         file-type: Move AC_LIBOBJ invocations to module description.
4196         * m4/file-type.m4: Remove file.
4197         * modules/file-type (Files): Remove it.
4198         (configure.ac): Remove gl_FILE_TYPE call.
4199         (Makefile.am): Augment lib_SOURCES.
4200
4201 2011-05-23  Bruno Haible  <bruno@clisp.org>
4202
4203         filenamecat*: Respect rules for use of AC_LIBOBJ.
4204         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4205         Remove AC_LIBOBJ invocation.
4206         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4207         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4208
4209 2011-05-23  Bruno Haible  <bruno@clisp.org>
4210
4211         filemode: Move AC_LIBOBJ invocations to module description.
4212         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4213         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4214
4215 2011-05-23  Bruno Haible  <bruno@clisp.org>
4216
4217         openat-safer: Move AC_LIBOBJ invocations to module description.
4218         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4219         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4220
4221 2011-05-23  Bruno Haible  <bruno@clisp.org>
4222
4223         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4224         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4225         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4226
4227 2011-05-23  Bruno Haible  <bruno@clisp.org>
4228
4229         exclude: Move AC_LIBOBJ invocations to module description.
4230         * m4/exclude.m4: Remove file.
4231         * modules/exclude (Files): Remove it.
4232         (configure.ac): Remove gl_EXCLUDE call.
4233         (Makefile.am): Augment lib_SOURCES.
4234
4235 2011-05-23  Bruno Haible  <bruno@clisp.org>
4236
4237         dirname*: Respect rules for use of AC_LIBOBJ.
4238         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4239         invocations.
4240         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4241         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4242
4243 2011-05-23  Bruno Haible  <bruno@clisp.org>
4244
4245         dirent-safer: Move AC_LIBOBJ invocations to module description.
4246         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4247         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4248
4249 2011-05-23  Bruno Haible  <bruno@clisp.org>
4250
4251         crypto/des: Move AC_LIBOBJ invocations to module description.
4252         * m4/des.m4: Remove file.
4253         * modules/crypto/des (Files): Remove it.
4254         (configure.ac): Remove gl_DES call.
4255         (Makefile.am): Augment lib_SOURCES.
4256
4257 2011-05-23  Bruno Haible  <bruno@clisp.org>
4258
4259         cycle-check: Move AC_LIBOBJ invocations to module description.
4260         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4261         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4262
4263 2011-05-23  Bruno Haible  <bruno@clisp.org>
4264
4265         c-strtold: Move AC_LIBOBJ invocations to module description.
4266         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4267         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4268
4269 2011-05-23  Bruno Haible  <bruno@clisp.org>
4270
4271         c-strtod: Move AC_LIBOBJ invocations to module description.
4272         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4273         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4274
4275 2011-05-23  Bruno Haible  <bruno@clisp.org>
4276
4277         crc: Move AC_LIBOBJ invocations to module description.
4278         * m4/crc.m4: Remove file.
4279         * modules/crc (Files): Remove it.
4280         (configure.ac): Remove gl_CRC call.
4281         (Makefile.am): Augment lib_SOURCES.
4282
4283 2011-05-23  Bruno Haible  <bruno@clisp.org>
4284
4285         close-stream: Move AC_LIBOBJ invocations to module description.
4286         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4287         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4288
4289 2011-05-23  Bruno Haible  <bruno@clisp.org>
4290
4291         closeout: Move AC_LIBOBJ invocations to module description.
4292         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4293         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4294
4295 2011-05-23  Bruno Haible  <bruno@clisp.org>
4296
4297         closein: Move AC_LIBOBJ invocations to module description.
4298         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4299         * modules/closein (Makefile.am): Augment lib_SOURCES.
4300
4301 2011-05-23  Bruno Haible  <bruno@clisp.org>
4302
4303         cloexec: Move AC_LIBOBJ invocations to module description.
4304         * m4/cloexec.m4: Remove file.
4305         * modules/cloexec (Files): Remove it.
4306         (configure.ac): Remove gl_CLOEXEC call.
4307         (Makefile.am): Augment lib_SOURCES.
4308
4309 2011-05-23  Bruno Haible  <bruno@clisp.org>
4310
4311         check-version: Move AC_LIBOBJ invocations to module description.
4312         * m4/check-version.m4: Remove file.
4313         * modules/check-version (Files): Remove it.
4314         (configure.ac): Remove gl_CHECK_VERSION call.
4315         (Makefile.am): Augment lib_SOURCES.
4316
4317 2011-05-23  Bruno Haible  <bruno@clisp.org>
4318
4319         chdir-safer: Move AC_LIBOBJ invocations to module description.
4320         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4321         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4322
4323 2011-05-23  Bruno Haible  <bruno@clisp.org>
4324
4325         canonicalize: Move AC_LIBOBJ invocations to module description.
4326         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4327         AC_LIBOBJ invocation.
4328         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4329
4330 2011-05-23  Bruno Haible  <bruno@clisp.org>
4331
4332         canon-host: Move AC_LIBOBJ invocations to module description.
4333         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4334         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4335         instead of gl_CANON_HOST.
4336         (Makefile.am): Augment lib_SOURCES.
4337
4338 2011-05-23  Bruno Haible  <bruno@clisp.org>
4339
4340         backupfile: Move AC_LIBOBJ invocations to module description.
4341         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4342         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4343
4344 2011-05-23  Bruno Haible  <bruno@clisp.org>
4345
4346         argmatch: Move AC_LIBOBJ invocations to module description.
4347         * m4/argmatch.m4: Remove file.
4348         * modules/argmatch (Files): Remove it.
4349         (configure.ac): Remove gl_ARGMATCH call.
4350         (Makefile.am): Augment lib_SOURCES.
4351
4352 2011-05-23  Bruno Haible  <bruno@clisp.org>
4353
4354         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4355         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4356         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4357
4358 2011-05-23  Bruno Haible  <bruno@clisp.org>
4359
4360         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4361         * m4/arcfour.m4: Remove file.
4362         * modules/crypto/arcfour (Files): Remove it.
4363         (configure.ac): Remove gl_ARCFOUR call.
4364         (Makefile.am): Augment lib_SOURCES.
4365
4366 2011-05-22  Bruno Haible  <bruno@clisp.org>
4367
4368         write: Move AC_LIBOBJ invocations to module description.
4369         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4370         * modules/write (configure.ac): ... to here.
4371
4372 2011-05-22  Bruno Haible  <bruno@clisp.org>
4373
4374         wmemset: Move AC_LIBOBJ invocations to module description.
4375         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4376         here...
4377         * modules/wmemset (configure.ac): ... to here.
4378
4379 2011-05-22  Bruno Haible  <bruno@clisp.org>
4380
4381         wmemmove: Move AC_LIBOBJ invocations to module description.
4382         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4383         here...
4384         * modules/wmemmove (configure.ac): ... to here.
4385
4386 2011-05-22  Bruno Haible  <bruno@clisp.org>
4387
4388         wmemcpy: Move AC_LIBOBJ invocations to module description.
4389         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4390         here...
4391         * modules/wmemcpy (configure.ac): ... to here.
4392
4393 2011-05-22  Bruno Haible  <bruno@clisp.org>
4394
4395         wmemcmp: Move AC_LIBOBJ invocations to module description.
4396         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4397         here...
4398         * modules/wmemcmp (configure.ac): ... to here.
4399
4400 2011-05-22  Bruno Haible  <bruno@clisp.org>
4401
4402         wmemchr: Move AC_LIBOBJ invocations to module description.
4403         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4404         here...
4405         * modules/wmemchr (configure.ac): ... to here.
4406
4407 2011-05-22  Bruno Haible  <bruno@clisp.org>
4408
4409         wcswidth: Move AC_LIBOBJ invocations to module description.
4410         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4411         here...
4412         * modules/wcswidth (configure.ac): ... to here.
4413
4414 2011-05-22  Bruno Haible  <bruno@clisp.org>
4415
4416         wcwidth: Respect rules for use of AC_LIBOBJ.
4417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4418         invocation from here...
4419         * modules/wcwidth (configure.ac): ... to here.
4420         (Depends-on): Update conditions.
4421
4422 2011-05-22  Bruno Haible  <bruno@clisp.org>
4423
4424         wctype: Move AC_LIBOBJ invocations to module description.
4425         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4426         invocation from here...
4427         * modules/wctype (configure.ac): ... to here.
4428         (Depends-on): Update conditions.
4429
4430 2011-05-22  Bruno Haible  <bruno@clisp.org>
4431
4432         wctrans: Move AC_LIBOBJ invocations to module description.
4433         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4434         invocation from here...
4435         * modules/wctrans (configure.ac): ... to here.
4436
4437 2011-05-22  Bruno Haible  <bruno@clisp.org>
4438
4439         wctomb: Move AC_LIBOBJ invocations to module description.
4440         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4441         invocations from here...
4442         * modules/wctomb (configure.ac): ... to here.
4443
4444 2011-05-22  Bruno Haible  <bruno@clisp.org>
4445
4446         wctob: Move AC_LIBOBJ invocations to module description.
4447         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4448         gl_PREREQ_WCTOB invocations from here...
4449         * modules/wctob (configure.ac): ... to here.
4450         (Depends-on): Update conditions.
4451
4452 2011-05-22  Bruno Haible  <bruno@clisp.org>
4453
4454         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4455         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4456         here...
4457         * modules/wcsxfrm (configure.ac): ... to here.
4458
4459 2011-05-22  Bruno Haible  <bruno@clisp.org>
4460
4461         wcstok: Move AC_LIBOBJ invocations to module description.
4462         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4463         * modules/wcstok (configure.ac): ... to here.
4464
4465 2011-05-22  Bruno Haible  <bruno@clisp.org>
4466
4467         wcsstr: Move AC_LIBOBJ invocations to module description.
4468         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4469         * modules/wcsstr (configure.ac): ... to here.
4470
4471 2011-05-22  Bruno Haible  <bruno@clisp.org>
4472
4473         wcsspn: Move AC_LIBOBJ invocations to module description.
4474         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4475         * modules/wcsspn (configure.ac): ... to here.
4476
4477 2011-05-22  Bruno Haible  <bruno@clisp.org>
4478
4479         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4480         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4481         gl_PREREQ_WCSRTOMBS invocations from here...
4482         * modules/wcsrtombs (configure.ac): ... to here.
4483
4484 2011-05-22  Bruno Haible  <bruno@clisp.org>
4485
4486         wcsrchr: Move AC_LIBOBJ invocations to module description.
4487         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4488         here...
4489         * modules/wcsrchr (configure.ac): ... to here.
4490
4491 2011-05-22  Bruno Haible  <bruno@clisp.org>
4492
4493         wcspbrk: Move AC_LIBOBJ invocations to module description.
4494         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4495         here...
4496         * modules/wcspbrk (configure.ac): ... to here.
4497
4498 2011-05-22  Bruno Haible  <bruno@clisp.org>
4499
4500         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4501         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4502         gl_PREREQ_WCSNRTOMBS invocations from here...
4503         * modules/wcsnrtombs (configure.ac): ... to here.
4504
4505 2011-05-22  Bruno Haible  <bruno@clisp.org>
4506
4507         wcsnlen: Move AC_LIBOBJ invocations to module description.
4508         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4509         here...
4510         * modules/wcsnlen (configure.ac): ... to here.
4511
4512 2011-05-22  Bruno Haible  <bruno@clisp.org>
4513
4514         wcsncpy: Move AC_LIBOBJ invocations to module description.
4515         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4516         here...
4517         * modules/wcsncpy (configure.ac): ... to here.
4518
4519 2011-05-22  Bruno Haible  <bruno@clisp.org>
4520
4521         wcsncmp: Move AC_LIBOBJ invocations to module description.
4522         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4523         here...
4524         * modules/wcsncmp (configure.ac): ... to here.
4525
4526 2011-05-22  Bruno Haible  <bruno@clisp.org>
4527
4528         wcsncat: Move AC_LIBOBJ invocations to module description.
4529         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4530         here...
4531         * modules/wcsncat (configure.ac): ... to here.
4532
4533 2011-05-22  Bruno Haible  <bruno@clisp.org>
4534
4535         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4536         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4537         from here...
4538         * modules/wcsncasecmp (configure.ac): ... to here.
4539
4540 2011-05-22  Bruno Haible  <bruno@clisp.org>
4541
4542         wcslen: Move AC_LIBOBJ invocations to module description.
4543         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4544         * modules/wcslen (configure.ac): ... to here.
4545
4546 2011-05-22  Bruno Haible  <bruno@clisp.org>
4547
4548         wcsdup: Move AC_LIBOBJ invocations to module description.
4549         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4550         * modules/wcsdup (configure.ac): ... to here.
4551
4552 2011-05-22  Bruno Haible  <bruno@clisp.org>
4553
4554         wcscspn: Move AC_LIBOBJ invocations to module description.
4555         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4556         here...
4557         * modules/wcscspn (configure.ac): ... to here.
4558
4559 2011-05-22  Bruno Haible  <bruno@clisp.org>
4560
4561         wcscpy: Move AC_LIBOBJ invocations to module description.
4562         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4563         * modules/wcscpy (configure.ac): ... to here.
4564
4565 2011-05-22  Bruno Haible  <bruno@clisp.org>
4566
4567         wcscoll: Move AC_LIBOBJ invocations to module description.
4568         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4569         here...
4570         * modules/wcscoll (configure.ac): ... to here.
4571
4572 2011-05-22  Bruno Haible  <bruno@clisp.org>
4573
4574         wcscmp: Move AC_LIBOBJ invocations to module description.
4575         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4576         * modules/wcscmp (configure.ac): ... to here.
4577
4578 2011-05-22  Bruno Haible  <bruno@clisp.org>
4579
4580         wcschr: Move AC_LIBOBJ invocations to module description.
4581         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4582         * modules/wcschr (configure.ac): ... to here.
4583
4584 2011-05-22  Bruno Haible  <bruno@clisp.org>
4585
4586         wcscat: Move AC_LIBOBJ invocations to module description.
4587         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4588         * modules/wcscat (configure.ac): ... to here.
4589
4590 2011-05-22  Bruno Haible  <bruno@clisp.org>
4591
4592         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4593         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4594         here...
4595         * modules/wcscasecmp (configure.ac): ... to here.
4596
4597 2011-05-22  Bruno Haible  <bruno@clisp.org>
4598
4599         wcrtomb: Move AC_LIBOBJ invocations to module description.
4600         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4601         invocations from here...
4602         * modules/wcrtomb (configure.ac): ... to here.
4603
4604 2011-05-22  Bruno Haible  <bruno@clisp.org>
4605
4606         wcpncpy: Move AC_LIBOBJ invocations to module description.
4607         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4608         here...
4609         * modules/wcpncpy (configure.ac): ... to here.
4610
4611 2011-05-22  Bruno Haible  <bruno@clisp.org>
4612
4613         wcpcpy: Move AC_LIBOBJ invocations to module description.
4614         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4615         * modules/wcpcpy (configure.ac): ... to here.
4616
4617 2011-05-22  Bruno Haible  <bruno@clisp.org>
4618
4619         waitpid: Move AC_LIBOBJ invocations to module description.
4620         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4621         invocation from here...
4622         * modules/waitpid (configure.ac): ... to here.
4623
4624 2011-05-22  Bruno Haible  <bruno@clisp.org>
4625
4626         utimensat: Move AC_LIBOBJ invocations to module description.
4627         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4628         here...
4629         * modules/utimensat (configure.ac): ... to here.
4630
4631 2011-05-22  Bruno Haible  <bruno@clisp.org>
4632
4633         usleep: Move AC_LIBOBJ invocations to module description.
4634         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4635         here...
4636         * modules/usleep (configure.ac): ... to here.
4637
4638 2011-05-22  Bruno Haible  <bruno@clisp.org>
4639
4640         unlockpt: Move AC_LIBOBJ invocations to module description.
4641         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4642         gl_PREREQ_UNLOCKPT invocations from here...
4643         * modules/unlockpt (configure.ac): ... to here.
4644
4645 2011-05-22  Bruno Haible  <bruno@clisp.org>
4646
4647         unlink: Respect rules for use of AC_LIBOBJ.
4648         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4649         * modules/unlink (configure.ac): ... to here.
4650
4651 2011-05-22  Bruno Haible  <bruno@clisp.org>
4652
4653         uname: Move AC_LIBOBJ invocations to module description.
4654         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4656         here...
4657         * modules/uname (configure.ac): ... to here.
4658
4659 2011-05-22  Bruno Haible  <bruno@clisp.org>
4660
4661         ttyname_r: Move AC_LIBOBJ invocations to module description.
4662         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4663         gl_PREREQ_TTYNAME_R invocations from here...
4664         * modules/ttyname_r (configure.ac): ... to here.
4665
4666 2011-05-22  Bruno Haible  <bruno@clisp.org>
4667
4668         tsearch: Move AC_LIBOBJ invocations to module description.
4669         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4670         invocations from here...
4671         * modules/tsearch (configure.ac): ... to here.
4672
4673 2011-05-22  Bruno Haible  <bruno@clisp.org>
4674
4675         towctrans: Move AC_LIBOBJ invocations to module description.
4676         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4677         AC_LIBOBJ invocation from here...
4678         * modules/towctrans (configure.ac): ... to here.
4679
4680 2011-05-22  Bruno Haible  <bruno@clisp.org>
4681
4682         tmpfile: Move AC_LIBOBJ invocations to module description.
4683         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4684         invocations from here...
4685         * modules/tmpfile (configure.ac): ... to here.
4686
4687 2011-05-22  Bruno Haible  <bruno@clisp.org>
4688
4689         times: Move AC_LIBOBJ invocations to module description.
4690         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4691         * modules/times (configure.ac): ... to here.
4692
4693 2011-05-22  Bruno Haible  <bruno@clisp.org>
4694
4695         time_r: Move AC_LIBOBJ invocations to module description.
4696         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4697         invocations from here...
4698         * modules/time_r (configure.ac): ... to here.
4699
4700 2011-05-22  Bruno Haible  <bruno@clisp.org>
4701
4702         timegm: Move AC_LIBOBJ invocations to module description.
4703         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4704         invocations from here...
4705         * modules/timegm (configure.ac): ... to here.
4706
4707 2011-05-22  Bruno Haible  <bruno@clisp.org>
4708
4709         tcgetsid: Move AC_LIBOBJ invocations to module description.
4710         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4711         and gl_PREREQ_TCGETSID invocations from here...
4712         * modules/tcgetsid (configure.ac): ... to here.
4713         (Depends-on): Update conditions.
4714
4715 2011-05-22  Bruno Haible  <bruno@clisp.org>
4716
4717         symlinkat: Move AC_LIBOBJ invocations to module description.
4718         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4719         here...
4720         * modules/symlinkat (configure.ac): ... to here.
4721
4722 2011-05-22  Bruno Haible  <bruno@clisp.org>
4723
4724         symlink: Move AC_LIBOBJ invocations to module description.
4725         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4726         here...
4727         * modules/symlink (configure.ac): ... to here.
4728
4729 2011-05-22  Bruno Haible  <bruno@clisp.org>
4730
4731         strverscmp: Move AC_LIBOBJ invocations to module description.
4732         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4734         from here...
4735         * modules/strverscmp (configure.ac): ... to here.
4736
4737 2011-05-22  Bruno Haible  <bruno@clisp.org>
4738
4739         strtok_r: Move AC_LIBOBJ invocations to module description.
4740         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4741         and gl_PREREQ_STRTOK_R invocations from here...
4742         * modules/strtok_r (configure.ac): ... to here.
4743         (Depends-on): Update conditions.
4744
4745 2011-05-22  Bruno Haible  <bruno@clisp.org>
4746
4747         strtoumax: Move AC_LIBOBJ invocations to module description.
4748         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4750         from here...
4751         * modules/strtoumax (configure.ac): ... to here.
4752
4753 2011-05-22  Bruno Haible  <bruno@clisp.org>
4754
4755         strtoimax: Move AC_LIBOBJ invocations to module description.
4756         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4757         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4758         from here...
4759         * modules/strtoimax (configure.ac): ... to here.
4760
4761 2011-05-22  Bruno Haible  <bruno@clisp.org>
4762
4763         strtoull: Move AC_LIBOBJ invocations to module description.
4764         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4765         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4766         from here...
4767         * modules/strtoull (configure.ac): ... to here.
4768
4769 2011-05-22  Bruno Haible  <bruno@clisp.org>
4770
4771         strtoll: Move AC_LIBOBJ invocations to module description.
4772         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4773         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4774         here...
4775         * modules/strtoll (configure.ac): ... to here.
4776
4777 2011-05-22  Bruno Haible  <bruno@clisp.org>
4778
4779         strtoul: Move AC_LIBOBJ invocations to module description.
4780         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4781         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4782         * modules/strtoul (configure.ac): ... to here.
4783
4784 2011-05-22  Bruno Haible  <bruno@clisp.org>
4785
4786         strtol: Move AC_LIBOBJ invocations to module description.
4787         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4788         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4789         * modules/strtol (configure.ac): ... to here.
4790
4791 2011-05-22  Bruno Haible  <bruno@clisp.org>
4792
4793         strtod: Move AC_LIBOBJ invocations to module description.
4794         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4795         invocations from here...
4796         * modules/strtod (configure.ac): ... to here.
4797
4798 2011-05-22  Bruno Haible  <bruno@clisp.org>
4799
4800         strstr*: Move AC_LIBOBJ invocations to module description.
4801         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4802         invocations from here...
4803         * modules/strstr-simple (configure.ac): ... to here.
4804         * modules/strstr (configure.ac): ... and here.
4805
4806 2011-05-22  Bruno Haible  <bruno@clisp.org>
4807
4808         strsignal: Move AC_LIBOBJ invocations to module description.
4809         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4810         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4811         * modules/strsignal (configure.ac): ... to here.
4812         (Depends-on): Update conditions.
4813
4814 2011-05-22  Bruno Haible  <bruno@clisp.org>
4815
4816         strsep: Move AC_LIBOBJ invocations to module description.
4817         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4819         here...
4820         * modules/strsep (configure.ac): ... to here.
4821
4822 2011-05-22  Bruno Haible  <bruno@clisp.org>
4823
4824         strptime: Move AC_LIBOBJ invocations to module description.
4825         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4826         gl_PREREQ_STRPTIME invocations from here...
4827         * modules/strptime (configure.ac): ... to here.
4828
4829 2011-05-22  Bruno Haible  <bruno@clisp.org>
4830
4831         strpbrk: Move AC_LIBOBJ invocations to module description.
4832         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4833         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4834         here...
4835         * modules/strpbrk (configure.ac): ... to here.
4836
4837 2011-05-22  Bruno Haible  <bruno@clisp.org>
4838
4839         strnlen: Move AC_LIBOBJ invocations to module description.
4840         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4841         invocations from here...
4842         * modules/strnlen (configure.ac): ... to here.
4843
4844 2011-05-22  Bruno Haible  <bruno@clisp.org>
4845
4846         strndup: Move AC_LIBOBJ invocations to module description.
4847         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4848         invocations from here...
4849         * modules/strndup (configure.ac): ... to here.
4850         (Depends-on): Update conditions.
4851
4852 2011-05-22  Bruno Haible  <bruno@clisp.org>
4853
4854         strncat: Move AC_LIBOBJ invocations to module description.
4855         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4856         invocations from here...
4857         * modules/strncat (configure.ac): ... to here.
4858
4859 2011-05-22  Bruno Haible  <bruno@clisp.org>
4860
4861         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4862         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4863         invocations from here...
4864         * modules/strdup (configure.ac): ... to here.
4865         * modules/strdup-posix (configure.ac): ... and here.
4866
4867 2011-05-22  Bruno Haible  <bruno@clisp.org>
4868
4869         strcspn: Move AC_LIBOBJ invocations to module description.
4870         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4872         here...
4873         * modules/strcspn (configure.ac): ... to here.
4874
4875 2011-05-22  Bruno Haible  <bruno@clisp.org>
4876
4877         strchrnul: Move AC_LIBOBJ invocations to module description.
4878         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4879         gl_PREREQ_STRCHRNUL invocations from here...
4880         * modules/strchrnul (configure.ac): ... to here.
4881
4882 2011-05-22  Bruno Haible  <bruno@clisp.org>
4883
4884         strcasestr*: Move AC_LIBOBJ invocations to module description.
4885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4886         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4887         * modules/strcasestr-simple (configure.ac): ... to here.
4888         * modules/strcasestr (configure.ac): ... and here.
4889
4890 2011-05-22  Bruno Haible  <bruno@clisp.org>
4891
4892         strcase: Move AC_LIBOBJ invocations to module description.
4893         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4894         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4895         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4896         gl_PREREQ_STRNCASECMP invocations from here...
4897         * modules/strcase (configure.ac): ... to here.
4898
4899 2011-05-22  Bruno Haible  <bruno@clisp.org>
4900
4901         stpncpy: Move AC_LIBOBJ invocations to module description.
4902         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4903         here...
4904         * modules/stpncpy (configure.ac): ... to here.
4905
4906 2011-05-22  Bruno Haible  <bruno@clisp.org>
4907
4908         stpcpy: Move AC_LIBOBJ invocations to module description.
4909         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4910         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4911         here...
4912         * modules/stpcpy (configure.ac): ... to here.
4913
4914 2011-05-21  Bruno Haible  <bruno@clisp.org>
4915
4916         stat: Move AC_LIBOBJ invocations to module description.
4917         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4918         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4919         here...
4920         * modules/stat (configure.ac): ... to here.
4921
4922 2011-05-21  Bruno Haible  <bruno@clisp.org>
4923
4924         sleep: Move AC_LIBOBJ invocations to module description.
4925         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4926         * modules/sleep (configure.ac): ... to here.
4927
4928 2011-05-21  Bruno Haible  <bruno@clisp.org>
4929
4930         signbit: Move AC_LIBOBJ invocations to module description.
4931         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4932         * modules/signbit (configure.ac): ... to here.
4933
4934 2011-05-21  Bruno Haible  <bruno@clisp.org>
4935
4936         sigprocmask: Move AC_LIBOBJ invocations to module description.
4937         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4938         gl_PREREQ_SIGPROMASK invocations from here...
4939         * modules/sigprocmask (configure.ac): ... to here.
4940
4941 2011-05-21  Bruno Haible  <bruno@clisp.org>
4942
4943         sigaction: Move AC_LIBOBJ invocations to module description.
4944         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4945         gl_PREREQ_SIGACTION invocations from here...
4946         * modules/sigaction (configure.ac): ... to here.
4947
4948 2011-05-21  Bruno Haible  <bruno@clisp.org>
4949
4950         sig2str: Move AC_LIBOBJ invocations to module description.
4951         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4953         here...
4954         * modules/sig2str (configure.ac): ... to here.
4955
4956 2011-05-21  Bruno Haible  <bruno@clisp.org>
4957
4958         setlocale: Move AC_LIBOBJ invocations to module description.
4959         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4960         gl_PREREQ_SETLOCALE invocations from here...
4961         * modules/setlocale (configure.ac): ... to here.
4962
4963 2011-05-21  Bruno Haible  <bruno@clisp.org>
4964
4965         unsetenv: Move AC_LIBOBJ invocations to module description.
4966         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4967         and gl_PREREQ_UNSETENV invocations from here...
4968         * modules/unsetenv (configure.ac): ... to here.
4969         (Depends-on): Update.
4970
4971 2011-05-21  Bruno Haible  <bruno@clisp.org>
4972
4973         setenv: Move AC_LIBOBJ invocations to module description.
4974         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4975         here...
4976         * modules/setenv (configure.ac): ... to here.
4977
4978 2011-05-21  Bruno Haible  <bruno@clisp.org>
4979
4980         selinux-h: Move AC_LIBOBJ invocations to module description.
4981         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4982         AC_LIBOBJ invocation from here...
4983         * modules/selinux-h (configure.ac): ... to here.
4984
4985 2011-05-21  Bruno Haible  <bruno@clisp.org>
4986
4987         select: Respect rules for use of AC_LIBOBJ.
4988         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4989         here...
4990         * modules/select (configure.ac): ... to here.
4991
4992 2011-05-21  Bruno Haible  <bruno@clisp.org>
4993
4994         scandir: Move AC_LIBOBJ invocations to module description.
4995         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4996         invocations from here...
4997         * modules/scandir (configure.ac): ... to here.
4998
4999 2011-05-21  Bruno Haible  <bruno@clisp.org>
5000
5001         rpmatch: Move AC_LIBOBJ invocations to module description.
5002         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5004         here...
5005         * modules/rpmatch (configure.ac): ... to here.
5006
5007 2011-05-21  Bruno Haible  <bruno@clisp.org>
5008
5009         rmdir: Respect rules for use of AC_LIBOBJ.
5010         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5011         * modules/rmdir (configure.ac): ... to here.
5012
5013 2011-05-21  Bruno Haible  <bruno@clisp.org>
5014
5015         renameat: Move AC_LIBOBJ invocations to module description.
5016         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5017         here...
5018         * modules/renameat (configure.ac): ... to here.
5019
5020 2011-05-21  Bruno Haible  <bruno@clisp.org>
5021
5022         rename: Respect rules for use of AC_LIBOBJ.
5023         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5024         here...
5025         * modules/rename (configure.ac): ... to here.
5026
5027 2011-05-21  Bruno Haible  <bruno@clisp.org>
5028
5029         remove: Move AC_LIBOBJ invocations to module description.
5030         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5031         here...
5032         * modules/remove (configure.ac): ... to here.
5033
5034 2011-05-21  Bruno Haible  <bruno@clisp.org>
5035
5036         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5037         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5038         macro.
5039         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5040         * modules/relocatable-lib (configure.ac): ... to here.
5041         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5042         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5043
5044 2011-05-21  Bruno Haible  <bruno@clisp.org>
5045
5046         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5047         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5048         here...
5049         * modules/relocatable-prog (configure.ac): ... to here.
5050
5051 2011-05-21  Bruno Haible  <bruno@clisp.org>
5052
5053         regex: Move AC_LIBOBJ invocations to module description.
5054         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5055         invocations from here...
5056         * modules/regex (configure.ac): ... to here.
5057
5058 2011-05-21  Bruno Haible  <bruno@clisp.org>
5059
5060         realloc-*: Move AC_LIBOBJ invocations to module description.
5061         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5062         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5063         AC_LIBOBJ invocations from here...
5064         * modules/realloc-gnu (configure.ac): ... to here.
5065         * modules/realloc-posix (configure.ac): ... and here.
5066
5067 2011-05-21  Bruno Haible  <bruno@clisp.org>
5068
5069         readutmp: Move AC_LIBOBJ invocations to module description.
5070         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5071         * modules/readutmp (configure.ac): ... to here.
5072
5073 2011-05-21  Bruno Haible  <bruno@clisp.org>
5074
5075         readlinkat: Move AC_LIBOBJ invocations to module description.
5076         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5077         here...
5078         * modules/readlinkat (configure.ac): ... to here.
5079
5080 2011-05-21  Bruno Haible  <bruno@clisp.org>
5081
5082         readlink: Move AC_LIBOBJ invocations to module description.
5083         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5084         gl_PREREQ_READLINK invocations from here...
5085         * modules/readlink (configure.ac): ... to here.
5086
5087 2011-05-21  Bruno Haible  <bruno@clisp.org>
5088
5089         readline: Move AC_LIBOBJ invocations to module description.
5090         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5091         gl_PREREQ_READLINE invocations from here...
5092         * modules/readline (configure.ac): ... to here.
5093
5094 2011-05-21  Bruno Haible  <bruno@clisp.org>
5095
5096         read: Move AC_LIBOBJ invocations to module description.
5097         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5098         * modules/read (configure.ac): ... to here.
5099
5100 2011-05-21  Bruno Haible  <bruno@clisp.org>
5101
5102         rawmemchr: Move AC_LIBOBJ invocations to module description.
5103         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5104         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5105         from here...
5106         * modules/rawmemchr (configure.ac): ... to here.
5107
5108 2011-05-21  Bruno Haible  <bruno@clisp.org>
5109
5110         random_r: Move AC_LIBOBJ invocations to module description.
5111         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5112         gl_PREREQ_RANDOM_R invocations from here...
5113         * modules/random_r (configure.ac): ... to here.
5114
5115 2011-05-21  Bruno Haible  <bruno@clisp.org>
5116
5117         pwrite: Move AC_LIBOBJ invocations to module description.
5118         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5119         * modules/pwrite (configure.ac): ... to here.
5120
5121 2011-05-21  Bruno Haible  <bruno@clisp.org>
5122
5123         putenv: Move AC_LIBOBJ invocations to module description.
5124         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5125         * modules/putenv (configure.ac): ... to here.
5126
5127 2011-05-21  Bruno Haible  <bruno@clisp.org>
5128
5129         login_tty: Move AC_LIBOBJ invocations to module description.
5130         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5131         * modules/login_tty (configure.ac): ... to here.
5132
5133 2011-05-21  Bruno Haible  <bruno@clisp.org>
5134
5135         openpty: Move AC_LIBOBJ invocations to module description.
5136         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5137         * modules/openpty (configure.ac): ... to here.
5138
5139 2011-05-21  Bruno Haible  <bruno@clisp.org>
5140
5141         forkpty: Move AC_LIBOBJ invocations to module description.
5142         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5143         * modules/forkpty (configure.ac): ... to here.
5144
5145 2011-05-21  Bruno Haible  <bruno@clisp.org>
5146
5147         ptsname: Move AC_LIBOBJ invocations to module description.
5148         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5149         invocations from here...
5150         * modules/ptsname (configure.ac): ... to here.
5151
5152 2011-05-21  Bruno Haible  <bruno@clisp.org>
5153
5154         pread: Move AC_LIBOBJ invocations to module description.
5155         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5156         * modules/pread (configure.ac): ... to here.
5157
5158 2011-05-21  Bruno Haible  <bruno@clisp.org>
5159
5160         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5161         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5162         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5163         * modules/posix_spawn (configure.ac): ... to here.
5164         * modules/posix_spawnp (configure.ac): ... and here.
5165
5166 2011-05-21  Bruno Haible  <bruno@clisp.org>
5167
5168         popen: Move AC_LIBOBJ invocations to module description.
5169         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5170         invocations from here...
5171         * modules/popen (configure.ac): ... to here.
5172
5173 2011-05-21  Bruno Haible  <bruno@clisp.org>
5174
5175         poll: Move AC_LIBOBJ invocations to module description.
5176         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5177         invocations from here...
5178         * modules/poll (configure.ac): ... to here.
5179
5180 2011-05-21  Bruno Haible  <bruno@clisp.org>
5181
5182         pipe-posix: Move AC_LIBOBJ invocations to module description.
5183         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5184         * modules/pipe-posix (configure.ac): ... to here.
5185
5186 2011-05-21  Bruno Haible  <bruno@clisp.org>
5187
5188         openat: Respect rules for use of AC_LIBOBJ.
5189         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5190         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5191         * modules/openat (configure.ac): ... to here.
5192
5193 2011-05-21  Bruno Haible  <bruno@clisp.org>
5194
5195         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5196         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5197         invocation from here...
5198         * modules/obstack-printf (configure.ac): ... to here.
5199         * modules/obstack-printf-posix (configure.ac): ... and here.
5200
5201 2011-05-21  Bruno Haible  <bruno@clisp.org>
5202
5203         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5204         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5205         from here...
5206         * modules/nl_langinfo (configure.ac): ... to here.
5207
5208 2011-05-21  Bruno Haible  <bruno@clisp.org>
5209
5210         nanosleep: Move AC_LIBOBJ invocations to module description.
5211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5212         gl_PREREQ_NANOSLEEP invocations from here...
5213         * modules/nanosleep (configure.ac): ... to here.
5214
5215 2011-05-21  Bruno Haible  <bruno@clisp.org>
5216
5217         mountlist: Move AC_LIBOBJ invocations to module description.
5218         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5219         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5220         * modules/mountlist (configure.ac): ... to here.
5221
5222 2011-05-21  Bruno Haible  <bruno@clisp.org>
5223
5224         mktime: Respect rules for use of AC_LIBOBJ.
5225         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5226         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5227         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5228         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5229         * modules/mktime (configure.ac): ... to here.
5230         * modules/mktime-internal (configure.ac): ... and here.
5231         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5232
5233 2011-05-21  Bruno Haible  <bruno@clisp.org>
5234
5235         mkstemps: Move AC_LIBOBJ invocations to module description.
5236         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5237         here...
5238         * modules/mkstemps (configure.ac): ... to here.
5239
5240 2011-05-21  Bruno Haible  <bruno@clisp.org>
5241
5242         mkstemp: Move AC_LIBOBJ invocations to module description.
5243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5244         gl_PREREQ_MKSTEMP invocations from here...
5245         * modules/mkstemp (configure.ac): ... to here.
5246
5247 2011-05-21  Bruno Haible  <bruno@clisp.org>
5248
5249         mkostemps: Move AC_LIBOBJ invocations to module description.
5250         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5251         here...
5252         * modules/mkostemps (configure.ac): ... to here.
5253
5254 2011-05-21  Bruno Haible  <bruno@clisp.org>
5255
5256         mkostemp: Move AC_LIBOBJ invocations to module description.
5257         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5258         gl_PREREQ_MKOSTEMP invocations from here...
5259         * modules/mkostemp (configure.ac): ... to here.
5260
5261 2011-05-21  Bruno Haible  <bruno@clisp.org>
5262
5263         mknod: Move AC_LIBOBJ invocations to module description.
5264         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5265         * modules/mknod (configure.ac): ... to here.
5266
5267 2011-05-21  Bruno Haible  <bruno@clisp.org>
5268
5269         mkfifoat: Move AC_LIBOBJ invocations to module description.
5270         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5271         here...
5272         * modules/mkfifoat (configure.ac): ... to here.
5273
5274 2011-05-21  Bruno Haible  <bruno@clisp.org>
5275
5276         mkfifo: Respect rules for use of AC_LIBOBJ.
5277         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5278         here...
5279         * modules/mkfifo (configure.ac): ... to here.
5280
5281 2011-05-21  Bruno Haible  <bruno@clisp.org>
5282
5283         mkdtemp: Move AC_LIBOBJ invocations to module description.
5284         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5285         invocations from here...
5286         * modules/mkdtemp (configure.ac): ... to here.
5287
5288 2011-05-21  Bruno Haible  <bruno@clisp.org>
5289
5290         mkdir: Move AC_LIBOBJ invocations to module description.
5291         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5292         * modules/mkdir (configure.ac): ... to here.
5293
5294 2011-05-21  Bruno Haible  <bruno@clisp.org>
5295
5296         memset: Move AC_LIBOBJ invocations to module description.
5297         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5298         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5299         here...
5300         * modules/memset (configure.ac): ... to here.
5301
5302 2011-05-21  Bruno Haible  <bruno@clisp.org>
5303
5304         memrchr: Move AC_LIBOBJ invocations to module description.
5305         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5306         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5307         here...
5308         * modules/memrchr (configure.ac): ... to here.
5309
5310 2011-05-21  Bruno Haible  <bruno@clisp.org>
5311
5312         mempcpy: Move AC_LIBOBJ invocations to module description.
5313         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5314         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5315         here...
5316         * modules/mempcpy (configure.ac): ... to here.
5317
5318 2011-05-21  Bruno Haible  <bruno@clisp.org>
5319
5320         memmove: Move AC_LIBOBJ invocations to module description.
5321         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5323         here...
5324         * modules/memmove (configure.ac): ... to here.
5325
5326 2011-05-21  Bruno Haible  <bruno@clisp.org>
5327
5328         memmem*: Move AC_LIBOBJ invocations to module description.
5329         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5330         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5331         here...
5332         (gl_FUNC_MEMMEM): ... and here...
5333         * modules/memmem-simple (configure.ac): ... to here.
5334         * modules/memmem (configure.ac): ... and here.
5335
5336 2011-05-21  Bruno Haible  <bruno@clisp.org>
5337
5338         memcpy: Move AC_LIBOBJ invocations to module description.
5339         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5340         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5341         here...
5342         * modules/memcpy (configure.ac): ... to here.
5343
5344 2011-05-21  Bruno Haible  <bruno@clisp.org>
5345
5346         memcmp: Simplify autoconf macro.
5347         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5348         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5349         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5350
5351 2011-05-21  Bruno Haible  <bruno@clisp.org>
5352
5353         memcmp: Move AC_LIBOBJ invocations to module description.
5354         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5355         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5356         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5357         * modules/memcmp (configure.ac): ... to here.
5358         (Depends-on): Update conditions.
5359
5360 2011-05-21  Bruno Haible  <bruno@clisp.org>
5361
5362         memchr: Respect rules for use of AC_LIBOBJ.
5363         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5364         invocations from here...
5365         * modules/memchr (configure.ac): ... to here.
5366
5367 2011-05-21  Bruno Haible  <bruno@clisp.org>
5368
5369         mbtowc: Move AC_LIBOBJ invocations to module description.
5370         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5371         invocations from here...
5372         * modules/mbtowc (configure.ac): ... to here.
5373
5374 2011-05-21  Bruno Haible  <bruno@clisp.org>
5375
5376         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5377         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5378         gl_PREREQ_MBSRTOWCS invocations from here...
5379         * modules/mbsrtowcs (configure.ac): ... to here.
5380
5381 2011-05-21  Bruno Haible  <bruno@clisp.org>
5382
5383         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5384         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5385         gl_PREREQ_MBSNRTOWCS invocations from here...
5386         * modules/mbsnrtowcs (configure.ac): ... to here.
5387
5388 2011-05-21  Bruno Haible  <bruno@clisp.org>
5389
5390         mbsinit: Move AC_LIBOBJ invocations to module description.
5391         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5392         invocations from here...
5393         * modules/mbsinit (configure.ac): ... to here.
5394
5395 2011-05-21  Bruno Haible  <bruno@clisp.org>
5396
5397         mbrlen: Move AC_LIBOBJ invocations to module description.
5398         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5399         invocations from here...
5400         * modules/mbrlen (configure.ac): ... to here.
5401
5402 2011-05-21  Bruno Haible  <bruno@clisp.org>
5403
5404         mbrtowc: Respect rules for use of AC_LIBOBJ.
5405         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5406         invocations from here...
5407         * modules/mbrtowc (configure.ac): ... to here.
5408
5409 2011-05-21  Bruno Haible  <bruno@clisp.org>
5410
5411         malloc-*: Move AC_LIBOBJ invocations to module description.
5412         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5413         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5414         AC_LIBOBJ invocations from here...
5415         * modules/malloc-gnu (configure.ac): ... to here.
5416         * modules/malloc-posix (configure.ac): ... and here.
5417
5418 2011-05-21  Bruno Haible  <bruno@clisp.org>
5419
5420         lstat, openat: Respect rules for use of AC_LIBOBJ.
5421         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5422         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5423         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5424         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5425         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5426         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5427         here.
5428         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5429
5430 2011-05-21  Bruno Haible  <bruno@clisp.org>
5431
5432         lseek: Move AC_LIBOBJ invocations to module description.
5433         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5434         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5435         * modules/lseek (configure.ac): ... to here.
5436
5437 2011-05-21  Bruno Haible  <bruno@clisp.org>
5438
5439         linkat: Move AC_LIBOBJ invocations to module description.
5440         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5441         here...
5442         * modules/linkat (configure.ac): ... to here.
5443
5444 2011-05-21  Bruno Haible  <bruno@clisp.org>
5445
5446         link: Respect rules for use of AC_LIBOBJ.
5447         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5448         * modules/link (configure.ac): ... to here.
5449
5450 2011-05-21  Bruno Haible  <bruno@clisp.org>
5451
5452         lchown: Move AC_LIBOBJ invocations to module description.
5453         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5454         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5455         * modules/lchown (configure.ac): ... to here.
5456
5457 2011-05-21  Bruno Haible  <bruno@clisp.org>
5458
5459         iswctype: Move AC_LIBOBJ invocations to module description.
5460         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5461         here...
5462         * modules/iswctype (configure.ac): ... to here.
5463
5464 2011-05-21  Bruno Haible  <bruno@clisp.org>
5465
5466         iswblank: Move AC_LIBOBJ invocations to module description.
5467         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5468         here...
5469         * modules/iswblank (configure.ac): ... to here.
5470
5471 2011-05-21  Bruno Haible  <bruno@clisp.org>
5472
5473         atanl: Move AC_LIBOBJ invocations to module description.
5474         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5475         * modules/atanl (configure.ac): ... to here.
5476
5477 2011-05-21  Bruno Haible  <bruno@clisp.org>
5478
5479         acosl: Move AC_LIBOBJ invocations to module description.
5480         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5481         * modules/acosl (configure.ac): ... to here.
5482
5483 2011-05-21  Bruno Haible  <bruno@clisp.org>
5484
5485         asinl: Respect rules for use of AC_LIBOBJ.
5486         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5487         * modules/asinl (configure.ac): ... to here.
5488
5489 2011-05-21  Bruno Haible  <bruno@clisp.org>
5490
5491         tanl: Move AC_LIBOBJ invocations to module description.
5492         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5493         * modules/tanl (configure.ac): ... to here.
5494
5495 2011-05-21  Bruno Haible  <bruno@clisp.org>
5496
5497         cosl: Move AC_LIBOBJ invocations to module description.
5498         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5499         * modules/cosl (configure.ac): ... to here.
5500
5501 2011-05-21  Bruno Haible  <bruno@clisp.org>
5502
5503         sinl: Move AC_LIBOBJ invocations to module description.
5504         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5505         * modules/sinl (configure.ac): ... to here.
5506
5507 2011-05-21  Bruno Haible  <bruno@clisp.org>
5508
5509         logl: Move AC_LIBOBJ invocations to module description.
5510         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5511         * modules/logl (configure.ac): ... to here.
5512
5513 2011-05-21  Bruno Haible  <bruno@clisp.org>
5514
5515         expl: Move AC_LIBOBJ invocations to module description.
5516         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5517         * modules/expl (configure.ac): ... to here.
5518
5519 2011-05-21  Bruno Haible  <bruno@clisp.org>
5520
5521         roundl: Move AC_LIBOBJ invocations to module description.
5522         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5523         * modules/roundl (configure.ac): ... to here.
5524
5525 2011-05-21  Bruno Haible  <bruno@clisp.org>
5526
5527         round: Move AC_LIBOBJ invocations to module description.
5528         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5529         * modules/round (configure.ac): ... to here.
5530
5531 2011-05-21  Bruno Haible  <bruno@clisp.org>
5532
5533         roundf: Move AC_LIBOBJ invocations to module description.
5534         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5535         * modules/roundf (configure.ac): ... to here.
5536
5537 2011-05-21  Bruno Haible  <bruno@clisp.org>
5538
5539         truncl: Move AC_LIBOBJ invocations to module description.
5540         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5541         * modules/truncl (configure.ac): ... to here.
5542
5543 2011-05-21  Bruno Haible  <bruno@clisp.org>
5544
5545         trunc: Move AC_LIBOBJ invocations to module description.
5546         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5547         * modules/trunc (configure.ac): ... to here.
5548
5549 2011-05-21  Bruno Haible  <bruno@clisp.org>
5550
5551         truncf: Move AC_LIBOBJ invocations to module description.
5552         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5553         * modules/truncf (configure.ac): ... to here.
5554
5555 2011-05-21  Bruno Haible  <bruno@clisp.org>
5556
5557         ceill: Move AC_LIBOBJ invocations to module description.
5558         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5559         * modules/ceill (configure.ac): ... to here.
5560
5561 2011-05-21  Bruno Haible  <bruno@clisp.org>
5562
5563         ceil: Move AC_LIBOBJ invocations to module description.
5564         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5565         * modules/ceil (configure.ac): ... to here.
5566
5567 2011-05-21  Bruno Haible  <bruno@clisp.org>
5568
5569         ceilf: Move AC_LIBOBJ invocations to module description.
5570         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5571         * modules/ceilf (configure.ac): ... to here.
5572
5573 2011-05-21  Bruno Haible  <bruno@clisp.org>
5574
5575         floorl: Respect rules for use of AC_LIBOBJ.
5576         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5577         * modules/floorl (configure.ac): ... to here.
5578
5579 2011-05-21  Bruno Haible  <bruno@clisp.org>
5580
5581         floor: Respect rules for use of AC_LIBOBJ.
5582         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5583         * modules/floor (configure.ac): ... to here.
5584
5585 2011-05-21  Bruno Haible  <bruno@clisp.org>
5586
5587         floorf: Move AC_LIBOBJ invocations to module description.
5588         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5589         * modules/floorf (configure.ac): ... to here.
5590
5591 2011-05-20  Bruno Haible  <bruno@clisp.org>
5592
5593         sqrtl: Respect rules for use of AC_LIBOBJ.
5594         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5595         * modules/sqrtl (configure.ac): ... to here.
5596
5597 2011-05-20  Bruno Haible  <bruno@clisp.org>
5598
5599         ldexpl: Respect rules for use of AC_LIBOBJ.
5600         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5601         * modules/ldexpl (configure.ac): ... to here.
5602
5603 2011-05-20  Bruno Haible  <bruno@clisp.org>
5604
5605         frexpl*: Respect rules for use of AC_LIBOBJ.
5606         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5607         invocation from here...
5608         * modules/frexpl (configure.ac): ... to here.
5609         * modules/frexpl-nolibm (configure.ac): ... and here.
5610
5611 2011-05-20  Bruno Haible  <bruno@clisp.org>
5612
5613         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5614         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5615         invocation from here...
5616         * modules/frexp (configure.ac): ... to here.
5617         * modules/frexp-nolibm (configure.ac): ... and here.
5618
5619 2011-05-20  Bruno Haible  <bruno@clisp.org>
5620
5621         isnan: Respect rules for use of AC_LIBOBJ.
5622         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5623         invocations here.
5624         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5625         REPLACE_ISNAN.
5626         * modules/isnand (configure.ac): Likewise.
5627         * modules/isnanl (configure.ac): Likewise.
5628
5629 2011-05-20  Bruno Haible  <bruno@clisp.org>
5630
5631         isnanl*: Respect rules for use of AC_LIBOBJ.
5632         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5633         invocation from here...
5634         * modules/isnanl (configure.ac): ... to here.
5635         * modules/isnanl-nolibm (configure.ac): ... and here.
5636
5637 2011-05-20  Bruno Haible  <bruno@clisp.org>
5638
5639         isnand*: Move AC_LIBOBJ invocations to module description.
5640         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5641         invocation from here...
5642         * modules/isnand (configure.ac): ... to here.
5643         * modules/isnand-nolibm (configure.ac): ... and here.
5644
5645 2011-05-20  Bruno Haible  <bruno@clisp.org>
5646
5647         isnanf*: Move AC_LIBOBJ invocations to module description.
5648         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5649         invocation from here...
5650         * modules/isnanf (configure.ac): ... to here.
5651         * modules/isnanf-nolibm (configure.ac): ... and here.
5652
5653 2011-05-20  Bruno Haible  <bruno@clisp.org>
5654
5655         isnan*: Separate the AC_LIBOBJ invocations.
5656         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5657         AC_LIBOBJ invocation.
5658         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5659         here.
5660         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5661         AC_LIBOBJ invocation.
5662         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5663         here.
5664         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5665         AC_LIBOBJ invocation.
5666         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5667         here.
5668         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5669
5670 2011-05-08  Bruno Haible  <bruno@clisp.org>
5671
5672         isinf: Move AC_LIBOBJ invocations to module description.
5673         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5674         * modules/isinf (configure.ac): ... to here.
5675
5676 2011-05-08  Bruno Haible  <bruno@clisp.org>
5677
5678         isfinite: Move AC_LIBOBJ invocations to module description.
5679         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5680         * modules/isfinite (configure.ac): ... to here.
5681
5682 2011-05-08  Bruno Haible  <bruno@clisp.org>
5683
5684         isblank: Move AC_LIBOBJ invocations to module description.
5685         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5686         here...
5687         * modules/isblank (configure.ac): ... to here.
5688
5689 2011-05-08  Bruno Haible  <bruno@clisp.org>
5690
5691         isapipe: Move AC_LIBOBJ invocations to module description.
5692         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5693         gl_PREREQ_ISAPIPE invocations from here...
5694         * modules/isapipe (configure.ac): ... to here.
5695         (Depends-on): Update condition.
5696
5697 2011-05-08  Bruno Haible  <bruno@clisp.org>
5698
5699         ioctl: Move AC_LIBOBJ invocations to module description.
5700         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5701         invocations from here...
5702         * modules/ioctl (configure.ac): ... to here.
5703         (Depends-on): Update condition.
5704
5705 2011-05-08  Bruno Haible  <bruno@clisp.org>
5706
5707         imaxdiv: Move AC_LIBOBJ invocations to module description.
5708         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5709         invocations from here...
5710         * modules/imaxdiv (configure.ac): ... to here.
5711
5712 2011-05-08  Bruno Haible  <bruno@clisp.org>
5713
5714         imaxabs: Move AC_LIBOBJ invocations to module description.
5715         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5716         invocations from here...
5717         * modules/imaxabs (configure.ac): ... to here.
5718
5719 2011-05-08  Bruno Haible  <bruno@clisp.org>
5720
5721         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5722         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5723         AC_LIBOBJ invocations from here...
5724         * modules/getaddrinfo (configure.ac): ... to here.
5725         (Depends-on): Add conditions.
5726
5727 2011-05-08  Bruno Haible  <bruno@clisp.org>
5728
5729         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5730         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5731         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5732         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5733         (gl_PREREQ_INET_PTON): ... from here.
5734         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5735         gl_PREREQ_INET_PTON here.
5736         (Depends-on): Update condition.
5737
5738 2011-05-08  Bruno Haible  <bruno@clisp.org>
5739
5740         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5741         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5742         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5743         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5744         (gl_PREREQ_INET_NTOP): ... from here.
5745         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5746         gl_PREREQ_INET_NTOP here.
5747         (Depends-on): Update condition.
5748
5749 2011-05-08  Bruno Haible  <bruno@clisp.org>
5750
5751         iconv_open: Move AC_LIBOBJ invocations to module description.
5752         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5753         AC_LIBOBJ invocations from here...
5754         * modules/iconv_open (configure.ac): ... to here.
5755
5756 2011-05-08  Bruno Haible  <bruno@clisp.org>
5757
5758         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5759         If module 'iconv_open' is among the main modules and module
5760         'iconv_open-utf' is among the tests dependencies, then
5761         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5762         return the special iconv_t values. Therefore iconv() and iconv_close()
5763         must support these special iconv_t values, already in lib, not only in
5764         tests.
5765         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5766         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5767         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5768         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5769         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5770         (Depends-on): Add the dependencies of iconv_open-utf.
5771         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5772         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5773         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5774
5775 2011-05-08  Bruno Haible  <bruno@clisp.org>
5776
5777         group-member: Move AC_LIBOBJ invocations to module description.
5778         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5779         gl_PREREQ_GROUP_MEMBER invocations from here...
5780         * modules/group-member (configure.ac): ... to here.
5781
5782 2011-05-08  Bruno Haible  <bruno@clisp.org>
5783
5784         grantpt: Move AC_LIBOBJ invocations to module description.
5785         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5786         invocations from here...
5787         * modules/grantpt (configure.ac): ... to here.
5788
5789 2011-05-08  Bruno Haible  <bruno@clisp.org>
5790
5791         glob: Move AC_LIBOBJ invocations to module description.
5792         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5793         from here...
5794         * modules/glob (configure.ac): ... to here.
5795
5796 2011-05-08  Bruno Haible  <bruno@clisp.org>
5797
5798         getusershell: Move AC_LIBOBJ invocations to module description.
5799         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5800         Move AC_LIBOBJ invocation from here...
5801         * modules/getusershell (configure.ac): ... to here.
5802         (Depends-on): Update condition.
5803
5804 2011-05-08  Bruno Haible  <bruno@clisp.org>
5805
5806         gettimeofday: Move AC_LIBOBJ invocations to module description.
5807         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5808         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5809         gl_PREREQ_GETTIMEOFDAY invocations from here...
5810         * modules/gettimeofday (configure.ac): ... to here.
5811
5812 2011-05-08  Bruno Haible  <bruno@clisp.org>
5813
5814         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5815         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5816         just gl_FUNC_TZSET.
5817         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5818         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5819         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5820         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5821
5822 2011-05-08  Bruno Haible  <bruno@clisp.org>
5823
5824         getsubopt: Move AC_LIBOBJ invocations to module description.
5825         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5826         gl_PREREQ_GETSUBOPT invocations from here...
5827         * modules/getsubopt (configure.ac): ... to here.
5828
5829 2011-05-08  Bruno Haible  <bruno@clisp.org>
5830
5831         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5832         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5833         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5834         * modules/getpass-gnu (configure.ac): ... to here.
5835
5836 2011-05-08  Bruno Haible  <bruno@clisp.org>
5837
5838         getpass: Move AC_LIBOBJ invocations to module description.
5839         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5840         gl_PREREQ_GETPASS invocations from here...
5841         * modules/getpass (configure.ac): ... to here.
5842
5843 2011-05-08  Bruno Haible  <bruno@clisp.org>
5844
5845         getpagesize: Move AC_LIBOBJ invocations to module description.
5846         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5847         from here...
5848         * modules/getpagesize (configure.ac): ... to here.
5849
5850 2011-05-08  Bruno Haible  <bruno@clisp.org>
5851
5852         getopt: Move AC_LIBOBJ invocations to module description.
5853         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5854         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5855         invocations from here...
5856         * modules/getopt-gnu (configure.ac): ... to here.
5857         * modules/getopt-posix (configure.ac): ... and here.
5858         (Depends-on): Update condition.
5859
5860 2011-05-08  Bruno Haible  <bruno@clisp.org>
5861
5862         getopt, argp: Respect rules for use of AC_LIBOBJ.
5863         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5864         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5865         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5866         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5867
5868 2011-05-08  Bruno Haible  <bruno@clisp.org>
5869
5870         getlogin_r: Move AC_LIBOBJ invocations to module description.
5871         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5872         gl_PREREQ_GETLOGIN_R invocations from here...
5873         * modules/getlogin_r (configure.ac): ... to here.
5874
5875 2011-05-08  Bruno Haible  <bruno@clisp.org>
5876
5877         getlogin: Move AC_LIBOBJ invocations to module description.
5878         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5879         here...
5880         * modules/getlogin (configure.ac): ... to here.
5881
5882 2011-05-08  Bruno Haible  <bruno@clisp.org>
5883
5884         getloadavg: Move AC_LIBOBJ invocations to module description.
5885         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5886         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5887         * modules/getloadavg (configure.ac): ... to here.
5888
5889 2011-05-08  Bruno Haible  <bruno@clisp.org>
5890
5891         gethrxtime: Move AC_LIBOBJ invocations to module description.
5892         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5893         LIB_GETHRXTIME from here...
5894         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5895         invocations from here...
5896         * modules/gethrxtime (configure.ac): ... to here.
5897
5898 2011-05-08  Bruno Haible  <bruno@clisp.org>
5899
5900         gethostname: Move AC_LIBOBJ invocations to module description.
5901         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5902         gl_PREREQ_GETHOSTNAME invocations from here...
5903         * modules/gethostname (configure.ac): ... to here.
5904
5905 2011-05-08  Bruno Haible  <bruno@clisp.org>
5906
5907         getgroups: Move AC_LIBOBJ invocations to module description.
5908         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5909         here...
5910         * modules/getgroups (configure.ac): ... to here.
5911
5912 2011-05-08  Bruno Haible  <bruno@clisp.org>
5913
5914         getdtablesize: Move AC_LIBOBJ invocations to module description.
5915         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5916         invocation from here...
5917         * modules/getdtablesize (configure.ac): ... to here.
5918
5919 2011-05-08  Bruno Haible  <bruno@clisp.org>
5920
5921         getdomainname: Move AC_LIBOBJ invocations to module description.
5922         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5923         gl_PREREQ_GETDOMAINNAME invocations from here...
5924         * modules/getdomainname (configure.ac): ... to here.
5925
5926 2011-05-08  Bruno Haible  <bruno@clisp.org>
5927
5928         getline: Move AC_LIBOBJ invocations to module description.
5929         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5930         invocations from here...
5931         * modules/getline (configure.ac): ... to here.
5932
5933 2011-05-08  Bruno Haible  <bruno@clisp.org>
5934
5935         getline: Simplify.
5936         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5937         It's already handled through the module dependency.
5938
5939 2011-05-08  Bruno Haible  <bruno@clisp.org>
5940
5941         getdelim: Move AC_LIBOBJ invocations to module description.
5942         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5943         and gl_PREREQ_GETDELIM invocations from here...
5944         * modules/getdelim (configure.ac): ... to here.
5945         (Depends-on): Fix condition.
5946
5947 2011-05-08  Bruno Haible  <bruno@clisp.org>
5948
5949         getcwd: Move AC_LIBOBJ invocations to module description.
5950         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5951         invocations from here...
5952         * modules/getcwd (configure.ac): ... to here.
5953
5954 2011-05-08  Bruno Haible  <bruno@clisp.org>
5955
5956         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5957         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5958         here...
5959         * modules/getcwd-lgpl (configure.ac): ... to here.
5960
5961 2011-05-07  Bruno Haible  <bruno@clisp.org>
5962
5963         crypto/gc: Move AC_LIBOBJ invocations to module description.
5964         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5965         * modules/crypto/gc (configure.ac): ... to here.
5966
5967 2011-05-07  Bruno Haible  <bruno@clisp.org>
5968
5969         fwriting: Move AC_LIBOBJ invocations to module description.
5970         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5971         here...
5972         * modules/fwriting (configure.ac): ... to here.
5973
5974 2011-05-07  Bruno Haible  <bruno@clisp.org>
5975
5976         fwritable: Move AC_LIBOBJ invocations to module description.
5977         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5978         here...
5979         * modules/fwritable (configure.ac): ... to here.
5980
5981 2011-05-07  Bruno Haible  <bruno@clisp.org>
5982
5983         futimens: Move AC_LIBOBJ invocations to module description.
5984         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5985         here...
5986         * modules/futimens (configure.ac): ... to here.
5987
5988 2011-05-07  Bruno Haible  <bruno@clisp.org>
5989
5990         ftruncate: Move AC_LIBOBJ invocations to module description.
5991         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5992         gl_PREREQ_FTRUNCATE invocations from here...
5993         * modules/ftruncate (configure.ac): ... to here.
5994
5995 2011-05-07  Bruno Haible  <bruno@clisp.org>
5996
5997         fsync: Move AC_LIBOBJ invocations to module description.
5998         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5999         invocations from here...
6000         * modules/fsync (configure.ac): ... to here.
6001
6002 2011-05-07  Bruno Haible  <bruno@clisp.org>
6003
6004         fsusage: Move AC_LIBOBJ invocations to module description.
6005         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6006         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6007         * modules/fsusage (configure.ac): ... to here.
6008
6009 2011-05-07  Bruno Haible  <bruno@clisp.org>
6010
6011         freopen: Move AC_LIBOBJ invocations to module description.
6012         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6013         invocations from here...
6014         * modules/freopen (configure.ac): ... to here.
6015
6016 2011-05-07  Bruno Haible  <bruno@clisp.org>
6017
6018         free: Move AC_LIBOBJ invocations to module description.
6019         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6020         invocations from here...
6021         * modules/free (configure.ac): ... to here.
6022
6023 2011-05-07  Bruno Haible  <bruno@clisp.org>
6024
6025         freadable: Move AC_LIBOBJ invocations to module description.
6026         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6027         here...
6028         * modules/freadable (configure.ac): ... to here.
6029
6030 2011-05-07  Bruno Haible  <bruno@clisp.org>
6031
6032         fpurge: Move AC_LIBOBJ invocations to module description.
6033         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6034         invocations from here...
6035         * modules/fpurge (configure.ac): ... to here.
6036
6037 2011-05-07  Bruno Haible  <bruno@clisp.org>
6038
6039         fpending: Move AC_LIBOBJ invocations to module description.
6040         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6041         gl_FUNC_FPENDING.
6042         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6043         invocations from here...
6044         * modules/fpending (configure.ac): ... to here.
6045
6046 2011-05-07  Bruno Haible  <bruno@clisp.org>
6047
6048         fopen: Move AC_LIBOBJ invocations to module description.
6049         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6050         invocations from here...
6051         * modules/fopen (configure.ac): ... to here.
6052
6053 2011-05-07  Bruno Haible  <bruno@clisp.org>
6054
6055         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6056         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6057         gl_FUNC_FNMATCH_POSIX.
6058         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6059         invocations from here...
6060         * modules/fnmatch (configure.ac): ... to here.
6061         * modules/fnmatch-gnu (configure.ac): ... and here.
6062
6063 2011-05-07  Bruno Haible  <bruno@clisp.org>
6064
6065         flock: Move AC_LIBOBJ invocations to module description.
6066         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6067         invocations from here...
6068         * modules/flock (configure.ac): ... to here.
6069
6070 2011-05-07  Bruno Haible  <bruno@clisp.org>
6071
6072         fileblocks: Move AC_LIBOBJ invocations to module description.
6073         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6074         gl_PREREQ_FILEBLOCKS invocations from here...
6075         * modules/fileblocks (configure.ac): ... to here.
6076
6077 2011-05-06  Bruno Haible  <bruno@clisp.org>
6078
6079         fflush: Move AC_LIBOBJ invocations to module description.
6080         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6081         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6082         invocations from here...
6083         * modules/fflush (configure.ac): ... to here.
6084
6085 2011-05-06  Bruno Haible  <bruno@clisp.org>
6086
6087         fdopendir: Move AC_LIBOBJ invocations to module description.
6088         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6089         here...
6090         * modules/fdopendir (configure.ac): ... to here.
6091         (Depends-on): Improve conditions.
6092
6093 2011-05-06  Bruno Haible  <bruno@clisp.org>
6094
6095         _Exit: Move AC_LIBOBJ invocations to module description.
6096         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6097         invocations from here...
6098         * modules/_Exit (configure.ac): ... to here.
6099
6100 2011-05-21  Bruno Haible  <bruno@clisp.org>
6101
6102         euidaccess: Respect rules for use of AC_LIBOBJ.
6103         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6104         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6105         from here...
6106         * modules/euidaccess (configure.ac): ... to here.
6107
6108 2011-05-06  Bruno Haible  <bruno@clisp.org>
6109
6110         error: Move AC_LIBOBJ invocations to module description.
6111         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6112         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6113         invocations from here...
6114         * modules/error (configure.ac): ... to here.
6115
6116 2011-05-06  Bruno Haible  <bruno@clisp.org>
6117
6118         duplocale: Move AC_LIBOBJ invocations to module description.
6119         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6120         gl_PREREQ_DUPLOCALE invocations from here...
6121         * modules/duplocale (configure.ac): ... to here.
6122
6123 2011-05-05  Bruno Haible  <bruno@clisp.org>
6124
6125         dirfd: Move AC_LIBOBJ invocations to module description.
6126         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6127         gl_FUNC_DIRFD.
6128         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6129         here...
6130         * modules/dirfd (configure.ac): ... to here.
6131         (Depends-on): Fix condition.
6132
6133 2011-05-05  Bruno Haible  <bruno@clisp.org>
6134
6135         chown: Respect rules for use of AC_LIBOBJ.
6136         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6137         * modules/chown (configure.ac): ... to here.
6138
6139 2011-05-05  Bruno Haible  <bruno@clisp.org>
6140
6141         chdir-long: Move AC_LIBOBJ invocations to module description.
6142         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6143         gl_PREREQ_CHDIR_LONG invocations from here...
6144         * modules/chdir-long (configure.ac): ... to here.
6145
6146 2011-05-05  Bruno Haible  <bruno@clisp.org>
6147
6148         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6149         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6150         from here...
6151         * modules/canonicalize-lgpl (configure.ac): ... to here.
6152
6153 2011-05-05  Bruno Haible  <bruno@clisp.org>
6154
6155         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6156         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6157         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6158         REPLACE_CALLOC.
6159         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6160         * modules/calloc-gnu (configure.ac): Likewise.
6161
6162 2011-05-05  Bruno Haible  <bruno@clisp.org>
6163
6164         btowc: Move AC_LIBOBJ invocations to module description.
6165         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6166         invocations from here...
6167         * modules/btowc (configure.ac): ... to here.
6168
6169 2011-05-21  Bruno Haible  <bruno@clisp.org>
6170
6171         atexit: Move AC_LIBOBJ invocations to module description.
6172         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6174         here...
6175         * modules/atexit (configure.ac): ... to here.
6176
6177 2011-05-05  Bruno Haible  <bruno@clisp.org>
6178
6179         atoll: Move AC_LIBOBJ invocations to module description.
6180         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6181         invocations from here...
6182         * modules/atoll (configure.ac): ... to here.
6183
6184 2011-05-05  Bruno Haible  <bruno@clisp.org>
6185
6186         argz: Move AC_LIBOBJ invocations to module description.
6187         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6188         * modules/argz (configure.ac): ... to here.
6189
6190 2011-05-05  Bruno Haible  <bruno@clisp.org>
6191
6192         alphasort: Move AC_LIBOBJ invocations to module description.
6193         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6194         gl_PREREQ_ALPHASORT invocations from here...
6195         * modules/alphasort (configure.ac): ... to here.
6196
6197 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6198
6199         verify: new macro verify_expr; verify_true deprecated
6200         * NEWS: Mention this.
6201         * doc/verify.texi (Compile-time Assertions): Document this.
6202         * lib/verify.h (verify_true): Deprecate.
6203         (verify_expr): New macro.
6204         * tests/test-verify.c (function): Test verify_expr.
6205
6206 2011-06-14  Jim Meyering  <meyering@redhat.com>
6207
6208         init.sh: give more portable redirection-related advice in a comment
6209         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6210         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6211         for lots of discussion.  Stefano Lattarini suggested the solution
6212         of putting "9>&2" after the command.  Reported by Bruno Haible.
6213
6214 2011-06-13  Bruno Haible  <bruno@clisp.org>
6215
6216         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6217         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6218         'none'.
6219
6220 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6221
6222         ftoastr: use strtof only if HAVE_STRTOF
6223         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6225         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6226         * modules/ftoastr (configure.ac): Check for strtof.
6227
6228 2011-06-13  Bruno Haible  <bruno@clisp.org>
6229
6230         gnulib-tool: Addendum to 2011-06-08 commit.
6231         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6232         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6233
6234 2011-06-13  Bruno Haible  <bruno@clisp.org>
6235
6236         fseeko: Provide a non-inline replacement of fseek().
6237         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6238         * modules/fseeko (Depends-on): Add fseek.
6239         * modules/fseek (License): Change to LGPLv2+.
6240
6241 2011-06-13  Bruno Haible  <bruno@clisp.org>
6242
6243         ftello: Provide a non-inline replacement of ftell().
6244         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6245         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6246         not have ftello() (such as on mingw).
6247         * modules/ftello (Depends-on): Add ftell.
6248         * modules/ftell (License): Change to LGPLv2+.
6249
6250 2011-05-07  Bruno Haible  <bruno@clisp.org>
6251
6252         ftell: Move AC_LIBOBJ invocations to module description.
6253         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6254         * modules/ftell (configure.ac): ... to here.
6255
6256 2011-05-07  Bruno Haible  <bruno@clisp.org>
6257
6258         ftello: Respect rules for use of AC_LIBOBJ.
6259         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6260         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6261         here...
6262         * modules/ftello (configure.ac): ... to here.
6263
6264 2011-05-07  Bruno Haible  <bruno@clisp.org>
6265
6266         fseeko: Simplify.
6267         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6268         (gl_FUNC_FSEEKO): Inline it here.
6269
6270 2011-05-07  Bruno Haible  <bruno@clisp.org>
6271
6272         fseek: Move AC_LIBOBJ invocations to module description.
6273         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6274         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6275         * modules/fseek (configure.ac): ... to here.
6276
6277 2011-05-07  Bruno Haible  <bruno@clisp.org>
6278
6279         fseek: Respect rules for use of AC_LIBOBJ.
6280         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6281         here...
6282         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6283
6284 2011-05-07  Bruno Haible  <bruno@clisp.org>
6285
6286         fseeko: Respect rules for use of AC_LIBOBJ.
6287         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6288         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6289         here...
6290         * modules/fseeko (configure.ac): ... to here.
6291
6292 2011-06-13  Bruno Haible  <bruno@clisp.org>
6293
6294         gnulib-tool: Allow comments in the 'Depends-on' section.
6295         * doc/gnulib.texi (Module description): Mention comment syntax in the
6296         Depends-on section.
6297         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6298
6299 2011-06-13  Bruno Haible  <bruno@clisp.org>
6300
6301         file-set.h: guard __attibute__ use, now that it's not always defined
6302         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6303         versions that support it.  This fixes a coreutils build failure with
6304         the vendor cc on HP-UX 11.31.
6305
6306 2011-06-12  Bruno Haible  <bruno@clisp.org>
6307
6308         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6309         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6310         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6311         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6312         (acl, aclsort): New declarations.
6313         (aclv_nontrivial): New declaration.
6314         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6315         (file_has_acl): Read also the second kind of HP-UX ACLs.
6316         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6317         kind of HP-UX ACLs if the first kind fails.
6318         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6319         second kind of HP-UX ACLs.
6320         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6321         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6322         agree.
6323         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6324         hpuxjfs.
6325         Handle hpuxjfs.
6326         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6327         hpuxjfs.
6328         Handle hpuxjfs.
6329         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6330         (func_test_same_acls): Use both lsacl and getacl.
6331         Handle hpuxjfs.
6332         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6333         (func_test_same_acls): Use both lsacl and getacl.
6334         Handle hpuxjfs.
6335
6336 2011-06-12  Bruno Haible  <bruno@clisp.org>
6337
6338         acl: Complete the 2010-08-10 fix.
6339         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6340         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6341         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6342         explicitly.
6343         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6344         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6345
6346 2011-06-12  Bruno Haible  <bruno@clisp.org>
6347
6348         spawn-pipe tests: Comments.
6349         * tests/test-spawn-pipe-child.c (main): Update comment.
6350         Reported by James Youngman <jay@gnu.org>.
6351
6352 2011-06-11  James Youngman  <jay@gnu.org>
6353
6354         New module 'stat-size'.
6355         * modules/stat-size: New module.  Provides macros for accessing
6356         file size information in instances of struct stat.  Depends on the
6357         fileblocks module because it calls st_blocks.
6358         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6359         * doc/gnulib.texi: Include stat-size.texi.
6360         * doc/stat-size.texi: Documentation for this module.
6361         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6362         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6363         AC_STRUCT_ST_BLOCKS.
6364
6365 2011-06-09  Bruno Haible  <bruno@clisp.org>
6366
6367         thread: Support pthreads-win32.
6368         * lib/glthread/thread.h (gl_thread_self): Define differently on
6369         pthreads-win32.
6370         (gl_null_thread): New declaration.
6371         (gl_thread_self_pointer): New macro.
6372         * lib/glthread/thread.c (gl_null_thread): New constant.
6373         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6374         gl_thread_self.
6375         * tests/test-tls.c: Likewise.
6376         Suggested by Paul Eggert. Reported by Eric Blake.
6377
6378 2011-06-09  Bruno Haible  <bruno@clisp.org>
6379
6380         thread: Fix confusion between NULL and 0.
6381         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6382         Reported by Paul Eggert.
6383
6384 2011-06-09  Bruno Haible  <bruno@clisp.org>
6385
6386         spawn-pipe tests: Avoid test failure on HP-UX 11.
6387         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6388         is closed.
6389
6390 2011-06-09  Bruno Haible  <bruno@clisp.org>
6391
6392         acl tests: Fix compilation error on HP-UX 11.
6393         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6394
6395 2011-06-09  Bruno Haible  <bruno@clisp.org>
6396
6397         rmdir: Avoid test failure on HP-UX 10.20.
6398         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6399         EEXIST.
6400
6401 2011-06-08  Eric Blake  <eblake@redhat.com>
6402
6403         perror: fix test on mingw
6404         * modules/perror-tests (Depends-on): Add dup2.
6405
6406         strerror_r-posix: fix on MacOS
6407         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6408         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6409         logic bug.
6410         * lib/strerror_r.c (strerror_r): Fix the bug.
6411         * lib/strerror.c (strerror): Likewise.
6412         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6413         problem.
6414         * doc/posix-functions/strerror.texi (strerror): Likewise.
6415         * doc/posix-functions/perror.texi (perror): Likewise.
6416         * tests/test-strerror.c (main): Enhance test.
6417         * tests/test-strerror_r.c (main): Likewise.
6418
6419 2011-06-08  Bruno Haible  <bruno@clisp.org>
6420
6421         gnulib-tool: Better isolation between different gnulib-tool invocations.
6422         * gnulib-tool: New option --witness-c-macro.
6423         (witness_c_macro): New variable.
6424         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6425         AM_CPPFLAGS define it as a C macro.
6426         (func_emit_tests_Makefile_am): Likewise.
6427         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6428         read it from there.
6429         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6430         m4_define, not AC_DEFUN.
6431         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6432         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6433         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6434         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6435         s|...|...|, to substitute the values of the GNULIB_* module indicator
6436         variables.
6437         * modules/dirent (Makefile.am): Likewise.
6438         * modules/fcntl-h (Makefile.am): Likewise.
6439         * modules/iconv-h (Makefile.am): Likewise.
6440         * modules/langinfo (Makefile.am): Likewise.
6441         * modules/locale (Makefile.am): Likewise.
6442         * modules/math (Makefile.am): Likewise.
6443         * modules/netdb (Makefile.am): Likewise.
6444         * modules/poll-h (Makefile.am): Likewise.
6445         * modules/pty (Makefile.am): Likewise.
6446         * modules/search (Makefile.am): Likewise.
6447         * modules/signal (Makefile.am): Likewise.
6448         * modules/spawn (Makefile.am): Likewise.
6449         * modules/stdio (Makefile.am): Likewise.
6450         * modules/stdlib (Makefile.am): Likewise.
6451         * modules/string (Makefile.am): Likewise.
6452         * modules/sys_ioctl (Makefile.am): Likewise.
6453         * modules/sys_select (Makefile.am): Likewise.
6454         * modules/sys_socket (Makefile.am): Likewise.
6455         * modules/sys_stat (Makefile.am): Likewise.
6456         * modules/sys_times (Makefile.am): Likewise.
6457         * modules/sys_utsname (Makefile.am): Likewise.
6458         * modules/sys_wait (Makefile.am): Likewise.
6459         * modules/termios (Makefile.am): Likewise.
6460         * modules/time (Makefile.am): Likewise.
6461         * modules/unistd (Makefile.am): Likewise.
6462         * modules/wchar (Makefile.am): Likewise.
6463
6464 2011-06-08  Eric Blake  <eblake@redhat.com>
6465
6466         strerror: simplify replacement
6467         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6468         * modules/strerror (configure.ac): No prereqs needed here...
6469         * modules/strerror-override (configure.ac): ...but this needs it.
6470         (Files): Add file for needed prereq macro.
6471
6472 2011-06-08  Bruno Haible  <bruno@clisp.org>
6473
6474         strerror_r-posix: Tweaks.
6475         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6476         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6478         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6479         (gl_FUNC_STRERROR_R): ... to here.
6480         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6481
6482 2011-06-07  Eric Blake  <eblake@redhat.com>
6483
6484         perror: document fixed bugs
6485         * doc/posix-functions/perror.texi (perror): Document recent
6486         patches.
6487
6488 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6489
6490         stat-time: get_stat_birthtime failure is better-defined
6491         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6492         return a timestamp whose tv_sec and tv_nsec values are both -1.
6493         Previously, the spec said only that the tv_nsec value was negative.
6494         This upward-compatible change simplifies GNU tar a bit.
6495
6496 2011-06-07  Eric Blake  <eblake@redhat.com>
6497
6498         strerror_r-posix: work around cygwin 1.7.9
6499         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6500         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6501         bug without replacing strerror_r.
6502         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6503         strerror_r is buggy, but without requiring strerror_r compilation.
6504         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6505
6506         test-perror: relax test to ignore cygwin bug
6507         * tests/test-perror2.c (main): Relax test on requiring detection
6508         of stream errors, and use unbuffered stream.
6509         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6510         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6511         * doc/posix-functions/fputc.texi (fputc): Likewise.
6512         * doc/posix-functions/fputs.texi (fputs): Likewise.
6513         * doc/posix-functions/fputws.texi (fputws): Likewise.
6514         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6515         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6516         * doc/posix-functions/getopt.texi (getopt): Likewise.
6517         * doc/posix-functions/perror.texi (perror): Likewise.
6518         * doc/posix-functions/printf.texi (printf): Likewise.
6519         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6520         * doc/posix-functions/psignal.texi (psignal): Likewise.
6521         * doc/posix-functions/putc.texi (putc): Likewise.
6522         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6523         Likewise.
6524         * doc/posix-functions/putchar.texi (putchar): Likewise.
6525         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6526         Likewise.
6527         * doc/posix-functions/puts.texi (puts): Likewise.
6528         * doc/posix-functions/putwc.texi (putwc): Likewise.
6529         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6530         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6531         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6532         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6533         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6534         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6535         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6536         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6537
6538 2011-05-22  Bruno Haible  <bruno@clisp.org>
6539
6540         strerror: Move AC_LIBOBJ invocations to module description.
6541         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6542         gl_PREREQ_STRERROR invocations from here...
6543         * modules/strerror (configure.ac): ... to here.
6544
6545 2011-05-21  Bruno Haible  <bruno@clisp.org>
6546
6547         perror: Use common idiom.
6548         * modules/perror (configure.ac): Reorder statements.
6549
6550 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6551
6552         tests: fix usage message in 'mktempd_'
6553         * tests/init.sh (mktempd_): In the usage message, use literal
6554         'mktempd_', not '$ME' (which is even undefined), as the name of
6555         the subroutine.
6556
6557 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6558
6559         tests init: new function 'fatal_', for hard errors
6560         Before this patch, the only way offered by tests/init.sh to
6561         properly signal a hard error was the `framework_failure_'
6562         function.  But the error message issued by that function,
6563         as its name would suggest, refers to a set-up failure in the
6564         testsuite, while hard errors can obviously also be due to
6565         other reasons.  The best way to fix this inconsistency is to
6566         introduce a new function with a more general error message.
6567         * tests/init.sh (fatal_): New function.
6568
6569 2011-06-06  Eric Blake  <eblake@redhat.com>
6570
6571         canonicalize-lgpl: use common idiom
6572         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6573         over newer POSIX -Rf.
6574         Reported by Bruno Haible.
6575
6576         canonicalize-lgpl: work around AIX realpath bug
6577         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6578         * doc/posix-functions/realpath.texi (realpath): Document it.
6579         Reported by Bruno Haible.
6580
6581         strerror: work around FreeBSD bug
6582         * lib/strerror.c (strerror): Special case 0.
6583         Reported by Bruno Haible.
6584
6585         strerror-override: avoid bloating errno module
6586         * modules/errno (Files, configure.ac): Move replacement strings...
6587         * modules/strerror-override: ...to new module.
6588         * modules/strerror (Depends-on): Add strerror-override.
6589         * modules/strerror_r-posix (Depends-on): Likewise.
6590         * MODULES.html.sh: Document new module.
6591         Reported by Bruno Haible.
6592
6593 2011-06-06  Bruno Haible  <bruno@clisp.org>
6594
6595         spawn-pipe tests: Rename program.
6596         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6597         * tests/test-spawn-pipe-child.c: Update comment.
6598         * tests/test-spawn-pipe.sh: Update.
6599         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6600
6601         spawn-pipe tests: Link the child program only against libc.
6602         * tests/test-spawn-pipe-child.c: New file, extracted from
6603         tests/test-spawn-pipe.c.
6604         (main): Expect only one argument.
6605         (is_open): New function, copied from tests/test-pipe.c.
6606         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6607         (child_main): Remove function.
6608         (test_pipe): Pass only one argument to the child program.
6609         (main): Remove child process code. Expect the child program's name as
6610         first argument.
6611         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6612         argument.
6613         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6614         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6615         test-spawn-pipe-child against no libraries.
6616
6617 2011-06-06  Bruno Haible  <bruno@clisp.org>
6618
6619         careadlinkat: Avoid mismatch between ssize_t and int.
6620         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6621         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6622
6623 2011-06-06  Jim Meyering  <meyering@redhat.com>
6624
6625         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6626         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6627         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6628
6629 2011-06-05  Bruno Haible  <bruno@clisp.org>
6630
6631         ansi-c++-opt: Interoperability with libtool.
6632         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6633         set the variable to "no", not to ":".
6634         * NEWS: Mention the change.
6635
6636 2011-06-05  Bruno Haible  <bruno@clisp.org>
6637
6638         acl: Fix test failure on AIX 7.
6639         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6640         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6641
6642 2011-06-05  Bruno Haible  <bruno@clisp.org>
6643
6644         pipe-filter-ii: Fix test failure on AIX and IRIX.
6645         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6646         with EAGAIN, retry with a smaller buffer size.
6647
6648 2011-06-05  Bruno Haible  <bruno@clisp.org>
6649
6650         localename: Fix link dependencies.
6651         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6652         * modules/localename-tests (Makefile.am): Link test-localename with
6653         $(LIBTHREAD).
6654
6655 2011-06-05  Bruno Haible  <bruno@clisp.org>
6656
6657         error: Avoid gcc warning.
6658         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6659
6660 2011-06-05  Bruno Haible  <bruno@clisp.org>
6661
6662         unsetenv: Avoid gcc warning.
6663         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6664
6665 2011-06-05  Bruno Haible  <bruno@clisp.org>
6666
6667         setenv: Avoid gcc warning.
6668         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6669
6670 2011-06-05  Bruno Haible  <bruno@clisp.org>
6671
6672         sys_select: Ensure memset is declared also on AIX 7.
6673         * lib/sys_select.in.h: Include <string.h> also on AIX.
6674         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6675         self-contained also on AIX 7.1.
6676
6677 2011-06-04  Jim Meyering  <meyering@redhat.com>
6678
6679         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6680         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6681         function name, "error".
6682         (_gl_translatable_diag_func_re): New configurable variable.
6683
6684 2011-06-04  Bruno Haible  <bruno@clisp.org>
6685
6686         getopt: Avoid gcc warning.
6687         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6688
6689 2011-06-04  Bruno Haible  <bruno@clisp.org>
6690
6691         strerror_r: Fix comments.
6692         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6693         commit.
6694
6695 2011-06-04  Bruno Haible  <bruno@clisp.org>
6696
6697         perror: Fix compilation error.
6698         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6699         Undefine fprintf, not sprintf.
6700         * modules/perror (Depends-on): Remove intprops, verify.
6701
6702 2011-06-04  Bruno Haible  <bruno@clisp.org>
6703
6704         setlocale: Enable replacement on Cygwin 1.5.
6705         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6706         Cygwin 1.5.x.
6707         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6708         LC_CTYPE category also exists on Cygwin 1.5.x.
6709
6710 2011-06-04  Bruno Haible  <bruno@clisp.org>
6711
6712         strerror-override: Don't disable symbol renamings.
6713         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6714         * lib/strerror-override.c: Include config.h.
6715         (strerror_override): Don't undefine.
6716
6717 2011-06-03  Bruno Haible  <bruno@clisp.org>
6718
6719         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6720         * lib/localename.h: Update copyright header.
6721         * lib/localename.c: Likewise.
6722         * lib/relocatable.h: Likewise.
6723         * lib/relocatable.c: Likewise.
6724
6725 2011-06-02  Bruno Haible  <bruno@clisp.org>
6726
6727         doc: Fix a module name.
6728         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6729
6730 2011-06-02  Bruno Haible  <bruno@clisp.org>
6731
6732         pipe2: Remove dependency on 'nonblocking' module.
6733         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6734         O_NONBLOCK is defined by gnulib.
6735         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6736         is zero.
6737         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6738         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6739         defined by gnulib.
6740         (get_nonblocking_flag): New function.
6741         (main): Test O_NONBLOCK flag only if it is nonzero.
6742         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6743
6744 2011-06-03  Jim Meyering  <meyering@redhat.com>
6745
6746         maint: three new prohibit-header-without-use rules
6747         Prohibit use of cloexec.h, posixver.h, same.h without use.
6748         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6749         (sc_prohibit_posixver_without_use): Likewise.
6750         (sc_prohibit_same_without_use): Likewise.
6751
6752 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6753
6754         allocator: 'die' routine is now given requested size
6755         * lib/allocator.h (struct allocator.die): New size arg.
6756         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6757         If the actual problem is an ssize_t limitation, not a size_t or
6758         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6759
6760 2011-06-01  Eric Blake  <eblake@redhat.com>
6761
6762         strerror: drop strerror_r dependency
6763         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6764         * lib/strerror-override.c (strerror_override): ...to new file.
6765         * lib/strerror-override.h: Add prototype.
6766         * lib/strerror-impl.h: Delete.
6767         * lib/strerror.c (strerror): New implementation.
6768         * modules/errno (Files): Add new files.
6769         (configure.ac): Compile new file as appropriate.
6770         * modules/strerror (Files): Drop unused file.
6771         (Depends-on): Drop strerror_r-posix.
6772         * MODULES.html.sh: Document strerror_r-posix.
6773         Requested by Sam Steingold.
6774
6775         perror: call strerror_r directly
6776         * modules/perror (Files): Drop strerror-impl.h.
6777         * lib/perror.c (perror): Use our own stack buffer, rather than
6778         calling a wrapper that uses static storage.
6779         * doc/posix-functions/perror.texi (perror): Document a limitation
6780         of our replacement.
6781
6782         strerror_r: fix includes for FreeBSD
6783         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6784         since we use abort on some platforms.
6785         Reported by Matthias Bolte.
6786
6787 2011-05-31  Bruno Haible  <bruno@clisp.org>
6788
6789         Fix link errors in tests: openat-die uses gettext-h.
6790         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6791         against $(LIBINTL).
6792         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6793         against $(LIBINTL).
6794         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6795         $(LIBINTL).
6796         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6797         against $(LIBINTL).
6798         * modules/linkat-tests (Makefile.am): Link test-linkat against
6799         $(LIBINTL).
6800         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6801         $(LIBINTL).
6802         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6803         against $(LIBINTL).
6804         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6805         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6806         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6807         $(LIBINTL).
6808         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6809         $(LIBINTL).
6810         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6811         $(LIBINTL).
6812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6813
6814 2011-05-31  Bruno Haible  <bruno@clisp.org>
6815
6816         Fix link errors in tests: wait-process uses gettext-h.
6817         * modules/nonblocking-pipe-tests (Makefile.am): Set
6818         test_nonblocking_pipe_main_LDADD.
6819         * modules/nonblocking-socket-tests (Makefile.am): Link
6820         test-nonblocking-socket-main against $(LIBINTL).
6821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6822
6823 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6824
6825         assert-h: work around 'verify' incompatibility
6826         * lib/verify.h: Use @...@ directives, not ifdef.
6827         * modules/assert-h (assert.h): Implement the directives.
6828         (assert.h): Substitute the symbol-prefix more consistently.
6829
6830 2011-05-29  Jim Meyering  <meyering@redhat.com>
6831
6832         trim: remove three superfluous assignments
6833         * lib/trim.c (trim2): Remove three superfluous assignments
6834         and correct brace positioning.
6835
6836 2011-05-29  Bruno Haible  <bruno@clisp.org>
6837
6838         wctype-h: Avoid namespace pollution on Solaris 2.6.
6839         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6840         identifiers.
6841         * doc/posix-headers/wctype.texi: Mention the problem.
6842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6843
6844 2011-05-28  Jim Meyering  <meyering@redhat.com>
6845
6846         parse-datetime.y: accommodate -Wstrict-overflow
6847         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6848         placate -Wstrict-overflow.
6849
6850         trim: avoid a warning from -O2 -Wstrict-overflow
6851         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6852
6853 2011-05-29  Bruno Haible  <bruno@clisp.org>
6854
6855         gnulib-tool: Fix bug in yesterday's commit.
6856         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6857         twice.
6858
6859 2011-05-29  Bruno Haible  <bruno@clisp.org>
6860
6861         Allow multiple gnulib generated include files to be combined.
6862         * gnulib-tool (func_compute_include_guard_prefix): New function.
6863         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6864         ${gl_include_guard_prefix} references.
6865         (func_import, func_create_testdir): Invoke
6866         func_compute_include_guard_prefix.
6867         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6868         * lib/ctype.in.h: Likewise.
6869         * lib/dirent.in.h: Likewise.
6870         * lib/errno.in.h: Likewise.
6871         * lib/fcntl.in.h: Likewise.
6872         * lib/float.in.h: Likewise.
6873         * lib/getopt.in.h: Likewise.
6874         * lib/iconv.in.h: Likewise.
6875         * lib/langinfo.in.h: Likewise.
6876         * lib/locale.in.h: Likewise.
6877         * lib/math.in.h: Likewise.
6878         * lib/netdb.in.h: Likewise.
6879         * lib/netinet_in.in.h: Likewise.
6880         * lib/poll.in.h: Likewise.
6881         * lib/pthread.in.h: Likewise.
6882         * lib/pty.in.h: Likewise.
6883         * lib/sched.in.h: Likewise.
6884         * lib/se-selinux.in.h: Likewise.
6885         * lib/search.in.h: Likewise.
6886         * lib/signal.in.h: Likewise.
6887         * lib/spawn.in.h: Likewise.
6888         * lib/stdarg.in.h: Likewise.
6889         * lib/stddef.in.h: Likewise.
6890         * lib/stdint.in.h: Likewise.
6891         * lib/stdio.in.h: Likewise.
6892         * lib/stdlib.in.h: Likewise.
6893         * lib/string.in.h: Likewise.
6894         * lib/strings.in.h: Likewise.
6895         * lib/sys_file.in.h: Likewise.
6896         * lib/sys_ioctl.in.h: Likewise.
6897         * lib/sys_select.in.h: Likewise.
6898         * lib/sys_socket.in.h: Likewise.
6899         * lib/sys_stat.in.h: Likewise.
6900         * lib/sys_time.in.h: Likewise.
6901         * lib/sys_times.in.h: Likewise.
6902         * lib/sys_uio.in.h: Likewise.
6903         * lib/sys_utsname.in.h: Likewise.
6904         * lib/sys_wait.in.h: Likewise.
6905         * lib/sysexits.in.h: Likewise.
6906         * lib/termios.in.h: Likewise.
6907         * lib/time.in.h: Likewise.
6908         * lib/unistd.in.h: Likewise.
6909         * lib/wchar.in.h: Likewise.
6910         * lib/wctype.in.h: Likewise.
6911         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6912         * modules/ctype (Makefile.am): Likewise.
6913         * modules/dirent (Makefile.am): Likewise.
6914         * modules/errno (Makefile.am): Likewise.
6915         * modules/fcntl-h (Makefile.am): Likewise.
6916         * modules/float (Makefile.am): Likewise.
6917         * modules/getopt-posix (Makefile.am): Likewise.
6918         * modules/iconv-h (Makefile.am): Likewise.
6919         * modules/langinfo (Makefile.am): Likewise.
6920         * modules/locale (Makefile.am): Likewise.
6921         * modules/math (Makefile.am): Likewise.
6922         * modules/netdb (Makefile.am): Likewise.
6923         * modules/netinet_in (Makefile.am): Likewise.
6924         * modules/poll-h (Makefile.am): Likewise.
6925         * modules/pthread (Makefile.am): Likewise.
6926         * modules/pty (Makefile.am): Likewise.
6927         * modules/sched (Makefile.am): Likewise.
6928         * modules/search (Makefile.am): Likewise.
6929         * modules/selinux-h (Makefile.am): Likewise.
6930         * modules/signal (Makefile.am): Likewise.
6931         * modules/spawn (Makefile.am): Likewise.
6932         * modules/stdarg (Makefile.am): Likewise.
6933         * modules/stddef (Makefile.am): Likewise.
6934         * modules/stdint (Makefile.am): Likewise.
6935         * modules/stdio (Makefile.am): Likewise.
6936         * modules/stdlib (Makefile.am): Likewise.
6937         * modules/string (Makefile.am): Likewise.
6938         * modules/strings (Makefile.am): Likewise.
6939         * modules/sys_file (Makefile.am): Likewise.
6940         * modules/sys_ioctl (Makefile.am): Likewise.
6941         * modules/sys_select (Makefile.am): Likewise.
6942         * modules/sys_socket (Makefile.am): Likewise.
6943         * modules/sys_stat (Makefile.am): Likewise.
6944         * modules/sys_time (Makefile.am): Likewise.
6945         * modules/sys_times (Makefile.am): Likewise.
6946         * modules/sys_uio (Makefile.am): Likewise.
6947         * modules/sys_utsname (Makefile.am): Likewise.
6948         * modules/sys_wait (Makefile.am): Likewise.
6949         * modules/sysexits (Makefile.am): Likewise.
6950         * modules/termios (Makefile.am): Likewise.
6951         * modules/time (Makefile.am): Likewise.
6952         * modules/unistd (Makefile.am): Likewise.
6953         * modules/wchar (Makefile.am): Likewise.
6954         * modules/wctype-h (Makefile.am): Likewise.
6955         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6956
6957 2011-05-29  Bruno Haible  <bruno@clisp.org>
6958
6959         assert-h: Allow multiple gnulib generated replacements to coexist.
6960         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6961
6962 2011-05-29  Bruno Haible  <bruno@clisp.org>
6963
6964         argp: Allow coexistence with strerror_r-posix module.
6965         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6966         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6967         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6968         not the glibc signature.
6969
6970 2011-05-28  Bruno Haible  <bruno@clisp.org>
6971
6972         gnulib-tool: Alternative structure of testdirs, similar to --import.
6973         * gnulib-tool: New option --single-configure.
6974         (func_usage): Document it.
6975         (single_configure): New variable.
6976         (func_modules_transitive_closure_separately,
6977         func_modules_transitive_closure_separately,
6978         func_determine_use_libtests, func_modules_add_dummy_separately,
6979         func_modules_to_filelist_separately): New functions, extracted from
6980         func_import.
6981         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6982         (func_import): Use the new functions.
6983         (func_create_testdir): Set final_modules. Handle $single_configure =
6984         true case.
6985
6986 2011-05-28  Bruno Haible  <bruno@clisp.org>
6987
6988         getloadavg: Remove an unreliable safety check.
6989         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6990         getloadavg.c is in place.
6991         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6992         Reported by Sam Steingold <sds@gnu.org>.
6993
6994 2011-05-28  Bruno Haible  <bruno@clisp.org>
6995
6996         doc: Cleanup yet another file produced by texinfo.tex.
6997         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6998
6999 2011-05-28  Bruno Haible  <bruno@clisp.org>
7000
7001         Finish the conditional dependencies mechanism.
7002         * gnulib-tool: New option --no-conditional-dependencies.
7003         (func_usage): Document it. Don't mark --conditional-dependencies as
7004         experimental.
7005         (cond_dependencies): The possible values can now be true, false, empty.
7006         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7007         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7008         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7009
7010 2011-05-28  Bruno Haible  <bruno@clisp.org>
7011
7012         doc: Use a recent texinfo.tex.
7013         * doc/Makefile (tex_opts): New variable.
7014         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7015
7016 2011-05-28  Jim Meyering  <meyering@redhat.com>
7017
7018         intprops.h: adjust comment to match code change
7019         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7020         only once, it *may* have side effects.  Also fix an unrelated typo.
7021         (_GL_INT_SIGNED): Likewise.
7022
7023 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7024
7025         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7026
7027 2011-05-26  Bruno Haible  <bruno@clisp.org>
7028
7029         mbsrchr: Avoid collision with system function on Interix.
7030         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7031         Reported by Markus Duft <mduft@gentoo.org>.
7032
7033 2011-05-15  James Youngman  <jay@gnu.org>
7034
7035         getopt: for ambiguous options, enumerate the possibilities.
7036         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7037         the ambiguous options when an ambiguous prefix is given. This was
7038         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7039         glibc change was
7040         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7041
7042 2011-05-25  Eric Blake  <eblake@redhat.com>
7043
7044         getcwd: work around mingw bug
7045         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7046         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7047         Reported by Matthias Bolte.
7048
7049 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7050
7051         test-intprops: disable -Wtype-limits diagnostics
7052         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7053         diagnostics.  Otherwise, the integer overflow macros generate many
7054         diagnostics.  Reported by Jim Meyering in
7055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7056
7057         intprops: shorten, to pacify gcc -Woverlength-strings
7058         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7059         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7060         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7061         likely to run afoul of C compiler limits for string constant lengths.
7062         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7063
7064 2011-05-24  Eric Blake  <eblake@redhat.com>
7065
7066         docs: document recently fixed glibc printf bug
7067         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7068         * doc/posix-functions/printf.texi (printf): Likewise.
7069         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7070         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7071
7072         closein-tests: convert to init.sh
7073         * modules/closein-tests (Files): Add init.sh
7074         * tests/test-closein.sh Use it.
7075
7076         yesno-tests: convert to init.sh
7077         * modules/yesno-tests (Files): Add init.sh.
7078         * tests/test-yesno.sh: Use it.
7079
7080         atexit-tests: ensure reliable exit status
7081         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7082         Reported by Bruno Haible.
7083
7084 2011-05-24  Bruno Haible  <bruno@clisp.org>
7085
7086         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7087         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7088         gl_PREREQ_STRERROR_R invocations from here...
7089         * modules/strerror_r-posix (configure.ac): ... to here.
7090
7091 2011-05-24  Eric Blake  <eblake@redhat.com>
7092
7093         strerror_r: fix missing header
7094         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7095
7096         strerror_r: fix AIX test failures
7097         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7098         ERANGE failure.
7099
7100         strerror_r: fix Solaris test failures
7101         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7102         failures.
7103         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7104
7105         strerror_r: enforce POSIX recommendations
7106         * lib/strerror_r.c (safe_copy): New helper method.
7107         (strerror_r): Guarantee a non-empty string.
7108         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7109         recent POSIX rulings and to match our strerror guarantees.
7110         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7111
7112 2011-05-24  Jim Meyering  <meyering@redhat.com>
7113
7114         test-perror2.c: avoid warning about unused variable
7115         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7116
7117 2011-05-24  Eric Blake  <eblake@redhat.com>
7118
7119         perror: avoid spurious test failure on HP-UX
7120         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7121
7122         tests: fix logic bug in init.sh
7123         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7124         shell.
7125
7126 2011-05-24  Jim Meyering  <meyering@redhat.com>
7127
7128         utimensat: do not reference an out-of-scope buffer
7129         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7130         declared in an inner scope, yet "times" would be dereferenced outside
7131         the scope in which "ts" was valid.
7132         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7133         of ts[2] "out/up", so that the use of aliased "times" (via
7134         "times = ts;") does not end up referencing an out-of-scope "ts"
7135
7136         opendir-safer.c: don't clobber errno; don't close negative FD
7137         * lib/opendir-safer.c (opendir_safer):
7138         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7139         file descriptor, and more importantly, don't clobber the
7140         offending errno value with EINVAL.  Before, upon failure
7141         of dup_safer, we would pass the negative file descriptor to
7142         fdopendir, which would clobber errno.
7143
7144 2011-05-23  Bruno Haible  <bruno@clisp.org>
7145
7146         idcache: Fix module description.
7147         * modules/idcache (Include): Set to "idcache.h".
7148
7149 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7150
7151         gnulib-tool: fix portability problem with MacOS sed
7152         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7153         before the "}".  Problem reported by Leo in
7154         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7155         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7156         sed_extract_condition1, sed_extract_condition2.
7157
7158 2011-05-23  Bruno Haible  <bruno@clisp.org>
7159
7160         hash: Simplify autoconf macro.
7161         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7162
7163 2011-05-23  Bruno Haible  <bruno@clisp.org>
7164
7165         getugroups: Fix module description.
7166         * modules/getugroups (Include): Set to "getugroups.h".
7167
7168 2011-05-23  Bruno Haible  <bruno@clisp.org>
7169
7170         linkat: Simplify autoconf macro.
7171         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7172
7173 2011-05-23  Bruno Haible  <bruno@clisp.org>
7174             Eric Blake  <eblake@redhat.com>
7175
7176         linkat, renameat: Update dependencies.
7177         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7178         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7179         symlinkat.
7180
7181 2011-05-23  Jim Meyering  <meyering@redhat.com>
7182
7183         maint.mk: more tight_scope improvements
7184         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7185         (_gl_TS_headers): Define only in if-0'd block.
7186         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7187         sometimes we must *not* use it.  Adjust uses accordingly.
7188         (sc_tight_scope): Use much simpler grep-based test to determine
7189         whether we skip this rule.
7190
7191         maint.mk: generalize/improve the tight-scope rule
7192         * top/maint.mk: Emit a warning when the test is skipped.
7193         (_gl_TS_dir): Add $(srcdir)/ prefix.
7194         (_gl_TS_function_match): Simplify, rather than trying
7195         to enumerate common types.  Otherwise, it would fail to match an
7196         "extern unsigned char const *" declaration in idutils.
7197         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7198         a way to support use of that type of macro.
7199         (_gl_TS_var_match): Simplify regexp.
7200         (_gl_TS_obj_files): New configurable variable.
7201         (_gl_TS_headers): Likewise.
7202
7203 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7204
7205         verify: fix bug when gnulib <assert.h> is also included
7206         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7207         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7208         Perhaps there's a better way, but this fixes the immediate problem.
7209         Problem reported by Bruno Haible in
7210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7211
7212 2011-05-22  Bruno Haible  <bruno@clisp.org>
7213
7214         xgetcwd: Simplify autoconf macro.
7215         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7216
7217 2011-05-22  Bruno Haible  <bruno@clisp.org>
7218
7219         New module 'mktime-internal'.
7220         * modules/mktime-internal: New file.
7221         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7222         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7223         mktime_internal as a C macro if libc has __mktime_internal.
7224         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7225         conditions.
7226         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7227
7228 2011-05-22  Bruno Haible  <bruno@clisp.org>
7229
7230         timegm: Correct mktime replacement statements.
7231         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7232         defining mktime as a C macro. This completes a 2009-07-28 commit.
7233
7234 2011-05-22  Bruno Haible  <bruno@clisp.org>
7235
7236         timegm: Simplify autoconf macro.
7237         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7238
7239 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7240
7241         clock-time: change to LGPLv2+.
7242         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7243         BSD-like but we have no mark for that; this is good enough for now.
7244
7245 2011-05-21  Bruno Haible  <bruno@clisp.org>
7246
7247         strerror_r: Fix comments.
7248         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7249
7250 2011-05-21  Bruno Haible  <bruno@clisp.org>
7251
7252         relocatable-prog-wrapper: Fix possible link error.
7253         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7254         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7255         (gl_FUNC_SETENV): ... to here.
7256         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7257         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7258
7259 2011-05-21  Bruno Haible  <bruno@clisp.org>
7260
7261         relocatable-prog-wrapper: Assume strerror() exists.
7262         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7263         m4/strerror.m4.
7264         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7265         * lib/relocwrapper.c: Remove mention of strerror module.
7266         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7267         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7268         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7269         C macro.
7270
7271 2011-05-21  Bruno Haible  <bruno@clisp.org>
7272
7273         select: Simplify replacement idiom.
7274         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7275         Win32 platforms.
7276         * lib/sys_select.in.h (select): Simplify accordingly.
7277         * modules/select (Depends-on): Likewise.
7278
7279 2011-05-21  Bruno Haible  <bruno@clisp.org>
7280
7281         mkdir-p: Simplify autoconf macro.
7282         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7283         gl_FUNC_LCHOWN.
7284
7285 2011-05-21  Eric Blake  <eblake@redhat.com>
7286
7287         strerror_r: avoid clobbering strerror on cygwin
7288         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7289         fall back instead to sys_errlist.
7290         * modules/strerror (configure.ac): Add witness.
7291         * tests/test-strerror_r.c (main): Enhance test.
7292         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7293         * tests/test-perror2.c (main): Free memory before exit.
7294
7295 2011-05-21  Bruno Haible  <bruno@clisp.org>
7296
7297         mkdtemp: Use gnulib naming conventions.
7298         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7299         * modules/mkdtemp (configure.ac): Update.
7300
7301 2011-05-20  Eric Blake  <eblake@redhat.com>
7302
7303         strerror_r: avoid corrupting errno on Solaris
7304         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7305         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7306
7307         strerror_r: avoid compiler warning
7308         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7309
7310         strerror_r: simplify AIX code
7311         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7312
7313         test-perror: avoid spurious failure on FreeBSD
7314         * modules/perror-tests (Depends-on): Add strerror, now that
7315         strerror_r no longer pulls it in.
7316
7317 2011-05-20  Bruno Haible  <bruno@clisp.org>
7318
7319         strerror_r-posix: Remove unused dependencies.
7320         * modules/strerror_r-posix (Depends-on): Remove strerror.
7321         Reported by Eric Blake.
7322
7323 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7324
7325         intprops: remove assumption about A|B representation
7326         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7327         is a valid integer if both A and B are.  Although this is true for
7328         all known practical hosts, the C standard doesn't guarantee it,
7329         and the code need not assume it.  Also, this change may work around
7330         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7332
7333 2011-05-20  Eric Blake  <eblake@redhat.com>
7334
7335         perror: work around FreeBSD bug
7336         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7337         is broken.  Move AC_LIBOBJ...
7338         * modules/perror (configure.ac): Here.
7339         * doc/posix-functions/perror.texi (perror): Document this.
7340         * tests/test-perror2.c (main): Enhance test.
7341
7342         test-perror: check for strerror interactions
7343         * tests/macros.h (STREQ): Add macro.
7344         * modules/perror-tests (Files): Add second test.
7345         * tests/test-perror2.c (main): New file.
7346         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7347
7348         test-perror: rewrite to use init script
7349         * modules/perror-tests (Files): Add init.sh.
7350         * tests/test-perror.sh: Use temporary directory.
7351
7352 2011-05-20  Jim Meyering  <meyering@redhat.com>
7353
7354         maint: replace misused "a" with "an"
7355         * doc/intprops.texi: "a integer"
7356         * doc/regex.texi: "a explanation"
7357         * lib/alignof.h: "a object"
7358         * lib/argmatch.h: "a explanation"
7359         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7360         * lib/stdint.in.h: "a integer"
7361         * lib/userspec.c: "a owner"
7362         * doc/gnulib.texi: Fix "a idea", and reword.
7363
7364 2011-05-19  Jim Meyering  <meyering@redhat.com>
7365
7366         maint: correct misuse of "a" and "an"
7367         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7368         * lib/argp-help.c: "an docum...": s/an/a/
7369         * lib/argp-parse.c: "An vector": s/An/A/
7370         * lib/execute.c: "an native": s/an/a/
7371         * lib/spawn-pipe.c: Likewise.
7372         * lib/gc.h: "an Gc_rc": s/an/a/
7373         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7374         * lib/fts.c: "an stat.st_dev": s/an/a/
7375
7376 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7377
7378         intprops-tests: work around HP-UX 11.23 cc bug with constants
7379         * tests/test-intprops.c (VERIFY): New macro.
7380         (main): Use it, instead of verify, to work around the compiler bug; see
7381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7382
7383         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7384         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7385         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7386         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7387         (_GL_REMAINDER_OVERFLOW): Use it.
7388
7389         intprops-tests: revert unsigned part of previous change
7390         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7391         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7392         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7394
7395 2011-05-19  Bruno Haible  <bruno@clisp.org>
7396
7397         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7398         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7399         strerror_r() returned without filling the buffer.
7400         Reported by Eric Blake.
7401
7402 2011-05-19  Eric Blake  <eblake@redhat.com>
7403
7404         strerror_r: guarantee unchanged errno
7405         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7406         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7407         failure.
7408         * tests/test-strerror_r.c (main): Enhance test.
7409
7410 2011-05-19  Bruno Haible  <bruno@clisp.org>
7411
7412         strerror_r: Reorder #if blocks.
7413         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7414         for consistency with the previous commit.
7415
7416 2011-05-19  Bruno Haible  <bruno@clisp.org>
7417
7418         perror: Avoid clobbering the strerror buffer when possible.
7419         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7420         * lib/strerror.c: Include it.
7421         * modules/strerror (Files): Add lib/strerror-impl.h.
7422         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7423         (my_strerror): New function, defined through lib/strerror-impl.h.
7424         (perror): Use it instead of strerror.
7425         * modules/perror (Files): Add lib/strerror-impl.h.
7426         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7427
7428 2011-05-19  Eric Blake  <eblake@redhat.com>
7429
7430         strerror_r: fix on newer cygwin
7431         * lib/strerror_r.c (strerror_r): Cygwin now has
7432         __xpg_strerror_r, use it.
7433
7434 2011-05-19  Bruno Haible  <bruno@clisp.org>
7435
7436         strerror_r: Avoid clobbering the strerror buffer when possible.
7437         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7438         (sys_nerr, sys_errlist): New declarations.
7439         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7440         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7441         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7442
7443 2011-05-19  Bruno Haible  <bruno@clisp.org>
7444
7445         strerror_r: Fix test failure on mingw.
7446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7447         EXTEND_STRERROR_R.
7448         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7449         macros from errno.in.h instead.
7450
7451 2011-05-19  Eric Blake  <eblake@redhat.com>
7452
7453         strerror: relax test for Solaris
7454         * tests/test-strerror.c (main): Permit Solaris behavior.
7455         * tests/test-strerror_r.c (main): Likewise.
7456
7457         strerror: enforce POSIX ruling on strerror(0)
7458         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7459         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7460         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7461         * doc/posix-functions/strerror.texi (strerror): Document it.
7462         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7463         * tests/test-strerror.c (main): Strengthen test.
7464         * tests/test-strerror_r.c (main): Likewise.
7465
7466 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7467
7468         intprop-tests: port to older and more-pedantic compilers
7469         * modules/intprops-tests (Files): Add tests/macros.h.
7470         * tests/test-intprops.c: Include macros.h.
7471         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7472         it's no longer documented to expand to an integer constant expression.
7473         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7474         argument is floating point, as it's no longer documented to expand
7475         to an integer constant expression in that case.
7476         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7477         compiler bugs reported by Bruno Haible.  See
7478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7479         (U0, U1): New constants, to work around the same bugs.  Also,
7480         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7481
7482         intprops: work around C compiler bugs
7483         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7484         bug in Sun C 5.11 2010/08/13 and other compilers; see
7485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7486
7487         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7488         * doc/intprops.texi (Integer Type Determination): Fix
7489         documentation for TYPE_IS_INTEGER: it returns an constant
7490         expression, not an integer constant expression.  Fix doc for
7491         TYPE_SIGNED: it returns an integer constant expression only if its
7492         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7493         hardly worth documented that way....)
7494
7495 2011-05-18  Bruno Haible  <bruno@clisp.org>
7496
7497         strerror_r: Avoid clobbering the strerror buffer when possible.
7498         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7499         Handle gnulib defined errno values here. When strerror() returns NULL
7500         or an empty string, return EINVAL.
7501         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7502         gnulib defined errno values here.
7503         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7504
7505 2011-05-18  Eric Blake  <eblake@redhat.com>
7506
7507         fnmatch: avoid compiler warning
7508         * lib/fnmatch_loop.c (FCT): Use correct type.
7509         Reported by Matthias Bolte.
7510
7511 2011-05-13  Jim Meyering  <meyering@redhat.com>
7512
7513         maint.mk: three new prohibit_<HDR>_without_use rules
7514         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7515         (sc_prohibit_stdio-safer_without_use): Likewise.
7516         (sc_prohibit_xfreopen_without_use): Likewise.
7517
7518 2011-05-17  Jim Meyering  <meyering@redhat.com>
7519
7520         announce-gen: fail if the NEWS delta is empty
7521         If there's nothing noteworthy in NEWS, then either you forgot
7522         or you shouldn't be releasing.
7523         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7524
7525 2011-05-17  Pádraig Brady <P@draigBrady.com>
7526
7527         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7528         reserved symbols starting with double underscore from the check.
7529
7530 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7531
7532         intprops: add doc
7533         * doc/intprops.texi: New file, documenting intprops.
7534         * doc/gnulib.texi (Particular Modules): Include it.
7535
7536         verify: add doc to gnulib manual and fix example
7537         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7538         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7539         (Compile-time Assertions): Fix example so it can't overflow.
7540
7541 2011-05-17  Jim Meyering  <meyering@redhat.com>
7542
7543         warnings.m4: don't usurp save_CPPFLAGS variable name
7544         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7545
7546         doc: fix typo
7547         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7548
7549 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7550             Bruno Haible  <bruno@clisp.org>
7551
7552         doc: Tweak recent change.
7553         * README (Portability guidelines): Tweak new text.
7554         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7555         Interix 6.1.
7556
7557 2011-05-16  Eric Blake  <eblake@redhat.com>
7558
7559         inttypes: avoid autoconf warning
7560         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7561         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7562
7563 2011-05-16  Sam Steingold <sds@gnu.org>
7564         and Eric Blake  <eblake@redhat.com>
7565
7566         vc-list-files: accept multiple directory operands
7567         * build-aux/vc-list-files: Iterate over all remaining operands.
7568
7569 2011-05-16  Bruno Haible  <bruno@clisp.org>
7570
7571         Fix confusion regarding deprecated modules.
7572         * modules/calloc (Status, Notice): Mark module as deprecated, not
7573         obsolete.
7574         * modules/fnmatch-posix (Status, Notice): Likewise.
7575         * modules/getdate (Status, Notice): Likewise.
7576         * modules/getopt (Status, Notice): Likewise.
7577         * modules/malloc (Status, Notice): Likewise.
7578         * modules/pipe (Status, Notice): Likewise.
7579         * modules/realloc (Status, Notice): Likewise.
7580         * modules/rename-dest-slash (Status, Notice): Likewise.
7581         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7582         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7583         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7584         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7585         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7586
7587 2011-05-16  Bruno Haible  <bruno@clisp.org>
7588
7589         doc: List the target platforms.
7590         * doc/gnulib-intro.texi (Target Platforms): New section.
7591         * doc/gnulib.texi (Introduction): Update menu.
7592         * README (Portability guidelines): Refer to the new section. Update
7593         statement about oldest supported environment. Remove rationale why
7594         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7595         unportable C89 function.
7596         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7597         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7598
7599 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7600
7601         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7602
7603 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7604
7605         intprops-tests: new module
7606         * modules/intprops-tests, tests/test-intprops.c: New files.
7607
7608         intprops: add safe, portable integer overflow checking
7609         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7610         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7611         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7612         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7613         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7614         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7615         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7616         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7617         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7618         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7619         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7620
7621 2011-05-12  James Youngman  <jay@gnu.org>
7622
7623         Add a test for glibc's Bugzilla bug #12378.
7624         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7625         doesn't allow the literal matching of a lone "[" (which is
7626         required by POSIX).
7627         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7628
7629 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7630
7631         Sync glibc change fixing Bugzilla bug #12378.
7632         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7633         beginning and fall back to matching as normal character if the
7634         string ends before the matching ']' is found.  This is what POSIX
7635         requires.
7636
7637 2011-05-13  Eric Blake  <eblake@redhat.com>
7638
7639         getcwd-lgpl: relax test for FreeBSD
7640         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7641         issue.
7642         * tests/test-getcwd-lgpl.c (main): Relax test.
7643         Reported by Matthias Bolte.
7644
7645 2011-05-11  Eric Blake  <eblake@redhat.com>
7646
7647         test-fflush: silence compiler warning
7648         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7649
7650 2011-05-11  Bruno Haible  <bruno@clisp.org>
7651
7652         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7653         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7654         * modules/canonicalize (Depends-on): Add 'nocrash'.
7655         * modules/canonicalize-lgpl (Depends-on): Likewise.
7656         * doc/posix-functions/realpath.texi: Update platforms list.
7657         Reported by Ryan Schmidt <ryandesign@macports.org>.
7658
7659 2011-05-11  Bruno Haible  <bruno@clisp.org>
7660
7661         group-member: Declare function in <unistd.h>.
7662         * lib/unistd.in.h (group_member): New declaration.
7663         * lib/group-member.h: Remove file.
7664         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7665         * tests/test-unistd-c++.cc: Check signature of group_member.
7666         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7667         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7668         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7669         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7670         HAVE_GROUP_MEMBER.
7671         * modules/group-member (Files): Remove lib/group-member.h.
7672         (Depends-on): Add unistd. Specify conditions.
7673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7674         (Include): Change to <unistd.h>.
7675         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7676         HAVE_GROUP_MEMBER.
7677         * NEWS: Mention the change.
7678         * lib/euidaccess.c: Don't include group-member.h.
7679
7680 2011-05-11  Bruno Haible  <bruno@clisp.org>
7681
7682         group-member: Document module.
7683         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7684         module.
7685
7686 2011-05-11  Bruno Haible  <bruno@clisp.org>
7687
7688         fclose: Fix mistake earlier today.
7689         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7690
7691 2011-05-11  Eric Blake  <eblake@redhat.com>
7692
7693         fclose: preserve fflush errors
7694         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7695         Reported by Jim Meyering.
7696
7697         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7698         * build-aux/bootstrap (check_versions): When no specific version
7699         is required, merely check that the app produces an exit status
7700         that indicates its existence.
7701
7702         maint.mk: drop redundant check
7703         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7704         the same but better.
7705
7706 2011-05-11  Bruno Haible  <bruno@clisp.org>
7707
7708         fclose: Fix possible link error.
7709         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7710         unregister_shadow_fd. Improve comments.
7711         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7712         Eric Blake.
7713
7714 2011-05-11  Jim Meyering  <meyering@redhat.com>
7715
7716         maint.mk: improve "can not" detection and generalize rule name
7717         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7718         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7719         Use the same technique as in sc_prohibit_doubled_word, so that
7720         we recognize "can not" also when the words are separated by a newline.
7721         Suggested by Eric Blake.
7722         (perl_filename_lineno_text_): Define.  Factored out of...
7723         (prohibit_doubled_word_): ...here.  Use the new definition.
7724         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7725         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7726         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7727
7728 2011-05-10  Eric Blake  <eblake@redhat.com>
7729
7730         fclose: avoid double close race when possible
7731         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7732         all but WINDOWS_SOCKETS.
7733
7734 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7735
7736         openat: correct new comment
7737         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7738
7739 2011-05-10  Jim Meyering  <meyering@redhat.com>
7740
7741         openat: add comments
7742         * lib/openat-proc.c (openat_proc_name): Add comments,
7743         mostly from Eric Blake.
7744
7745 2011-05-09  Eric Blake  <eblake@redhat.com>
7746
7747         openat: reduce syscalls in first probe of /proc
7748         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7749         be a directory.  Simplify the probe for .. bugs.
7750         * modules/openat (Depends-on): Drop same-inode.
7751         Reported by Bastien ROUCARIES.
7752
7753 2011-05-09  Jim Meyering  <meyering@redhat.com>
7754
7755         maint.mk: change semantics/name of tight_scope variables
7756         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7757         Rename variables to align with semantics that make them more useful.
7758
7759         maint.mk: tweak new rule's name not to impinge
7760         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7761         (sc_tight_scope): Use new rule name rather than $@-0.
7762
7763         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7764         * top/maint.mk (sc_tight_scope): New rule.
7765         (sc_tight_scope-0): New rule, ifdef'd out.
7766         (_gl_TS_dir): Default.
7767         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7768         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7769
7770 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7771
7772         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7773         Haible <bruno@clisp.org>.
7774
7775 2011-05-08  Bruno Haible  <bruno@clisp.org>
7776
7777         Comments.
7778         * m4/isnanf.m4: Add comment.
7779         * m4/isnanl.m4: Likewise.
7780
7781 2011-05-08  Bruno Haible  <bruno@clisp.org>
7782
7783         glob: Remove obsolete macro.
7784         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7785
7786 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7787
7788         intprops: Sun C 5.11 supports __typeof__
7789         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7790         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7791         which is new.
7792         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7793
7794         intprops: switch to usual gnulib indenting and naming
7795         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7796         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7797
7798         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7799
7800 2011-05-08  Jim Meyering  <meyering@redhat.com>
7801
7802         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7803         * top/maint.mk (release-prep): Use make's --no-print-directory
7804         option when generating the announcement.  This eliminates the
7805         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7806         generated announcement template.
7807
7808 2011-05-08  Bruno Haible  <bruno@clisp.org>
7809
7810         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7811         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7812         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7813
7814 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7815
7816         ignore-value, verify: Omit include files from lib_SOURCES.
7817         * modules/ignore-value, modules/verify (Makefile.am):
7818         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7819         that leads Automake to duplicate use of am__objects_... variables
7820         in Makefile.in.  See
7821         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7822
7823 2011-05-07  Bruno Haible  <bruno@clisp.org>
7824
7825         fclose: Simplify autoconf macro.
7826         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7827         defined.
7828
7829 2011-05-07  Bruno Haible  <bruno@clisp.org>
7830
7831         canonicalize-lgpl: Fix autoconf macro ordering bug.
7832         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7833         gl_STDLIB_H_DEFAULTS.
7834
7835 2011-05-06  Eric Blake  <eblake@redhat.com>
7836
7837         maintainer-makefile: make sc_po_check easier to tune
7838         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7839         to probe for strings, such as an alternate location for gnulib.
7840
7841         fclose: guarantee behavior on seekable stdin
7842         * modules/fclose (Depends-on): Add fflush.
7843         * doc/posix-functions/fclose.texi (fclose): Document this.
7844         * tests/test-fclose.c (main): Make test for this unconditional.
7845
7846 2011-05-06  Bruno Haible  <bruno@clisp.org>
7847
7848         fflush, fpurge: Relicense under LGPLv2+.
7849         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7850         * modules/fpurge (License): Likewise.
7851         With permission from Eric Blake and Jim Meyering.
7852         Suggested by Eric Blake.
7853
7854 2011-05-06  Karl Berry  <karl@gnu.org>
7855
7856         * MODULES.html.sh (func_all_modules): remove exit.
7857
7858 2011-05-06  Jim Meyering  <meyering@redhat.com>
7859
7860         maint.mk: use info-gnu@ as the default only for a stable release
7861         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7862         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7863         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7864         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7865
7866 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7867
7868         assert-h: new module, which supports C1X-style static_assert
7869         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7870         * lib/verify.h: Revamp so that this can be copied into assert.h,
7871         while retaining the ability to use it standalone as before.
7872         Rename private identifiers so as not to encroach on the
7873         standard C namespace, since this is now used by assert.h.
7874         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7875         the old verify_true.
7876         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7877         the old verify_true.  Use _GL_VERIFY_TYPE.
7878         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7879         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7880         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7881         defined when this file is copied into the replacement assert.h.
7882         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7883         and _Static_assert is not built in.
7884         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7885         defined, and use the new macros mentioned above.
7886         * doc/posix-headers/assert.texi: Document this.
7887
7888 2011-05-05  Bruno Haible  <bruno@clisp.org>
7889
7890         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7891         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7892         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7893         gl_REPLACE_FCLOSE here.
7894         * modules/fflush (Depends-on): Remove fclose.
7895         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7896         combination with module 'fclose'.
7897
7898 2011-05-05  Bruno Haible  <bruno@clisp.org>
7899
7900         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7901         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7902         gl_FUNC_FFLUSH.
7903         (gl_FUNC_FFLUSH): Use it.
7904         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7905         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7906         gl_REPLACE_FSEEKO here.
7907
7908 2011-05-05  Bruno Haible  <bruno@clisp.org>
7909
7910         tzset: Relicense under LGPL.
7911         * modules/tzset (License): Change to LGPL.
7912         No agreement needed; it's a no-op.
7913
7914         strtoimax, strtoumax: Relicense under LGPL.
7915         * modules/strtoimax (License): Change to LGPL.
7916         * modules/strtoumax (License): Likewise.
7917         With permission from Jim Meyering, Paul Eggert:
7918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7920
7921         getgroups: Relicense under LGPL.
7922         * modules/getgroups (License): Change to LGPL.
7923         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7927
7928         nanosleep: Relicense under LGPL.
7929         * modules/nanosleep (License): Change to LGPL.
7930         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7931         Haible:
7932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7936
7937         futimens: Relicense under LGPL.
7938         * modules/futimens (License): Change to LGPL.
7939         With permission from Eric Blake:
7940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7941
7942         fflush: Relicense under LGPL.
7943         * modules/fflush (License): Change to LGPL.
7944         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7948
7949         tmpfile: Relicense under LGPL.
7950         * modules/tmpfile (License): Change to LGPL.
7951         With permission from Ben Pfaff:
7952         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7953
7954         isfinite: Relicense under LGPL.
7955         * modules/isfinite (License): Change to LGPL.
7956         With permission from Ben Pfaff, Bruno Haible:
7957         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7959
7960         acosl..tanl: Relicense under LGPL.
7961         * modules/acosl (License): Change to LGPL.
7962         * modules/asinl (License): Likewise.
7963         * modules/atanl (License): Likewise.
7964         * modules/cosl (License): Likewise.
7965         * modules/expl (License): Likewise.
7966         * modules/logl (License): Likewise.
7967         * modules/sinl (License): Likewise.
7968         * modules/sqrtl (License): Likewise.
7969         * modules/tanl (License): Likewise.
7970         Source code originally from glibc and Paolo Bonzini. Agreements:
7971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7973
7974 2011-05-05  Bruno Haible  <bruno@clisp.org>
7975
7976         signal: Define sighandler_t.
7977         * lib/signal.in.h (sighandler_t): New type.
7978         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7979         whether sighandler_t is defined.
7980         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7981         * modules/signal (Depends-on): Add extensions.
7982         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7983         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7984         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7985
7986 2011-05-05  Eric Blake  <eblake@redhat.com>
7987
7988         maint: remove useless REPLACE_*_H macros
7989         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7990         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7991         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7992         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7993         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7994         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7995         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7996         * m4/btowc.m4: Update callers.
7997         * m4/dirfd.m4: Likewise.
7998         * m4/duplocale.m4: Likewise.
7999         * m4/fchdir.m4: Likewise.
8000         * m4/fdopendir.m4: Likewise.
8001         * m4/inet_ntop.m4: Likewise.
8002         * m4/inet_pton.m4: Likewise.
8003         * m4/ioctl.m4: Likewise.
8004         * m4/mbrlen.m4: Likewise.
8005         * m4/mbrtowc.m4: Likewise.
8006         * m4/mbsinit.m4: Likewise.
8007         * m4/mbsnrtowcs.m4: Likewise.
8008         * m4/mbsrtowcs.m4: Likewise.
8009         * m4/poll.m4: Likewise.
8010         * m4/setlocale.m4: Likewise.
8011         * m4/wcrtomb.m4: Likewise.
8012         * m4/wcsnrtombs.m4: Likewise.
8013         * m4/wcsrtombs.m4: Likewise.
8014         * m4/wctob.m4: Likewise.
8015         * m4/wcwidth.m4: Likewise.
8016         * modules/posix_spawn: Likewise.
8017         * modules/posix_spawn_file_actions_addclose: Likewise.
8018         * modules/posix_spawn_file_actions_adddup2: Likewise.
8019         * modules/posix_spawn_file_actions_addopen: Likewise.
8020         * modules/posix_spawn_file_actions_destroy: Likewise.
8021         * modules/posix_spawn_file_actions_init: Likewise.
8022         * modules/posix_spawnattr_destroy: Likewise.
8023         * modules/posix_spawnattr_getflags: Likewise.
8024         * modules/posix_spawnattr_getpgroup: Likewise.
8025         * modules/posix_spawnattr_getschedparam: Likewise.
8026         * modules/posix_spawnattr_getschedpolicy: Likewise.
8027         * modules/posix_spawnattr_getsigdefault: Likewise.
8028         * modules/posix_spawnattr_getsigmask: Likewise.
8029         * modules/posix_spawnattr_init: Likewise.
8030         * modules/posix_spawnattr_setflags: Likewise.
8031         * modules/posix_spawnattr_setpgroup: Likewise.
8032         * modules/posix_spawnattr_setschedparam: Likewise.
8033         * modules/posix_spawnattr_setschedpolicy: Likewise.
8034         * modules/posix_spawnattr_setsigdefault: Likewise.
8035         * modules/posix_spawnattr_setsigmask: Likewise.
8036         * modules/posix_spawnp: Likewise.
8037
8038 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8039
8040         Add option to do-release-commit-and-tag to specify branch.
8041         * build-aux/do-release-commit-and-tag: Add --branch.
8042
8043 2011-05-03  Bruno Haible  <bruno@clisp.org>
8044
8045         Avoid unnecessary compilation units, through conditional dependencies.
8046         * modules/accept (Depends-on): Add conditions to the dependencies.
8047         * modules/acosl (Depends-on): Likewise.
8048         * modules/argz (Depends-on): Likewise.
8049         * modules/asinl (Depends-on): Likewise.
8050         * modules/atanl (Depends-on): Likewise.
8051         * modules/atoll (Depends-on): Likewise.
8052         * modules/bind (Depends-on): Likewise.
8053         * modules/btowc (Depends-on): Likewise.
8054         * modules/canonicalize-lgpl (Depends-on): Likewise.
8055         * modules/ceil (Depends-on): Likewise.
8056         * modules/ceilf (Depends-on): Likewise.
8057         * modules/ceill (Depends-on): Likewise.
8058         * modules/chdir-long (Depends-on): Likewise.
8059         * modules/chown (Depends-on): Likewise.
8060         * modules/close (Depends-on): Likewise.
8061         * modules/connect (Depends-on): Likewise.
8062         * modules/cosl (Depends-on): Likewise.
8063         * modules/dirfd (Depends-on): Likewise.
8064         * modules/dprintf (Depends-on): Likewise.
8065         * modules/dprintf-posix (Depends-on): Likewise.
8066         * modules/error (Depends-on): Likewise.
8067         * modules/euidaccess (Depends-on): Likewise.
8068         * modules/expl (Depends-on): Likewise.
8069         * modules/faccessat (Depends-on): Likewise.
8070         * modules/fchdir (Depends-on): Likewise.
8071         * modules/fclose (Depends-on): Likewise.
8072         * modules/fcntl (Depends-on): Likewise.
8073         * modules/fdopendir (Depends-on): Likewise.
8074         * modules/fflush (Depends-on): Likewise.
8075         * modules/floor (Depends-on): Likewise.
8076         * modules/floorf (Depends-on): Likewise.
8077         * modules/floorl (Depends-on): Likewise.
8078         * modules/fnmatch (Depends-on): Likewise.
8079         * modules/fopen (Depends-on): Likewise.
8080         * modules/fprintf-posix (Depends-on): Likewise.
8081         * modules/frexp (Depends-on): Likewise.
8082         * modules/frexp-nolibm (Depends-on): Likewise.
8083         * modules/frexpl (Depends-on): Likewise.
8084         * modules/frexpl-nolibm (Depends-on): Likewise.
8085         * modules/fseek (Depends-on): Likewise.
8086         * modules/fsusage (Depends-on): Likewise.
8087         * modules/ftell (Depends-on): Likewise.
8088         * modules/ftello (Depends-on): Likewise.
8089         * modules/futimens (Depends-on): Likewise.
8090         * modules/getcwd (Depends-on): Likewise.
8091         * modules/getcwd-lgpl (Depends-on): Likewise.
8092         * modules/getdelim (Depends-on): Likewise.
8093         * modules/getdomainname (Depends-on): Likewise.
8094         * modules/getgroups (Depends-on): Likewise.
8095         * modules/gethostname (Depends-on): Likewise.
8096         * modules/getline (Depends-on): Likewise.
8097         * modules/getlogin_r (Depends-on): Likewise.
8098         * modules/getopt-posix (Depends-on): Likewise.
8099         * modules/getpeername (Depends-on): Likewise.
8100         * modules/getsockname (Depends-on): Likewise.
8101         * modules/getsockopt (Depends-on): Likewise.
8102         * modules/getsubopt (Depends-on): Likewise.
8103         * modules/getusershell (Depends-on): Likewise.
8104         * modules/glob (Depends-on): Likewise.
8105         * modules/grantpt (Depends-on): Likewise.
8106         * modules/iconv_open (Depends-on): Likewise.
8107         * modules/iconv_open-utf (Depends-on): Likewise.
8108         * modules/inet_ntop (Depends-on): Likewise.
8109         * modules/inet_pton (Depends-on): Likewise.
8110         * modules/ioctl (Depends-on): Likewise.
8111         * modules/isapipe (Depends-on): Likewise.
8112         * modules/isfinite (Depends-on): Likewise.
8113         * modules/isinf (Depends-on): Likewise.
8114         * modules/lchown (Depends-on): Likewise.
8115         * modules/ldexpl (Depends-on): Likewise.
8116         * modules/link (Depends-on): Likewise.
8117         * modules/linkat (Depends-on): Likewise.
8118         * modules/listen (Depends-on): Likewise.
8119         * modules/logl (Depends-on): Likewise.
8120         * modules/lstat (Depends-on): Likewise.
8121         * modules/mbrlen (Depends-on): Likewise.
8122         * modules/mbrtowc (Depends-on): Likewise.
8123         * modules/mbsinit (Depends-on): Likewise.
8124         * modules/mbsnrtowcs (Depends-on): Likewise.
8125         * modules/mbsrtowcs (Depends-on): Likewise.
8126         * modules/mbtowc (Depends-on): Likewise.
8127         * modules/memcmp (Depends-on): Likewise.
8128         * modules/mkdir (Depends-on): Likewise.
8129         * modules/mkdtemp (Depends-on): Likewise.
8130         * modules/mkfifo (Depends-on): Likewise.
8131         * modules/mkfifoat (Depends-on): Likewise.
8132         * modules/mknod (Depends-on): Likewise.
8133         * modules/mkostemp (Depends-on): Likewise.
8134         * modules/mkostemps (Depends-on): Likewise.
8135         * modules/mkstemp (Depends-on): Likewise.
8136         * modules/mkstemps (Depends-on): Likewise.
8137         * modules/mktime (Depends-on): Likewise.
8138         * modules/nanosleep (Depends-on): Likewise.
8139         * modules/open (Depends-on): Likewise.
8140         * modules/openat (Depends-on): Likewise.
8141         * modules/perror (Depends-on): Likewise.
8142         * modules/poll (Depends-on): Likewise.
8143         * modules/popen (Depends-on): Likewise.
8144         * modules/posix_spawn (Depends-on): Likewise.
8145         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8146         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8147         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8148         * modules/posix_spawnp (Depends-on): Likewise.
8149         * modules/pread (Depends-on): Likewise.
8150         * modules/printf-posix (Depends-on): Likewise.
8151         * modules/ptsname (Depends-on): Likewise.
8152         * modules/putenv (Depends-on): Likewise.
8153         * modules/pwrite (Depends-on): Likewise.
8154         * modules/readline (Depends-on): Likewise.
8155         * modules/readlink (Depends-on): Likewise.
8156         * modules/readlinkat (Depends-on): Likewise.
8157         * modules/recv (Depends-on): Likewise.
8158         * modules/recvfrom (Depends-on): Likewise.
8159         * modules/regex (Depends-on): Likewise.
8160         * modules/remove (Depends-on): Likewise.
8161         * modules/rename (Depends-on): Likewise.
8162         * modules/renameat (Depends-on): Likewise.
8163         * modules/rmdir (Depends-on): Likewise.
8164         * modules/round (Depends-on): Likewise.
8165         * modules/roundf (Depends-on): Likewise.
8166         * modules/roundl (Depends-on): Likewise.
8167         * modules/rpmatch (Depends-on): Likewise.
8168         * modules/select (Depends-on): Likewise.
8169         * modules/send (Depends-on): Likewise.
8170         * modules/sendto (Depends-on): Likewise.
8171         * modules/setenv (Depends-on): Likewise.
8172         * modules/setlocale (Depends-on): Likewise.
8173         * modules/setsockopt (Depends-on): Likewise.
8174         * modules/shutdown (Depends-on): Likewise.
8175         * modules/sigaction (Depends-on): Likewise.
8176         * modules/signbit (Depends-on): Likewise.
8177         * modules/sigprocmask (Depends-on): Likewise.
8178         * modules/sinl (Depends-on): Likewise.
8179         * modules/sleep (Depends-on): Likewise.
8180         * modules/snprintf (Depends-on): Likewise.
8181         * modules/snprintf-posix (Depends-on): Likewise.
8182         * modules/socket (Depends-on): Likewise.
8183         * modules/sprintf-posix (Depends-on): Likewise.
8184         * modules/sqrtl (Depends-on): Likewise.
8185         * modules/stat (Depends-on): Likewise.
8186         * modules/strchrnul (Depends-on): Likewise.
8187         * modules/strdup-posix (Depends-on): Likewise.
8188         * modules/strerror (Depends-on): Likewise.
8189         * modules/strerror_r-posix (Depends-on): Likewise.
8190         * modules/strndup (Depends-on): Likewise.
8191         * modules/strnlen (Depends-on): Likewise.
8192         * modules/strptime (Depends-on): Likewise.
8193         * modules/strsep (Depends-on): Likewise.
8194         * modules/strsignal (Depends-on): Likewise.
8195         * modules/strstr-simple (Depends-on): Likewise.
8196         * modules/strtod (Depends-on): Likewise.
8197         * modules/strtoimax (Depends-on): Likewise.
8198         * modules/strtok_r (Depends-on): Likewise.
8199         * modules/strtoumax (Depends-on): Likewise.
8200         * modules/symlink (Depends-on): Likewise.
8201         * modules/symlinkat (Depends-on): Likewise.
8202         * modules/tanl (Depends-on): Likewise.
8203         * modules/tcgetsid (Depends-on): Likewise.
8204         * modules/tmpfile (Depends-on): Likewise.
8205         * modules/trunc (Depends-on): Likewise.
8206         * modules/truncf (Depends-on): Likewise.
8207         * modules/truncl (Depends-on): Likewise.
8208         * modules/uname (Depends-on): Likewise.
8209         * modules/unlink (Depends-on): Likewise.
8210         * modules/unlockpt (Depends-on): Likewise.
8211         * modules/unsetenv (Depends-on): Likewise.
8212         * modules/usleep (Depends-on): Likewise.
8213         * modules/utimensat (Depends-on): Likewise.
8214         * modules/vasprintf (Depends-on): Likewise.
8215         * modules/vdprintf (Depends-on): Likewise.
8216         * modules/vdprintf-posix (Depends-on): Likewise.
8217         * modules/vfprintf-posix (Depends-on): Likewise.
8218         * modules/vprintf-posix (Depends-on): Likewise.
8219         * modules/vsnprintf (Depends-on): Likewise.
8220         * modules/vsnprintf-posix (Depends-on): Likewise.
8221         * modules/vsprintf-posix (Depends-on): Likewise.
8222         * modules/wcrtomb (Depends-on): Likewise.
8223         * modules/wcscasecmp (Depends-on): Likewise.
8224         * modules/wcscspn (Depends-on): Likewise.
8225         * modules/wcsdup (Depends-on): Likewise.
8226         * modules/wcsncasecmp (Depends-on): Likewise.
8227         * modules/wcsnrtombs (Depends-on): Likewise.
8228         * modules/wcspbrk (Depends-on): Likewise.
8229         * modules/wcsrtombs (Depends-on): Likewise.
8230         * modules/wcsspn (Depends-on): Likewise.
8231         * modules/wcsstr (Depends-on): Likewise.
8232         * modules/wcstok (Depends-on): Likewise.
8233         * modules/wcswidth (Depends-on): Likewise.
8234         * modules/wctob (Depends-on): Likewise.
8235         * modules/wctomb (Depends-on): Likewise.
8236         * modules/wctype (Depends-on): Likewise.
8237         * modules/wcwidth (Depends-on): Likewise.
8238         * modules/write (Depends-on): Likewise.
8239
8240 2011-05-03  Bruno Haible  <bruno@clisp.org>
8241
8242         Support for conditional dependencies.
8243         * doc/gnulib.texi (Module description): Document the syntax of
8244         conditional dependencies.
8245         * gnulib-tool: New option --conditional-dependencies.
8246         (func_usage): Document it.
8247         (cond_dependencies): New variable.
8248         (func_get_automake_snippet_conditional,
8249         func_get_automake_snippet_unconditional): New functions, extracted from
8250         func_get_automake_snippet.
8251         (func_get_automake_snippet): Use them.
8252         (sed_first_32_chars): New variable.
8253         (func_module_shellfunc_name): New function.
8254         (func_module_shellvar_name): New function.
8255         (func_module_conditional_name): New function.
8256         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8257         func_cond_module_condition): New functions.
8258         (func_modules_transitive_closure): Add support for conditional
8259         dependencies.
8260         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8261         conditional automake snippet in an automake conditional.
8262         (func_emit_autoconf_snippets): Emit shell functions that contain the
8263         code for conditional modules.
8264         (func_import, func_create_testdir): Update specification.
8265
8266 2011-05-03  Eric Blake  <eblake@redhat.com>
8267
8268         test-getaddrinfo: report error information
8269         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8270
8271 2011-05-03  Jim Meyering  <meyering@redhat.com>
8272
8273         bootstrap: avoid build failure when $GZIP is set
8274         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8275         program name.  If defined at all, it is supposed to list gzip options.
8276         Reported by Alan Curry in http://debbugs.gnu.org/8609
8277
8278 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8279
8280         readme-release: new module with release instructions
8281         * modules/readme-release: New module.
8282         * top/README-release: New file, from coreutils, grep, diffutils.
8283         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8284
8285 2011-05-02  Eric Blake  <eblake@redhat.com>
8286
8287         fflush: also replace fclose when fixing fflush
8288         * modules/fflush (Depends-on): Add fclose.
8289         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8290         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8291         memstreams with no backing fd.
8292         * doc/posix-functions/fclose.texi (fclose): Document the use of
8293         fflush module to fix the bug.
8294         * tests/test-fclose.c (main): Relax test when fclose is used in
8295         isolation.
8296
8297         fclose: add some tests
8298         * modules/fclose-tests: New test module.
8299         * tests/test-fclose.c: New file.
8300         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8301
8302         fclose: reduced dependencies
8303         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8304         simpler lseek.
8305         * lib/fclose.c (rpl_fclose): Likewise.
8306         Reported by Simon Josefsson.
8307
8308         exit: drop remaining clients
8309         * modules/argmatch (Depends-on): Replace exit with stdlib.
8310         * modules/copy-file (Depends-on): Likewise.
8311         * modules/execute (Depends-on): Likewise.
8312         * modules/exitfail (Depends-on): Likewise.
8313         * modules/obstack (Depends-on): Likewise.
8314         * modules/pagealign_alloc (Depends-on): Likewise.
8315         * modules/pipe-filter-gi (Depends-on): Likewise.
8316         * modules/pipe-filter-ii (Depends-on): Likewise.
8317         * modules/savewd (Depends-on): Likewise.
8318         * modules/spawn-pipe (Depends-on): Likewise.
8319         * modules/wait-process (Depends-on): Likewise.
8320         * modules/xsetenv (Depends-on): Likewise.
8321         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8322         * modules/git-merge-changelog (Depends-on): Likewise.
8323         * modules/long-options (Depends-on): Likewise.
8324         * modules/pt_chown (Depends-on): Likewise.
8325         * modules/sysexits (Depends-on): Likewise.
8326
8327         freading: relax license from LGPLv3+ to LGPLv2+
8328         * modules/freading (License): Relax LGPL version.
8329
8330 2011-05-02  Bruno Haible  <bruno@clisp.org>
8331
8332         fchdir: Remove unused dependencies.
8333         * modules/fchdir (Depends-on): Remove include_next.
8334
8335 2011-05-02  Bruno Haible  <bruno@clisp.org>
8336
8337         gnulib-tool: Refactor.
8338         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8339         from func_emit_autoconf_snippets.
8340         (func_emit_autoconf_snippets): Use it.
8341
8342 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8343
8344         * NEWS: Document removal of 'exit'.
8345         * modules/exit: Remove file.
8346
8347 2011-05-01  Bruno Haible  <bruno@clisp.org>
8348
8349         Update DEPENDENCIES.
8350         * DEPENDENCIES (gettext): Recommend the newest release.
8351         Reported by Simon Josefsson.
8352
8353 2011-05-01  Bruno Haible  <bruno@clisp.org>
8354
8355         gnulib-tool: Reduce code duplication.
8356         * gnulib-tool (func_emit_autoconf_snippets): New function.
8357         (func_import, func_create_testdir): Use it.
8358
8359 2011-04-30  Eric Blake  <eblake@redhat.com>
8360
8361         fclose: don't fail on non-seekable input stream
8362         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8363         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8364         since fflush is allowed to fail in that case.
8365
8366 2011-04-30  Bruno Haible  <bruno@clisp.org>
8367
8368         dup3: cleanup
8369         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8370
8371 2011-04-30  Bruno Haible  <bruno@clisp.org>
8372
8373         netdb: Make it work in C++ mode.
8374         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8375         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8376         module.
8377         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8378         gl_MODULE_INDICATOR_FOR_TESTS.
8379         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8380         * modules/netdb-c++-tests: New file.
8381         * tests/test-netdb-c++.cc: New file.
8382
8383 2011-04-30  Bruno Haible  <bruno@clisp.org>
8384
8385         New modules 'vfscanf', 'vscanf'.
8386         * modules/vfscanf: New file.
8387         * modules/vscanf: New file.
8388         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8389         here.
8390         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8391         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8392
8393 2011-04-30  Bruno Haible  <bruno@clisp.org>
8394
8395         passfd: Add comments.
8396         * lib/passfd.c: Add comments about platforms.
8397
8398 2011-04-30  Bruno Haible  <bruno@clisp.org>
8399
8400         sys_uio: Make <sys/uio.h> self-contained.
8401         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8402         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8403
8404 2011-04-30  Bruno Haible  <bruno@clisp.org>
8405
8406         sys_socket: Ensure 'struct iovec' definition.
8407         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8408         <sys/socket.h>.
8409         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8410
8411 2011-04-30  Bruno Haible  <bruno@clisp.org>
8412
8413         sys_uio: Protect definition of 'struct iovec'.
8414         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8415         it as a C struct.
8416
8417 2011-04-30  Bruno Haible  <bruno@clisp.org>
8418
8419         manywarnings: fix indentation
8420         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8421
8422 2011-04-30  Pádraig Brady <P@draigBrady.com>
8423
8424         manywarnings: add -Wno-missing-field-initializers if needed.
8425         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8426         option if it's needed to allow initialization with { 0, }
8427
8428 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8429
8430         announce-gen: cosmetic improvement
8431         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8432
8433 2011-04-29  Jim Meyering  <meyering@redhat.com>
8434
8435         vc-list-files: indent with spaces, not TABs
8436         * build-aux/vc-list-files: Convert leading TABs to spaces,
8437         to match the style of most other files in gnulib.
8438
8439         announce-gen: indent with spaces, not TABs
8440         * build-aux/announce-gen: Convert all TABs to spaces, to match
8441         the style of most other files in gnulib.
8442
8443 2011-04-29  Eric Blake  <eblake@redhat.com>
8444
8445         quotearg: avoid uninitialized variable use
8446         * lib/quotearg.c (quoting_options_from_style): Initialize
8447         remaining fields, and ensure that custom styles are only used via
8448         quoting_options rather than quoting_style.
8449
8450 2011-04-29  Jim Meyering  <meyering@redhat.com>
8451
8452         maint.mk: remove unused VC-tag variable
8453         * top/maint.mk (VC-tag): Remove unused variable.
8454
8455 2011-04-29  Bruno Haible  <bruno@clisp.org>
8456
8457         netdb: fix gai_strerror replacements
8458         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8459         * modules/netdb: Substitute it.
8460
8461 2011-04-29  Jim Meyering  <meyering@redhat.com>
8462
8463         test-getcwd.c: avoid new set-but-not-used warning
8464         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8465         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8466         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8467         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8468
8469         test-hash.c: avoid a new shadowing warning
8470         * tests/test-hash.c (main): Don't shadow "dup".
8471
8472 2011-04-28  Eric Blake  <eblake@redhat.com>
8473
8474         getaddrinfo: fix gai_strerror signature
8475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8476         and work around mingw with UNICODE defined.
8477         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8478         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8479         * modules/netdb (Makefile.am): Substitute it.
8480         * lib/netdb.in.h (gai_strerror): Declare replacement.
8481         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8482         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8483         the fix.
8484
8485         getsockopt: avoid compiler warning
8486         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8487         Reported by Matthias Bolte.
8488
8489         tests: drop unused link dependency
8490         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8491         * modules/dirent-safer-tests (Makefile.am): Likewise.
8492         * modules/fdopendir-tests (Makefile.am): Likewise.
8493         * modules/mkfifoat-tests (Makefile.am): Likewise.
8494         * modules/openat-safer-tests (Makefile.am): Likewise.
8495         * modules/openat-tests (Makefile.am): Likewise.
8496         * modules/readlinkat-tests (Makefile.am): Likewise.
8497         * modules/symlinkat-tests (Makefile.am): Likewise.
8498         * modules/linkat-tests (Makefile.am): Likewise.
8499         (Depends-on): Switch to filenamecat-lgpl.
8500         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8501         LIBINTL.
8502         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8503         * tests/test-linkat.c (main): Don't require xalloc.
8504
8505         hash, mgetgroups: drop xalloc dependency
8506         * lib/hash.c (includes): Adjust includes.
8507         * lib/mgetgroups.c (includes): Likewise.
8508         (xgetgroups): Move...
8509         * lib/xgetgroups.c: ...to new file.
8510         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8511         * modules/xgetgroups: New file, split from...
8512         * modules/mgetgroups: ...here.
8513         (Depends-on): Add xalloc-oversized.
8514         * modules/hash (Depends-on): Likewise.
8515         * modules/hash-tests (Depends-on): Drop xalloc.
8516         (test_hash_LDADD): Drop unused library.
8517         * tests/test-hash.c (main): Break xalloc dependency.
8518         (includes): Drop unused include.
8519
8520         xalloc-oversized: new module
8521         * modules/xalloc-oversized: New module.
8522         * modules/xalloc (Depends-on): Add it.
8523         * lib/xalloc.h (xalloc_oversized): Move...
8524         * lib/xalloc-oversized.h: ...into new file.
8525
8526         utimecmp: drop dependency on xmalloc
8527         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8528         due to memory pressure.
8529         * modules/utimecmp (Depends-on): Drop xalloc.
8530
8531 2011-04-27  Eric Blake  <eblake@redhat.com>
8532
8533         getcwd: fix mingw bugs
8534         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8535         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8536         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8537
8538 2011-04-27  Bruno Haible  <bruno@clisp.org>
8539
8540         mkstemps: Ensure declaration on MacOS X 10.5.
8541         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8542         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8543         MacOS X.
8544
8545 2011-04-27  Bruno Haible  <bruno@clisp.org>
8546
8547         mkstemp: More documentation.
8548         * doc/posix-functions/mkstemp.texi: Document header file problem on
8549         MacOS X.
8550
8551 2011-04-27  Bruno Haible  <bruno@clisp.org>
8552
8553         mkstemp: Tweak configure message when cross-compiling.
8554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8555         result as a guess.
8556
8557 2011-04-27  Bruno Haible  <bruno@clisp.org>
8558
8559         clean-temp: Clarify what it does.
8560         * lib/clean-temp.h: Add more comments.
8561         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8562         module.
8563         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8564         * doc/glibc-functions/mkstemps.texi: Likewise.
8565         * doc/glibc-functions/mkostemps.texi: Likewise.
8566
8567 2011-04-27  Eric Blake  <eblake@redhat.com>
8568
8569         fchdir: avoid extra chdir and fix test
8570         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8571         getcwd-lgpl.
8572         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8573         have to be canonical.
8574         (canonicalize_file_name): Drop unused macro.
8575         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8576
8577         filenamecat-lgpl: fix licence
8578         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8579         when it was first created.
8580
8581         linkat, renameat: add missing dependency
8582         * modules/linkat (Depends-on): Require getcwd-lgpl.
8583         * modules/renameat (Depends-on): Likewise.
8584
8585         tests: reduce dependencies
8586         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8587         * tests/test-renameat.c (main): Likewise.
8588         * modules/linkat-tests (Depends-on): Relax dependency.
8589         * modules/renameat-tests (Depends-on): Likewise.
8590         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8591         dependency explicit.
8592
8593         save-cwd: reduce default dependency
8594         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8595         * lib/save-cwd.c: Update comments.
8596         * NEWS: Document the semantic change.
8597
8598         getcwd: enhance tests
8599         * tests/test-getcwd-lgpl.c: New file, taken from...
8600         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8601         repeat long path stress tests from m4 probe.
8602         * modules/getcwd-lgpl-tests: New module.
8603         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8604         * m4/getcwd-abort-bug.m4: Update comment.
8605         * m4/getcwd-path-max.m4: Likewise.
8606
8607         getcwd-lgpl: new module
8608         * modules/getcwd-lgpl: New module.
8609         * lib/getcwd-lgpl.c: New file.
8610         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8611         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8612         * modules/getcwd (configure.ac): Set C witness.
8613         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8614
8615         getcwd: tweak comments
8616         * m4/getcwd-abort-bug.m4: Fix comments.
8617         * m4/getcwd-path-max.m4: Likewise.
8618         * m4/getcwd.m4: Likewise.
8619
8620 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8621         and Eric Blake  <eblake@redhat.com>
8622
8623         mkstemp: replace if system version uses wrong permissions
8624         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8625         read/write mode bits set in file created by mkstemp.
8626         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8627
8628 2011-04-27  Eric Blake  <eblake@redhat.com>
8629
8630         passfd: avoid compiler warning
8631         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8632         Reported by Laine Stump.
8633
8634 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8635
8636         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8637         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8638
8639 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8640         and Eric Blake  <eblake@redhat.com>
8641
8642         mkstemp: mention clean-temp module
8643         * lib/mkstemp.c: Add comment.
8644         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8645
8646 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8647
8648         inttypes: also provide default values for 32-bit tests
8649         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8650         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8651
8652 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8653
8654         strtoumax: remove dependency on strtoimax
8655         This is like the strtoull change of yesterday.
8656         * modules/strtoumax (Files): Add lib/strtoimax.c.
8657         (Depends-on): Remove strtoimax and add verify.
8658
8659         inttypes-incomplete: new module
8660         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8661         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8662         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8663         of gl_INTTYPES_H.
8664         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8665         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8666         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8667         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8668         * modules/strtoumax, modules/xstrtol (Depends-on):
8669         Depend on inttypes-incomplete, not inttypes.
8670         * modules/inttypes-incomplete: New module, containing the contents
8671         of the old modules/inttypes module, except that the Files: section
8672         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8673         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8674         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8675         (Depends-on): Depend only on inttypes-incomplete.
8676         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8677
8678         inttypes: omit now-redundant strtoimax and strtoumax work
8679         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8680         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8681
8682         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8683         This supports apps that need pointers to strtoimax and strtoumax,
8684         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8685         nonexistent functions.  See
8686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8687         et seq.
8688         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8689         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8690         a macro.
8691         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8692
8693 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8694
8695         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8696
8697 2011-04-25  Bruno Haible  <bruno@clisp.org>
8698
8699         strtol, strtoul: Mark modules as obsolete.
8700         * modules/strtol (Status, Notice): New sections.
8701         * modules/strtoul (Status, Notice): New sections.
8702
8703 2011-04-25  Bruno Haible  <bruno@clisp.org>
8704
8705         strtod: Remove check for strtod, unless supporting old platforms.
8706         * modules/strtod-obsolete: New file.
8707         * m4/strtod-obsolete.m4: New file.
8708         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8709         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8710         * modules/strtod (Depends-on): Add strtod-obsolete.
8711         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8712
8713 2011-04-25  Bruno Haible  <bruno@clisp.org>
8714
8715         strcase: Make module obsolete.
8716         * modules/strcase (Status, Notice): New sections.
8717
8718 2011-04-25  Bruno Haible  <bruno@clisp.org>
8719
8720         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8721         * modules/dup2-obsolete: New file.
8722         * m4/dup2-obsolete.m4: New file.
8723         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8724         gl_FUNC_DUP2_OBSOLETE is not also defined.
8725         * modules/dup2 (Depends-on): Add dup2-obsolete.
8726         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8727
8728 2011-04-25  Bruno Haible  <bruno@clisp.org>
8729
8730         strnlen: Avoid memchr related link error on old obsolete platforms.
8731         * modules/memchr-obsolete: New file.
8732         * m4/memchr-obsolete.m4: New file.
8733         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8734         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8735         * modules/memchr (Depends-on): Add memchr-obsolete.
8736         * modules/strnlen (Depends-on): Likewise.
8737         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8738
8739 2011-04-25  Jim Meyering  <meyering@redhat.com>
8740
8741         maint.mk: makefile_at_at_check extend and clean up
8742         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8743         in addition to */Makefile.am.
8744         Exempt legitimate uses of @VAR@ notation, e.g.,
8745         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8746         Remove obsolete coreutils-specific comment.
8747         Prompted by discussion here:
8748         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8749
8750 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8751
8752         strtoul: remove dependency on strtol
8753         This is so that 'configure' need not check for strtol merely because
8754         the application needs strtoul.
8755         * modules/strtoul (Files): Add lib/strtol.c.
8756         (Depends-on): Remove strtol.
8757
8758         strtoull: remove dependency on strtoul
8759         This is like the strtoll change.
8760         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8761         (Depends-on): Remove strtoul.
8762
8763         strtoll: remove dependency on strtol
8764         This is so that 'configure' need not check for strtol merely because
8765         the application needs strtoll.
8766         * modules/strtoll (Files): Add lib/strtol.c.
8767         (Depends-on): Remove strtol.
8768
8769 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8770
8771         inttypes: Move some configure check to module 'imaxdiv'.
8772         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8773         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8774         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8775
8776 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8777
8778         inttypes: Move some configure check to module 'imaxabs'.
8779         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8780         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8781         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8782
8783 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8784
8785         inttypes: Remove configure tests that are not needed since 2009-12-31.
8786         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8787         gl_cv_header_working_inttypes_h.
8788
8789 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8790
8791         * modules/strnlen (Depends-on): Remove memchr.
8792         The strnlen implementation doesn't need the memchr module's fixes; see
8793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8794
8795         strtol: remove dependency on wchar
8796         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8797         * modules/strtol (Depends-on): Remove wchar.
8798
8799 2011-04-21  Eric Blake  <eblake@redhat.com>
8800
8801         passfd: fix test regression on Linux
8802         * modules/passfd-tests (configure.ac): Correct socketpair check.
8803
8804         passfd: speed up configure and drop unused code
8805         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8806         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8807         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8808         Instead of probing at configure for unix_scm_rights_bsd44_way,
8809         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8810         check to a struct member probe.
8811         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8812         (sendfd, recvfd): Update preprocessor checks.
8813         * modules/passfd (Files): Reflect rename, and drop unused file.
8814         (Depends-on): Drop unused dependency.
8815
8816         passfd: allow compilation on mingw
8817         * modules/sys_socket (Depends-on): Add sys_uio.
8818         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8819         iovec and a minimal struct msghdr.
8820         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8821         * tests/test-sys_socket.c (main): Enhance test.
8822         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8823         guaranteed to provide what we need.
8824         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8825         * modules/passfd-tests (Depends-on): Add sys_wait.
8826         * tests/test-passfd.c (main): Skip test on mingw, for now.
8827         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8828         partial 'struct msghdr' implementation.
8829
8830         sys_uio: new module
8831         * modules/sys_uio: New module.
8832         * modules/sys_uio-tests: Likewise.
8833         * lib/sys_uio.in.h: New file.
8834         * m4/sys_uio_h.m4: Likewise.
8835         * tests/test-sys_uio.c: Likewise.
8836         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8837         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8838
8839 2011-04-20  Jim Meyering  <meyering@redhat.com>
8840
8841         useless-if-before-free: avoid false-positive
8842         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8843         disjunct so that it too requires a terminating ";".  Without that,
8844         this script would identify as useless one statement from gcc that
8845         was not:
8846           if (aligned_ptr)
8847             free (((void **) aligned_ptr) [-1]);
8848
8849 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8850
8851         doc: update users.txt.
8852         * users.txt: Add barcode.
8853
8854 2011-04-19  Bruno Haible  <bruno@clisp.org>
8855
8856         ioctl: Remove link dependency on native Windows.
8857         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8858         (gl_close_fn, gl_ioctl_fn): New types.
8859         (struct fd_hook): Renamed from struct close_hook. Change type of
8860         private_close_fn field. Add private_ioctl_fn field.
8861         (close_hook_fn): Add parameter for primary close method.
8862         (execute_close_hooks, execute_all_close_hooks): Likewise.
8863         (ioctl_hook_fn): New type.
8864         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8865         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8866         argument.
8867         (unregister_fd_hook): Renamed from unregister_close_hook.
8868         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8869         Don't include <unistd.h>.
8870         (close): Remove undef.
8871         (anchor): Update.
8872         (execute_close_hooks): Add argument for primary close method.
8873         (execute_all_close_hooks): Likewise.
8874         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8875         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8876         argument. Allow each argument to be NULL.
8877         (unregister_fd_hook): Renamed from unregister_close_hook.
8878         * lib/close.c (rpl_close): Pass 'close' function pointer to
8879         execute_all_close_hooks.
8880         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8881         (primary_ioctl): New function.
8882         (ioctl): Don't call ioctlsocket here. Instead, call
8883         execute_all_ioctl_hooks.
8884         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8885         close method.
8886         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8887         (fd_sockets_hook): Renamed from close_sockets_hook.
8888         (gl_sockets_startup, gl_sockets_cleanup): Update.
8889         * modules/fd-hook: Renamed from modules/close-hook. Update.
8890         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8891         * modules/sockets (Depends-on): Likewise.
8892         * modules/ioctl (Depends-on): Add fd-hook.
8893         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8894         GNULIB_SOCKET.
8895
8896 2011-04-19  Bruno Haible  <bruno@clisp.org>
8897
8898         Move the support of O_NONBLOCK in open() to the 'open' module.
8899         * modules/nonblocking (Depends-on): Remove 'open'.
8900         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8901         gl_cv_have_open_O_NONBLOCK.
8902         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8903         O_NONBLOCK support.
8904         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8905
8906 2011-04-17  Bruno Haible  <bruno@clisp.org>
8907
8908         pipe2: Simplify code.
8909         * lib/pipe2.c (pipe2): Reduce code duplication.
8910
8911 2011-04-17  Bruno Haible  <bruno@clisp.org>
8912
8913         nonblocking: Add comment.
8914         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8915
8916 2011-04-17  Bruno Haible  <bruno@clisp.org>
8917
8918         nonblocking: Add tests for sockets.
8919         * tests/test-nonblocking-socket.sh: New file.
8920         * tests/test-nonblocking-socket-main.c: New file.
8921         * tests/test-nonblocking-socket-child.c: New file.
8922         * tests/test-nonblocking-socket.h: New file.
8923         * tests/socket-server.h: New file.
8924         * tests/socket-client.h: New file.
8925         * modules/nonblocking-socket-tests: New file.
8926         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8927
8928 2011-04-17  Bruno Haible  <bruno@clisp.org>
8929
8930         nonblocking: Add tests for pipes.
8931         * tests/test-nonblocking-pipe.sh: New file.
8932         * tests/test-nonblocking-pipe-main.c: New file.
8933         * tests/test-nonblocking-pipe-child.c: New file.
8934         * tests/test-nonblocking-pipe.h: New file.
8935         * tests/test-nonblocking-writer.h: New file.
8936         * tests/test-nonblocking-reader.h: New file.
8937         * tests/test-nonblocking-misc.h: New file.
8938         * modules/nonblocking-pipe-tests: New file.
8939         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8940
8941 2011-04-16  Bruno Haible  <bruno@clisp.org>
8942
8943         gettext: Clarify the needed programmer actions.
8944         * modules/gettext (Notice): New field.
8945         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8946
8947 2011-04-16  Bruno Haible  <bruno@clisp.org>
8948
8949         strchrnul: Tweak last commit.
8950         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8951         bug.
8952         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8953         as in _GL_FUNCDECL_SYS.
8954         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8955         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8956
8957 2011-04-15  Eric Blake  <eblake@redhat.com>
8958
8959         strchrnul: work around cygwin bug
8960         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8961         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8963         * modules/string (Makefile.am): Substitute it.
8964         * lib/string.in.h (strchrnul): Use it.
8965
8966 2011-04-15  Bruno Haible  <bruno@clisp.org>
8967
8968         Don't require lib/stdio-write.c when only module 'stdio' is used.
8969         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8970         invocation.
8971         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8972
8973 2011-04-14  Bruno Haible  <bruno@clisp.org>
8974
8975         Support non-blocking pipe I/O in read() on native Windows.
8976         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8977         (read): New declaration.
8978         * lib/read.c: New file.
8979         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8980         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8981         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8982         vscanf): New declarations.
8983         * lib/stdio-read.c: New file.
8984         * m4/read.m4: New file.
8985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8986         REPLACE_READ.
8987         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8988         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8989         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8990         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8991         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8992         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8993         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8994         * modules/read: New file.
8995         * modules/nonblocking (Files): Add lib/stdio-read.c.
8996         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8997         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8998         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8999         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9000         * modules/pread (Depends-on): Add read.
9001         * modules/safe-read (Depends-on): Likewise.
9002         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9003         gets, scanf, vfscanf, vscanf): Verify signatures.
9004         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9005         problem with non-blocking pipes.
9006         * doc/posix-functions/fgetc.texi: Likewise.
9007         * doc/posix-functions/fgets.texi: Likewise.
9008         * doc/posix-functions/fread.texi: Likewise.
9009         * doc/posix-functions/fscanf.texi: Likewise.
9010         * doc/posix-functions/getc.texi: Likewise.
9011         * doc/posix-functions/getchar.texi: Likewise.
9012         * doc/posix-functions/gets.texi: Likewise.
9013         * doc/posix-functions/scanf.texi: Likewise.
9014         * doc/posix-functions/vfscanf.texi: Likewise.
9015         * doc/posix-functions/vscanf.texi: Likewise.
9016
9017 2011-04-14  Bruno Haible  <bruno@clisp.org>
9018
9019         Support non-blocking pipe I/O in write() on native Windows.
9020         * lib/write.c (rpl_write): Split a write request that failed merely
9021         because the byte count was larger than the pipe buffer's size.
9022         * doc/posix-functions/write.texi: Mention the problem with large byte
9023         counts.
9024
9025 2011-04-14  Bruno Haible  <bruno@clisp.org>
9026
9027         wchar: Ensure that wchar_t gets defined on uClibc.
9028         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9029         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9030
9031 2011-04-13  Bruno Haible  <bruno@clisp.org>
9032
9033         safe-write, full-read: Avoid unnecessary compilation units.
9034         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9035         (Depends-on): Remove safe-read. Add ssize_t.
9036         * modules/full-read (Files): Add lib/full-write.c.
9037         (Depends-on): Add full-write.
9038
9039 2011-04-13  Bruno Haible  <bruno@clisp.org>
9040
9041         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9042         * modules/pwrite (Depends-on): Add 'write'.
9043
9044 2011-04-13  Bruno Haible  <bruno@clisp.org>
9045
9046         Support non-blocking pipe I/O in write() on native Windows.
9047         * lib/unistd.in.h (write): Enable replacement also if
9048         GNULIB_UNISTD_H_NONBLOCKING is 1.
9049         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9050         (rpl_write): When failing to write on a non-blocking pipe, change
9051         errno from ENOSPC to EAGAIN.
9052         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9053         putchar, puts, vfprintf, vprintf): Enable replacement also if
9054         GNULIB_STDIO_H_NONBLOCKING is 1.
9055         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9056         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9057         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9058         CALL_WITH_SIGPIPE_EMULATION.
9059         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9060         * m4/nonblocking.m4: New file.
9061         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9062         for non-blocking I/O support.
9063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9064         GNULIB_UNISTD_H_NONBLOCKING.
9065         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9066         required for non-blocking I/O support.
9067         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9068         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9069         lib/stdio-write.c, m4/asm-underscore.m4.
9070         (Depends-on): Add stdio, unistd.
9071         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9072         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9073         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9074         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9075         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9076         problem with non-blocking pipes.
9077         * doc/posix-functions/fputc.texi: Likewise.
9078         * doc/posix-functions/fputs.texi: Likewise.
9079         * doc/posix-functions/fwrite.texi: Likewise.
9080         * doc/posix-functions/printf.texi: Likewise.
9081         * doc/posix-functions/putc.texi: Likewise.
9082         * doc/posix-functions/putchar.texi: Likewise.
9083         * doc/posix-functions/puts.texi: Likewise.
9084         * doc/posix-functions/vfprintf.texi: Likewise.
9085         * doc/posix-functions/vprintf.texi: Likewise.
9086         * doc/posix-functions/write.texi: Likewise.
9087
9088 2011-04-10  Jim Meyering  <meyering@redhat.com>
9089
9090         maint.mk: prohibit doubled words
9091         Detect them also when they're separated by a newline.
9092         There are 3 ways to customize it:
9093           - disable the test on a per file basis, as usual with rules using
9094             $(VC_LIST_EXCEPT)
9095           - replace the default doubled-word-selecting regexp (affects all files)
9096           - ignore a particular file-vs-doubled-word match
9097         I nearly used that last one to ignore the "is is" match in
9098         coreutils' NEWS file, since the text was "ls -is is ..."
9099         To do that, I would have added this line to cfg.mk:
9100           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9101         but it would have ignored any "is is" match in NEWS.
9102         Low probability, but still...
9103         Instead, I changed the text, slightly:
9104           -  ls -is is now consistent with ls -lis in ignoring values returned
9105           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9106         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9107         (prohibit_doubled_word_): Define.
9108         (sc_prohibit_doubled_word): New rule.
9109         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9110
9111 2011-04-10  Jim Meyering  <meyering@redhat.com>
9112
9113         maint: fix doubled-word typo in comment
9114         * m4/gethostname.m4: s/is is/it is/
9115         * m4/getdomainname.m4: Likewise.
9116
9117 2011-04-10  Jim Meyering  <meyering@redhat.com>
9118
9119         maint: remove doubled word: s/it it/it/
9120         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9121
9122 2011-04-10  Jim Meyering  <meyering@redhat.com>
9123
9124         maint.mk: remove useless semicolon and backslash
9125         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9126         semicolon and backslash.
9127
9128 2011-04-10  Bruno Haible  <bruno@clisp.org>
9129
9130         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9131         * modules/stdint-tests (Depends-on): Add wchar.
9132
9133 2011-04-10  Jim Meyering  <meyering@redhat.com>
9134
9135         maint: remove doubled words in comments, e.g., s/a a/a/
9136         * lib/strptime.c (day_of_the_week): s/the the/the/
9137         * tests/test-chown.h (test_chown): s/a a/a/
9138
9139         test-chown.h: correct a cast
9140         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9141         when the destination is a stat.st_gid.
9142
9143 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9144
9145         getaddrinfo: Fix test for sa_len member.
9146         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9147         include <sys/types.h> before <sys/socket.h>.
9148
9149 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9150
9151         maint: change "can not" to "cannot"
9152         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9153         boundaries.
9154
9155 2011-04-09  Jim Meyering  <meyering@redhat.com>
9156
9157         maint: change "a a" to "a"
9158         * tests/test-lchown.h (test_lchown): s/a a/a/
9159
9160         maint.mk: prohibit \<the the\>
9161         * top/maint.mk (sc_prohibit_the_the): New rule.
9162
9163         maint: fix "the the" in comment
9164         * lib/count-one-bits.h: s/the the/the/
9165
9166         maint: change "can not" to "cannot"
9167         But do not change the occurrences in maintain.texi or in
9168         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9169         * doc/gnulib-tool.texi: s/can not/cannot/
9170         * doc/posix-functions/accept.texi (accept): Likewise.
9171         * doc/posix-functions/socket.texi (socket): Likewise.
9172         * lib/mbrtowc.c: Likewise.
9173
9174         maint.mk: prohibit use of "can not"
9175         * top/maint.mk (sc_prohibit_can_not): New rule.
9176         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9177
9178 2011-04-09  Bruno Haible  <bruno@clisp.org>
9179
9180         careadlinkat: Guard against misuse of careadlinkatcwd.
9181         * lib/careadlinkat.c: Include <stdlib.h>.
9182         (careadlinkatcwd): Check that the fd argument is as expected.
9183
9184 2011-04-09  Bruno Haible  <bruno@clisp.org>
9185
9186         careadlinkat: Use common coding style.
9187         * lib/careadlinkat.c: Move gnulib includes after system includes.
9188
9189 2011-04-09  Bruno Haible  <bruno@clisp.org>
9190
9191         careadlinkat: Clarify specification.
9192         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9193         (careadlinkatcwd): Add comment.
9194         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9195
9196 2011-04-09  Bruno Haible  <bruno@clisp.org>
9197
9198         areadlinkat: Avoid link error on many platforms.
9199         * modules/areadlinkat (Depends-on): Add areadlink.
9200
9201 2011-04-09  Bruno Haible  <bruno@clisp.org>
9202
9203         allocator, careadlinkat: Fix double-inclusion guard.
9204         * lib/allocator.h: Fix double-inclusion guard.
9205         * lib/careadlinkat.h: Likewise.
9206
9207 2011-04-09  Bruno Haible  <bruno@clisp.org>
9208
9209         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9210         * lib/relocwrapper.c: Update dependencies hierarchy.
9211         * build-aux/install-reloc: Update list of files to be compiled.
9212         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9213         lib/allocator.[hc].
9214
9215 2011-04-08  Eric Blake  <eblake@redhat.com>
9216
9217         strftime: silence gnulib-tool warning
9218         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9219
9220 2011-04-08  Bruno Haible  <bruno@clisp.org>
9221
9222         verify: Fix syntax error with GCC 4.6 in C++ mode.
9223         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9224         (HAVE_STATIC_ASSERT): New macro.
9225         (verify_true, verify): Use 'static_assert' if it is supported and
9226         '_Static_assert' is not supported.
9227
9228 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9229
9230         allocator: New module.
9231         * modules/allocator, lib/allocator.c: New files.
9232         * lib/allocator.h (stdlib_allocator): New decl.
9233         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9234         Remove.  Do not include <stdlib.h>.
9235         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9236         * modules/careadlinkat (Files): Remove lib/allocator.h.
9237         (Depends-on): Add allocator.
9238
9239         stdlib: let modules use system malloc, realloc
9240         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9241         if !_GL_USE_STDLIB_ALLOC.
9242         (malloc, realloc): Limit this change to a smaller scope.
9243
9244         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9245         (malloc, realloc): Don't #undef; no longer needed.
9246         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9247         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9248         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9249         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9250         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9251         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9252         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9253         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9254
9255         careadlinkat: rename members to avoid problem
9256         * lib/allocator.h (struct allocator): Rename members from
9257         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9258         and realloc are #define'd.  Reported by Eric Blake in
9259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9260         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9261
9262 2011-04-08  Eric Blake  <eblake@redhat.com>
9263
9264         nonblocking: reduce dependency
9265         * tests/test-nonblocking.c: Only test sockets when in use.
9266         * modules/nonblocking-tests (Depends-on): Drop socket.
9267         (Makefile.am): Link even if sockets are not present.
9268         * modules/pipe2-tests (Makefile.am): Likewise.
9269         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9270
9271         pipe2: fix O_NONBLOCK support on mingw
9272         * modules/pipe2 (Depends-on): Add nonblocking.
9273         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9274         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9275         * tests/test-nonblocking.c (main): Likewise.
9276         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9277
9278         fcntl-h: fix O_ACCMODE on cygwin
9279         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9280         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9281
9282         pipe-filter: drop O_NONBLOCK workarounds
9283         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9284         * modules/pipe-filter-ii (Depends-on): Likewise.
9285         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9286
9287         nonblocking: provide O_NONBLOCK for mingw
9288         * modules/nonblocking (Depends-on): Add open.
9289         (configure.ac): Set new witness macro.
9290         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9291         * modules/fcntl-h (Makefile.am): Substitute it.
9292         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9293         nonblocking module is in use.
9294         * lib/nonblocking.c: Adjust portability test.
9295         * lib/open.c (open): Don't let native open see gnulib flag.
9296         * tests/test-fcntl-h.c (main): Enhance test.
9297         * tests/test-open.h (test_open): Likewise.
9298         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9299
9300         careadlinkat: fix compilation error on mingw
9301         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9302         within struct allocator.
9303
9304 2011-04-06  Eric Blake  <eblake@redhat.com>
9305
9306         binary-io: relicense under LGPLv2+
9307         * modules/binary-io (License): Relax to LGPLv2+.
9308         Requested for libvirt, and required by pipe2.
9309
9310 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9311
9312         verify: use _Static_assert if available
9313         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9314         (verify_true, verify): Use it if available.  This generates better
9315         diagnostics with GCC 4.6.0 and later.
9316
9317 2011-04-05  Bruno Haible  <bruno@clisp.org>
9318
9319         Remove leftover generated .h files after config.status changed.
9320
9321         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9322         GL_GENERATE_ALLOCA_H.
9323         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9324         GL_GENERATE_ALLOCA_H evaluates to false.
9325
9326         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9327         GL_GENERATE_ARGZ_H.
9328         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9329         evaluates to false.
9330
9331         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9332         GL_GENERATE_BYTESWAP_H.
9333         * modules/byteswap (Makefile.am): Remove byteswap.h if
9334         GL_GENERATE_BYTESWAP_H evaluates to false.
9335
9336         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9337         GL_GENERATE_ERRNO_H.
9338         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9339         evaluates to false.
9340
9341         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9342         GL_GENERATE_FLOAT_H.
9343         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9344         evaluates to false.
9345
9346         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9347         GL_GENERATE_FNMATCH_H.
9348         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9349         GL_GENERATE_FNMATCH_H evaluates to false.
9350
9351         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9352         GL_GENERATE_GLOB_H.
9353         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9354         evaluates to false.
9355
9356         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9357         automake conditional GL_GENERATE_ICONV_H.
9358         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9359         evaluates to false.
9360
9361         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9362         GL_GENERATE_NETINET_IN_H.
9363         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9364         GL_GENERATE_NETINET_IN_H evaluates to false.
9365
9366         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9367         conditional GL_GENERATE_PTHREAD_H.
9368         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9369         * modules/pthread (Makefile.am): Remove pthread.h if
9370         GL_GENERATE_PTHREAD_H evaluates to false.
9371
9372         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9373         GL_GENERATE_SCHED_H.
9374         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9375         evaluates to false.
9376
9377         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9378         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9379         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9380         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9381
9382         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9383         GL_GENERATE_STDARG_H.
9384         * modules/stdarg (Makefile.am): Remove stdarg.h if
9385         GL_GENERATE_STDARG_H evaluates to false.
9386
9387         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9388         GL_GENERATE_STDBOOL_H.
9389         * modules/stdbool (Makefile.am): Remove stdbool.h if
9390         GL_GENERATE_STDBOOL_H evaluates to false.
9391
9392         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9393         conditional GL_GENERATE_STDDEF_H.
9394         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9395         * modules/stddef (Makefile.am): Remove stddef.h if
9396         GL_GENERATE_STDDEF_H evaluates to false.
9397
9398         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9399         GL_GENERATE_STDINT_H.
9400         * modules/stdint (Makefile.am): Remove stdint.h if
9401         GL_GENERATE_STDINT_H evaluates to false.
9402
9403         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9404         GL_GENERATE_SYSEXITS_H.
9405         * modules/sysexits (Makefile.am): Remove sysexits.h if
9406         GL_GENERATE_SYSEXITS_H evaluates to false.
9407
9408         Reported by Karl Berry and Ralf Wildenhues.
9409
9410 2011-04-05  Bruno Haible  <bruno@clisp.org>
9411
9412         Ensure to rebuild generated .h files when config.status has changed.
9413         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9414         config.status.
9415         * modules/ctype (Makefile.am): Likewise.
9416         * modules/dirent (Makefile.am): Likewise.
9417         * modules/errno (Makefile.am): Likewise.
9418         * modules/fcntl-h (Makefile.am): Likewise.
9419         * modules/float (Makefile.am): Likewise.
9420         * modules/getopt-posix (Makefile.am): Likewise.
9421         * modules/glob (Makefile.am): Likewise.
9422         * modules/iconv-h (Makefile.am): Likewise.
9423         * modules/inttypes (Makefile.am): Likewise.
9424         * modules/langinfo (Makefile.am): Likewise.
9425         * modules/locale (Makefile.am): Likewise.
9426         * modules/math (Makefile.am): Likewise.
9427         * modules/netdb (Makefile.am): Likewise.
9428         * modules/netinet_in (Makefile.am): Likewise.
9429         * modules/poll-h (Makefile.am): Likewise.
9430         * modules/pthread (Makefile.am): Likewise.
9431         * modules/pty (Makefile.am): Likewise.
9432         * modules/sched (Makefile.am): Likewise.
9433         * modules/search (Makefile.am): Likewise.
9434         * modules/selinux-h (Makefile.am): Likewise.
9435         * modules/signal (Makefile.am): Likewise.
9436         * modules/spawn (Makefile.am): Likewise.
9437         * modules/stdarg (Makefile.am): Likewise.
9438         * modules/stdbool (Makefile.am): Likewise.
9439         * modules/stddef (Makefile.am): Likewise.
9440         * modules/stdint (Makefile.am): Likewise.
9441         * modules/stdio (Makefile.am): Likewise.
9442         * modules/stdlib (Makefile.am): Likewise.
9443         * modules/string (Makefile.am): Likewise.
9444         * modules/strings (Makefile.am): Likewise.
9445         * modules/sys_file (Makefile.am): Likewise.
9446         * modules/sys_ioctl (Makefile.am): Likewise.
9447         * modules/sys_select (Makefile.am): Likewise.
9448         * modules/sys_socket (Makefile.am): Likewise.
9449         * modules/sys_stat (Makefile.am): Likewise.
9450         * modules/sys_time (Makefile.am): Likewise.
9451         * modules/sys_times (Makefile.am): Likewise.
9452         * modules/sys_utsname (Makefile.am): Likewise.
9453         * modules/sys_wait (Makefile.am): Likewise.
9454         * modules/sysexits (Makefile.am): Likewise.
9455         * modules/termios (Makefile.am): Likewise.
9456         * modules/time (Makefile.am): Likewise.
9457         * modules/unistd (Makefile.am): Likewise.
9458         * modules/wchar (Makefile.am): Likewise.
9459         * modules/wctype-h (Makefile.am): Likewise.
9460         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9461
9462 2011-04-05  Bruno Haible  <bruno@clisp.org>
9463
9464         pipe2: Relicense under LGPLv2+.
9465         * modules/pipe2 (License): Change to LGPLv2+.
9466         Requested by Eric Blake, for libvirt.
9467
9468 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9469
9470         bootstrap: compute gnulib_extra_files after updating build_aux
9471         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9472         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9473
9474 2011-04-05  Eric Blake  <eblake@redhat.com>
9475
9476         bootstrap: preserve git whitelist item sorting
9477         * build-aux/bootstrap (sort_patterns): New function.
9478         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9479
9480 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9481
9482         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9483         sc_space_tab check.
9484
9485 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9486
9487         areadlink, areadlinkat: rewrite in terms of careadlinkat
9488         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9489         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9490         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9491         (malloc, realloc): Remove #undefs.
9492         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9493         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9494         readlink, ssize_t, stdint, unistd.
9495         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9496         areadlink, stdint.
9497
9498         careadlinkat: new module
9499         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9500         * modules/careadlinkat: New files, written by me with
9501         a review and feedback from Ben Pfaff in
9502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9503
9504 2011-04-01  Bruno Haible  <bruno@clisp.org>
9505
9506         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9507         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9508         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9509         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9510         Reported by Bruce Korb <bruce.korb@gmail.com>.
9511
9512 2011-04-01  Bruno Haible  <bruno@clisp.org>
9513
9514         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9515         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9516         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9517         * modules/wcpcpy (Depends-on): Add extensions.
9518         * modules/wcpncpy (Depends-on): Likewise.
9519         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9520         systems.
9521         * doc/posix-functions/wcpncpy.texi: Likewise.
9522         * doc/posix-functions/wcwidth.texi: Likewise.
9523
9524 2011-03-31  Eric Blake  <eblake@redhat.com>
9525
9526         nonblocking: fix mingw test failures
9527         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9528         non-blocking flag on regular file.
9529         (get_nonblocking_flag): Set errno on invalid fd.
9530         * tests/test-nonblocking.c (main): Avoid test failure on
9531         directories if fchdir is not active.
9532         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9533
9534 2011-03-31  Bruno Haible  <bruno@clisp.org>
9535
9536         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9537         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9538         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9539         Reported by Simon Josefsson <simon@josefsson.org>.
9540
9541 2011-03-31  Bruno Haible  <bruno@clisp.org>
9542         and Eric Blake  <eblake@redhat.com>
9543
9544         nonblocking: new module
9545         * modules/nonblocking: New module.
9546         * modules/nonblocking-tests: Likewise.
9547         * lib/nonblocking.h: New file.
9548         * lib/nonblocking.c: Likewise.
9549         * tests/test-nonblocking.c: New test.
9550         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9551
9552 2011-03-30  Bruno Haible  <bruno@clisp.org>
9553
9554         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9555         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9556         instead of 'printf' format for GCC >= 4.4.
9557         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9558         (fprintf, printf, vfprintf, vprintf): Declare with
9559         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9560         the system's vfprintf() function.
9561         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9562
9563 2011-03-30  Eric Blake  <eblake@redhat.com>
9564
9565         passfd: fix scoping bug
9566         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9567         before sendmsg/recvmsg.
9568
9569         passfd: standardize coding conventions
9570         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9571         can be learned at compile time.
9572         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9573         ifdefs.
9574         (sendfd, recvfd): Follow gnulib code conventions.
9575
9576         passfd: fix incorrect sendmsg arguments
9577         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9578         incorrect msg_controllen value.
9579         * modules/passfd-tests (Depends-on): Check for alarm.
9580         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9581         Reported by Bastien ROUCARIES.
9582
9583 2011-03-30  Bruno Haible  <bruno@clisp.org>
9584
9585         c-strcasestr: Relicense under LGPLv2+.
9586         * modules/c-strcasestr (License): Change to LGPLv2+.
9587         Requested by Eric Blake, for libvirt.
9588
9589 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9590
9591         * users.txt: Add libidn2.  Fix libtasn1 link.
9592
9593 2011-03-30  Jim Meyering  <meyering@redhat.com>
9594
9595         tests: readlink* ("",... fails with EINVAL on newer kernels
9596         readlink and readlinkat have typically failed with ENOENT for
9597         the invalid, empty file name,  "".  However, with the advent
9598         of linux-2.6.39, they fail with EINVAL.
9599         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9600         when operating on the empty file name.
9601         * tests/test-readlink.h (test_readlink): Likewise.
9602
9603 2011-03-29  Bruno Haible  <bruno@clisp.org>
9604
9605         Relicense some modules under LGPLv2+, for libidn2.
9606         * modules/array-mergesort (License): Change to LGPLv2+.
9607         * modules/c-strcaseeq (License): Likewise.
9608         * modules/striconveh (License): Likewise.
9609         * modules/striconveha (License): Likewise.
9610         * modules/uniconv/base (License): Likewise.
9611         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9612         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9613         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9614         * modules/unictype/base (License): Likewise.
9615         * modules/unictype/bidiclass-of (License): Likewise.
9616         * modules/unictype/category-M (License): Likewise.
9617         * modules/unictype/category-none (License): Likewise.
9618         * modules/unictype/category-of (License): Likewise.
9619         * modules/unictype/category-test (License): Likewise.
9620         * modules/unictype/category-test-withtable (License): Likewise.
9621         * modules/unictype/combining-class (License): Likewise.
9622         * modules/unictype/joiningtype-of (License): Likewise.
9623         * modules/unictype/scripts (License): Likewise.
9624         * modules/uninorm/base (License): Likewise.
9625         * modules/uninorm/canonical-decomposition (License): Likewise.
9626         * modules/uninorm/composition (License): Likewise.
9627         * modules/uninorm/decompose-internal (License): Likewise.
9628         * modules/uninorm/decomposition-table (License): Likewise.
9629         * modules/uninorm/nfc (License): Likewise.
9630         * modules/uninorm/nfd (License): Likewise.
9631         * modules/uninorm/u32-normalize (License): Likewise.
9632         * modules/unistr/base (License): Likewise.
9633         * modules/unistr/u32-cpy (License): Likewise.
9634         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9635         * modules/unistr/u32-to-u8 (License): Likewise.
9636         * modules/unistr/u32-uctomb (License): Likewise.
9637         * modules/unistr/u8-check (License): Likewise.
9638         * modules/unistr/u8-mblen (License): Likewise.
9639         * modules/unistr/u8-mbtouc (License): Likewise.
9640         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9641         * modules/unistr/u8-mbtoucr (License): Likewise.
9642         * modules/unistr/u8-prev (License): Likewise.
9643         * modules/unistr/u8-strlen (License): Likewise.
9644         * modules/unistr/u8-to-u32 (License): Likewise.
9645         * modules/unistr/u8-uctomb (License): Likewise.
9646         * modules/unitypes (License): Likewise.
9647         Requested by Simon Josefsson.
9648
9649 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9650
9651         lib-symbol-visibility: Add a notice.
9652         * modules/lib-symbol-visibility (Notice): New field.
9653
9654 2011-03-29  Bruno Haible  <bruno@clisp.org>
9655
9656         getaddrinfo: Doc fix.
9657         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9658         section "fixed in Gnulib".
9659
9660 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9661
9662         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9663         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9664
9665 2011-03-26  Bruno Haible  <bruno@clisp.org>
9666
9667         unictype/property-byname: Reduce the number of load-time relocations.
9668         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9669         (UC_PROPERTY_INDEX_*): New enumeration values.
9670         (uc_property_byname): Convert an index from the lookup table to an
9671         uc_property_t.
9672         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9673         values.
9674
9675 2011-03-26  Bruno Haible  <bruno@clisp.org>
9676
9677         unictype/property-byname: Allow omitted word separators and aliases.
9678         * lib/unictype/pr_byname.gperf: Add property names without word
9679         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9680         for 'space'.
9681
9682 2011-03-26  Bruno Haible  <bruno@clisp.org>
9683
9684         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9685         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9686         also hyphens to space.
9687         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9688         without spaces.
9689         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9690
9691 2011-03-26  Bruno Haible  <bruno@clisp.org>
9692
9693         unictype/joiningtype-byname: Recognize long names as well.
9694         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9695         a long name.
9696         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9697         unictype/joiningtype_byname.h.
9698         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9699         * lib/unictype/joiningtype_byname.gperf: New file.
9700         * modules/unictype/joiningtype-byname (Files): Add
9701         lib/unictype/joiningtype_byname.gperf.
9702         (Depends-on): Add gperf.
9703         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9704         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9705         long names.
9706
9707         Tests for module 'unictype/joiningtype-longname'.
9708         * modules/unictype/joiningtype-longname-tests: New file.
9709         * tests/unictype/test-joiningtype_longname.c: New file.
9710
9711         New module 'unictype/joiningtype-longname'.
9712         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9713         * lib/unictype/joiningtype_longname.c: New file.
9714         * modules/unictype/joiningtype-longname: New file.
9715         * modules/unictype/joiningtype-all (Depends-on): Add
9716         unictype/joiningtype-longname.
9717
9718 2011-03-26  Bruno Haible  <bruno@clisp.org>
9719
9720         unictype/bidiclass-byname: Recognize long names as well.
9721         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9722         name.
9723         * lib/unictype/bidi_byname.c: Include <string.h>,
9724         unictype/bidi_byname.h.
9725         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9726         * lib/unictype/bidi_byname.gperf: New file.
9727         * modules/unictype/bidiclass-byname (Files): Add
9728         lib/unictype/bidi_byname.gperf.
9729         (Depends-on): Add gperf.
9730         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9731         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9732         long names.
9733
9734         Tests for module 'unictype/bidiclass-longname'.
9735         * modules/unictype/bidiclass-longname-tests: New file.
9736         * tests/unictype/test-bidi_longname.c: New file.
9737
9738         New module 'unictype/bidiclass-longname'.
9739         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9740         * lib/unictype/bidi_longname.c: New file.
9741         * modules/unictype/bidiclass-longname: New file.
9742         * modules/unictype/bidiclass-all (Depends-on): Add
9743         unictype/bidiclass-longname.
9744
9745 2011-03-26  Bruno Haible  <bruno@clisp.org>
9746
9747         unictype/bidi*: Rename modules.
9748         * modules/unictype/bidiclass-all: Renamed from
9749         modules/unictype/bidicategory-all.
9750         * modules/unictype/bidiclass-name: Renamed from
9751         modules/unictype/bidiclass-name.
9752         (Description): Update.
9753         * modules/unictype/bidiclass-name-tests: Renamed from
9754         modules/unictype/bidicategory-name-tests.
9755         * modules/unictype/bidiclass-byname: Renamed from
9756         modules/unictype/bidicategory-byname.
9757         (Description): Update.
9758         * modules/unictype/bidiclass-byname-tests: Renamed from
9759         modules/unictype/bidicategory-byname-tests.
9760         * modules/unictype/bidiclass-of: Renamed from
9761         modules/unictype/bidicategory-of.
9762         (Description): Update.
9763         * modules/unictype/bidiclass-of-tests: Renamed from
9764         modules/unictype/bidicategory-of-tests.
9765         * modules/unictype/bidiclass-test: Renamed from
9766         modules/unictype/bidicategory-test.
9767         (Description): Update.
9768         * modules/unictype/bidiclass-test-tests: Renamed from
9769         modules/unictype/bidicategory-test-tests.
9770         * modules/unictype/bidicategory-all: New file, a simple redirection.
9771         * modules/unictype/bidicategory-name: Likewise.
9772         * modules/unictype/bidicategory-byname: Likewise.
9773         * modules/unictype/bidicategory-of: Likewise.
9774         * modules/unictype/bidicategory-test: Likewise.
9775         * modules/unictype/property-bidi-* (Dependencies): Update.
9776         * lib/unictype/bidi_*.c: Update comment.
9777
9778 2011-03-26  Bruno Haible  <bruno@clisp.org>
9779
9780         unictype/bidi*: Rename functions, part 2.
9781         * modules/unictype/bidicategory-name (configure.ac): Update required
9782         libunistring version.
9783         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9784
9785 2011-03-25  Bruno Haible  <bruno@clisp.org>
9786
9787         New module 'unictype/combining-class-all'.
9788         * modules/unictype/combining-class-all: New file.
9789
9790         Tests for module 'unictype/combining-class-byname'.
9791         * modules/unictype/combining-class-byname-tests: New file.
9792         * tests/unictype/test-combiningclass_byname.c: New file.
9793
9794         New module 'unictype/combining-class-byname'.
9795         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9796         * lib/unictype/combiningclass_byname.c: New file.
9797         * lib/unictype/combiningclass_byname.gperf: New file.
9798         * modules/unictype/combining-class-byname: New file.
9799
9800         Tests for module 'unictype/combining-class-longname'.
9801         * modules/unictype/combining-class-longname-tests: New file.
9802         * tests/unictype/test-combiningclass_longname.c: New file.
9803
9804         New module 'unictype/combining-class-longname'.
9805         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9806         * lib/unictype/combiningclass_longname.c: New file.
9807         * modules/unictype/combining-class-longname: New file.
9808
9809         Tests for module 'unictype/combining-class-name'.
9810         * modules/unictype/combining-class-name-tests: New file.
9811         * tests/unictype/test-combiningclass_name.c: New file.
9812
9813         New module 'unictype/combining-class-name'.
9814         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9815         * lib/unictype/combiningclass_name.c: New file.
9816         * modules/unictype/combining-class-name: New file.
9817
9818 2011-03-25  Bruno Haible  <bruno@clisp.org>
9819
9820         unictype/combining-class: Rename source files.
9821         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9822         of unictype/combining.h.
9823         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9824         Update.
9825         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9826         * modules/unictype/combining-class (Description): Fix.
9827         (Files, Makefile.am): Update.
9828         * tests/unictype/test-combiningclass.c: Renamed from
9829         tests/unictype/test-combining.c.
9830         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9831
9832 2011-03-25  Bruno Haible  <bruno@clisp.org>
9833
9834         unictype: Update list of canonical combining classes.
9835         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9836
9837 2011-03-25  Bruno Haible  <bruno@clisp.org>
9838
9839         unictype/category-byname: Recognize long names as well.
9840         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9841         a long name.
9842         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9843         unictype/categ_byname.h.
9844         (UC_CATEGORY_INDEX_*): New enumeration values.
9845         (uc_general_category_byname): Use uc_general_category_lookup and
9846         convert from index to value.
9847         * lib/unictype/categ_byname.gperf: New file.
9848         * modules/unictype/category-byname (Files): Add
9849         lib/unictype/categ_byname.gperf.
9850         (Depends-on): Add gperf.
9851         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9852         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9853         long names.
9854
9855         Tests for module 'unictype/category-longname'.
9856         * modules/unictype/category-longname-tests: New file.
9857         * tests/unictype/test-categ_longname.c: New file.
9858
9859         New module 'unictype/category-longname'.
9860         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9861         * lib/unictype/categ_longname.c: New file.
9862         * modules/unictype/category-longname: New file.
9863         * modules/unictype/category-all (Depends-on): Add it.
9864
9865 2011-03-25  Bruno Haible  <bruno@clisp.org>
9866
9867         Tests for module 'unictype/category-LC'.
9868         * modules/unictype/category-LC-tests: New file.
9869         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9870
9871         New module 'unictype/category-LC'.
9872         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9873         (UC_CATEGORY_LC): New declaration.
9874         (UC_CASED_LETTER): New macro.
9875         * lib/gen-uni-tables.c (is_category_LC): New function.
9876         (output_categories): Also handle category LC.
9877         (UC_CATEGORY_MASK_LC): New enumeration value.
9878         (general_category_byname): Also handle category LC.
9879         * lib/unictype/categ_LC.c: New file.
9880         * lib/unictype/categ_LC.h: New file, automatically generated.
9881         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9882         category LC.
9883         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9884         * modules/unictype/category-LC: New file.
9885         * modules/unictype/category-byname (Depends-on): Add
9886         unictype/category-LC.
9887         * modules/unictype/category-all (Depends-on): Likewise.
9888
9889 2011-03-25  Eric Blake  <eblake@redhat.com>
9890
9891         xmalloc: revert yesterday's regression
9892         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9893         realloc's underlying behavior (allowing allocation of zero-size
9894         objects, especially if malloc-gnu is also in use).
9895
9896 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9897
9898         maint.mk: add missing version to VC-tag
9899         * top/maint.mk: git tag was missing actual tag name; add it.
9900
9901         valgrind: do leak checking, and exit with code 1 on error (not 0)
9902         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9903         to VALGRIND.
9904
9905 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9906
9907         posix-modules: say what it does.
9908         * posix-modules: Add a line to the --help output saying what it does.
9909
9910 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9911
9912         xmalloc: Do not leak if underlying realloc is C99 compatible.
9913         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9914         This avoids a leak on C99-based systems.  See
9915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9916
9917 2011-03-24  Eric Blake  <eblake@redhat.com>
9918
9919         realloc: document portability problem
9920         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9921         passing 0 size to realloc.
9922
9923 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9924
9925         doc: update users.txt
9926         * users.txt: Add cvsps, tmpwatch
9927
9928 2011-03-23  Matt Rice  <ratmice@gmail.com>
9929
9930         doc: update users.txt
9931         * users.txt: Add gdb.
9932
9933 2011-03-23  Jim Meyering  <meyering@redhat.com>
9934
9935         doc: update users.txt
9936         Looking through matches up to the following URL (there are still
9937         several more pages), I found several projects that use gnulib:
9938         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9939         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9940         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9941
9942 2011-03-22  Bruno Haible  <bruno@clisp.org>
9943
9944         unictype/bidi*: Rename functions.
9945         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9946         uc_bidi_class, uc_is_bidi_class): New declarations.
9947         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9948         uc_bidi_category_byname.
9949         (uc_bidi_category_byname): New function.
9950         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9951         u_bidi_category_name.
9952         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9953         (uc_bidi_category_name): New function.
9954         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9955         uc_bidi_category.
9956         (uc_bidi_category): New function.
9957         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9958         uc_is_bidi_category. Invoke uc_bidi_class.
9959         (uc_is_bidi_category): New function.
9960         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9961         instead of uc_bidi_category_byname.
9962         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9963         instead of uc_bidi_category_name.
9964         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9965         uc_bidi_category.
9966         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9967         instead of uc_is_bidi_category.
9968
9969 2011-03-21  Bruno Haible  <bruno@clisp.org>
9970
9971         New module 'unictype/joininggroup-all'.
9972         * modules/unictype/joininggroup-all: New file.
9973
9974         Tests for module 'unictype/joininggroup-of'.
9975         * modules/unictype/joininggroup-of-tests: New file.
9976         * tests/unictype/test-joininggroup_of.c: New file.
9977         * tests/unictype/test-joininggroup_of.h: New file, automatically
9978         generated by gen-uni-tables.
9979
9980         New module 'unictype/joininggroup-of'.
9981         * modules/unictype/joininggroup-of: New file.
9982         * lib/unictype/joininggroup_of.c: New file.
9983         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9984         gen-uni-tables.
9985
9986         Tests for module 'unictype/joininggroup-byname'.
9987         * modules/unictype/joininggroup-byname-tests: New file.
9988         * tests/unictype/test-joininggroup_byname.c: New file.
9989
9990         New module 'unictype/joininggroup-byname'.
9991         * modules/unictype/joininggroup-byname: New file.
9992         * lib/unictype/joininggroup_byname.c: New file.
9993         * lib/unictype/joininggroup_byname.gperf: New file.
9994
9995         Tests for module 'unictype/joininggroup-name'.
9996         * modules/unictype/joininggroup-name-tests: New file.
9997         * tests/unictype/test-joininggroup_name.c: New file.
9998
9999         New module 'unictype/joininggroup-name'.
10000         * modules/unictype/joininggroup-name: New file.
10001         * lib/unictype/joininggroup_name.c: New file.
10002         * lib/unictype/joininggroup_name.h: New file.
10003
10004         New module 'unictype/joiningtype-all'.
10005         * modules/unictype/joiningtype-all: New file.
10006
10007         Tests for module 'unictype/joiningtype-of'.
10008         * modules/unictype/joiningtype-of-tests: New file.
10009         * tests/unictype/test-joiningtype_of.c: New file.
10010         * tests/unictype/test-joiningtype_of.h: New file, automatically
10011         generated by gen-uni-tables.
10012
10013         New module 'unictype/joiningtype-of'.
10014         * modules/unictype/joiningtype-of: New file.
10015         * lib/unictype/joiningtype_of.c: New file.
10016         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10017         gen-uni-tables.
10018
10019         Tests for module 'unictype/joiningtype-byname'.
10020         * modules/unictype/joiningtype-byname-tests: New file.
10021         * tests/unictype/test-joiningtype_byname.c: New file.
10022
10023         New module 'unictype/joiningtype-byname'.
10024         * modules/unictype/joiningtype-byname: New file.
10025         * lib/unictype/joiningtype_byname.c: New file.
10026
10027         Tests for module 'unictype/joiningtype-name'.
10028         * modules/unictype/joiningtype-name-tests: New file.
10029         * tests/unictype/test-joiningtype_name.c: New file.
10030
10031         New module 'unictype/joiningtype-name'.
10032         * modules/unictype/joiningtype-name: New file.
10033         * lib/unictype/joiningtype_name.c: New file.
10034
10035         unictype: Add support for Arabic shaping properties.
10036         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10037         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10038         declarations.
10039         (UC_JOINING_GROUP_*): New enumeration values.
10040         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10041         declarations.
10042         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10043         (unicode_joining_type): New variable.
10044         (UC_JOINING_GROUP_*): New enumeration values.
10045         (unicode_joining_group): New variable.
10046         (fill_arabicshaping, joining_type_as_c_identifier,
10047         output_joining_type_test, output_joining_type,
10048         joining_group_as_c_identifier, output_joining_group_test,
10049         output_joining_group): New functions.
10050         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10051         fill_arabicshaping and output_joining_type_test, output_joining_type,
10052         output_joining_group_test, output_joining_group.
10053         Reported by Simon Josefsson.
10054
10055 2011-03-21  Jim Meyering  <meyering@redhat.com>
10056
10057         strftime: fix a bug in yesterday's change
10058         * lib/strftime.c (add): Accommodate width's initial value of -1.
10059         Otherwise, nstrftime would copy uninitialized data into
10060         the result buffer.
10061
10062 2011-03-21  Jim Meyering  <meyering@redhat.com>
10063
10064         tests: add strftime-tests module
10065         * tests/test-strftime.c: New file.
10066         * modules/strftime-tests: New module.
10067
10068 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10069
10070         strftime: don't assume a byte count fits in 'int'
10071         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10072         found this problem by static analysis, using gcc -Wstrict-overflow
10073         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10074         on an integer overflow having undefined behavior, but it turns out
10075         that the argument is a size, which might not fit in 'int' anyway,
10076
10077 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10078
10079         stdio: don't require ignore_value around fwrite
10080
10081         This patch works around libc bug 11959
10082         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10083         Without this patch, applications must often write
10084         ignore_value (fwrite (...)) even though the ignore_value is
10085         not helpful here.  It's common to write many objects, using
10086         fwrite/printf/etc., and then use ferror to detect output error.
10087
10088         I considered making this patch optional, but decided against it,
10089         because libc is obviously being inconsistent here: there is no
10090         reason libc should insist that user code must inspect fwrite
10091         return's value without also insisting that it inspect printf's,
10092         putchar's, etc.  If user code wants to have a strict style where
10093         all these functions' values are checked (so that ferror need not
10094         be checked), we could add support for that style in a new gnulib
10095         module, but in the meantime it's better to be consistent and to
10096         support common usage.
10097
10098         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10099         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10100         that we are compiling in checking mode, and if not C++, and
10101         if not already wrapping fwrite for some other reason.
10102         (fwrite): #define to rpl_fwrite if the latter is defined.
10103
10104 2011-03-20  Bruno Haible  <bruno@clisp.org>
10105
10106         verror: Fix compilation error introduced on 2011-02-13.
10107         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10108         instead of __attribute__.
10109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10110
10111 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10112             Bruno Haible  <bruno@clisp.org>
10113
10114         socklen: do not depend on sys_socket
10115         While trying to modify Emacs to use gnulib's socklen module,
10116         I discovered a circular dependency: socklen depends on sys_socket
10117         and vice versa.  Emacs can use socklen, but it does not need
10118         sys_socket because it has its own substitute for sys/socket.h.
10119         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10120         gl_TYPE_SOCKLEN_T.
10121         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10122         gl_PREREQ_SYS_H_SOCKET.
10123         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10124         gl_PREREQ_SYS_H_SOCKET.
10125         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10126         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10127         * modules/socklen (Depends-on): Do not depend on sys_socket.
10128         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10129
10130 2011-03-20  Jim Meyering  <meyering@redhat.com>
10131
10132         maint.mk: sort file names *after* new transformation
10133         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10134         prefix would have led to an unwarranted failure in GNU parted.
10135         Sort after that transformation.
10136
10137 2011-03-19  Jim Meyering  <meyering@redhat.com>
10138
10139         maint.mk: fix po-file syntax-check rule
10140         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10141         Patch by Bruno Haible.
10142
10143 2011-03-19  Bruno Haible  <bruno@clisp.org>
10144
10145         socklen: Update comment.
10146         * m4/socklen.m4: Update comment about platforms.
10147
10148 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10149             Bruno Haible  <bruno@clisp.org>
10150
10151         inet_ntop, inet_pton: Simplify.
10152         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10153         documented to provide socklen_t and we already depend on sys_socket.
10154         * modules/inet_pton (Depends-on): Likewise.
10155         * lib/arpa_inet.in.h: Adjust comment.
10156
10157 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10158             Bruno Haible  <bruno@clisp.org>
10159
10160         netdb: Simplify.
10161         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10162         documented to provide socklen_t and we already depend on sys_socket.
10163         * lib/netdb.in.h: Adjust comment.
10164
10165 2011-03-19  Bruno Haible  <bruno@clisp.org>
10166
10167         sys_socket, netdb: Document problem with socklen_t.
10168         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10169         platforms.
10170         * doc/posix-headers/netdb.texi: Likewise.
10171
10172 2011-03-18  Eric Blake  <eblake@redhat.com>
10173
10174         maint.mk: let po check work in VPATH build
10175         * top/maint.mk (po_file): Allow cfg.mk override.
10176         (sc_po_check): Allow VPATH use.
10177         Reported by Jiri Denemark.
10178
10179 2011-03-16  Jim Meyering  <meyering@redhat.com>
10180
10181         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10182         Before, you would have had to create one .x-sc_ file per rule in order
10183         to exempt offending files.  Now, you may instead use a Make variable --
10184         usually defined in cfg.mk -- whose name identifies the affected rule.
10185         * top/maint.mk (_sc_excl): Define.
10186         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10187         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10188
10189 2011-03-13  Bruno Haible  <bruno@clisp.org>
10190
10191         ignore-value tests: Avoid warnings.
10192         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10193         empty for gcc < 3.4.
10194
10195 2011-03-13  Bruno Haible  <bruno@clisp.org>
10196
10197         passfd: Fix link error on Solaris.
10198         * modules/passfd (Description): Correct.
10199         (Depends-on): Add socketlib.
10200         (Link): New section.
10201         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10202
10203 2011-03-13  Bruno Haible  <bruno@clisp.org>
10204
10205         passfd: Fix link error on AIX 5.2.
10206         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10207
10208 2011-03-13  Bruno Haible  <bruno@clisp.org>
10209
10210         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10211         * lib/sys_socket.in.h: Include <stddef.h>.
10212         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10213         CMSG_FIRSTHDR. Remove unused variable.
10214
10215 2011-03-13  Bruno Haible  <bruno@clisp.org>
10216
10217         passfd: Fix compilation error on OpenBSD.
10218         * lib/passfd.c: Include <sys/uio.h>.
10219
10220 2011-03-13  Bruno Haible  <bruno@clisp.org>
10221
10222         passfd test: Fix warnings.
10223         * tests/test-passfd.c: Include <sys/wait.h>.
10224         (main): Fix typo.
10225
10226 2011-03-13  Bruno Haible  <bruno@clisp.org>
10227
10228         passfd module, part 4, tweaks.
10229         * tests/test-passfd.c: Reorder includes.
10230         (main): Fix perror and printf calls.
10231
10232 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10233
10234         passfd module, part 4.
10235         * modules/passfd-tests: New file.
10236         * tests/test-passfd.c: New file.
10237
10238 2011-03-13  Jim Meyering  <meyering@redhat.com>
10239
10240         Makefile: rely on GNU make; derive syntax-check rule names
10241         Rather than requiring that each sc_ rule be listed as a dependent
10242         of "check", use features of GNU make to derive the list.
10243         * Makefile (syntax-check-rules): Define.
10244         (check): Depend on the new variable, not the hard-coded list.
10245
10246 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10247             Bruno Haible  <bruno@clisp.org>
10248
10249         passfd module, part 3.
10250         * lib/passfd.h (recvfd): Add a flags argument.
10251         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10252         (recvfd): Add a flags argument.
10253         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10254         exists.
10255         * modules/passfd (Depends-on): Add cloexec.
10256         Suggested by Eric Blake.
10257
10258 2011-03-13  Bruno Haible  <bruno@clisp.org>
10259
10260         passfd module, part 2, tweaks.
10261         * modules/passfd (Files): Reorder.
10262         (Depends-on): Remove errno.
10263         (Include): Remove <sys/socket.h>, <sys/un.h>.
10264         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10265         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10266         specification header. Include <sys/socket.h> always. Don't include
10267         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10268         (sendfd): Clarify that it sets errno when it fails.
10269         (recvfd): Fix specification.
10270
10271 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10272
10273         passfd module, part 2.
10274         * modules/passfd: New file.
10275         * lib/passfd.h: New file.
10276         * lib/passfd.c: New file.
10277
10278 2011-03-12  Bruno Haible  <bruno@clisp.org>
10279
10280         wcswidth, mbswidth: Avoid integer overflow.
10281         * lib/wcswidth.c: Include <limits.h>.
10282         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10283         * lib/mbswidth.c: Include <limits.h>.
10284         (mbsnwidth): Avoid 'int' overflow.
10285         Reported by Jim Meyering.
10286
10287 2011-03-12  Bruno Haible  <bruno@clisp.org>
10288
10289         futimens, utimensat: Avoid endless recursion on Solaris 10.
10290         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10291         Solaris.
10292         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10293         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10294
10295 2011-03-11  Jim Meyering  <meyering@redhat.com>
10296
10297         maint.mk: relax a regexp to accommodate other formatting styles
10298         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10299         between "ngettext" and the following "(".
10300
10301 2011-03-11  Pádraig Brady <P@draigBrady.com>
10302
10303         maint.mk: suppress a false positive warning
10304         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10305         diagnostics are marked with ngettext.
10306
10307 2011-03-10  Eric Blake  <eblake@redhat.com>
10308
10309         wchar: add explicit dependencies, for Tru64
10310         * modules/mbmemcasecoll (Depends-on): Add wchar.
10311         * modules/mbtowc (Depends-on): Likewise.
10312         * modules/vasnprintf (Depends-on): Likewise.
10313         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10314         * modules/wctomb (Depends-on): Likewise.
10315         Reported by Peter O'Gorman.
10316
10317 2011-03-08  Bruno Haible  <bruno@clisp.org>
10318
10319         passfd module, part 1, tweaks.
10320         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10321         Improve indentation. Improve AC_MSG_CHECKING messages.
10322         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10323         gl_SOCKET_FAMILIES.
10324
10325 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10326
10327         passfd module, part 1.
10328         * m4/afunix.m4: New file.
10329         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10330         sockets.
10331
10332 2011-03-08  Bruno Haible  <bruno@clisp.org>
10333
10334         regex-quote: New API.
10335         * lib/regex-quote.h: Include <stdbool.h>.
10336         (struct regex_quote_spec): New type.
10337         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10338         New declarations.
10339         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10340         'const struct regex_quote_spec *' argument.
10341         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10342         (pcre_special): New constant.
10343         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10344         New functions.
10345         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10346         'const struct regex_quote_spec *' argument.
10347         * modules/regex-quote (Depends-on): Add stdbool.
10348         * tests/test-regex-quote.c (check): Update for new API. Add test for
10349         anchored results.
10350         * NEWS: Mention the API change.
10351         Reported by Reuben Thomas and Eric Blake.
10352
10353 2011-03-06  Bruno Haible  <bruno@clisp.org>
10354
10355         regex-quote: Fix creation of POSIX extended regular expressions.
10356         * lib/regex-quote.c (ere_special): Add grouping and alternation
10357         operators.
10358
10359 2011-03-05  Bruno Haible  <bruno@clisp.org>
10360
10361         doc: Improve doc regarding autopoint vs. gnulib.
10362         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10363         disable autopoint while running autoreconf.
10364         Suggested by Ralf Wildenhues.
10365
10366 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10367
10368         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10369         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10370
10371 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10372
10373         parse-duration: remove xalloc.h dependency
10374         * lib/parse-duration.c (parse_period): handle NULL return from
10375         strdup instead of calling xstrdup().
10376         * modules/parse-duration: remove "xalloc" dependency
10377
10378 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10379
10380         bootstrap: honor m4_base when running aclocal
10381         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10382
10383 2011-03-02  Jim Meyering  <meyering@redhat.com>
10384
10385         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10386         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10387         on request from Matt Booth.
10388
10389 2011-03-01  Eric Blake  <eblake@redhat.com>
10390
10391         test-link: work on Hurd
10392         * tests/test-link.h (test_link): Hurd rejects linking directories
10393         with EISDIR instead of the POSIX-mandated EPERM.
10394
10395 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10396
10397         stdio: simplify by moving files to printf-posix, sigpipe
10398         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10399         since this symbol is needed only if printf is replaced.
10400         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10401         Require gl_ASM_SYMBOL_PREFIX.
10402         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10403         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10404         (Depends-on): Add 'raise'.
10405         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10406         * modules/stdio (Files): Remove lib/stdio-write.c,
10407         m4/asm-underscore.m4.
10408         (Depends-on): Remove 'raise'.
10409
10410         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10411         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10412         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10413         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10414
10415 2011-02-28  Bruno Haible  <bruno@clisp.org>
10416
10417         localcharset: Assume ANSI C behaviour of free().
10418         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10419         calling free().
10420         Suggested by Simon Josefsson <simon@josefsson.org>.
10421
10422 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10423             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10424             Bruno Haible  <bruno@clisp.org>  (tiny change)
10425
10426         On Cygwin, use /proc file system instead of win32 API.
10427         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10428         Win32 file names.
10429         (DllMain): Simplify by removing Cygwin specific code.
10430         (find_shared_library_fullname): Use Linux specific implementation also
10431         for Cygwin.
10432         (get_shared_library_fullname): Update accordingly.
10433         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10434         Win32 file names.
10435         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10436         Cygwin specific code.
10437
10438 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10439             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10440
10441         Fix OpenMP flag detection for various Fortran compilers.
10442         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10443         OpenMP-conditional compilation construct, to force compile
10444         failure with missing OpenMP flag.
10445         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10446
10447 2011-02-25  Eric Blake  <eblake@redhat.com>
10448
10449         strstr: expand test coverage
10450         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10451         compilation.
10452         * tests/test-memmem.c (main): Duplicate tests.
10453         * tests/test-strcasestr.c (main): Likewise.
10454         * tests/test-c-strcasestr.c (main): Likewise.
10455
10456 2011-02-25  Jim Meyering  <meyering@redhat.com>
10457
10458         maint.mk: detect missing-NL-at-EOF, too
10459         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10460         it also detects when a file lacks a newline at EOF.
10461         (require_exactly_one_NL_at_EOF_): Renamed from
10462         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10463         since people may well have .x-sc_... file names tied to the
10464         existing name.  Suggested by Eric Blake.
10465
10466 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10467
10468         dirname: move m4/dos.m4 functionality into lib/dosname.h
10469
10470         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10471         extracts symbols from it, puts them into config.h; but it's much
10472         easier to use the symbols directly.  filename.h already does this,
10473         but it disagrees with dos.m4 in some respects.  This patch
10474         introduces a different include file dosname.h that packages up
10475         dos.m4, and then later we can work on merging filename.h and
10476         dosname.h.  Applications that need only the easy-to-configure
10477         symbols should consider including dosname.h rather than dirname.h.
10478         * NEWS: Mention incompatible changes.
10479         * m4/dos.m4: Remove.
10480         * lib/dosname.h, modules/dosname: New files.
10481         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10482         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10483         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10484         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10485         Include dosname.h, not dirname.h.
10486         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10487         Include dosname.h, for definitions of symbols like ISSLASH
10488         that used to be in config.h.
10489         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10490         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10491         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10492         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10493         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10494         * modules/rmdir (Files): Likewise.
10495         * modules/stat (Files): Likewise.
10496         * modules/unlink (Files): Likewise.
10497         * modules/dirname-lgpl (Depends-on): Add dosname.
10498         * modules/lstat (Depends-on): Likewise.
10499         * modules/openat (Depends-on): Likewise.
10500         * modules/rmdir (Depends-on): Likewise.
10501         * modules/savewd (Depends-on): Likewise.
10502         * modules/stat (Depends-on): Likewise.
10503         * modules/unlink (Depends-on): Likewise.
10504         * modules/openat (Depends-on): Remove dirname-lgpl.
10505         * modules/savewd (Depends-on): Likewise.
10506         * tests/test-dirname.c: Do not use removed symbols like
10507         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10508         the remaining symbols, e.g., ISSLASH ('\\').
10509
10510 2011-02-25  Eric Blake  <eblake@redhat.com>
10511
10512         strstr: revert patches that introduced bug and pessimization
10513         * lib/str-two-way.h: Add another reference.
10514         (two_way_short_needle, two_way_long_needle): Revert changes from
10515         2011-02-24; they pessimize search speed.
10516         (critical_factorization): Partially revert changes from
10517         2010-06-22; they violate the requirement that the left half of the
10518         needle be smaller than the period of the needle.
10519
10520 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10521
10522         filenamecat: remove unnecessary dependency on dirname-lgpl
10523         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10524         is no direct dependency, just an indirect one via filenamecat-lgpl.
10525
10526         remove: remove unnecessary use of m4/dos.m4
10527         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10528         * modules/remove (FILES): Remove m4/dos.m4.
10529
10530         * lib/openat-proc.c: Don't include dirname.h; not needed.
10531
10532         backupfile: remove unnecessary use of m4/dos.m4
10533         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10534         of its symbols are used by the backupfile code.  backupfile.c does
10535         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10536         for the rare case of programs that want all their backup file
10537         names to live within 8+3 limits, and dos.m4 doesn't address that.
10538         * modules/backupfile (Files): Remove m4/dos.m4.
10539
10540 2011-02-24  Jim Meyering  <meyering@redhat.com>
10541
10542         strstr: fix a bug whereby strstr would mistakenly return NULL
10543         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10544         in period calculation.
10545         (two_way_long_needle): Likewise.
10546         The original problem was reported by Mike Stump in
10547         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10548         Ralf Wildenhues provided the short needle and haystack.
10549         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10550         Add a more involved test to trigger the bug in two_way_long_needle.
10551
10552 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10553
10554         gnulib-tool: remove use of bold display in help screen
10555         * gnulib-tool (func_usage): Do not use bold display anymore in the
10556         help screen.  That was just meant to be a temporary emphasis for a
10557         backward-incompatible change.
10558
10559 2011-02-23  Bruno Haible  <bruno@clisp.org>
10560
10561         Fix misindentation of preprocessor directives.
10562         * lib/argp-namefrob.h: Reindent preprocessor directives.
10563         * lib/getopt_int.h (struct _getopt_data): Likewise.
10564         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10565         * lib/vasnprintf.c (decode_long_double): Likewise.
10566         * tests/test-argmatch.c: Insert blank lines, for clarity.
10567         * tests/test-exclude.c: Likewise.
10568
10569 2011-02-22  Bruno Haible  <bruno@clisp.org>
10570
10571         ioctl: Fix for MacOS X in 64-bit mode.
10572         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10573         value.
10574         Suggested by Eric Blake.
10575         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10576
10577 2011-02-22  Jim Meyering  <meyering@redhat.com>
10578
10579         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10580         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10581         in lib/.
10582
10583 2011-02-22  Eric Blake  <eblake@redhat.com>
10584
10585         maint: avoid any CDPATH issue
10586         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10587
10588         maint: adjust cpp indentation for my modules, as well
10589         * Makefile (sc_cpp_indent_check): Add my name.
10590         * lib/fbufmode.c: Filter through cppi.
10591         * lib/fpurge.c: Likewise.
10592         * lib/freadable.c: Likewise.
10593         * lib/freading.c: Likewise.
10594         * lib/fwritable.c: Likewise.
10595         * lib/fwriting.c: Likewise.
10596         * lib/sigaction.c: Likewise.
10597
10598 2011-02-22  Jim Meyering  <meyering@redhat.com>
10599
10600         maint: adjust cpp indentation to reflect nesting depth
10601         I.e., in a block of code that begins with an unnested "#if",
10602         put one space between the "#" in column 1 and following token.
10603         For example,
10604         -#include <sys/vfs.h>
10605         +# include <sys/vfs.h>
10606         Do this only in .c files that are part of a module I maintain.
10607         * lib/linkat.c: Filter through cppi.
10608         * lib/nanosleep.c: Likewise.
10609         * lib/openat.c: Likewise.
10610         * lib/openat-die.c: Likewise.
10611         * lib/dup3.c: Likewise.
10612         * lib/fchownat.c: Likewise.
10613         * lib/flock.c: Likewise.
10614         * lib/fsync.c: Likewise.
10615         * lib/fts.c: Likewise.
10616         * lib/getpass.c: Likewise.
10617         * lib/gettimeofday.c: Likewise.
10618         * lib/userspec.c: Likewise.
10619         * Makefile (sc_cpp_indent_check): New rule, to check this.
10620
10621 2011-02-22  Bruno Haible  <bruno@clisp.org>
10622
10623         New module 'wctomb'.
10624         * lib/stdlib.in.h (wctomb): New declaration.
10625         * lib/wctomb.c: New file.
10626         * lib/wctomb-impl.h: New file.
10627         * m4/wctomb.m4: New file.
10628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10629         REPLACE_WCTOMB.
10630         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10631         REPLACE_WCTOMB.
10632         * modules/wctomb: New file.
10633         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10634         * doc/posix-functions/wctomb.texi: Mention the new module.
10635         * modules/wctob (Depends-on): Add wctomb.
10636
10637 2011-02-22  Bruno Haible  <bruno@clisp.org>
10638
10639         New module 'mbtowc'.
10640         * lib/stdlib.in.h (mbtowc): New declaration.
10641         * lib/mbtowc.c: New file.
10642         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10643         * m4/mbtowc.m4: New file.
10644         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10645         REPLACE_MBTOWC.
10646         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10647         REPLACE_MBTOWC.
10648         * modules/mbtowc: New file.
10649         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10650         * doc/posix-functions/mbtowc.texi: Mention the new module.
10651         * modules/btowc (Depends-on): Add mbtowc.
10652
10653 2011-02-22  Bruno Haible  <bruno@clisp.org>
10654
10655         wcrtomb: Add more tests for native Windows platforms.
10656         * tests/test-wcrtomb-w32-1.sh: New file.
10657         * tests/test-wcrtomb-w32-2.sh: New file.
10658         * tests/test-wcrtomb-w32-3.sh: New file.
10659         * tests/test-wcrtomb-w32-4.sh: New file.
10660         * tests/test-wcrtomb-w32-5.sh: New file.
10661         * tests/test-wcrtomb-w32.c: New file.
10662         * modules/wcrtomb-tests (Files): Add them.
10663         (Makefile.am): Arrange to run these tests.
10664         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10665         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10666
10667 2011-02-20  Bruno Haible  <bruno@clisp.org>
10668
10669         wcrtomb: Enhance test.
10670         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10671
10672 2011-02-20  Bruno Haible  <bruno@clisp.org>
10673
10674         mbrtowc: Tiny optimization.
10675         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10676
10677 2011-02-20  Jim Meyering  <meyering@redhat.com>
10678
10679         test-exclude.c: remove unmatched #endif
10680         * tests/test-exclude.c: Remove stray #endif, left over from
10681         the change of a week ago.
10682
10683 2011-02-19  Jim Meyering  <meyering@redhat.com>
10684
10685         git-version-gen: skip "-dirty" check when appropriate
10686         * build-aux/git-version-gen: Don't run any git commands when the
10687         version string comes from .tarball-version.  Prior to this, we
10688         would run git update-index --refresh even from a just-unpacked
10689         tarball directory, and that could affect a .git/ directory in a
10690         parent of the build directory.  Reported by Mike Frysinger.
10691
10692 2011-02-19  Bruno Haible  <bruno@clisp.org>
10693
10694         unictype/property-byname: Reduce the size of the 'data' segment.
10695         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10696
10697 2011-02-19  Bruno Haible  <bruno@clisp.org>
10698
10699         unictype/scripts: Reduce the size of the 'data' segment.
10700         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10701         '%pic'.
10702         * lib/unictype/scripts_byname.gperf: Regenerated.
10703
10704 2011-02-19  Bruno Haible  <bruno@clisp.org>
10705
10706         stdint: Update documentation.
10707         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10708
10709 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10710
10711         stdint: omit redundant check for wchar.h
10712         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10713         always tests whether wchar.h exists, so remove the now-redundant test.
10714
10715 2011-02-18  Bruno Haible  <bruno@clisp.org>
10716
10717         stdint: Cut dependency to module 'wchar'.
10718         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10719         include the necessary prerequisites.
10720         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10721         * modules/stdint (Depends-on): Remove wchar.
10722         (Makefile.am): Substitute HAVE_WCHAR_H.
10723         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10724
10725 2011-02-18  Eric Blake  <eblake@redhat.com>
10726
10727         longlong: skip, rather than fail, on cross-compilation
10728         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10729         when cross-compiling; regression from 2011-02-16.
10730
10731 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10732
10733         * NEWS: Mention 2011-02-08 change to stdlib.
10734
10735 2011-02-17  Bruno Haible  <bruno@clisp.org>
10736
10737         getloadavg: Add comments about platforms.
10738         * m4/getloadavg.m4: Add comment.
10739         * lib/getloadavg.c: Likewise.
10740
10741 2011-02-17  Bruno Haible  <bruno@clisp.org>
10742
10743         getloadavg: Fix link error on Solaris 2.6.
10744         * modules/getloadavg (Link): New section.
10745         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10746         linking test-getloadavg.
10747         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10748         getloadavg.
10749
10750 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10751
10752         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10753         It was 'int', but this doesn't match the IRIX 6.5 manual.
10754         Suggested by Bruno Haible in
10755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10756
10757 2011-02-17  Bruno Haible  <bruno@clisp.org>
10758
10759         havelib: Fix comments.
10760         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10761         change.
10762
10763 2011-02-17  Bruno Haible  <bruno@clisp.org>
10764
10765         havelib: Update config.rpath.
10766         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10767
10768 2011-02-17  Bruno Haible  <bruno@clisp.org>
10769
10770         getloadavg test: Add some plausibility checks.
10771         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10772         is improbable.
10773
10774 2011-02-16  Eric Blake  <eblake@redhat.com>
10775
10776         maintainer-makefile: make syntax-check a no-op from tarballs
10777         * top/maint.mk (no-vc-detected): New rule.
10778         (local-checks-available): Use it to avoid hanging if someone tries
10779         'make syntax-check' from a tarball.  Also append to any non-syntax
10780         checks already defined in cfg.mk.
10781
10782 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10783
10784         longlong: tune, particularly for common case of c99
10785
10786         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10787         or running anything if c99, or if unsigned long long int does not
10788         work.  In either case, we know the answer without further tests.
10789         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10790         it at most once, and use its results for both long long int and
10791         unsigned long long int.  This is more likely to be efficient in
10792         the common case where the program wants to check for both long
10793         long int and unsigned long long int.
10794         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10795         since the answer is already known.
10796
10797 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10798
10799         getloadavg: set errno
10800         * lib/getloadavg.c: Set errno when returning -1.  If no other
10801         error number looks appropriate, set it to ENOSYS if the getloadavg
10802         looks like it can't possibly ever work, ENOTSUP otherwise.
10803         Suggested by Bruno Haible in
10804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10805
10806         getloadavg: trim unused parts and speed up 'configure'
10807         * NEWS: Document this.
10808         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10809         always compiled if getloadavg is absent.
10810         Move test code to ...
10811         * tests/test-getloadavg.c: New file, containing previous
10812         contents of test from lib/getloadavg.c.  It also contains
10813         suggestions by Bruno Haible in
10814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10815         * modules/getloadavg-tests: New file.
10816         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10817         Do tests in the same order as they're needed for getloadavg.c.
10818         Omit setgid-related tests that generate symbols KMEM_GROUP,
10819         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10820         Do only the tests that are needed to see whether the system has
10821         getloadavg, moving the other tests into ...
10822         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10823         NLIST_NAME_UNION; nobody should be using it.  Do not define
10824         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10825         relevant, as the user of this module shouldn't care how getloadavg
10826         is implemented.
10827
10828         getloadavg: omit unused var
10829         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10830
10831 2011-02-15  Jim Meyering  <meyering@redhat.com>
10832
10833         doc: update users.txt
10834         * users.txt: Update iwhd's URL.
10835
10836 2011-02-13  Bruno Haible  <bruno@clisp.org>
10837
10838         Consistent macro naming for macros that use GCC __attribute__.
10839         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10840         _ATTRIBUTE_NONNULL_.
10841         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10842         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10843         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10844         ATTRIBUTE_DEPRECATED.
10845         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10846         ATTRIBUTE_NORETURN.
10847         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10848         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10849         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10850         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10851         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10852         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10853         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10854         ATTRIBUTE_SENTINEL.
10855         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10856         ATTRIBUTE_RETURN_CHECK.
10857         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10858         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10859         ATTRIBUTE_NORETURN.
10860         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10861         Reported by Paul Eggert.
10862
10863 2011-02-13  Bruno Haible  <bruno@clisp.org>
10864
10865         Don't interfere with a program's definition of __attribute__.
10866         * lib/argp.h (__attribute__): Remove definition.
10867         (_GL_ATTRIBUTE_FORMAT): New macro.
10868         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10869         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10870         (_GL_ATTRIBUTE_FORMAT): New macro.
10871         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10872         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10873         GCC 3 or newer.
10874         * lib/error.h (__attribute__): Remove definition.
10875         (_GL_ATTRIBUTE_FORMAT): New macro.
10876         (error, error_at_line): Use it.
10877         * lib/hash.h (__attribute__): Remove definition.
10878         (ATTRIBUTE_WUR): Update definition. Define always.
10879         * lib/openat.h (__attribute__): Remove definition.
10880         (ATTRIBUTE_NORETURN): Update definition. Define always.
10881         * lib/sigpipe-die.h (__attribute__): Remove definition.
10882         (ATTRIBUTE_NORETURN): Update definition. Define always.
10883         * lib/vasnprintf.h (__attribute__): Remove definition.
10884         (_GL_ATTRIBUTE_FORMAT): New macro.
10885         (asnprintf, vasnprintf): Use it.
10886         * lib/xalloc.h (__attribute__): Remove definition.
10887         (ATTRIBUTE_NORETURN): Update definition. Define always.
10888         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10889         * lib/xmemdup0.h (__attribute__): Remove definition.
10890         (ATTRIBUTE_NORETURN): Update definition. Define always.
10891         * lib/xprintf.h (__attribute__): Remove definition.
10892         (_GL_ATTRIBUTE_FORMAT): New macro.
10893         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10894         * lib/xstrtol.h (__attribute__): Remove definition.
10895         (ATTRIBUTE_NORETURN): Update definition. Define always.
10896         * lib/xvasprintf.h (__attribute__): Remove definition.
10897         (_GL_ATTRIBUTE_FORMAT): New macro.
10898         (xasprintf, xvasprintf): Use it.
10899         * tests/test-argmatch.c (__attribute__): Remove definition.
10900         (ATTRIBUTE_NORETURN): Update definition. Define always.
10901         * tests/test-exclude.c (__attribute__): Remove definition.
10902         (ATTRIBUTE_NORETURN): Update definition. Define always.
10903         Reported by Paul Eggert.
10904
10905 2011-02-13  Bruno Haible  <bruno@clisp.org>
10906
10907         mbrtowc: Add more tests for native Windows platforms.
10908         * tests/test-mbrtowc-w32-1.sh: New file.
10909         * tests/test-mbrtowc-w32-2.sh: New file.
10910         * tests/test-mbrtowc-w32-3.sh: New file.
10911         * tests/test-mbrtowc-w32-4.sh: New file.
10912         * tests/test-mbrtowc-w32-5.sh: New file.
10913         * tests/test-mbrtowc-w32.c: New file.
10914         * modules/mbrtowc-tests (Files): Add them.
10915         (Makefile.am): Arrange to run these tests.
10916         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10917         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10918
10919 2011-02-13  Bruno Haible  <bruno@clisp.org>
10920
10921         mbrtowc: Work around native Windows bug.
10922         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10923         guess when no suitable locale for testing was found.
10924         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10925
10926 2011-02-13  Bruno Haible  <bruno@clisp.org>
10927
10928         mbsinit: Work around mingw bug.
10929         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10930         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10931         Windows.
10932         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10933
10934 2011-02-13  Bruno Haible  <bruno@clisp.org>
10935
10936         mbsinit: Don't crash for a NULL argument.
10937         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10938         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10939
10940 2011-02-13  Bruno Haible  <bruno@clisp.org>
10941
10942         Don't interfere with a program's definition of __attribute__.
10943         * lib/stdio.in.h (__attribute__): Remove definition.
10944         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10945         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10946         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10947         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10948         * lib/string.in.h (__attribute__): Remove definition.
10949         Reported by Paul Eggert.
10950
10951 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10952
10953         stdlib: don't get in the way of non-GCC __attribute__
10954         See thread starting at
10955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10956         Revert previous stdlib change, installing the following instead:
10957         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10958         to get in the way of a non-GCC compiler that supports __attribute__.
10959         (_GL_ATTRIBUTE_RETURN): New macro.
10960         (_Exit): Use it instead of __attribute__.
10961
10962 2011-02-12  Bruno Haible  <bruno@clisp.org>
10963
10964         quotearg test: Avoid test failure on mingw.
10965         * tests/test-quotearg.sh: Convert the locale identifier from native
10966         Windows syntax to Unix syntax.
10967
10968 2011-02-12  Bruno Haible  <bruno@clisp.org>
10969
10970         setlocale: Prefer gnulib's override over libintl's override.
10971         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10972         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10973         GNULIB_defined_setlocale is set.
10974
10975 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10976
10977         stdlib: support non-GCC __attribute__
10978
10979         Fix a serious and tricky problem encountered when attempting to
10980         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10981         5.5, but it crashed due to memory corruption on Solaris 10 with
10982         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10983         bits that are otherwise zero.  This tagging is optional inside
10984         Emacs but is preferred and is used when __attribute__ ((__aligned
10985         (8))) works, as it does with both recent-enough GCC and with Sun C
10986         5.11.  However, Sun C 5.11 is not GCC and does not #define
10987         __GNUC__ and __GNUC_MINOR__.
10988
10989         When I added the getloadavg module to Emacs, it brought in
10990         stdlib.in.h, which contained this fragment:
10991
10992            #ifndef __attribute__
10993            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10994            #  define __attribute__(Spec)   /* empty */
10995            # endif
10996            #endif
10997
10998         When files that include <stdlib.h> were compiled with Sun C 5.11,
10999         the above code disabled __attribute__ ((__aligned (8))), which
11000         caused variables to not be properly aligned, which eventually led
11001         to the pointer corruption mentioned above.  (This was a bit hard
11002         to diagnose, unfortunately.)
11003
11004         Several "#define __attribute__(X) /* empty */" code snippets need
11005         to be eradicated from Gnulib to work with non-GCC compilers that
11006         support __attribute__.  The Autoconf way to do this is to test for
11007         each kind of attribute that we want support for, and selectively
11008         enable that in source code.
11009
11010         Fix this problem just for stdlib.h, by adding a test for the
11011         __noreturn__ attribute, and change stdlib.in.h to use that test
11012         when needed.  This technique can be easily generalized to the
11013         other *.in.h files and attributes, and a similar technique can be
11014         used for *.h and *.c files.  This patch is enough to solve the
11015         problem for Emacs + getloadavg, and I thought I'd publish it for
11016         feedback before undertaking further, similar fixes in other
11017         modules.
11018
11019         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11020         because it's not needed for stdlib.h.  It merely substitutes the
11021         value directly into stdlib.h.  We may well need to #define it, or
11022         similar symbols, for other modules, but it's nice to also have an
11023         option to not #define it for applications like Emacs that do not
11024         need it.
11025
11026         * lib/stdlib.in.h (__attribute__): Do not #define.
11027         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11028         be defined only if the _Exit module is also used.
11029         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11031         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11032         platforms.
11033         * modules/_Exit (Files): Add m4/attribute.m4.
11034         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11035         * m4/attribute.m4: New file.
11036
11037 2011-02-12  Bruno Haible  <bruno@clisp.org>
11038
11039         wcsrtombs: Work around bug on native Windows.
11040         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11041         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11042         instead of len.
11043         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11044
11045 2011-02-12  Bruno Haible  <bruno@clisp.org>
11046
11047         mbsrtowcs: Work around bug on native Windows.
11048         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11049         against mingw bug.
11050         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11051
11052 2011-02-12  Bruno Haible  <bruno@clisp.org>
11053
11054         Avoid setlocale bugs in tests.
11055         * modules/btowc (Dependencies): Add setlocale.
11056         * modules/c-strcase (Dependencies): Likewise.
11057         * modules/mbmemcasecmp (Dependencies): Likewise.
11058         * modules/mbmemcasecoll (Dependencies): Likewise.
11059         * modules/mbrtowc (Dependencies): Likewise.
11060         * modules/mbscasecmp (Dependencies): Likewise.
11061         * modules/mbscasestr (Dependencies): Likewise.
11062         * modules/mbschr (Dependencies): Likewise.
11063         * modules/mbscspn (Dependencies): Likewise.
11064         * modules/mbsinit (Dependencies): Likewise.
11065         * modules/mbsncasecmp (Dependencies): Likewise.
11066         * modules/mbsnrtowcs (Dependencies): Likewise.
11067         * modules/mbspbrk (Dependencies): Likewise.
11068         * modules/mbspcasecmp (Dependencies): Likewise.
11069         * modules/mbsrchr (Dependencies): Likewise.
11070         * modules/mbsrtowcs (Dependencies): Likewise.
11071         * modules/mbsspn (Dependencies): Likewise.
11072         * modules/mbsstr (Dependencies): Likewise.
11073         * modules/nl_langinfo (Dependencies): Likewise.
11074         * modules/quotearg (Dependencies): Likewise.
11075         * modules/unicase/locale-language (Dependencies): Likewise.
11076         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11077         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11078         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11079         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11080         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11081         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11082         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11083         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11084         * modules/vasnprintf-posix (Dependencies): Likewise.
11085         * modules/wcrtomb (Dependencies): Likewise.
11086         * modules/wcsnrtombs (Dependencies): Likewise.
11087         * modules/wcsrtombs (Dependencies): Likewise.
11088
11089 2011-02-12  Bruno Haible  <bruno@clisp.org>
11090
11091         setlocale: Workaround native Windows bug.
11092         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11093         succeeds but sets LC_CTYPE to "C", report a failure.
11094         * tests/test-setlocale2.sh: New file.
11095         * tests/test-setlocale2.c: New file.
11096         * modules/setlocale-tests (Files): Add the new files.
11097         (Makefile.am): Enable test-setlocale2.sh test.
11098         * doc/posix-functions/setlocale.texi: Mention workaround.
11099
11100 2011-02-11  Bruno Haible  <bruno@clisp.org>
11101
11102         Tests for module 'setlocale'.
11103         * modules/setlocale-tests: New file.
11104         * tests/test-setlocale1.sh: New file.
11105         * tests/test-setlocale1.c: New file.
11106
11107         New module 'setlocale'.
11108         * lib/locale.in.h (setlocale): New declaration.
11109         * lib/setlocale.c: New file, based on
11110         gettext/gettext-runtime/intl/setlocale.c.
11111         * m4/setlocale.m4: New file.
11112         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11113         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11114         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11115         REPLACE_SETLOCALE.
11116         * modules/setlocale: New file.
11117         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11118         * doc/posix-functions/setlocale.texi: Mention the new module.
11119
11120 2011-02-11  Bruno Haible  <bruno@clisp.org>
11121
11122         Prepare for locale dependent tests on mingw.
11123         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11124         because it has the wrong locale encoding.
11125         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11126         French_France.1252 instead of "fr".
11127         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11128         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11129         because it has the wrong locale encoding.
11130         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11131         native Windows, try Turkish_Turkey.65001.
11132         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11133         Chinese_China.54936.
11134
11135         Prepare for locale dependent tests on mingw.
11136         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11137         differently.
11138         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11139         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11140         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11141         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11142
11143 2011-02-11  Eric Blake  <eblake@redhat.com>
11144
11145         strptime: avoid compiler warnings
11146         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11147         compiler warnings about dead code.
11148         Reported by Daniel P. Berrange.
11149
11150 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11151
11152         doc: update users.txt
11153         * users.txt: Add rcs.
11154
11155 2011-02-10  John W. Eaton  <jwe@gnu.org>
11156
11157         doc: update users.txt
11158         * users.txt: Add octave.
11159
11160 2011-02-10  Jim Meyering  <meyering@redhat.com>
11161
11162         doc: update users.txt
11163         * users.txt: Add iwhd.
11164
11165 2011-02-09  Bruno Haible  <bruno@clisp.org>
11166
11167         gnulib-tool: Make copyright notice adjustment more robust.
11168         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11169         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11170         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11171         License".
11172         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11173
11174 2011-02-06  Bruno Haible  <bruno@clisp.org>
11175
11176         New module 'towctrans'.
11177         * modules/towctrans: New file.
11178         * lib/wctype.in.h (towctrans): New declaration.
11179         * lib/towctrans.c: New file.
11180         * lib/towctrans-impl.h: New file.
11181         * m4/towctrans.m4: New file.
11182         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11183         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11184         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11185         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11186         * doc/posix-functions/towctrans.texi: Mention the new module.
11187
11188 2011-02-06  Bruno Haible  <bruno@clisp.org>
11189
11190         New module 'wctrans'.
11191         * modules/wctrans: New file.
11192         * lib/wctype.in.h (wctrans): New declaration.
11193         * lib/wctrans.c: New file.
11194         * lib/wctrans-impl.h: New file.
11195         * m4/wctrans.m4: New file.
11196         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11197         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11198         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11199         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11200         * doc/posix-functions/wctrans.texi: Mention the new module.
11201
11202 2011-02-06  Bruno Haible  <bruno@clisp.org>
11203
11204         New module 'iswctype'.
11205         * modules/iswctype: New file.
11206         * lib/wctype.in.h (iswctype): New declaration.
11207         * lib/iswctype.c: New file.
11208         * lib/iswctype-impl.h: New file.
11209         * m4/iswctype.m4: New file.
11210         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11211         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11212         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11213         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11214         * doc/posix-functions/iswctype.texi: Mention the new module and the
11215         HP-UX 11.00 problem.
11216
11217 2011-02-06  Bruno Haible  <bruno@clisp.org>
11218
11219         New module 'wctype'.
11220         * modules/wctype: Change to represent the wctype() substitute.
11221         * lib/wctype.in.h (wctype): New declaration.
11222         * lib/wctype.c: New file.
11223         * lib/wctype-impl.h: New file.
11224         * m4/wctype.m4: New file.
11225         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11226         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11227         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11228         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11229         * doc/posix-functions/wctype.texi: Mention the new module and the
11230         HP-UX 11.00 problem.
11231
11232 2011-02-06  Bruno Haible  <bruno@clisp.org>
11233
11234         wctype-h: Ensure wctype_t and wctrans_t are defined.
11235         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11236         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11237         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11238         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11239         HAVE_WCTRANS_T.
11240         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11241
11242 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11243
11244         flock: fix license typo
11245
11246         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11247         omitted.
11248
11249 2011-02-08  Bruno Haible  <bruno@clisp.org>
11250
11251         Split large sed scripts, for HP-UX sed.
11252         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11253         to avoid HP-UX limit of 99 commands, in the near future.
11254         * modules/stdlib (Makefile.am): Likewise.
11255         * modules/unistd (Makefile.am): Likewise.
11256         * modules/wchar (Makefile.am): Likewise.
11257         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11258         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11259         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11260
11261 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11262             Bruno Haible  <bruno@clisp.org>
11263
11264         stdlib: improve random_r modularization
11265         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11266         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11267         you also need the random_r module to get this material right.
11268         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11269         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11270         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11271
11272 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11273
11274         stdlib: don't depend on stdint
11275         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11276         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11277         be independent of whether stdint.h is needed.
11278         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11279         here, instead of ...
11280         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11281         struct random_data should be using the random_r module, not just
11282         the stdlib module (which wouldn't make sense: what package needs
11283         just struct random_data without also needing random_r?).
11284         * modules/stdlib (Depends-on): Remove stdint.
11285
11286         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11287         See the thread rooted at
11288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11289         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11290         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11291         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11292         __VMS)); previously it was always included (via fcntl--.h).
11293         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11294         hand; this is good enough for load averages.  Also, do not use
11295         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11296         flags directly if available and don't bother otherwise.  (Packages
11297         that need the extra reliability should use the modules that define
11298         these flags on older platforms that lack them.)
11299         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11300         fcntl-safer.
11301
11302 2011-02-08  Jim Meyering  <meyering@redhat.com>
11303
11304         di-set.h, ino-map.h: add multiple-inclusion guard
11305         Technically, the guard is required only for ino-map.h, due to its
11306         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11307         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11308         * lib/ino-map.h: Likewise.
11309
11310 2011-02-06  Bruno Haible  <bruno@clisp.org>
11311
11312         iswblank: Ensure declaration on glibc systems.
11313         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11314         * modules/iswblank (Dependencies): Add 'extensions'.
11315         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11316
11317 2011-02-06  Bruno Haible  <bruno@clisp.org>
11318
11319         New module 'iswblank'.
11320         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11321         * modules/iswblank: New file.
11322         * modules/wctype-h (Files): Remove lib/iswblank.c.
11323         (Makefile.am): Substitute GNULIB_ISWBLANK.
11324         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11325         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11326         (gl_WCTYPE_H_DEFAULTS): New macro.
11327         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11328         * modules/iswblank-tests: New file.
11329         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11330         * tests/test-wctype-h.c (main): Remove iswblank tests.
11331         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11332         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11333         of 'wctype-h'.
11334         * NEWS: Mention the change.
11335         * modules/mbchar (Depends-on): Add iswblank.
11336
11337 2011-02-08  Bruno Haible  <bruno@clisp.org>
11338
11339         di-set tests: Refactor.
11340         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11341         unnecessary includes.
11342         (ASSERT): Remove macro.
11343         (main): Make C90 compliant by avoiding variable declaration after
11344         statement.
11345         * modules/di-set-tests (Files): Add tests/macros.h.
11346
11347 2011-02-08  Bruno Haible  <bruno@clisp.org>
11348
11349         ino-map tests: Refactor.
11350         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11351         unnecessary includes.
11352         (ASSERT): Remove macro.
11353         (main): Make C90 compliant by avoiding variable declaration after
11354         statement.
11355         * modules/ino-map-tests (Files): Add tests/macros.h.
11356
11357 2011-02-08  Jim Meyering  <meyering@redhat.com>
11358
11359         di-set: add "const" to a cast
11360         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11361         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11362
11363 2011-02-06  Bruno Haible  <bruno@clisp.org>
11364
11365         Rename module 'wctype' to 'wctype-h'.
11366         * modules/wctype-h: Renamed from modules/wctype.
11367         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11368         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11369         (Files, Depends-on, Makefile.am): Update.
11370         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11371         (Files, Makefile.am): Update.
11372         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11373         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11374         * doc/posix-headers/wctype.texi: Update.
11375         * doc/posix-functions/iswalnum.texi: Update.
11376         * doc/posix-functions/iswalpha.texi: Update.
11377         * doc/posix-functions/iswblank.texi: Update.
11378         * doc/posix-functions/iswcntrl.texi: Update.
11379         * doc/posix-functions/iswdigit.texi: Update.
11380         * doc/posix-functions/iswgraph.texi: Update.
11381         * doc/posix-functions/iswlower.texi: Update.
11382         * doc/posix-functions/iswprint.texi: Update.
11383         * doc/posix-functions/iswpunct.texi: Update.
11384         * doc/posix-functions/iswspace.texi: Update.
11385         * doc/posix-functions/iswupper.texi: Update.
11386         * doc/posix-functions/iswxdigit.texi: Update.
11387         * doc/posix-functions/towlower.texi: Update.
11388         * doc/posix-functions/towupper.texi: Update.
11389         * NEWS: Mention the change.
11390         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11391         * modules/mbchar (Dependencies): Likewise.
11392         * modules/mbswidth (Dependencies): Likewise.
11393         * modules/quotearg (Dependencies): Likewise.
11394         * modules/regex (Dependencies): Likewise.
11395         * modules/wcscasecmp (Dependencies): Likewise.
11396         * modules/wcsncasecmp (Dependencies): Likewise.
11397         * modules/wcwidth (Dependencies): Likewise.
11398
11399 2011-02-06  Bruno Haible  <bruno@clisp.org>
11400
11401         New module 'wcswidth'.
11402         * modules/wcswidth: New file.
11403         * lib/wchar.in.h (wcswidth): New declaration.
11404         * lib/wcswidth.c: New file.
11405         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11406         * m4/wcswidth.m4: New file.
11407         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11408         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11409         REPLACE_WCSWIDTH.
11410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11411         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11412         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11413         * doc/posix-functions/wcswidth.texi: Mention the new module.
11414
11415 2011-02-06  Bruno Haible  <bruno@clisp.org>
11416
11417         New module 'wcstok'.
11418         * modules/wcstok: New file.
11419         * lib/wchar.in.h (wcstok): New declaration.
11420         * lib/wcstok.c: New file.
11421         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11422         * m4/wcstok.m4: New file.
11423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11426         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11427         * doc/posix-functions/wcstok.texi: Mention the new module.
11428
11429 2011-02-06  Bruno Haible  <bruno@clisp.org>
11430
11431         New module 'wcsstr'.
11432         * modules/wcsstr: New file.
11433         * lib/wchar.in.h (wcsstr): New declaration.
11434         * lib/wcsstr.c: New file.
11435         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11436         * m4/wcsstr.m4: New file.
11437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11439         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11440         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11441         * doc/posix-functions/wcsstr.texi: Mention the new module.
11442
11443 2011-02-06  Bruno Haible  <bruno@clisp.org>
11444
11445         New module 'wcspbrk'.
11446         * modules/wcspbrk: New file.
11447         * lib/wchar.in.h (wcspbrk): New declaration.
11448         * lib/wcspbrk.c: New file.
11449         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11450         * m4/wcspbrk.m4: New file.
11451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11454         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11455         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11456
11457 2011-02-06  Bruno Haible  <bruno@clisp.org>
11458
11459         New module 'wcsspn'.
11460         * modules/wcsspn: New file.
11461         * lib/wchar.in.h (wcsspn): New declaration.
11462         * lib/wcsspn.c: New file.
11463         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11464         * m4/wcsspn.m4: New file.
11465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11468         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11469         * doc/posix-functions/wcsspn.texi: Mention the new module.
11470
11471 2011-02-06  Bruno Haible  <bruno@clisp.org>
11472
11473         New module 'wcscspn'.
11474         * modules/wcscspn: New file.
11475         * lib/wchar.in.h (wcscspn): New declaration.
11476         * lib/wcscspn.c: New file.
11477         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11478         * m4/wcscspn.m4: New file.
11479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11482         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11483         * doc/posix-functions/wcscspn.texi: Mention the new module.
11484
11485 2011-02-06  Bruno Haible  <bruno@clisp.org>
11486
11487         New module 'wcsrchr'.
11488         * modules/wcsrchr: New file.
11489         * lib/wchar.in.h (wcsrchr): New declaration.
11490         * lib/wcsrchr.c: New file.
11491         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11492         * m4/wcsrchr.m4: New file.
11493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11496         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11497         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11498
11499 2011-02-06  Bruno Haible  <bruno@clisp.org>
11500
11501         New module 'wcschr'.
11502         * modules/wcschr: New file.
11503         * lib/wchar.in.h (wcschr): New declaration.
11504         * lib/wcschr.c: New file.
11505         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11506         * m4/wcschr.m4: New file.
11507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11510         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11511         * doc/posix-functions/wcschr.texi: Mention the new module.
11512
11513 2011-02-06  Bruno Haible  <bruno@clisp.org>
11514
11515         New module 'wcsdup'.
11516         * modules/wcsdup: New file.
11517         * lib/wchar.in.h (wcsdup): New declaration.
11518         * lib/wcsdup.c: New file.
11519         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11520         * m4/wcsdup.m4: New file.
11521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11524         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11525         * doc/posix-functions/wcsdup.texi: Mention the new module.
11526
11527 2011-02-06  Bruno Haible  <bruno@clisp.org>
11528
11529         New module 'wcsxfrm'.
11530         * modules/wcsxfrm: New file.
11531         * lib/wchar.in.h (wcsxfrm): New declaration.
11532         * lib/wcsxfrm.c: New file.
11533         * lib/wcsxfrm-impl.h: New file.
11534         * m4/wcsxfrm.m4: New file.
11535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11538         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11539         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11540
11541 2011-02-06  Bruno Haible  <bruno@clisp.org>
11542
11543         New module 'wcscoll'.
11544         * modules/wcscoll: New file.
11545         * lib/wchar.in.h (wcscoll): New declaration.
11546         * lib/wcscoll.c: New file.
11547         * lib/wcscoll-impl.h: New file.
11548         * m4/wcscoll.m4: New file.
11549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11552         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11553         * doc/posix-functions/wcscoll.texi: Mention the new module.
11554
11555 2011-02-06  Bruno Haible  <bruno@clisp.org>
11556
11557         New module 'wcsncasecmp'.
11558         * modules/wcsncasecmp: New file.
11559         * lib/wchar.in.h (wcsncasecmp): New declaration.
11560         * lib/wcsncasecmp.c: New file.
11561         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11562         * m4/wcsncasecmp.m4: New file.
11563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11566         HAVE_WCSNCASECMP.
11567         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11568         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11569
11570 2011-02-06  Bruno Haible  <bruno@clisp.org>
11571
11572         New module 'wcscasecmp'.
11573         * modules/wcscasecmp: New file.
11574         * lib/wchar.in.h (wcscasecmp): New declaration.
11575         * lib/wcscasecmp.c: New file.
11576         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11577         * m4/wcscasecmp.m4: New file.
11578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11581         HAVE_WCSCASECMP.
11582         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11583         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11584
11585 2011-02-05  Bruno Haible  <bruno@clisp.org>
11586
11587         New module 'wcsncmp'.
11588         * modules/wcsncmp: New file.
11589         * lib/wchar.in.h (wcsncmp): New declaration.
11590         * lib/wcsncmp.c: New file.
11591         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11592         * m4/wcsncmp.m4: New file.
11593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11596         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11597         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11598
11599 2011-02-05  Bruno Haible  <bruno@clisp.org>
11600
11601         New module 'wcscmp'.
11602         * modules/wcscmp: New file.
11603         * lib/wchar.in.h (wcscmp): New declaration.
11604         * lib/wcscmp.c: New file.
11605         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11606         * m4/wcscmp.m4: New file.
11607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11610         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11611         * doc/posix-functions/wcscmp.texi: Mention the new module.
11612
11613 2011-02-05  Bruno Haible  <bruno@clisp.org>
11614
11615         New module 'wcsncat'.
11616         * modules/wcsncat: New file.
11617         * lib/wchar.in.h (wcsncat): New declaration.
11618         * lib/wcsncat.c: New file.
11619         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11620         * m4/wcsncat.m4: New file.
11621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11624         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11625         * doc/posix-functions/wcsncat.texi: Mention the new module.
11626
11627 2011-02-05  Bruno Haible  <bruno@clisp.org>
11628
11629         New module 'wcscat'.
11630         * modules/wcscat: New file.
11631         * lib/wchar.in.h (wcscat): New declaration.
11632         * lib/wcscat.c: New file.
11633         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11634         * m4/wcscat.m4: New file.
11635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11638         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11639         * doc/posix-functions/wcscat.texi: Mention the new module.
11640
11641 2011-02-05  Bruno Haible  <bruno@clisp.org>
11642
11643         New module 'wcpncpy'.
11644         * modules/wcpncpy: New file.
11645         * lib/wchar.in.h (wcpncpy): New declaration.
11646         * lib/wcpncpy.c: New file.
11647         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11648         * m4/wcpncpy.m4: New file.
11649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11651         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11652         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11653         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11654
11655 2011-02-05  Bruno Haible  <bruno@clisp.org>
11656
11657         New module 'wcsncpy'.
11658         * modules/wcsncpy: New file.
11659         * lib/wchar.in.h (wcsncpy): New declaration.
11660         * lib/wcsncpy.c: New file.
11661         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11662         * m4/wcsncpy.m4: New file.
11663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11666         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11667         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11668
11669 2011-02-05  Bruno Haible  <bruno@clisp.org>
11670
11671         New module 'wcpcpy'.
11672         * modules/wcpcpy: New file.
11673         * lib/wchar.in.h (wcpcpy): New declaration.
11674         * lib/wcpcpy.c: New file.
11675         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11676         * m4/wcpcpy.m4: New file.
11677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11679         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11680         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11681         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11682
11683 2011-02-05  Bruno Haible  <bruno@clisp.org>
11684
11685         New module 'wcscpy'.
11686         * modules/wcscpy: New file.
11687         * lib/wchar.in.h (wcscpy): New declaration.
11688         * lib/wcscpy.c: New file.
11689         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11690         * m4/wcscpy.m4: New file.
11691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11694         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11695         * doc/posix-functions/wcscpy.texi: Mention the new module.
11696
11697 2011-02-05  Bruno Haible  <bruno@clisp.org>
11698
11699         New module 'wcsnlen'.
11700         * modules/wcsnlen: New file.
11701         * lib/wchar.in.h (wcsnlen): New declaration.
11702         * lib/wcsnlen.c: New file.
11703         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11704         * m4/wcsnlen.m4: New file.
11705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11708         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11709         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11710
11711 2011-02-05  Bruno Haible  <bruno@clisp.org>
11712
11713         New module 'wcslen'.
11714         * modules/wcslen: New file.
11715         * lib/wchar.in.h (wcslen): New declaration.
11716         * lib/wcslen.c: New file.
11717         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11718         * m4/wcslen.m4: New file.
11719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11722         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11723         * doc/posix-functions/wcslen.texi: Mention the new module.
11724
11725 2011-02-05  Bruno Haible  <bruno@clisp.org>
11726
11727         New module 'wmemset'.
11728         * modules/wmemset: New file.
11729         * lib/wchar.in.h (wmemset): New declaration.
11730         * lib/wmemset.c: New file.
11731         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11732         * m4/wmemset.m4: New file.
11733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11735         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11736         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11737         * doc/posix-functions/wmemset.texi: Mention the new module.
11738
11739 2011-02-05  Bruno Haible  <bruno@clisp.org>
11740
11741         New module 'wmemmove'.
11742         * modules/wmemmove: New file.
11743         * lib/wchar.in.h (wmemmove): New declaration.
11744         * lib/wmemmove.c: New file.
11745         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11746         * m4/wmemmove.m4: New file.
11747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11749         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11750         HAVE_WMEMMOVE.
11751         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11752         * doc/posix-functions/wmemmove.texi: Mention the new module.
11753
11754 2011-02-05  Bruno Haible  <bruno@clisp.org>
11755
11756         New module 'wmemcpy'.
11757         * modules/wmemcpy: New file.
11758         * lib/wchar.in.h (wmemcpy): New declaration.
11759         * lib/wmemcpy.c: New file.
11760         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11761         * m4/wmemcpy.m4: New file.
11762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11764         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11765         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11766         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11767
11768 2011-02-05  Bruno Haible  <bruno@clisp.org>
11769
11770         New module 'wmemcmp'.
11771         * modules/wmemcmp: New file.
11772         * lib/wchar.in.h (wmemcmp): New declaration.
11773         * lib/wmemcmp.c: New file.
11774         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11775         * m4/wmemcmp.m4: New file.
11776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11778         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11779         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11780         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11781
11782 2011-02-07  Jim Meyering  <meyering@redhat.com>
11783
11784         di-set, ino-map: new modules, from coreutils
11785         * lib/di-set.c: New file.
11786         * lib/di-set.h: Likewise.
11787         * lib/ino-map.c: Likewise.
11788         * lib/ino-map.h: Likewise.
11789         * modules/di-set: Likewise.
11790         * modules/di-set-tests: Likewise.
11791         * modules/ino-map: Likewise.
11792         * modules/ino-map-tests: Likewise.
11793         * tests/test-di-set.c: Likewise.
11794         * tests/test-ino-map.c: Likewise.
11795
11796 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11797
11798         getloadavg: merge minor changes from Emacs
11799
11800         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11801         (getloadavg): Use memset, not bzero.
11802
11803         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11804         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11805         clash (bug#86).
11806
11807 2010-11-14  Bruno Haible  <bruno@clisp.org>
11808
11809         Allow multiple gnulib generated replacements to coexist.
11810         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11811         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11812         * lib/langinfo.in.h (nl_item): Likewise.
11813         * lib/math.in.h (_NaN, NAN): Likewise.
11814         * lib/netdb.in.h (struct addrinfo): Likewise.
11815         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11816         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11817         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11818         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11819         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11820         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11821         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11822         pthread_mutexattr_init, pthread_mutexattr_settype,
11823         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11824         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11825         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11826         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11827         * lib/sched.in.h (struct sched_param): Likewise.
11828         * lib/se-selinux.in.h (security_class_t, security_context_t,
11829         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11830         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11831         lsetfilecon, fsetfilecon, security_check_context,
11832         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11833         Likewise.
11834         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11835         Likewise.
11836         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11837         _gl_function_taking_int_returning_void_t, union sigval,
11838         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11839         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11840         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11841         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11842         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11843         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11844         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11845         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11846         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11847         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11848         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11849         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11850         socklen_t, rpl_fd_isset): Likewise.
11851         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11852         * lib/sys_time.in.h (struct timeval): Likewise.
11853         * lib/sys_times.in.h (struct tms): Likewise.
11854         * lib/sys_utsname.in.h (struct utsname):
11855         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11856         * lib/unistd.in.h (getpagesize): Likewise.
11857         * lib/wchar.in.h (mbstate_t): Likewise.
11858         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11859         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11860         towlower, towupper): Likewise.
11861         Reported by Sam Steingold <sds@gnu.org>.
11862
11863 2011-02-05  Eric Blake  <eblake@redhat.com>
11864
11865         unsetenv: work around Haiku issues
11866         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11867         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11868
11869 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11870
11871         libposix: avoid calling error() within libposix
11872         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11873         is defined.
11874
11875 2011-02-05  Eric Blake  <eblake@redhat.com>
11876
11877         strerror_r-posix: port to cygwin
11878         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11879         implementation.
11880         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11881         * tests/test-strerror_r.c (main): Fix test.
11882         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11883         issue.
11884
11885 2011-02-05  Bruno Haible  <bruno@clisp.org>
11886
11887         New module 'wmemchr'.
11888         * modules/wmemchr: New file.
11889         * lib/wchar.in.h (wmemchr): New declaration.
11890         * lib/wmemchr.c: New file.
11891         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11892         * m4/wmemchr.m4: New file.
11893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11895         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11896         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11897         * doc/posix-functions/wmemchr.texi: Mention the new module.
11898
11899 2011-02-04  Eric Blake  <eblake@redhat.com>
11900
11901         fdopendir: detect FreeBSD bug
11902         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11903         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11904
11905 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11906
11907         stdbool: do not define HAVE_STDBOOL_H
11908         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11909         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11910         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11911         imported from the latest Autoconf git.  It was motivated by Emacs,
11912         which uses gnulib but does not need HAVE_STDBOOL_H.
11913
11914 2011-02-04  Bruno Haible  <bruno@clisp.org>
11915
11916         wcsnrtombs: Prepare for new module wwcsnrtombs.
11917         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11918         * lib/wcsnrtombs.c: Include it.
11919         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11920
11921         wcsrtombs: Prepare for new module wwcsrtombs.
11922         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11923         * lib/wcsrtombs.c: Include it.
11924         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11925
11926         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11927         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11928         * lib/mbsnrtowcs.c: Include it.
11929         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11930
11931         mbsrtowcs: Prepare for new module mbsrtowwcs.
11932         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11933         * lib/mbsrtowcs.c: Include it.
11934         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11935
11936 2011-02-04  Bruno Haible  <bruno@clisp.org>
11937
11938         vasnprintf: Reduce use of malloc for small format strings.
11939         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11940         (arguments): Add room for the first 7 arguments.
11941         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11942         (char_directives, u8_directives, u16_directives, u32_directives): Add
11943         room for the first 7 directives.
11944         * lib/printf-parse.c: Include <string.h>.
11945         (PRINTF_PARSE): Change memory handling code so that it uses the first
11946         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11947         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11948         Reported by Pádraig Brady <P@draigbrady.com>.
11949
11950 2011-01-31  Eric Blake  <eblake@redhat.com>
11951
11952         dup2: work around Haiku bug
11953         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11954         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11955         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11956         * tests/test-dup2.c (main): Enhance test.
11957
11958 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11959
11960         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11961         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11962         declared by eglibc 2.11.2.
11963         * lib/stdio.in.h: Likewise.
11964
11965 2011-01-31  Eric Blake  <eblake@redhat.com>
11966
11967         ignore-value: add missing test dependency
11968         * tests/test-ignore-value.c: Revert previous change; stdio.h
11969         provides off_t.
11970         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11971
11972 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11973
11974         mktime: clarify long_int width checking
11975         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11976         the top level, to make it clearer that the assumption about
11977         long_int width is being checked.  See
11978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11979
11980 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11981
11982         ignore-value: Fix self-test.
11983         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11984
11985 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11986
11987         TYPE_MAXIMUM: avoid theoretically undefined behavior
11988         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11989         negative number, which the C Standard says has undefined behavior.
11990         In practice this is not a problem, but might as well do it by the book.
11991         Reported by Rich Felker and Eric Blake; see
11992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11993         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11994         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11996         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11997         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11998         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11999
12000         mktime: #undef mktime before #defining it
12001         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12002
12003         mktime: systematically normalize tm_isdst comparisons
12004         * lib/mktime.c (isdst_differ): New function.
12005         (__mktime_internal): Use it systematically for all isdst comparisons.
12006         This completes the fix for libc BZ #6723, and removes the need for
12007         normalizing tm_isdst.  See
12008         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12009         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12010
12011         mktime: fix some integer overflow issues and sidestep the rest
12012
12013         This was prompted by a bug report by Benjamin Lindner for MinGW
12014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12015         His bug is due to signed integer overflow (0 - INT_MIN), and I
12016         I scanned through mktime.c looking for other integer overflow
12017         problems, fixing all the bugs I found.
12018
12019         Although the C Standard says the resulting code is still not safe
12020         in the presence of integer overflow, in practice it should be good
12021         enough for all real-world two's-complement implementations, except
12022         for debugging environments that deliberately trap on integer
12023         overflow (e.g., gcc -ftrapv).
12024
12025         * lib/mktime.c (WRAPV): New macro.
12026         (SHR): Also check that long_int and time_t shift right in the
12027         usual way, before using the fast-but-unportable method.
12028         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12029         used.  The code already assumed two's complement, so there's
12030         no need to test for alternatives.  All uses removed.
12031         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12032         the C standard.  Problem reported by Rich Felker in
12033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12034         (twos_complement_arithmetic): Also check long_int and time_t.
12035         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12036         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12037         (__mktime_internal): Avoid integer overflow with unary subtraction
12038         in two instances where -1 - X is an adequate replacement for -X,
12039         since the calculations are approximate.
12040
12041 2011-01-29  Eric Blake  <eblake@redhat.com>
12042
12043         mktime: avoid infinite loop
12044         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12045         type; behavior is still undefined but portable to all known targets.
12046         Reported by Rich Felker.
12047
12048 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12049
12050         rename, unlink, same-inode: Relicense.
12051         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12052         * modules/unlink (License): Likewise.
12053         * modules/same-inode (License): Likewise.
12054
12055 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12056
12057         mktime: avoid problems on NetBSD 5 / i386
12058         * lib/mktime.c (long_int): New type.  This works around a problem
12059         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12060         but time_t is 64 bits, and where I expect the existing code is
12061         wrong in some cases.
12062         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12063         (ydhms_diff): Bring back the compile-time check for wide-enough
12064         year and yday.
12065
12066         mktime: fix misspelling in comment
12067         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12068         This merges all recent glibc changes of importance.
12069
12070 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12071
12072         move-if-change: cope with concurrent mv of identical file.
12073         * build-aux/move-if-change (CMPPROG): Accept environment
12074         variable as an override for `cmp'.
12075         (usage): Document CMPPROG.
12076         Adjust comparison to drop stdout.  Cope with failure of mv if
12077         the target file exists and is identical to the source, for
12078         parallel builds.
12079         Report from H.J. Lu against binutils in PR binutils/12283.
12080
12081 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12082
12083         * users.txt: Mention sharutils.
12084
12085 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12086
12087         * users.txt: Mention OATH Toolkit.
12088
12089 2011-01-27  Bruno Haible  <bruno@clisp.org>
12090
12091         Prepare for supporting FreeBSD 10.
12092         * build-aux/config.libpath: Remove handling of freebsd1*.
12093
12094 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12095
12096         Prepare for supporting FreeBSD 10.
12097         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12098         match FreeBSD 10.0.
12099
12100 2011-01-27  Bruno Haible  <bruno@clisp.org>
12101
12102         vma-iter, get-rusage-as: Add OpenBSD support.
12103         * modules/vma-iter (configure.ac): Test for mquery.
12104         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12105         * lib/vma-iter.c: Include <sys/mman.h>.
12106         (vma_iterate): Add an implementation based on mquery().
12107         * lib/resource-ext.h (get_rusage_as): Update comments.
12108         * lib/get-rusage-as.c: Likewise.
12109         * lib/get-rusage-data.c: Likewise.
12110
12111 2011-01-26  Karl Berry  <karl@gnu.org>
12112
12113         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12114         variables to make it easier to override the makeinfo program used.
12115
12116 2011-01-26  Eric Blake  <eblake@redhat.com>
12117
12118         fcntl: work around Haiku F_DUPFD bugs
12119         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12120         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12121         cloexec bit on duplication.
12122         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12123
12124 2011-01-26  Bruno Haible  <bruno@clisp.org>
12125
12126         Enable memory leak tests on AIX.
12127         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12128         * tests/test-fprintf-posix3.c (main): Likewise.
12129
12130 2011-01-26  Bruno Haible  <bruno@clisp.org>
12131
12132         Tests for module 'get-rusage-data'.
12133         * modules/get-rusage-data-tests: New file.
12134         * tests/test-get-rusage-data.c: New file.
12135
12136         New module 'get-rusage-data'.
12137         * lib/resource-ext.h (get_rusage_data): New declaration.
12138         * lib/get-rusage-data.c: New file.
12139         * modules/get-rusage-data: New file.
12140
12141 2011-01-25  Bruno Haible  <bruno@clisp.org>
12142
12143         get-rusage-as: Allow for easier testing.
12144         * lib/resource-ext.h (get_rusage_as): Add comment.
12145         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12146         (main): New function for interactive testing.
12147
12148 2011-01-25  Bruno Haible  <bruno@clisp.org>
12149
12150         vma-iter: Treat Haiku like BeOS.
12151         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12152         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12153
12154 2011-01-25  Eric Blake  <eblake@redhat.com>
12155
12156         c-stack: fix regression on cygwin when libsigsegv is present
12157         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12158
12159 2011-01-24  Bruno Haible  <bruno@clisp.org>
12160
12161         vma-iter: Avoid empty intervals.
12162         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12163         on an empty interval.
12164
12165 2011-01-24  Jim Meyering  <meyering@redhat.com>
12166
12167         u64: remove unnecessary #include
12168         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12169
12170 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12171
12172         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12173         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12174
12175 2011-01-23  Bruno Haible  <bruno@clisp.org>
12176
12177         New module 'vma-iter'.
12178         * lib/vma-iter.h: New file.
12179         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12180         * modules/vma-iter: New file.
12181         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12182         for get_rusage_as_via_iterator.
12183         (vma_iterate_callback): New function.
12184         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12185         * modules/get-rusage-as (Depends-on): Add vma-iter.
12186
12187 2011-01-23  Bruno Haible  <bruno@clisp.org>
12188
12189         uninorm: Tweak includes.
12190         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12191         Reported by Jim Meyering.
12192
12193 2011-01-23  Bruno Haible  <bruno@clisp.org>
12194
12195         get-rusage-as: Improve on NetBSD.
12196         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12197         /proc, like on FreeBSD.
12198
12199 2011-01-23  Jim Meyering  <meyering@redhat.com>
12200
12201         xreadlink.h: remove unnecessary #include
12202         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12203
12204         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12205         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12206
12207 2011-01-23  Bruno Haible  <bruno@clisp.org>
12208
12209         get-rusage-as: Fix bug.
12210         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12211         original limit when aborting the first loop.
12212
12213 2011-01-23  Bruno Haible  <bruno@clisp.org>
12214
12215         wctype: Ensure valid C syntax.
12216         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12217         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12218
12219 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12220
12221         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12223         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12224         as they are needed only for configure's test case.
12225         This removes two unnecessary symbols from config.h.
12226
12227         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12228         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12230         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12231         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12232         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12233         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12234         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12235         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12236         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12239         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12240         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12241         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12242         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12243         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12244         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12245
12246 2011-01-21  Eric Blake  <eblake@redhat.com>
12247
12248         maintainer-makefile: work with older git for submodule check
12249         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12250         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12251         Reported by Matthias Bolte.
12252
12253         bootstrap: minor portability fixes
12254         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12255         (usage): Omit leading capital and trailing . on help phrases, per
12256         GNU Coding Standards.
12257         (check_versions, top level): Prefix messages with script name.
12258
12259 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12260
12261         bootstrap: support --no-git option
12262         * build-aux/bootstrap: Add --no-git option, to be used when
12263         --gnulib-srcdir points to the exact desired checkout.
12264
12265 2011-01-21  Eric Blake  <eblake@redhat.com>
12266
12267         strerror_r-posix: work with glibc 2.13
12268         * lib/strerror_r.c (strerror_r): Fix return type.
12269
12270 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12271             Bruno Haible  <bruno@clisp.org>
12272
12273         uN_strstr: New unit tests.
12274         * modules/unistr/u8-strstr-tests: New file.
12275         * modules/unistr/u16-strstr-tests: New file.
12276         * modules/unistr/u32-strstr-tests: New file.
12277         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12278         * tests/unistr/test-u8-strstr.c: New file.
12279         * tests/unistr/test-u16-strstr.c: New file.
12280         * tests/unistr/test-u32-strstr.c: New file.
12281
12282 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12283             Bruno Haible  <bruno@clisp.org>
12284
12285         Make uN_strstr functions O(n) worst-case.
12286         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12287         16-bit and 32-bit unit cases, use the unibyte algorithm from
12288         lib/mbsstr.c.
12289         * lib/unistr/u8-strstr.c: Include <string.h>.
12290         (UNIT_IS_UINT8_T): New macro.
12291         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12292         (U_STRLEN, U_STRNLEN): New macros.
12293         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12294         (U_STRLEN, U_STRNLEN): New macros.
12295         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12296         (configure.ac): Update required libunistring version.
12297         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12298         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12299         malloca.
12300         (configure.ac): Update required libunistring version.
12301         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12302         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12303         malloca.
12304         (configure.ac): Update required libunistring version.
12305
12306 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12307             Bruno Haible  <bruno@clisp.org>
12308
12309         Prepare for faster uN_strstr functions.
12310         * lib/str-kmp.h: Support definable UNITs.
12311         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12312         needle_len argument.
12313         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12314         * lib/mbscasestr.c (mbscasestr): Likewise.
12315
12316 2011-01-21  Pádraig Brady <P@draigBrady.com>
12317
12318         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12319         * tests/test-malloca.c (main): Unset the environment variable
12320         to greatly speed up the test.
12321         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12322         * modules/malloca-tests: Depend on unsetenv.
12323
12324 2011-01-21  Pádraig Brady <P@draigBrady.com>
12325
12326         ignore-value: remove stdint dependency
12327         * lib/ignore-value.h: Remove <stdint.h>
12328         * modules/ignore-value: Remove stdint dependency.
12329
12330 2011-01-21  Jim Meyering  <meyering@redhat.com>
12331
12332         maint.mk: adjust variable name to be consistent with other gl_ vars
12333         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12334         to be lower case.
12335
12336 2011-01-20  Jim Meyering  <meyering@redhat.com>
12337
12338         maint.mk: make "check" depend on public-submodule-commit by default
12339         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12340
12341 2011-01-20  Bruno Haible  <bruno@clisp.org>
12342
12343         mbfile, mbiter: Complete change from 2008-12-21.
12344         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12345         * m4/mbiter.m4 (gl_MBITER): Likewise.
12346
12347 2011-01-20  Jim Meyering  <meyering@redhat.com>
12348
12349         init.sh: insert space between each function name and "()"
12350         * tests/init.sh: Make it a little easier to see that a function's
12351         name is "warn_", and not "warn" when looking at the first part of
12352         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12353
12354 2011-01-20  Jim Meyering  <meyering@redhat.com>
12355
12356         mountlist: clean up code formatting
12357         * lib/mountlist.c (read_file_system_list): Split a long line,
12358         correct bracing style, use NULL in place of "(struct statfs *)0",
12359         don't parenthesize return value, add spaces around "=" and after
12360         ";-in-for-stmt".
12361
12362 2011-01-14  Markus Duft <mduft@gentoo.org>
12363
12364         mountlist: add support for Interix
12365         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12366         Apply statvfs to all entries of /dev/fs.
12367         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12368         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12369
12370 2011-01-20  Jim Meyering  <meyering@redhat.com>
12371
12372         maint.mk: improve the public-submodule-commit rule
12373         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12374         to suppress printing of its commands... unless V=1.
12375         Add git submodule's --quiet option to suppress printing of e.g.,
12376         "Entering gnulib" output.
12377         "cd" into $(srcdir) before running git submodule.
12378
12379 2011-01-20  Bruno Haible  <bruno@clisp.org>
12380
12381         include_next: Fix bug introduced on 2011-01-18.
12382         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12383         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12384         ac_cv_header_... variable if the second argument is not 'check'.
12385         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12386         gl_NEXT_HEADERS_INTERNAL.
12387
12388 2011-01-20  Bruno Haible  <bruno@clisp.org>
12389
12390         Allow the user to avoid the GNULIB_TEST_* macros.
12391         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12392         Suggested by Paul Eggert.
12393
12394 2011-01-14  Jim Meyering  <meyering@redhat.com>
12395
12396         bootstrap: avoid failure when there is no .gitmodules file
12397         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12398         has been assigned to, even when its value is the empty string.
12399         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12400         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12401         Reported by John W. Eaton <jwe@gnu.org>.
12402
12403 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12404
12405         assume <ctype.h>, ..., <time.h> exist
12406         For years gnulib has been assuming the existence of the headers
12407         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12408         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12409         them, since they don't appear to be needed.
12410         * README (Portability guidelines): Document this.
12411         * lib/flock.c: Assume <fcntl.h> exists.
12412         * lib/regex_internal.h: Assume <locale.h> exists.
12413         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12414         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12415         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12416         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12417         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12418         * m4/regex.m4 (gl_REGEX): Likewise.
12419         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12420         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12421         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12422         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12423         * tests/test-argp.c: Likewise.
12424         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12425
12426         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12427         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12428         AA_APPLE_UNIVERSAL_BUILD.  See
12429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12430         * NEWS: Document this.
12431
12432 2011-01-19  Eric Blake  <eblake@redhat.com>
12433
12434         c-stack: assume stack overflow if SA_SIGINFO unsupported
12435         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12436         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12437         sigaction will work.
12438         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12439         behavior match Linux.
12440         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12441
12442         stdbool-tests: accomodate Haiku
12443         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12444
12445         binary-io: fix O_TEXT on Haiku
12446         * modules/binary-io (Depends-on): Add fcntl-h.
12447         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12448         than blindly undefining O_TEXT.
12449         Reported by Scott McCreary.
12450
12451 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12452
12453         include_next: do not check for standard headers like stddef.h
12454
12455         I found this problem when modifying Emacs to use gnulib.
12456         I noticed that it added HAVE_STDDEF_H to config.h, even though
12457         gnulib always assumes <stddef.h> exists as per README and this
12458         symbol is unnecessary.
12459         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12460         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12461         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12462         faster for headers like stddef.h that are known to exist.
12463         (gl_CHECK_NEXT_HEADERS): Use it.
12464         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12465         rather than gl_CHECK_NEXT_HEADERS.
12466         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12467         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12468
12469 2011-01-18  Eric Blake  <eblake@redhat.com>
12470
12471         ansi-c++-opt: skip C++ dependency style if C++ is unused
12472         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12473         tests when we know C++ compilation is not desired.
12474         Reported by Scott McCreary.
12475
12476 2011-01-18  Bruno Haible  <bruno@clisp.org>
12477
12478         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12479         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12480         (main): Perform test also when getrlimit and setrlimit don't exist or
12481         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12482         limiting the address space size using setrlimit, compare the address
12483         space size before and after the the test.
12484         * tests/test-dprintf-posix2.c: Likewise.
12485         * tests/test-fprintf-posix3.sh: Update skip messages.
12486         * tests/test-dprintf-posix2.sh: Likewise.
12487         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12488         * modules/dprintf-posix-tests (Depends-on): Likewise.
12489         Reported by Bruce Korb <bkorb@gnu.org> and
12490         Gary V. Vaughan <gary@gnu.org>.
12491
12492 2011-01-18  Bruno Haible  <bruno@clisp.org>
12493
12494         get-rusage-as: Improvement for Cygwin.
12495         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12496         areas that are merely reserved.
12497
12498 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12499
12500         strftime: remove dependencies on multibyte modules
12501
12502         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12503         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12504         only if __osf__ is defined, and I suspect OSF doesn't need these
12505         other modules.  If my guess is wrong, we'll need to come up with a
12506         variant of strftime that doesn't need the multibyte modules.
12507
12508         I discovered this problem when attempting modify Emacs to use the
12509         strftime module.  With the previous gnulib, this caused Emacs to
12510         need 31 new files, ranging from lib/config.charset to
12511         m4/wint_t.m4.  This was overkill and I expect would be offputting
12512         to the Emacs maintainers.  After this change, only 6 new files are
12513         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12514         stdbool.m4, and tm_gmtoff.m4.
12515
12516         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12517         Suggested by Bruno Haible in
12518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12519         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12520         and do not check for wchar.h.
12521         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12522         (Depends-on): Remove mbrlen, mbsinit, wchar.
12523
12524 2011-01-18  Bruno Haible  <bruno@clisp.org>
12525
12526         Tests for module 'get-rusage-as'.
12527         * modules/get-rusage-as-tests: New file.
12528         * tests/test-get-rusage-as.c: New file.
12529
12530         New module 'get-rusage-as'.
12531         * modules/get-rusage-as: New file.
12532         * lib/resource-ext.h: New file.
12533         * lib/get-rusage-as.c: New file.
12534
12535 2011-01-17  Eric Blake  <eblake@redhat.com>
12536
12537         sigaction: relax license from LGPLv3+ to LGPLv2+
12538         * modules/sigaction (License): Relax to LGPLv2+.
12539
12540 2011-01-14  Bruno Haible  <bruno@clisp.org>
12541
12542         filemode: Make function declarations usable in C++ mode.
12543         * lib/filemode.h: Enclose function declarations in extern "C" block.
12544         Reported by John W. Eaton <jwe@gnu.org>.
12545
12546 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12547
12548         save-cwd: no longer include "xgetcwd.h"
12549         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12550         This avoids a compilation failure in projects that use save-cwd
12551         without also using the xgetcwd module.
12552
12553 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12554
12555         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12556         This is so that a program like Emacs, which needs only dtoastr,
12557         does not have to bother with distributing and compiling ftoastr
12558         and ldtoastr.
12559         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12560         * modules/dtoastr, modules/ldtoastr: New files.
12561         * modules/ftoastr: Now works just for 'float'.
12562         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12563         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12564         dtoastr.c, ldtoastr.c.
12565
12566 2011-01-11  Jim Meyering  <meyering@redhat.com>
12567
12568         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12569         There is no need to work around the lack of the fchdir function,
12570         since gnulib can now provide a replacement when required.
12571         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12572         * modules/save-cwd (Depends-on): Add fchdir.
12573
12574 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12575
12576         openat, save-cwd: avoid xmalloc
12577
12578         This removes a direct (but undocumented) dependency of openat on
12579         xalloc, along with an indirect dependency via save-cwd.  It also
12580         removes a dependency of save-cwd on xgetcwd, and thereby
12581         indirectly on xalloc.  This change causes the openat substitute
12582         to fall back on save_cwd when memory is tight, and for save_cwd to
12583         fail instead of dying when memory is tight, but that's good enough.
12584         Problem and initial idea for fix reported by Bastien Roucaries in
12585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12586
12587         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12588         xalloc.h (for xmalloc).
12589         (openat_proc_name): Use malloc, not xmalloc.
12590         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12591         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12592
12593         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12594         This avoids heap allocation for file names whose lengths are in
12595         the range 512..1023, with the upper bound increasing to at most
12596         4031 depending on the platform's PATH_MAX.  (We do not want
12597         pathmax.h here as it might supply a non-constant PATH_MAX.)
12598         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12599         Perhaps they should be moved to malloca.h?
12600         (OPENAT_BUFFER_SIZE): Use them.
12601
12602 2011-01-10  Bruno Haible  <bruno@clisp.org>
12603
12604         doc: Update users.txt.
12605         * users.txt: Add recutils.
12606
12607 2011-01-09  Karl Berry  <karl@gnu.org>
12608
12609         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12610
12611         * doc/configmake.texi: New file.
12612         * doc/gnulib.texi: Include it.
12613         * modules/configmake: Move documentation from here.
12614
12615 2011-01-09  Bruno Haible  <bruno@clisp.org>
12616
12617         Update to Unicode 6.0.0.
12618         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12619         (get_lbp): Update for Unicode 6.0.0.
12620         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12621         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12622         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12623         U+11001, U+11038..U+11046. Remove U+06DE.
12624         (uc_width): Fix bounds of planes.
12625         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12626         lib/uniwidth/width.c.
12627         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12628         trailing whitespace removed.
12629         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12630         without comments, but with the original copyright notice.
12631         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12632         * lib/unicase/ignorable.h: Likewise.
12633         * lib/unicase/tocasefold.h: Likewise.
12634         * lib/unicase/tolower.h: Likewise.
12635         * lib/unicase/totitle.h: Likewise.
12636         * lib/unicase/toupper.h: Likewise.
12637         * lib/unictype/bidi_of.h: Likewise.
12638         * lib/unictype/blocks.h: Likewise.
12639         * lib/unictype/categ_C.h: Likewise.
12640         * lib/unictype/categ_Cn.h: Likewise.
12641         * lib/unictype/categ_L.h: Likewise.
12642         * lib/unictype/categ_Ll.h: Likewise.
12643         * lib/unictype/categ_Lm.h: Likewise.
12644         * lib/unictype/categ_Lo.h: Likewise.
12645         * lib/unictype/categ_Lu.h: Likewise.
12646         * lib/unictype/categ_M.h: Likewise.
12647         * lib/unictype/categ_Mc.h: Likewise.
12648         * lib/unictype/categ_Me.h: Likewise.
12649         * lib/unictype/categ_Mn.h: Likewise.
12650         * lib/unictype/categ_N.h: Likewise.
12651         * lib/unictype/categ_Nd.h: Likewise.
12652         * lib/unictype/categ_No.h: Likewise.
12653         * lib/unictype/categ_P.h: Likewise.
12654         * lib/unictype/categ_Po.h: Likewise.
12655         * lib/unictype/categ_S.h: Likewise.
12656         * lib/unictype/categ_Sc.h: Likewise.
12657         * lib/unictype/categ_Sk.h: Likewise.
12658         * lib/unictype/categ_Sm.h: Likewise.
12659         * lib/unictype/categ_So.h: Likewise.
12660         * lib/unictype/categ_of.h: Likewise.
12661         * lib/unictype/combining.h: Likewise.
12662         * lib/unictype/ctype_alnum.h: Likewise.
12663         * lib/unictype/ctype_alpha.h: Likewise.
12664         * lib/unictype/ctype_graph.h: Likewise.
12665         * lib/unictype/ctype_lower.h: Likewise.
12666         * lib/unictype/ctype_print.h: Likewise.
12667         * lib/unictype/ctype_punct.h: Likewise.
12668         * lib/unictype/ctype_upper.h: Likewise.
12669         * lib/unictype/decdigit.h: Likewise.
12670         * lib/unictype/digit.h: Likewise.
12671         * lib/unictype/numeric.h: Likewise.
12672         * lib/unictype/pr_alphabetic.h: Likewise.
12673         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12674         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12675         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12676         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12677         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12678         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12679         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12680         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12681         * lib/unictype/pr_case_ignorable.h: Likewise.
12682         * lib/unictype/pr_cased.h: Likewise.
12683         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12684         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12685         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12686         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12687         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12688         * lib/unictype/pr_combining.h: Likewise.
12689         * lib/unictype/pr_composite.h: Likewise.
12690         * lib/unictype/pr_currency_symbol.h: Likewise.
12691         * lib/unictype/pr_decimal_digit.h: Likewise.
12692         * lib/unictype/pr_deprecated.h: Likewise.
12693         * lib/unictype/pr_format_control.h: Likewise.
12694         * lib/unictype/pr_grapheme_base.h: Likewise.
12695         * lib/unictype/pr_grapheme_extend.h: Likewise.
12696         * lib/unictype/pr_grapheme_link.h: Likewise.
12697         * lib/unictype/pr_id_continue.h: Likewise.
12698         * lib/unictype/pr_id_start.h: Likewise.
12699         * lib/unictype/pr_ideographic.h: Likewise.
12700         * lib/unictype/pr_lowercase.h: Likewise.
12701         * lib/unictype/pr_math.h: Likewise.
12702         * lib/unictype/pr_numeric.h: Likewise.
12703         * lib/unictype/pr_other_alphabetic.h: Likewise.
12704         * lib/unictype/pr_other_id_continue.h: Likewise.
12705         * lib/unictype/pr_other_math.h: Likewise.
12706         * lib/unictype/pr_punctuation.h: Likewise.
12707         * lib/unictype/pr_sentence_terminal.h: Likewise.
12708         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12709         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12710         * lib/unictype/pr_unified_ideograph.h: Likewise.
12711         * lib/unictype/pr_uppercase.h: Likewise.
12712         * lib/unictype/pr_xid_continue.h: Likewise.
12713         * lib/unictype/pr_xid_start.h: Likewise.
12714         * lib/unictype/scripts.h: Likewise.
12715         * lib/unictype/scripts_byname.gperf: Likewise.
12716         * lib/unictype/sy_java_ident.h: Likewise.
12717         * lib/unigbrk/gbrkprop.h: Likewise.
12718         * lib/unilbrk/lbrkprop1.h: Likewise.
12719         * lib/unilbrk/lbrkprop2.h: Likewise.
12720         * lib/uninorm/decomposition-table2.h: Likewise.
12721         * lib/uniwbrk/wbrkprop.h: Likewise.
12722         * tests/unicase/test-cased.c: Likewise.
12723         * tests/unicase/test-ignorable.c: Likewise.
12724         * tests/unicase/test-uc_tolower.c: Likewise.
12725         * tests/unicase/test-uc_totitle.c: Likewise.
12726         * tests/unicase/test-uc_toupper.c: Likewise.
12727         * tests/unictype/test-categ_C.c: Likewise.
12728         * tests/unictype/test-categ_Cn.c: Likewise.
12729         * tests/unictype/test-categ_L.c: Likewise.
12730         * tests/unictype/test-categ_Ll.c: Likewise.
12731         * tests/unictype/test-categ_Lm.c: Likewise.
12732         * tests/unictype/test-categ_Lo.c: Likewise.
12733         * tests/unictype/test-categ_Lu.c: Likewise.
12734         * tests/unictype/test-categ_M.c: Likewise.
12735         * tests/unictype/test-categ_Mc.c: Likewise.
12736         * tests/unictype/test-categ_Me.c: Likewise.
12737         * tests/unictype/test-categ_Mn.c: Likewise.
12738         * tests/unictype/test-categ_N.c: Likewise.
12739         * tests/unictype/test-categ_Nd.c: Likewise.
12740         * tests/unictype/test-categ_No.c: Likewise.
12741         * tests/unictype/test-categ_P.c: Likewise.
12742         * tests/unictype/test-categ_Po.c: Likewise.
12743         * tests/unictype/test-categ_S.c: Likewise.
12744         * tests/unictype/test-categ_Sc.c: Likewise.
12745         * tests/unictype/test-categ_Sk.c: Likewise.
12746         * tests/unictype/test-categ_Sm.c: Likewise.
12747         * tests/unictype/test-categ_So.c: Likewise.
12748         * tests/unictype/test-ctype_alnum.c: Likewise.
12749         * tests/unictype/test-ctype_alpha.c: Likewise.
12750         * tests/unictype/test-ctype_graph.c: Likewise.
12751         * tests/unictype/test-ctype_lower.c: Likewise.
12752         * tests/unictype/test-ctype_print.c: Likewise.
12753         * tests/unictype/test-ctype_punct.c: Likewise.
12754         * tests/unictype/test-ctype_upper.c: Likewise.
12755         * tests/unictype/test-decdigit.h: Likewise.
12756         * tests/unictype/test-digit.h: Likewise.
12757         * tests/unictype/test-numeric.h: Likewise.
12758         * tests/unictype/test-pr_alphabetic.c: Likewise.
12759         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12760         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12761         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12762         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12763         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12764         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12765         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12766         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12767         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12768         * tests/unictype/test-pr_cased.c: Likewise.
12769         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12770         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12771         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12772         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12773         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12774         * tests/unictype/test-pr_combining.c: Likewise.
12775         * tests/unictype/test-pr_composite.c: Likewise.
12776         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12777         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12778         * tests/unictype/test-pr_deprecated.c: Likewise.
12779         * tests/unictype/test-pr_format_control.c: Likewise.
12780         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12781         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12782         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12783         * tests/unictype/test-pr_id_continue.c: Likewise.
12784         * tests/unictype/test-pr_id_start.c: Likewise.
12785         * tests/unictype/test-pr_ideographic.c: Likewise.
12786         * tests/unictype/test-pr_lowercase.c: Likewise.
12787         * tests/unictype/test-pr_math.c: Likewise.
12788         * tests/unictype/test-pr_numeric.c: Likewise.
12789         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12790         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12791         * tests/unictype/test-pr_other_math.c: Likewise.
12792         * tests/unictype/test-pr_punctuation.c: Likewise.
12793         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12794         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12795         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12796         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12797         * tests/unictype/test-pr_uppercase.c: Likewise.
12798         * tests/unictype/test-pr_xid_continue.c: Likewise.
12799         * tests/unictype/test-pr_xid_start.c: Likewise.
12800         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12801         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12802         changes.
12803         * lib/unictype/categ_Cc.h: Likewise.
12804         * lib/unictype/categ_Cf.h: Likewise.
12805         * lib/unictype/categ_Co.h: Likewise.
12806         * lib/unictype/categ_Cs.h: Likewise.
12807         * lib/unictype/categ_Lt.h: Likewise.
12808         * lib/unictype/categ_Nl.h: Likewise.
12809         * lib/unictype/categ_Pc.h: Likewise.
12810         * lib/unictype/categ_Pd.h: Likewise.
12811         * lib/unictype/categ_Pe.h: Likewise.
12812         * lib/unictype/categ_Pf.h: Likewise.
12813         * lib/unictype/categ_Pi.h: Likewise.
12814         * lib/unictype/categ_Ps.h: Likewise.
12815         * lib/unictype/categ_Z.h: Likewise.
12816         * lib/unictype/categ_Zl.h: Likewise.
12817         * lib/unictype/categ_Zp.h: Likewise.
12818         * lib/unictype/categ_Zs.h: Likewise.
12819         * lib/unictype/ctype_blank.h: Likewise.
12820         * lib/unictype/ctype_cntrl.h: Likewise.
12821         * lib/unictype/ctype_digit.h: Likewise.
12822         * lib/unictype/ctype_space.h: Likewise.
12823         * lib/unictype/ctype_xdigit.h: Likewise.
12824         * lib/unictype/mirror.h: Likewise.
12825         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12826         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12827         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12828         * lib/unictype/pr_bidi_control.h: Likewise.
12829         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12830         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12831         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12832         * lib/unictype/pr_bidi_pdf.h: Likewise.
12833         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12834         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12835         * lib/unictype/pr_dash.h: Likewise.
12836         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12837         * lib/unictype/pr_diacritic.h: Likewise.
12838         * lib/unictype/pr_extender.h: Likewise.
12839         * lib/unictype/pr_hex_digit.h: Likewise.
12840         * lib/unictype/pr_hyphen.h: Likewise.
12841         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12842         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12843         * lib/unictype/pr_ignorable_control.h: Likewise.
12844         * lib/unictype/pr_iso_control.h: Likewise.
12845         * lib/unictype/pr_join_control.h: Likewise.
12846         * lib/unictype/pr_left_of_pair.h: Likewise.
12847         * lib/unictype/pr_line_separator.h: Likewise.
12848         * lib/unictype/pr_logical_order_exception.h: Likewise.
12849         * lib/unictype/pr_non_break.h: Likewise.
12850         * lib/unictype/pr_not_a_character.h: Likewise.
12851         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12852         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12853         * lib/unictype/pr_other_id_start.h: Likewise.
12854         * lib/unictype/pr_other_lowercase.h: Likewise.
12855         * lib/unictype/pr_other_uppercase.h: Likewise.
12856         * lib/unictype/pr_paired_punctuation.h: Likewise.
12857         * lib/unictype/pr_paragraph_separator.h: Likewise.
12858         * lib/unictype/pr_pattern_syntax.h: Likewise.
12859         * lib/unictype/pr_pattern_white_space.h: Likewise.
12860         * lib/unictype/pr_private_use.h: Likewise.
12861         * lib/unictype/pr_quotation_mark.h: Likewise.
12862         * lib/unictype/pr_radical.h: Likewise.
12863         * lib/unictype/pr_soft_dotted.h: Likewise.
12864         * lib/unictype/pr_space.h: Likewise.
12865         * lib/unictype/pr_titlecase.h: Likewise.
12866         * lib/unictype/pr_variation_selector.h: Likewise.
12867         * lib/unictype/pr_white_space.h: Likewise.
12868         * lib/unictype/pr_zero_width.h: Likewise.
12869         * lib/unictype/sy_c_ident.h: Likewise.
12870         * lib/unictype/sy_c_whitespace.h: Likewise.
12871         * lib/unictype/sy_java_whitespace.h: Likewise.
12872         * lib/uninorm/composition-table.gperf: Likewise.
12873         * lib/uninorm/decomposition-table1.h: Likewise.
12874         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12875         LB8.
12876         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12877         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12878         * modules/unictype/*: Bump version number of expected libunistring
12879         version.
12880
12881 2011-01-09  Bruno Haible  <bruno@clisp.org>
12882
12883         Update to Unicode 5.2.0.
12884         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12885         trailing whitespace removed.
12886
12887 2011-01-09  Bruno Haible  <bruno@clisp.org>
12888
12889         New Unicode character properties, from Unicode 5.2.0.
12890         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12891         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12892         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12893         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12894         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12895         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12896         uc_is_property_cased, uc_is_property_case_ignorable,
12897         uc_is_property_changes_when_lowercased,
12898         uc_is_property_changes_when_uppercased,
12899         uc_is_property_changes_when_titlecased,
12900         uc_is_property_changes_when_casefolded,
12901         uc_is_property_changes_when_casemapped): New declarations.
12902         * lib/unictype/pr_byname.gperf: Add the new properties.
12903         * modules/unictype/property-byname (Depends-on): Depend on the new
12904         properties modules.
12905         * modules/unictype/property-all (Depends-on): Likewise.
12906         * MODULES.html.sh (Unicode string functions): Add
12907         unictype/property-case-ignorable, unictype/property-cased,
12908         unictype/property-changes-when-casefolded,
12909         unictype/property-changes-when-casemapped,
12910         unictype/property-changes-when-lowercased,
12911         unictype/property-changes-when-titlecased,
12912         unictype/property-changes-when-uppercased.
12913
12914         New module 'unictype/property-changes-when-casemapped'.
12915         * modules/unictype/property-changes-when-casemapped: New file.
12916         * lib/unictype/pr_changes_when_casemapped.c: New file.
12917         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12918         generated by gen-uni-tables.
12919         * modules/unictype/property-changes-when-casemapped-tests: New file.
12920         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12921         automatically generated by gen-uni-tables.
12922
12923         New module 'unictype/property-changes-when-casefolded'.
12924         * modules/unictype/property-changes-when-casefolded: New file.
12925         * lib/unictype/pr_changes_when_casefolded.c: New file.
12926         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12927         generated by gen-uni-tables.
12928         * modules/unictype/property-changes-when-casefolded-tests: New file.
12929         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12930         automatically generated by gen-uni-tables.
12931
12932         New module 'unictype/property-changes-when-titlecased'.
12933         * modules/unictype/property-changes-when-titlecased: New file.
12934         * lib/unictype/pr_changes_when_titlecased.c: New file.
12935         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12936         generated by gen-uni-tables.
12937         * modules/unictype/property-changes-when-titlecased-tests: New file.
12938         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12939         automatically generated by gen-uni-tables.
12940
12941         New module 'unictype/property-changes-when-uppercased'.
12942         * modules/unictype/property-changes-when-uppercased: New file.
12943         * lib/unictype/pr_changes_when_uppercased.c: New file.
12944         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12945         generated by gen-uni-tables.
12946         * modules/unictype/property-changes-when-uppercased-tests: New file.
12947         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12948         automatically generated by gen-uni-tables.
12949
12950         New module 'unictype/property-changes-when-lowercased'.
12951         * modules/unictype/property-changes-when-lowercased: New file.
12952         * lib/unictype/pr_changes_when_lowercased.c: New file.
12953         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12954         generated by gen-uni-tables.
12955         * modules/unictype/property-changes-when-lowercased-tests: New file.
12956         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12957         automatically generated by gen-uni-tables.
12958
12959         New module 'unictype/property-case-ignorable'.
12960         * modules/unictype/property-case-ignorable: New file.
12961         * lib/unictype/pr_case_ignorable.c: New file.
12962         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12963         by gen-uni-tables.
12964         * modules/unictype/property-case-ignorable-tests: New file.
12965         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12966         generated by gen-uni-tables.
12967
12968         New module 'unictype/property-cased'.
12969         * modules/unictype/property-cased: New file.
12970         * lib/unictype/pr_cased.c: New file.
12971         * lib/unictype/pr_cased.h: New file, automatically generated by
12972         gen-uni-tables.
12973         * modules/unictype/property-cased-tests: New file.
12974         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12975         gen-uni-tables.
12976
12977 2011-01-09  Bruno Haible  <bruno@clisp.org>
12978
12979         Update to Unicode 5.2.0.
12980         * lib/gen-uni-tables.c (output_predicate, output_category,
12981         output_combclass, output_bidi_category, output_decimal_digit_test,
12982         output_decimal_digit, output_digit_test, output_digit,
12983         output_numeric_test, output_numeric, output_mirror, output_scripts,
12984         output_scripts_byname, output_blocks, output_ident_category): Fix
12985         comment header.
12986         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12987         get_wbp.
12988         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12989         items.
12990         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12991         Changes_When_Lowercased, Changes_When_Uppercased,
12992         Changes_When_Titlecased, Changes_When_Casefolded,
12993         Changes_When_Casemapped.
12994         (is_property_alphabetic, is_property_default_ignorable_code_point):
12995         Update for Unicode 5.2.0.
12996         (is_property_cased, is_property_case_ignorable,
12997         is_property_changes_when_lowercased,
12998         is_property_changes_when_uppercased,
12999         is_property_changes_when_titlecased,
13000         is_property_changes_when_casefolded,
13001         is_property_changes_when_casemapped): New functions.
13002         (output_properties): Output also the properties cased, case_ignorable,
13003         changes_when_lowercased, changes_when_uppercased,
13004         changes_when_titlecased, changes_when_casefolded,
13005         changes_when_casemapped.
13006         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13007         Unicode TR#11 revision 17 -> 19.
13008         (LBP_CP): New enumeration value.
13009         (LBP_*): Adjust values accordingly.
13010         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13011         TR#14 revision 22 -> 24.
13012         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13013         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13014         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13015         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13016         is_WBP_MIDLETTER.
13017         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13018         the code1 and code2 of each composition rule.
13019         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13020         * lib/unicase/ignorable.h: Likewise.
13021         * lib/unicase/tocasefold.h: Likewise.
13022         * lib/unicase/tolower.h: Likewise.
13023         * lib/unicase/totitle.h: Likewise.
13024         * lib/unicase/toupper.h: Likewise.
13025         * lib/unictype/bidi_of.h: Likewise.
13026         * lib/unictype/blocks.h: Likewise.
13027         * lib/unictype/categ_C.h: Likewise.
13028         * lib/unictype/categ_Cf.h: Likewise.
13029         * lib/unictype/categ_Cn.h: Likewise.
13030         * lib/unictype/categ_L.h: Likewise.
13031         * lib/unictype/categ_Ll.h: Likewise.
13032         * lib/unictype/categ_Lm.h: Likewise.
13033         * lib/unictype/categ_Lo.h: Likewise.
13034         * lib/unictype/categ_Lu.h: Likewise.
13035         * lib/unictype/categ_M.h: Likewise.
13036         * lib/unictype/categ_Mc.h: Likewise.
13037         * lib/unictype/categ_Mn.h: Likewise.
13038         * lib/unictype/categ_N.h: Likewise.
13039         * lib/unictype/categ_Nd.h: Likewise.
13040         * lib/unictype/categ_Nl.h: Likewise.
13041         * lib/unictype/categ_No.h: Likewise.
13042         * lib/unictype/categ_P.h: Likewise.
13043         * lib/unictype/categ_Pd.h: Likewise.
13044         * lib/unictype/categ_Po.h: Likewise.
13045         * lib/unictype/categ_S.h: Likewise.
13046         * lib/unictype/categ_Sc.h: Likewise.
13047         * lib/unictype/categ_So.h: Likewise.
13048         * lib/unictype/categ_of.h: Likewise.
13049         * lib/unictype/combining.h: Likewise.
13050         * lib/unictype/ctype_alnum.h: Likewise.
13051         * lib/unictype/ctype_alpha.h: Likewise.
13052         * lib/unictype/ctype_graph.h: Likewise.
13053         * lib/unictype/ctype_lower.h: Likewise.
13054         * lib/unictype/ctype_print.h: Likewise.
13055         * lib/unictype/ctype_punct.h: Likewise.
13056         * lib/unictype/ctype_upper.h: Likewise.
13057         * lib/unictype/decdigit.h: Likewise.
13058         * lib/unictype/digit.h: Likewise.
13059         * lib/unictype/numeric.h: Likewise.
13060         * lib/unictype/pr_alphabetic.h: Likewise.
13061         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13062         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13063         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13064         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13065         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13066         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13067         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13068         * lib/unictype/pr_combining.h: Likewise.
13069         * lib/unictype/pr_composite.h: Likewise.
13070         * lib/unictype/pr_currency_symbol.h: Likewise.
13071         * lib/unictype/pr_dash.h: Likewise.
13072         * lib/unictype/pr_decimal_digit.h: Likewise.
13073         * lib/unictype/pr_deprecated.h: Likewise.
13074         * lib/unictype/pr_diacritic.h: Likewise.
13075         * lib/unictype/pr_extender.h: Likewise.
13076         * lib/unictype/pr_grapheme_base.h: Likewise.
13077         * lib/unictype/pr_grapheme_extend.h: Likewise.
13078         * lib/unictype/pr_grapheme_link.h: Likewise.
13079         * lib/unictype/pr_id_continue.h: Likewise.
13080         * lib/unictype/pr_id_start.h: Likewise.
13081         * lib/unictype/pr_ideographic.h: Likewise.
13082         * lib/unictype/pr_ignorable_control.h: Likewise.
13083         * lib/unictype/pr_logical_order_exception.h: Likewise.
13084         * lib/unictype/pr_lowercase.h: Likewise.
13085         * lib/unictype/pr_numeric.h: Likewise.
13086         * lib/unictype/pr_other_alphabetic.h: Likewise.
13087         * lib/unictype/pr_punctuation.h: Likewise.
13088         * lib/unictype/pr_sentence_terminal.h: Likewise.
13089         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13090         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13091         * lib/unictype/pr_unified_ideograph.h: Likewise.
13092         * lib/unictype/pr_uppercase.h: Likewise.
13093         * lib/unictype/pr_xid_continue.h: Likewise.
13094         * lib/unictype/pr_xid_start.h: Likewise.
13095         * lib/unictype/pr_zero_width.h: Likewise.
13096         * lib/unictype/scripts.h: Likewise.
13097         * lib/unictype/scripts_byname.gperf: Likewise.
13098         * lib/unictype/sy_java_ident.h: Likewise.
13099         * lib/unigbrk/gbrkprop.h: Likewise.
13100         * lib/unilbrk/lbrkprop1.h: Likewise.
13101         * lib/unilbrk/lbrkprop2.h: Likewise.
13102         * lib/unilbrk/lbrktables.h: Likewise.
13103         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13104         LBP_CP. Implement rule LB30.
13105         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13106         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13107         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13108         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13109         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13110         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13111         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13112         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13113         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13114         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13115         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13116         bits instead of 16 bits in the code1 and code2 of each composition
13117         rule.
13118         (uc_composition): Update for Unicode 5.2.0.
13119         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13120         * lib/uninorm/decomposition-table2.h: Likewise.
13121         * lib/uniwbrk/wbrkprop.h: Likewise.
13122         * tests/unicase/test-cased.c: Likewise.
13123         * tests/unicase/test-ignorable.c: Likewise.
13124         * tests/unicase/test-uc_tolower.c: Likewise.
13125         * tests/unicase/test-uc_totitle.c: Likewise.
13126         * tests/unicase/test-uc_toupper.c: Likewise.
13127         * tests/unictype/test-categ_C.c: Likewise.
13128         * tests/unictype/test-categ_Cf.c: Likewise.
13129         * tests/unictype/test-categ_Cn.c: Likewise.
13130         * tests/unictype/test-categ_L.c: Likewise.
13131         * tests/unictype/test-categ_Ll.c: Likewise.
13132         * tests/unictype/test-categ_Lm.c: Likewise.
13133         * tests/unictype/test-categ_Lo.c: Likewise.
13134         * tests/unictype/test-categ_Lu.c: Likewise.
13135         * tests/unictype/test-categ_M.c: Likewise.
13136         * tests/unictype/test-categ_Mc.c: Likewise.
13137         * tests/unictype/test-categ_Mn.c: Likewise.
13138         * tests/unictype/test-categ_N.c: Likewise.
13139         * tests/unictype/test-categ_Nd.c: Likewise.
13140         * tests/unictype/test-categ_Nl.c: Likewise.
13141         * tests/unictype/test-categ_No.c: Likewise.
13142         * tests/unictype/test-categ_P.c: Likewise.
13143         * tests/unictype/test-categ_Pd.c: Likewise.
13144         * tests/unictype/test-categ_Po.c: Likewise.
13145         * tests/unictype/test-categ_S.c: Likewise.
13146         * tests/unictype/test-categ_Sc.c: Likewise.
13147         * tests/unictype/test-categ_So.c: Likewise.
13148         * tests/unictype/test-ctype_alnum.c: Likewise.
13149         * tests/unictype/test-ctype_alpha.c: Likewise.
13150         * tests/unictype/test-ctype_graph.c: Likewise.
13151         * tests/unictype/test-ctype_lower.c: Likewise.
13152         * tests/unictype/test-ctype_print.c: Likewise.
13153         * tests/unictype/test-ctype_punct.c: Likewise.
13154         * tests/unictype/test-ctype_upper.c: Likewise.
13155         * tests/unictype/test-decdigit.h: Likewise.
13156         * tests/unictype/test-digit.h: Likewise.
13157         * tests/unictype/test-numeric.h: Likewise.
13158         * tests/unictype/test-pr_alphabetic.c: Likewise.
13159         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13160         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13161         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13162         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13163         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13164         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13165         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13166         * tests/unictype/test-pr_combining.c: Likewise.
13167         * tests/unictype/test-pr_composite.c: Likewise.
13168         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13169         * tests/unictype/test-pr_dash.c: Likewise.
13170         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13171         * tests/unictype/test-pr_deprecated.c: Likewise.
13172         * tests/unictype/test-pr_diacritic.c: Likewise.
13173         * tests/unictype/test-pr_extender.c: Likewise.
13174         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13175         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13176         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13177         * tests/unictype/test-pr_id_continue.c: Likewise.
13178         * tests/unictype/test-pr_id_start.c: Likewise.
13179         * tests/unictype/test-pr_ideographic.c: Likewise.
13180         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13181         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13182         * tests/unictype/test-pr_lowercase.c: Likewise.
13183         * tests/unictype/test-pr_numeric.c: Likewise.
13184         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13185         * tests/unictype/test-pr_punctuation.c: Likewise.
13186         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13187         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13188         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13189         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13190         * tests/unictype/test-pr_uppercase.c: Likewise.
13191         * tests/unictype/test-pr_xid_continue.c: Likewise.
13192         * tests/unictype/test-pr_xid_start.c: Likewise.
13193         * tests/unictype/test-pr_zero_width.c: Likewise.
13194         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13195         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13196         changed behaviour: line breaking is now disallowed between a letter
13197         or '=' and '('.
13198         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13199         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13200         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13201         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13202         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13203         lib/uniwidth/width.c.
13204         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13205         without comments, but with the original copyright notice.
13206         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13207         changes.
13208         * lib/unictype/categ_Cc.h: Likewise.
13209         * lib/unictype/categ_Co.h: Likewise.
13210         * lib/unictype/categ_Cs.h: Likewise.
13211         * lib/unictype/categ_Lt.h: Likewise.
13212         * lib/unictype/categ_Me.h: Likewise.
13213         * lib/unictype/categ_Pc.h: Likewise.
13214         * lib/unictype/categ_Pe.h: Likewise.
13215         * lib/unictype/categ_Pf.h: Likewise.
13216         * lib/unictype/categ_Pi.h: Likewise.
13217         * lib/unictype/categ_Ps.h: Likewise.
13218         * lib/unictype/categ_Sk.h: Likewise.
13219         * lib/unictype/categ_Sm.h: Likewise.
13220         * lib/unictype/categ_Z.h: Likewise.
13221         * lib/unictype/categ_Zl.h: Likewise.
13222         * lib/unictype/categ_Zp.h: Likewise.
13223         * lib/unictype/categ_Zs.h: Likewise.
13224         * lib/unictype/ctype_blank.h: Likewise.
13225         * lib/unictype/ctype_cntrl.h: Likewise.
13226         * lib/unictype/ctype_digit.h: Likewise.
13227         * lib/unictype/ctype_space.h: Likewise.
13228         * lib/unictype/ctype_xdigit.h: Likewise.
13229         * lib/unictype/mirror.h: Likewise.
13230         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13231         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13232         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13233         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13234         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13235         * lib/unictype/pr_bidi_control.h: Likewise.
13236         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13237         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13238         * lib/unictype/pr_bidi_pdf.h: Likewise.
13239         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13240         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13241         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13242         * lib/unictype/pr_format_control.h: Likewise.
13243         * lib/unictype/pr_hex_digit.h: Likewise.
13244         * lib/unictype/pr_hyphen.h: Likewise.
13245         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13246         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13247         * lib/unictype/pr_iso_control.h: Likewise.
13248         * lib/unictype/pr_join_control.h: Likewise.
13249         * lib/unictype/pr_left_of_pair.h: Likewise.
13250         * lib/unictype/pr_line_separator.h: Likewise.
13251         * lib/unictype/pr_math.h: Likewise.
13252         * lib/unictype/pr_non_break.h: Likewise.
13253         * lib/unictype/pr_not_a_character.h: Likewise.
13254         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13255         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13256         * lib/unictype/pr_other_id_continue.h: Likewise.
13257         * lib/unictype/pr_other_id_start.h: Likewise.
13258         * lib/unictype/pr_other_lowercase.h: Likewise.
13259         * lib/unictype/pr_other_math.h: Likewise.
13260         * lib/unictype/pr_other_uppercase.h: Likewise.
13261         * lib/unictype/pr_paired_punctuation.h: Likewise.
13262         * lib/unictype/pr_paragraph_separator.h: Likewise.
13263         * lib/unictype/pr_pattern_syntax.h: Likewise.
13264         * lib/unictype/pr_pattern_white_space.h: Likewise.
13265         * lib/unictype/pr_private_use.h: Likewise.
13266         * lib/unictype/pr_quotation_mark.h: Likewise.
13267         * lib/unictype/pr_radical.h: Likewise.
13268         * lib/unictype/pr_soft_dotted.h: Likewise.
13269         * lib/unictype/pr_space.h: Likewise.
13270         * lib/unictype/pr_titlecase.h: Likewise.
13271         * lib/unictype/pr_variation_selector.h: Likewise.
13272         * lib/unictype/pr_white_space.h: Likewise.
13273         * lib/unictype/sy_c_ident.h: Likewise.
13274         * lib/unictype/sy_c_whitespace.h: Likewise.
13275         * lib/unictype/sy_java_whitespace.h: Likewise.
13276         * modules/uni*/*: Bump version number of expected libunistring version.
13277         Reported by Simon Josefsson.
13278
13279 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13280
13281         useless-if-before-free: fix typo in --help and make the internal,
13282         automatic version date update process work once again.
13283         --help output contained a NUL character instead of the
13284         backslash-zero that was intended.  Also, the "must lie within
13285         the first 8 lines" line is on line 9, and hence not getting
13286         automatically updated.
13287         * build-aux/useless-if-before-free: Fix the former by adding a
13288         backslash, and the latter by condensing the three lines of what-it-does
13289         to a single line, leaving one line of slack for the future.
13290
13291 2011-01-09  Bruno Haible  <bruno@clisp.org>
13292
13293         uniwidth/width: Fix width of U+1D173..U+1D17A.
13294         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13295         symbolic_width, output_width_property_test): New functions.
13296         (main): Invoke output_nonspacing_property, output_width_property_test.
13297         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13298         U+1D173..U+1D17A.
13299         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13300         1.
13301         * modules/uniwidth/*: Bump version number of expected libunistring
13302         version.
13303         * modules/unilbrk/*: Likewise.
13304
13305 2011-01-08  Bruno Haible  <bruno@clisp.org>
13306
13307         uninorm tests: Preserve copyright of Unicode data file.
13308         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13309         Mention modifications.
13310
13311 2011-01-08  Bruno Haible  <bruno@clisp.org>
13312
13313         gen-uni-tables: Prepare for Unicode 5.2.0.
13314         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13315         (debug_output_lbp, output_lbp): Update.
13316
13317 2011-01-08  Bruno Haible  <bruno@clisp.org>
13318
13319         unilbrk: Clarify gen-uni-tables.c code.
13320         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13321         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13322         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13323
13324 2011-01-07  Bruno Haible  <bruno@clisp.org>
13325
13326         strtod: Restore errno when successfully parsing Infinity or NaN.
13327         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13328         restore the original errno.
13329
13330 2011-01-07  Bruno Haible  <bruno@clisp.org>
13331
13332         remove test: Avoid failure on HP-UX 11.
13333         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13334
13335 2011-01-07  Bruno Haible  <bruno@clisp.org>
13336
13337         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13338         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13339         error code.
13340
13341 2011-01-07  Pádraig Brady <P@draigBrady.com>
13342
13343         ignore-value: fixup comments, and add Eric Blake
13344         as an author since he rewrote the macros.
13345         * lib/ignore-value.h (ignore_value):  State that
13346         we now support aggregates.  Also specify exactly
13347         when the GCC warn_unused_result feature was added.
13348
13349 2011-01-06  Eric Blake  <eblake@redhat.com>
13350
13351         ignore-value: support aggregate types
13352         * lib/ignore-value.h (ignore_value): Provide separate gcc
13353         definition.
13354         * modules/ignore-value-tests: New test module.
13355         * tests/test-ignore-value.c: New test.
13356
13357         maint.mk: improve sc_prohibit_strcmp regex
13358         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13359         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13360         definition of STRNEQ.
13361
13362         signal: work around Haiku issue with SIGBUS
13363         * lib/siglist.h: Add comment.
13364         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13365         strsignal's favoring of SIGSEGV.
13366         * tests/test-signal.c (main): Avoid test failure.
13367         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13368         Reported by Scott McCreary.
13369
13370         maint.mk: add pre-release check to ensure submodule commits are public
13371         * top/maint.mk (public-submodule-commit): New rule.
13372         (submodule-checks): New variable.
13373         (alpha beta stable): Depend on the variable.
13374
13375 2011-01-05  Pádraig Brady <P@draigBrady.com>
13376         and Jim Meyering  <meyering@redhat.com>
13377
13378         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13379         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13380         (ATTRIBUTE_DEPRECATED): Define.
13381         (_ignore_case): New function.
13382         (ignore_value): New macro, to replace the old function.
13383         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13384         * modules/ignore-value (Depends-on): Add stdint.
13385
13386 2011-01-04  Eric Blake  <eblake@redhat.com>
13387
13388         doc: regenerate INSTALL
13389         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13390         @firstparagraphindent support, now that autoconf dropped it.
13391         (INSTALL_PRELUDE): Reinstate old macro.
13392         * doc/install.texi: Resync from autoconf.
13393         * doc/INSTALL: Reflect recent autoconf update.
13394         * doc/INSTALL.ISO: Likewise.
13395         * doc/INSTALL.UTF-8: Likewise.
13396         Reported by Karl Berry.
13397
13398 2011-01-04  Bruce Korb  <address@hidden>
13399
13400         git-version-gen: avoid a sub-shell
13401         * build-aux/git-version-gen: Redirect stderr in `...` via
13402         "exec 2>...", rather than via an added sub-shell.
13403
13404 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13405
13406         git-version-gen: use (...) rather than sh -c '...'
13407         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13408         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13409
13410 2011-01-03  Jim Meyering  <meyering@redhat.com>
13411
13412         git-version-gen: convert leading TABs to spaces
13413         * build-aux/git-version-gen: Expand leading TABs.
13414
13415         git-version-gen: handle failed "git rev-list"
13416         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13417         from git and proceeding as if it had succeeded but printed no SHA1
13418         checksums, suppress the diagnostic and handle the failure.
13419         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13420
13421         git-version-gen: include command name in one more diagnostic
13422         * build-aux/git-version-gen: When the required .tarball-version file
13423         was missing or unreadable, you might see the diagnostic from "cat",
13424         but no trace of the name of the invoking script.  Now, you still see
13425         the diagnostic from cat, but also get one from "git-version-gen: ".
13426         Inspired by a patch from Bruce Korb.
13427
13428         update-copyright: adjust test to match changed code
13429         * tests/test-update-copyright.sh: Change test's expected output
13430         to match new actual output.
13431
13432 2011-01-02  Bruno Haible  <bruno@clisp.org>
13433
13434         getlogin_r: Avoid test failure on HP-UX 11.
13435         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13436         ERANGE when the second argument is zero.
13437         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13438         portability problem.
13439
13440 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13441
13442         * build-aux/update-copyright: doc Simon's changes
13443
13444 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13445
13446         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13447         environment variable.
13448
13449 2011-01-02  Bruno Haible  <bruno@clisp.org>
13450
13451         unigbrk: Avoid gcc warnings.
13452         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13453         unused variable.
13454         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13455         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13456         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13457         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13458         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13459         Change type of first argument to 'const char *'.
13460         (main): Remove unused variable.
13461         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13462         type of first argument to 'const char *'.
13463         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13464         Likewise.
13465         (main): Change type of variable 's'.
13466         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13467         to 'int'.
13468
13469 2011-01-02  Bruno Haible  <bruno@clisp.org>
13470
13471         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13472         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13473         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13474         bug.
13475         * lib/pwrite.c: Undo 2010-12-31 patch.
13476         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13477
13478 2011-01-02  Bruno Haible  <bruno@clisp.org>
13479
13480         pread: Fix test whether it works.
13481         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13482
13483 2011-01-02  Bruno Haible  <bruno@clisp.org>
13484
13485         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13486         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13487         ends in "6". Don't require a specific month name. Try also the locale
13488         names found on HP-UX 11 and Solaris 7.
13489
13490 2011-01-02  Bruno Haible  <bruno@clisp.org>
13491
13492         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13493         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13494         C linkage.
13495         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13496
13497 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13498
13499         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13500         for consistency, since the "cluster" term is not used elsewhere.
13501         * lib/unigbrk.in.h: Update name.
13502         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13503         * lib/unigbrk/u16-grapheme-next.c: Update name.
13504         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13505         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13506         * lib/unigbrk/u32-grapheme-next.c: Update name.
13507         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13508         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13509         * lib/unigbrk/u8-grapheme-next.c: Update name.
13510         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13511         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13512         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13513         Suggested by Bruno Haible.
13514
13515 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13516
13517         Remove module 'u8-grapheme-len' as too redundant with
13518         'u8-grapheme-next'.
13519         * modules/unigbrk/u8-grapheme-len: Delete file.
13520         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13521         * lib/unigbrk.in.h: Remove prototype for deleted function.
13522         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13523         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13524
13525         Remove module 'u16-grapheme-len' as too redundant with
13526         'u16-grapheme-next'.
13527         * modules/unigbrk/u16-grapheme-len: Delete file.
13528         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13529         * lib/unigbrk.in.h: Remove prototype for deleted function.
13530         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13531         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13532
13533         Remove module 'u32-grapheme-len' as too redundant with
13534         'u32-grapheme-next'.
13535         * modules/unigbrk/u32-grapheme-len: Delete file.
13536         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13537         * lib/unigbrk.in.h: Remove prototype for deleted function.
13538         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13539         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13540
13541         Suggested by Bruno Haible.
13542
13543 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13544
13545         * unigbrk.in.h: Fix typo: "ben" => "been".
13546         Reported by Bruno Haible.
13547
13548 2011-01-01  Jim Meyering  <meyering@redhat.com>
13549
13550         maint: update almost all copyright ranges to include 2011
13551         Run the new "make update-copyright" rule.
13552
13553 2011-01-01  Jim Meyering  <meyering@redhat.com>
13554
13555         maint: update-copyright: exempt doc/INSTALL*
13556         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13557         since they are generated.  Suggested by Bruno Haible.
13558
13559 2011-01-01  Jim Meyering  <meyering@redhat.com>
13560
13561         maint: refine the update-copyright rule
13562         * Makefile (update-copyright): Also exclude any file that includes
13563         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13564         code that merely generates the comment.
13565
13566 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13567
13568         New module 'u8-grapheme-len'.
13569         * modules/unigbrk/u8-grapheme-len: New file.
13570         * modules/unigbrk/u8-grapheme-len-tests: New file.
13571         * lib/unigbrk.in.h: Add prototype for new function.
13572         * lib/unigbrk/u8-grapheme-len.c: New file.
13573         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13574
13575         New module 'u16-grapheme-len'.
13576         * modules/unigbrk/u16-grapheme-len: New file.
13577         * modules/unigbrk/u16-grapheme-len-tests: New file.
13578         * lib/unigbrk.in.h: Add prototype for new function.
13579         * lib/unigbrk/u16-grapheme-len.c: New file.
13580         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13581
13582         New module 'u32-grapheme-len'.
13583         * modules/unigbrk/u32-grapheme-len: New file.
13584         * modules/unigbrk/u32-grapheme-len-tests: New file.
13585         * lib/unigbrk.in.h: Add prototype for new function.
13586         * lib/unigbrk/u32-grapheme-len.c: New file.
13587         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13588
13589         New module 'u8-grapheme-next'.
13590         * modules/unigbrk/u8-grapheme-next: New file.
13591         * modules/unigbrk/u8-grapheme-next-tests: New file.
13592         * lib/unigbrk.in.h: Add prototype for new function.
13593         * lib/unigbrk/u8-grapheme-next.c: New file.
13594         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13595
13596         New module 'u16-grapheme-next'.
13597         * modules/unigbrk/u16-grapheme-next: New file.
13598         * modules/unigbrk/u16-grapheme-next-tests: New file.
13599         * lib/unigbrk.in.h: Add prototype for new function.
13600         * lib/unigbrk/u16-grapheme-next.c: New file.
13601         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13602
13603         New module 'u32-grapheme-next'.
13604         * modules/unigbrk/u32-grapheme-next: New file.
13605         * modules/unigbrk/u32-grapheme-next-tests: New file.
13606         * lib/unigbrk.in.h: Add prototype for new function.
13607         * lib/unigbrk/u32-grapheme-next.c: New file.
13608         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13609
13610         New module 'u8-grapheme-prev'.
13611         * modules/unigbrk/u8-grapheme-prev: New file.
13612         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13613         * lib/unigbrk.in.h: Add prototype for new function.
13614         * lib/unigbrk/u8-grapheme-prev.c: New file.
13615         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13616
13617         New module 'u16-grapheme-prev'.
13618         * modules/unigbrk/u16-grapheme-prev: New file.
13619         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13620         * lib/unigbrk.in.h: Add prototype for new function.
13621         * lib/unigbrk/u16-grapheme-prev.c: New file.
13622         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13623
13624         New module 'u32-grapheme-prev'.
13625         * modules/unigbrk/u32-grapheme-prev: New file.
13626         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13627         * lib/unigbrk.in.h: Add prototype for new function.
13628         * lib/unigbrk/u32-grapheme-prev.c: New file.
13629         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13630
13631         New module 'u8-grapheme-breaks'.
13632         * modules/unigbrk/u8-grapheme-breaks: New file.
13633         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13634         * lib/unigbrk.in.h: Add prototype for new function.
13635         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13636         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13637
13638         New module 'u16-grapheme-breaks'.
13639         * modules/unigbrk/u16-grapheme-breaks: New file.
13640         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13641         * lib/unigbrk.in.h: Add prototype for new function.
13642         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13643         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13644
13645         New module 'u32-grapheme-breaks'.
13646         * modules/unigbrk/u32-grapheme-breaks: New file.
13647         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13648         * lib/unigbrk.in.h: Add prototype for new function.
13649         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13650         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13651
13652         New module 'ulc-grapheme-breaks'.
13653         * modules/unigbrk/ulc-grapheme-breaks: New file.
13654         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13655         * m4/locale-ar.m4: New file.
13656         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13657         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13658         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13659
13660 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13661
13662         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13663         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13664         modified how this file was generated before I initially submitted
13665         the module, but failed to regenerate it.  This meant that several
13666         of the level2 entries were wrong.
13667         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13668         Remove the division-by-2 that is folded into the table now that
13669         gbrkprop.h has been regenerated properly.  Now -1 entries are
13670         handled correctly.
13671
13672         New module 'unigbrk/uc-gbrk-prop-tests'.
13673         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13674         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13675         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13676         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13677
13678 2011-01-01  Bruno Haible  <bruno@clisp.org>
13679
13680         Avoid use of hexadecimal escapes.
13681         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13682         instead of hexadecimal escapes.
13683
13684 2011-01-01  Jim Meyering  <meyering@redhat.com>
13685
13686         maint: new rule to update copyright year ranges
13687         * Makefile (update-copyright): New rule.
13688
13689         maint: indent with TABs in Makefile
13690         * Makefile: Expand leading sequences of spaces to TABs
13691
13692         version-etc: update the copyright year it reports
13693         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13694
13695 2010-12-31  Bruno Haible  <bruno@clisp.org>
13696
13697         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13698         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13699         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13700         zero.
13701
13702 2010-12-31  Bruno Haible  <bruno@clisp.org>
13703
13704         pwrite: Work around HP-UX 11.11 bug.
13705         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13706         works and set REPLACE_PWRITE if not.
13707         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13708         function.
13709         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13710
13711 2010-12-31  Bruno Haible  <bruno@clisp.org>
13712
13713         pread: Work around HP-UX 11 bugs.
13714         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13715         and set REPLACE_PREAD if not.
13716         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13717
13718 2010-12-31  Eric Blake  <eblake@redhat.com>
13719
13720         nl_langinfo: fix YESEXPR on Irix 6.5
13721         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13722         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13723         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13724         it.
13725
13726 2010-12-31  Bruno Haible  <bruno@clisp.org>
13727
13728         iconv: Document HP-UX 11 bug.
13729         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13730
13731 2010-12-31  Bruno Haible  <bruno@clisp.org>
13732
13733         ldexpl: Fix link error on HP-UX 11.
13734         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13735         LDEXPL_LIBM, using $ISNANL_LIBM.
13736
13737 2010-12-31  Eric Blake  <eblake@redhat.com>
13738
13739         ftello: avoid compilation failure with SunStudio c89
13740         * lib/ftello.c (ftello): Use lseek, not llseek.
13741
13742         tests: avoid failing coreutils tests on cygwin
13743         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13744         (create_exe_shims_): Return 0 when skipping.
13745
13746 2010-12-31  Bruno Haible  <bruno@clisp.org>
13747
13748         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13749         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13750
13751 2010-12-31  Bruno Haible  <bruno@clisp.org>
13752
13753         waitpid: Fix link error in C++ mode.
13754         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13755
13756 2010-12-31  Bruno Haible  <bruno@clisp.org>
13757
13758         isnan: Use GCC built-ins when possible.
13759         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13760         __builtin_isnan.
13761         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13762         (isnan): Define using GCC built-ins for GCC >= 4.0.
13763
13764 2010-12-31  Bruno Haible  <bruno@clisp.org>
13765
13766         isnand: Fix mistake.
13767         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13768         __builtin_isnand.
13769
13770 2010-12-31  Bruno Haible  <bruno@clisp.org>
13771
13772         open: Avoid C++ error on HP-UX 11.
13773         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13774
13775 2010-12-31  Bruno Haible  <bruno@clisp.org>
13776
13777         time_r: Add missing declarations on HP-UX 11.
13778         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13779         instead of HAVE_LOCALTIME_R.
13780         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13781         HAVE_LOCALTIME_R always.
13782         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13783         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13784         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13785         HAVE_LOCALTIME_R.
13786         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13787         * doc/posix-functions/localtime_r.texi: Likewise.
13788
13789 2010-12-29  Eric Blake  <eblake@redhat.com>
13790
13791         mountlist: tweak previous commit
13792         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13793         Reported by Paul Eggert.
13794
13795         mountlist: fix local drive detection on cygwin
13796         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13797         that works for cygwin.
13798
13799 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         ftoastr, snprintf: ftoastr + snprintf module
13802         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13803         since the snprintf module now should be good enough here.
13804         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13805         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13806         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13807         GNULIB_SNPRINTF only for the test directory, and the latter
13808         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13809         seems to suffice by itself.
13810
13811 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13812
13813         alloca: one step towards thread-safety
13814         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13815         need for a static variable.  All callers changed.  This does not
13816         make the alloca replacement thread-safe, but it's one step.
13817
13818         tests: minor indenting change
13819         * tests/init.sh: Sync from coreutils housekeeping patch
13820         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13821         to keep lines within 80 columns.
13822
13823 2010-12-28  Jim Meyering  <meyering@redhat.com>
13824
13825         regex: don't infloop on persistent failing calloc
13826         * lib/regexec.c (build_trtable): Return failure indication upon
13827         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13828         In glibc, this was fixed for version 2.13:
13829         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13830
13831 2010-12-28  Bruno Haible  <bruno@clisp.org>
13832             Paul Eggert <eggert@cs.ucla.edu>
13833
13834         linkat: Make implementation robust against system behaviour variations.
13835         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13836         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13837         way, and to -2 if it needs a generic runtime test.
13838         * lib/linkat.c (solaris_optimized_link_immediate,
13839         solaris_optimized_link_follow): New functions.
13840         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13841         (check_same_link): Use it.
13842
13843 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13844
13845         New module 'unigbrk/base'.
13846         * modules/unigbrk/base: New file.
13847         * lib/unigbrk.in.h: New file.
13848
13849         New module 'unigbrk/uc-gbrk-prop'.
13850         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13851         * modules/unigbrk/uc-gbrk-prop: New file.
13852         * lib/unigbrk/gbrkprop.h: New file.
13853         * lib/unigbrk/uc-gbrk-prop.c: New file.
13854
13855         New module 'unigbrk/uc-is-grapheme-break'.
13856         * modules/unigbrk/uc-is-grapheme-break: New file.
13857         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13858         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13859         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13860         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13861         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13862
13863         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13864
13865 2010-12-27  Bruno Haible  <bruno@clisp.org>
13866
13867         linkat test: Avoid failure on Solaris 11 2010-11.
13868         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13869
13870 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13871
13872         utimens: work around glibc rounding bug on more platforms
13873         * lib/utimens.c (fdutimens): Work around rounding bug even if
13874         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13875         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13876
13877 2010-12-27  Bruno Haible  <bruno@clisp.org>
13878
13879         select tests: Improve comments.
13880         * tests/test-select.c (do_select): Add comments.
13881
13882 2010-12-27  Bruno Haible  <bruno@clisp.org>
13883
13884         select tests: Safer way of handling timeout.
13885         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13886         at every invocation.
13887
13888 2010-12-27  Bruno Haible  <bruno@clisp.org>
13889
13890         select tests: Use 'bool' where appropriate.
13891         * tests/test-select.c (connect_to_socket): Change argument type to
13892         'bool'.
13893
13894 2010-12-27  Bruno Haible  <bruno@clisp.org>
13895
13896         select tests: Use existing modules.
13897         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13898         (configure.ac): Don't test for unistd.h.
13899         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13900         declared in <unistd.h>.
13901
13902 2010-12-27  Bruno Haible  <bruno@clisp.org>
13903
13904         mbrtowc: Work around a Solaris 7 bug.
13905         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13906         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13907         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13908         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13909         MBRTOWC_NULL_ARG1_BUG.
13910         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13911         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13912         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13913         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13914
13915 2010-12-27  Jim Meyering  <meyering@redhat.com>
13916
13917         read-file.c: tweak syntax
13918         * lib/read-file.c (fread_file): Remove space after "*" in function
13919         definitions.
13920
13921 2010-12-27  Bruno Haible  <bruno@clisp.org>
13922
13923         times test: Avoid gcc warnings on OSF/1.
13924         * tests/test-times.c (main): Cast printf arguments from clock_t to
13925         'long int'.
13926
13927 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13928
13929         utimens: work around glibc rounding bug on older Linux kernels
13930         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13931         on Linux with a glibc whose utimes might not work, then work
13932         around a longstanding glibc bug involving rounding rather than
13933         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13934         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13935
13936 2010-12-26  Bruno Haible  <bruno@clisp.org>
13937
13938         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13939         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13940         _GL_CXXALIAS_SYS.
13941         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13942
13943 2010-12-26  Bruno Haible  <bruno@clisp.org>
13944
13945         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13946         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13947         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13948         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13949         looking for the declaration.
13950         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13951         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13952         problem.
13953         * doc/posix-functions/inet_pton.texi: Likewise.
13954
13955 2010-12-26  Bruno Haible  <bruno@clisp.org>
13956
13957         arpa_inet: Use the common idioms with C++ support.
13958         * lib/arpa_inet.in.h: Include c++defs.h.
13959         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13960         support.
13961         * modules/arpa_inet (Depends-on): Add c++defs.
13962         (Makefile.am): Substitute the contents of c++defs.h.
13963         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13964         * modules/arpa_inet-c++-tests: New file.
13965         * tests/test-arpa_inet-c++.cc: New file.
13966
13967 2010-12-25  Bruno Haible  <bruno@clisp.org>
13968
13969         Fix more C++ link errors on Solaris 8.
13970         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13971         $(LIB_EACCESS).
13972         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13973         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13974         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13975         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13976         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13977
13978 2010-12-25  Bruno Haible  <bruno@clisp.org>
13979
13980         printf-posix: Fix link error when a non-GCC compiler is used.
13981         * lib/stdio.in.h (printf): When not using GCC, override printf
13982         correctly.
13983         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13984
13985 2010-12-25  Bruno Haible  <bruno@clisp.org>
13986
13987         strerror_r-posix: Update doc.
13988         * doc/posix-functions/strerror_r.texi: Update doc about the return
13989         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13990
13991 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13992
13993         utimens: simplify the logic of the previous change
13994         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13995         This should not affect whether the test succeeds or fails.
13996
13997         utimens: configure better on hosts with NFS clock skew
13998         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13999         uses the clock of the local host.  It might use the clock of the
14000         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14001         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14002
14003 2010-12-25  Bruno Haible  <bruno@clisp.org>
14004
14005         ptsname test: Avoid failure on Solaris.
14006         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14007         open a pseudo-terminal; don't use BSD-style ptys.
14008         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14009
14010 2010-12-25  Bruno Haible  <bruno@clisp.org>
14011
14012         ptsname: Avoid ERANGE failure on some systems.
14013         * lib/ptsname.c (buffer): Increase size.
14014
14015 2010-12-25  Bruno Haible  <bruno@clisp.org>
14016
14017         rename, renameat: Avoid test failures at NFS mounted locations.
14018         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14019         so that subsequent mkdir calls succeed.
14020
14021 2010-12-25  Bruno Haible  <bruno@clisp.org>
14022
14023         iswblank: Fix C++ link error on Solaris 8.
14024         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14025         _GL_FUNCDECL_SYS.
14026
14027 2010-12-25  Bruno Haible  <bruno@clisp.org>
14028
14029         unistd: Fix C++ link error on Solaris 8.
14030         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14031
14032 2010-12-25  Bruno Haible  <bruno@clisp.org>
14033
14034         readlink doc: Mention an old glibc bug.
14035         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14036
14037 2010-12-25  Bruno Haible  <bruno@clisp.org>
14038
14039         fcntl-h: Fix for use of C++ on glibc systems.
14040         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14041         also on glibc systems in C++ mode.
14042         Reported by Gary V. Vaughan <gary@gnu.org>.
14043
14044 2010-12-25  Bruno Haible  <bruno@clisp.org>
14045
14046         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14047         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14048
14049 2010-12-25  Bruno Haible  <bruno@clisp.org>
14050
14051         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14052         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14053         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14054         test whether truncl works according to ISO C 99 with IEC 60559.
14055         * m4/truncl-ieee.m4: New file.
14056         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14057         m4/signbit.m4.
14058         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14059
14060 2010-12-25  Bruno Haible  <bruno@clisp.org>
14061
14062         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14063         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14064         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14065         test whether ceill works according to ISO C 99 with IEC 60559.
14066         * m4/ceill-ieee.m4: New file.
14067         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14068         m4/signbit.m4.
14069         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14070
14071 2010-12-25  Bruno Haible  <bruno@clisp.org>
14072
14073         Ensure all prerequisites of <wchar.h> are included.
14074         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14075         before <wchar.h>.
14076         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14077         gl_MBRLEN_NUL_RETVAL): Likewise.
14078         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14079         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14080         AC_FUNC_MBRTOWC): Likewise.
14081         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14082         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14083         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14084         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14085         Likewise.
14086         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14087         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14088         (gl_WCHAR_H): Improve comments.
14089         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14090
14091 2010-12-25  Bruno Haible  <bruno@clisp.org>
14092
14093         strtok_r: Fix C syntax error in autoconf macro.
14094         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14095         characters in test program.
14096
14097 2010-12-24  Bruno Haible  <bruno@clisp.org>
14098
14099         ceil, trunc, round: Fix gcc warnings.
14100         * lib/ceil.c (MIN): Undefine before redefining.
14101         * lib/trunc.c (MIN): Likewise.
14102         * lib/round.c (MIN): Likewise.
14103         Include <math.h> first.
14104
14105 2010-12-24  Bruno Haible  <bruno@clisp.org>
14106
14107         select tests: Avoid failures on OSF/1 5.1.
14108         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14109         failure of closing the last socket; it may fail with ECONNRESET.
14110
14111 2010-12-24  Eric Blake  <eblake@redhat.com>
14112
14113         stdint: avoid HP-UX 10.20 preprocessor bug
14114         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14115         than #if.
14116         * tests/test-floor2.c (main): Likewise.
14117         Reported by Peter O'Gorman.
14118
14119         pipe: make obsoletion transition easier
14120         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14121         * modules/pipe (Files): Include revived file.
14122         (Include): Drop reference, to mirror getdate's behavior.
14123
14124 2010-12-24  Bruno Haible  <bruno@clisp.org>
14125
14126         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14127         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14128         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14130
14131 2010-12-24  Bruno Haible  <bruno@clisp.org>
14132
14133         gethostname: Ensure declaration on NonStop Kernel.
14134         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14135         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14136
14137 2010-12-24  Bruno Haible  <bruno@clisp.org>
14138
14139         sys_select: Ensure all necessary types on NonStop Kernel.
14140         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14141         include <sys/time.h>.
14142         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14143         NonStop Kernel.
14144         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14145
14146 2010-12-24  Bruno Haible  <bruno@clisp.org>
14147
14148         sys_select: Remove unneeded include.
14149         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14150         have <sys/select.h>.
14151
14152 2010-12-24  Bruno Haible  <bruno@clisp.org>
14153
14154         gethostname: Provide a fallback for HOST_NAME_MAX.
14155         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14156         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14157         instead.
14158         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14159
14160 2010-12-24  Bruno Haible  <bruno@clisp.org>
14161
14162         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14163         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14164         (SA_RESTART): Likewise.
14165         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14166
14167 2010-12-24  Bruno Haible  <bruno@clisp.org>
14168
14169         signal: Define NSIG.
14170         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14171         * tests/test-signal.c (nsig): New variable.
14172         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14173
14174 2010-12-24  Bruno Haible  <bruno@clisp.org>
14175
14176         rename, renameat: Avoid test failures on OSF/1 5.1.
14177         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14178         alternative error codes.
14179         * tests/test-renameat.c (main): Likewise.
14180
14181 2010-12-24  Bruno Haible  <bruno@clisp.org>
14182
14183         *printf: Detect large precisions bug on Solaris 10/SPARC.
14184         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14185         by Paul Eggert.
14186         * tests/test-snprintf-posix.h (test_function): Add this test code here
14187         too.
14188         * tests/test-sprintf-posix.h (test_function): Likewise.
14189         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14190         * tests/test-vasprintf-posix.c (test_function): Likewise.
14191         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14192         around by gnulib.
14193         * doc/posix-functions/printf.texi: Likewise.
14194         * doc/posix-functions/snprintf.texi: Likewise.
14195         * doc/posix-functions/sprintf.texi: Likewise.
14196         * doc/posix-functions/vfprintf.texi: Likewise.
14197         * doc/posix-functions/vprintf.texi: Likewise.
14198         * doc/posix-functions/vsnprintf.texi: Likewise.
14199         * doc/posix-functions/vsprintf.texi: Likewise.
14200         * doc/posix-functions/dprintf.texi: Undo last commit.
14201         * doc/posix-functions/vdprintf.texi: Likewise.
14202
14203 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14204
14205         tests: port test-fdutimensat.c to Solaris 8
14206         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14207         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14208         On Solaris 8, it fails with errno == ENOSYS, because there is no
14209         futimens (so it can't use the fd), and there is no lutimens (so it
14210         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14211
14212         vsnprintf: make more consistent with snprintf; doc fixes
14213
14214         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14215         the byte count return problem was promoted from the snprintf-posix
14216         to the snprintf module.
14217         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14218         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14219         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14220         * tests/test-snprintf.c (main): Check the byte count returned.
14221         * tests/test-vsnprintf.c (main): Likewise.
14222
14223 2010-12-23  Eric Blake  <eblake@redhat.com>
14224
14225         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14226         * modules/sigpipe (License): Relax license.
14227
14228 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14229
14230         doc: document Solaris printf bug with large float precisions
14231         * doc/posix-functions/dprintf.texi (dprintf):
14232         * doc/posix-functions/fprintf.texi (fprintf):
14233         * doc/posix-functions/printf.texi (printf):
14234         * doc/posix-functions/snprintf.texi (snprintf):
14235         * doc/posix-functions/sprintf.texi (sprintf):
14236         * doc/posix-functions/vdprintf.texi (vdprintf):
14237         * doc/posix-functions/vfprintf.texi (vfprintf):
14238         * doc/posix-functions/vprintf.texi (vprintf):
14239         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14240         * doc/posix-functions/vsprintf.texi (vsprintf):
14241         Mention that these functions mishandle large floating point
14242         precisions on Solaris 10.  The same bug is also present in Solaris
14243         8, and I assume earlier.  This causes "cd gnulib-tests; make
14244         check" to fail on Solaris 8 (and I assume, later) when building
14245         the latest coreutils, in test-vasprintf-posix's call to
14246         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14247         the wide flavors (e.g., wprintf) so this patch just updates the
14248         documentation for the narrow ones.
14249
14250         test-posixtm.c: add two tests
14251         * tests/test-posixtm.c: Add two tests, to highlight the
14252         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14253         around this bug; this is merely to document it.
14254
14255 2010-12-22  Bruno Haible  <bruno@clisp.org>
14256
14257         getlogin_r: Work around portability problem on OSF/1.
14258         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14259         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14260         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14261         test for a truncated result.
14262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14263         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14264         * modules/getlogin_r (Depends-on): Add memchr.
14265         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14266
14267 2010-12-22  Bruno Haible  <bruno@clisp.org>
14268
14269         ptsname: Avoid test failure on OSF/1 5.1.
14270         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14271         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14272         (same_slave): New function.
14273         (main): Use it to compare ptsname's result with the expected file name.
14274
14275 2010-12-22  Bruno Haible  <bruno@clisp.org>
14276
14277         Port extended stdio modules to HP NonStop Kernel.
14278         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14279         macros.
14280         * lib/fbufmode.c: Update comments.
14281         * lib/fflush.c: Likewise.
14282         * lib/fpurge.c: Likewise.
14283         * lib/freadable.c: Likewise.
14284         * lib/freadahead.c: Likewise.
14285         * lib/freading.c: Likewise.
14286         * lib/freadptr.c: Likewise.
14287         * lib/freadseek.c: Likewise.
14288         * lib/fseeko.c: Likewise.
14289         * lib/fseterr.c: Likewise.
14290         * lib/fwritable.c: Likewise.
14291         * lib/fwriting.c: Likewise.
14292         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14293
14294 2010-12-22  Bruno Haible  <bruno@clisp.org>
14295
14296         ttyname_r: Work around bug on OSF/1 5.1.
14297         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14298         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14299         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14300         present.
14301         * lib/ttyname_r.c (ttyname_r): Update comments.
14302
14303 2010-12-22  Bruno Haible  <bruno@clisp.org>
14304
14305         round: Implement result sign according to IEEE 754.
14306         * lib/round.c (MIN, MINUS_ZERO): New macros.
14307         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14308         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14309         * tests/test-round-ieee.c (main): Likewise.
14310         * tests/test-roundl-ieee.c (main): Likewise.
14311
14312         trunc: Implement result sign according to IEEE 754.
14313         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14314         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14315         * tests/test-trunc2.c: Include minus-zero.h.
14316         (MINUS_ZERO): New macro.
14317         (trunc_reference): Keep in sync with lib/trunc.c.
14318         * tests/test-truncf2.c: Include minus-zero.h.
14319         (MINUS_ZERO): New macro.
14320         (truncf_reference): Keep in sync with lib/trunc.c.
14321         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14322         * tests/test-trunc-ieee.c (main): Likewise.
14323         * tests/test-truncl-ieee.c (main): Likewise.
14324
14325         ceil: Implement result sign according to IEEE 754.
14326         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14327         (FUNC): Return -0.0 for -1 < x < 0.
14328         * tests/test-ceil2.c: Include minus-zero.h.
14329         (MINUS_ZERO): New macro.
14330         (ceil_reference): Keep in sync with lib/ceil.c.
14331         * tests/test-ceilf2.c: Include minus-zero.h.
14332         (MINUS_ZERO): New macro.
14333         (ceilf_reference): Keep in sync with lib/ceil.c.
14334         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14335         * tests/test-ceil-ieee.c (main): Likewise.
14336         * tests/test-ceill-ieee.c (main): Likewise.
14337
14338         floor: Implement result sign according to IEEE 754.
14339         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14340         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14341         * tests/test-floorf2.c (floorf_reference): Likewise.
14342         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14343         * tests/test-floor-ieee.c (main): Likewise.
14344         * tests/test-floorl-ieee.c (main): Likewise.
14345
14346 2010-12-22  Bruno Haible  <bruno@clisp.org>
14347
14348         getaddrinfo: Update doc.
14349         * doc/posix-functions/gai_strerror.texi: Return type is also different
14350         on AIX and HP-UX.
14351
14352 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14353
14354         getaddrinfo, inet_ntop: Update doc for Solaris.
14355         * doc/posix-functions/gai_strerror.texi: Return type is also an
14356         issue on Solaris 9 and earlier.
14357         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14358         on Solaris 10 and earlier.
14359
14360 2010-12-21  Bruno Haible  <bruno@clisp.org>
14361
14362         New module 'roundl-ieee'.
14363         * modules/roundl-ieee: New file.
14364         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14365         test whether roundl works according to ISO C 99 with IEC 60559.
14366         * m4/roundl-ieee.m4: New file.
14367         * modules/roundl-ieee-tests: New file.
14368         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14369         * tests/test-roundl.c (main): Remove signbit tests.
14370         * modules/roundl-tests (Depends-on): Remove signbit.
14371         * doc/posix-functions/roundl.texi: Mention the new module.
14372
14373 2010-12-21  Bruno Haible  <bruno@clisp.org>
14374
14375         New module 'truncl-ieee'.
14376         * modules/truncl-ieee: New file.
14377         * modules/truncl-ieee-tests: New file.
14378         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14379         * tests/test-truncl.c (main): Remove signbit tests.
14380         * modules/truncl-tests (Depends-on): Remove signbit.
14381         * doc/posix-functions/truncl.texi: Mention the new module.
14382
14383 2010-12-21  Bruno Haible  <bruno@clisp.org>
14384
14385         New module 'ceill-ieee'.
14386         * modules/ceill-ieee: New file.
14387         * modules/ceill-ieee-tests: New file.
14388         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14389         * tests/test-ceill.c (main): Remove signbit tests.
14390         * modules/ceill-tests (Depends-on): Remove signbit.
14391         * doc/posix-functions/ceill.texi: Mention the new module.
14392
14393 2010-12-21  Bruno Haible  <bruno@clisp.org>
14394
14395         New module 'floorl-ieee'.
14396         * modules/floorl-ieee: New file.
14397         * modules/floorl-ieee-tests: New file.
14398         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14399         * tests/test-floorl.c (main): Remove signbit tests.
14400         * modules/floorl-tests (Depends-on): Remove signbit.
14401         * doc/posix-functions/floorl.texi: Mention the new module.
14402
14403 2010-12-21  Bruno Haible  <bruno@clisp.org>
14404
14405         New module 'round-ieee'.
14406         * modules/round-ieee: New file.
14407         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14408         whether round works according to ISO C 99 with IEC 60559.
14409         * m4/round-ieee.m4: New file.
14410         * modules/round-ieee-tests: New file.
14411         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14412         * tests/test-round1.c (main): Remove signbit tests.
14413         * modules/round-tests (Depends-on): Remove 'signbit'.
14414         * doc/posix-functions/round.texi: Mention the new module.
14415
14416 2010-12-21  Bruno Haible  <bruno@clisp.org>
14417
14418         New module 'trunc-ieee'.
14419         * modules/trunc-ieee: New file.
14420         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14421         whether trunc works according to ISO C 99 with IEC 60559.
14422         * m4/trunc-ieee.m4: New file.
14423         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14425         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14426         * modules/trunc-ieee-tests: New file.
14427         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14428         * tests/test-trunc1.c (main): Remove signbit tests.
14429         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14430         * doc/posix-functions/trunc.texi: Mention the new module.
14431
14432 2010-12-21  Bruno Haible  <bruno@clisp.org>
14433
14434         New module 'ceil-ieee'.
14435         * modules/ceil-ieee: New file.
14436         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14437         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14438         ISO C 99 with IEC 60559.
14439         * m4/ceil-ieee.m4: New file.
14440         * modules/ceil (Files): Add lib/ceil.c.
14441         (Depends-on): Add 'float'.
14442         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14443         * lib/math.in.h (ceil): New declaration.
14444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14445         REPLACE_CEIL.
14446         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14447         * modules/ceil-ieee-tests: New file.
14448         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14449         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14450         * doc/posix-functions/ceil.texi: Mention the new module.
14451
14452 2010-12-21  Bruno Haible  <bruno@clisp.org>
14453
14454         New module 'floor-ieee'.
14455         * modules/floor-ieee: New file.
14456         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14457         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14458         ISO C 99 with IEC 60559.
14459         * m4/floor-ieee.m4: New file.
14460         * modules/floor (Files): Add lib/floor.c.
14461         (Depends-on): Add 'float'.
14462         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14463         * lib/math.in.h (floor): New declaration.
14464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14465         REPLACE_FLOOR.
14466         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14467         * modules/floor-ieee-tests: New file.
14468         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14469         * tests/test-math-c++.cc: Check the signature of 'floor'.
14470         * doc/posix-functions/floor.texi: Mention the new module.
14471
14472 2010-12-21  Bruno Haible  <bruno@clisp.org>
14473
14474         New module 'roundf-ieee'.
14475         * modules/roundf-ieee: New file.
14476         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14477         test whether roundf works according to ISO C 99 with IEC 60559.
14478         * m4/roundf-ieee.m4: New file.
14479         * modules/roundf-ieee-tests: New file.
14480         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14481         * tests/test-roundf1.c (main): Remove signbit tests.
14482         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14483         * doc/posix-functions/roundf.texi: Mention the new module.
14484
14485 2010-12-21  Bruno Haible  <bruno@clisp.org>
14486
14487         New module 'truncf-ieee'.
14488         * modules/truncf-ieee: New file.
14489         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14490         test whether truncf works according to ISO C 99 with IEC 60559.
14491         * m4/truncf-ieee.m4: New file.
14492         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14494         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14495         * modules/truncf-ieee-tests: New file.
14496         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14497         * tests/test-truncf1.c (main): Remove signbit tests.
14498         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14499         * doc/posix-functions/truncf.texi: Mention the new module.
14500
14501 2010-12-21  Bruno Haible  <bruno@clisp.org>
14502
14503         New module 'ceilf-ieee'.
14504         * modules/ceilf-ieee: New file.
14505         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14506         test whether ceilf works according to ISO C 99 with IEC 60559.
14507         * m4/ceilf-ieee.m4: New file.
14508         * modules/ceilf-ieee-tests: New file.
14509         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14510         * tests/test-ceilf1.c (main): Remove signbit tests.
14511         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14512         * doc/posix-functions/ceilf.texi: Mention the new module.
14513
14514 2010-12-21  Bruno Haible  <bruno@clisp.org>
14515
14516         New module 'floorf-ieee'.
14517         * modules/floorf-ieee: New file.
14518         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14519         test whether floorf works according to ISO C 99 with IEC 60559.
14520         * m4/floorf-ieee.m4: New file.
14521         * modules/floorf-ieee-tests: New file.
14522         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14523         * tests/test-floorf1.c (main): Remove signbit tests.
14524         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14525         * doc/posix-functions/floorf.texi: Mention the new module.
14526
14527 2010-12-21  Bruno Haible  <bruno@clisp.org>
14528
14529         Support for minus zero in autoconf macros.
14530         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14531         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14532         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14533         * tests/minus-zero.h: Update comments.
14534
14535 2010-12-21  Bruno Haible  <bruno@clisp.org>
14536
14537         Tests for module 'ceil'.
14538         * modules/ceil-tests: New file.
14539         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14540         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14541
14542 2010-12-21  Bruno Haible  <bruno@clisp.org>
14543
14544         Tests for module 'floor'.
14545         * modules/floor-tests: New file.
14546         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14547         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14548
14549 2010-12-21  Bruno Haible  <bruno@clisp.org>
14550
14551         math: Fix indentation.
14552         * lib/math.in.h (floorf): Fix indentation.
14553
14554 2010-12-21  Bruno Haible  <bruno@clisp.org>
14555
14556         Fix cross-compilation guesses on Solaris.
14557         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14558         not match "solaris2.10".
14559         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14560         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14561         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14562
14563 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14564
14565         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14566         This fixes a problem observed with the latest coreutils snapshot
14567         that caused a test to fail on Solaris 8.  src/csplit.c's call
14568         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14569         earlier, instead of returning the number of bytes that would have
14570         been generated; this causes csplit to incorrectly report memory
14571         exhaustion.
14572         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14573         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14574         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14575         comments to match.
14576         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14577         Fix typo in matching older versions of Solaris: "solaris2.10"
14578         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14579         only for guessing while cross-compiling.
14580         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14581
14582 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14583
14584         ftoastr: fix comment again
14585         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14586         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14587         Also, simplify example a bit by using flags = 0.
14588
14589 2010-12-20  Bruno Haible  <bruno@clisp.org>
14590
14591         round*, trunc*: Update documentation regarding glibc.
14592         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14593         * doc/posix-functions/round.texi: Likewise.
14594         * doc/posix-functions/roundl.texi: Likewise.
14595         * doc/posix-functions/truncf.texi: Likewise.
14596         * doc/posix-functions/trunc.texi: Likewise.
14597         * doc/posix-functions/truncl.texi: Likewise.
14598
14599 2010-12-20  Bruno Haible  <bruno@clisp.org>
14600
14601         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14602         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14603         * doc/posix-functions/round.texi: Likewise.
14604         * doc/posix-functions/roundl.texi: Likewise.
14605
14606 2010-12-20  Bruno Haible  <bruno@clisp.org>
14607
14608         ttyname_r: Add missing declaration on HP-UX 11.
14609         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14610         HAVE_TTYNAME_R.
14611         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14612         declared. Set HAVE_TTYNAME_R always.
14613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14614         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14615         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14616         HAVE_TTYNAME_R.
14617         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14618
14619 2010-12-20  Bruno Haible  <bruno@clisp.org>
14620
14621         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14622         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14623         * doc/posix-functions/getlogin_r.texi: Likewise.
14624         * tests/test-getlogin.c: Include <errno.h>.
14625         (main): Avoid test failure on HP-UX 11.11.
14626         * tests/test-getlogin_r.c (main): Likewise.
14627
14628 2010-12-20  Bruno Haible  <bruno@clisp.org>
14629
14630         getlogin_r: Add missing declaration on HP-UX 11.
14631         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14632         declared also when it exists as a function.
14633         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14634
14635 2010-12-20  Bruno Haible  <bruno@clisp.org>
14636
14637         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14638         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14639         through wcrtomb.
14640
14641 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14642
14643         ftoastr: fix comment
14644         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14645         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14646
14647 2010-12-19  Bruno Haible  <bruno@clisp.org>
14648
14649         isnan: Ensure it is a macro.
14650         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14651         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14652         Solaris.
14653
14654 2010-12-19  Bruno Haible  <bruno@clisp.org>
14655
14656         ldexpl test: Fix link error on OSF/1 5.1.
14657         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14658
14659 2010-12-19  Bruno Haible  <bruno@clisp.org>
14660
14661         wctype: Make it work in C++ mode on OSF/1 5.1.
14662         * lib/wctype.in.h (iswblank): Declare but not define here.
14663         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14664         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14665         * modules/wctype (Files): Add lib/iswblank.c.
14666
14667 2010-12-19  Bruno Haible  <bruno@clisp.org>
14668
14669         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14670         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14671         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14672
14673 2010-12-19  Bruno Haible  <bruno@clisp.org>
14674
14675         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14677         _POSIX_PII_SOCKET.
14678         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14679         * doc/posix-functions/recvfrom.texi: Likewise.
14680         * doc/posix-functions/send.texi: Likewise.
14681         * doc/posix-functions/sendto.texi: Likewise.
14682
14683 2010-12-19  Bruno Haible  <bruno@clisp.org>
14684
14685         tcgetsid: Add missing declaration on OSF/1 5.1.
14686         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14687         HAVE_TCGETSID.
14688         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14689         Don't set HAVE_TCGETSID.
14690         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14691         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14692         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14693         HAVE_TCGETSID.
14694         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14695
14696 2010-12-19  Bruno Haible  <bruno@clisp.org>
14697
14698         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14699         * lib/stdio.in.h: During the include_next statement, let recursive
14700         includes of this file include only the system header file.
14701
14702 2010-12-19  Bruno Haible  <bruno@clisp.org>
14703
14704         iconv_open: Fix regression from 2010-12-04.
14705         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14706         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14707
14708 2010-12-19  Bruno Haible  <bruno@clisp.org>
14709
14710         stdbool test: Avoid a gcc warning.
14711         * tests/test-stdbool.c (main): Fail if e1 is false.
14712         Reported by Jim Meyering.
14713
14714 2010-12-19  Jim Meyering  <meyering@redhat.com>
14715
14716         setenv: restore to working order
14717         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14718         mistakenly removed.
14719         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14720         HAVE_SETENV.
14721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14722         HAVE_SETENV.
14723
14724 2010-12-19  Bruno Haible  <bruno@clisp.org>
14725
14726         Document some different function declarations on OSF/1 5.1.
14727         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14728         * doc/posix-functions/inet_ntop.texi: Likewise.
14729         * doc/posix-functions/gethostname.texi: Likewise.
14730         * lib/unistd.in.h (gethostname): Update comment.
14731
14732 2010-12-19  Bruno Haible  <bruno@clisp.org>
14733
14734         doc: Mention vasprintf-posix module.
14735         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14736         the 'vasprintf-posix' module.
14737         * doc/glibc-functions/vasprintf.texi: Likewise.
14738
14739 2010-12-19  Bruno Haible  <bruno@clisp.org>
14740
14741         unsetenv: Add missing declaration on OSF/1 5.1.
14742         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14743         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14744         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14746         not HAVE_UNSETENV.
14747         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14748         HAVE_UNSETENV.
14749         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14750
14751 2010-12-19  Bruno Haible  <bruno@clisp.org>
14752
14753         setenv: Add missing declaration on OSF/1 5.1.
14754         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14755         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14756         declared. Don't set HAVE_SETENV.
14757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14758         not HAVE_SETENV.
14759         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14760         HAVE_SETENV.
14761         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14762
14763 2010-12-19  Bruno Haible  <bruno@clisp.org>
14764
14765         nl_langinfo tests: Avoid gcc warning.
14766         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14767
14768 2010-12-19  Bruno Haible  <bruno@clisp.org>
14769
14770         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14771         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14772         _GL_CXXALIAS_SYS.
14773
14774 2010-12-19  Bruno Haible  <bruno@clisp.org>
14775
14776         stdbool: Relax test.
14777         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14778         address to 'bool' work in static initializer, for compilers other than
14779         GCC.
14780
14781 2010-12-19  Bruno Haible  <bruno@clisp.org>
14782
14783         ftello: Add missing declaration on OSF/1 5.1.
14784         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14785         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14787         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14788         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14789
14790 2010-12-19  Bruno Haible  <bruno@clisp.org>
14791
14792         fseeko: Add missing declaration on OSF/1 5.1.
14793         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14794         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14796         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14797         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14798
14799 2010-12-19  Bruno Haible  <bruno@clisp.org>
14800
14801         fchdir: Add missing declaration on OSF/1 5.1.
14802         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14805         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14806         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14807
14808 2010-12-19  Bruno Haible  <bruno@clisp.org>
14809
14810         relocatable-prog-wrapper: Separate from relocatable-prog.
14811         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14812         uninstall-relocwrapper rule here.
14813         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14814         Reported by Ian Beckwith <ianb@erislabs.net>.
14815
14816 2010-12-19  Bruno Haible  <bruno@clisp.org>
14817
14818         unistr/u8-mbsnlen: Add missing dependency.
14819         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14820         Reported by Ian Beckwith <ianb@erislabs.net>.
14821
14822 2010-12-19  Bruno Haible  <bruno@clisp.org>
14823
14824         iconv: Make it possible again to use this module without 'iconv-h'.
14825         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14826         if it is not defined.
14827         Reported by Ian Beckwith <ianb@erislabs.net>.
14828
14829 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14830
14831         acl: port to Solaris 8 when copying from tmpfs to ufs
14832         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14833         error number.  Problem observed on Solaris 8 with latest
14834         coreutils, with "mv A B", where A is on a tmpfs file system and B
14835         is on a ufs file system.  This caused coreutils' mv/part-symlink
14836         test to fail.
14837
14838         tests: set fail=0 at start
14839         * tests/init.sh (setup_): Move fail=0 initialization here ...
14840         (mktempd_): ... from here, so that tests can rely on fail being
14841         set to 0 initially.  This fixes a problem in coreutils; see:
14842         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14843
14844 2010-12-18  Bruno Haible  <bruno@clisp.org>
14845
14846         memmem-simple: Stylistic changes.
14847         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14848         Fix preprocessor directive indentation.
14849
14850 2010-12-15  Pádraig Brady <P@draigBrady.com>
14851
14852         memmem, memmem-simple: reorganize and expand empty needle check
14853         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14854         functional checks to memmem-simple so that one has a fully functional
14855         memmem by using just this module.
14856         Restrict the performance only check to the memmem module.
14857         Also expand the empty needle check to ensure the correct
14858         pointer is returned, not just a non NULL pointer.
14859         * doc/glibc-functions/memmem.texi: Rearrange the portability
14860         documentation to correlate with the rearranged checks.
14861         Clarify exactly how the memmem and memmem-simple modules
14862         relate to each other.
14863
14864 2010-12-15  Pádraig Brady <P@draigBrady.com>
14865             Bruno Haible  <bruno@clisp.org>
14866
14867         Improve cross-compilation guesses for uClibc.
14868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14869         that uClibc does not have the glibc bug.
14870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14871         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14872
14873 2010-12-14  Eric Blake  <eblake@redhat.com>
14874
14875         configmake: provide fallbacks for oldest supported autotools
14876         * m4/configmake.m4: New file.
14877         * modules/configmake (Files): Ship it.
14878         (configure.ac): Use it to guarantee fallbacks.
14879
14880 2010-12-13  Pádraig Brady <P@draigBrady.com>
14881
14882         read-file: Improve handling of large files
14883         * lib/read-file.c (fread_file): Minimize realloc()s
14884         for regular files, and better manage sizes around SIZE_MAX.
14885
14886 2010-12-13  Eric Blake  <eblake@redhat.com>
14887
14888         cloexec, fcntl: relax license
14889         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14890         consent from all contributors.
14891         * modules/fcntl (License): Likewise.
14892
14893 2010-12-10  Bruno Haible  <bruno@clisp.org>
14894
14895         Tests for module 'pipe-posix'.
14896         * modules/pipe-posix-tests: New file.
14897         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14898
14899 2010-12-10  Bruno Haible  <bruno@clisp.org>
14900
14901         pipe-posix: Make it work in C++ mode.
14902         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14903         (pipe): Use common idiom, not a macro definition.
14904         * lib/pipe.c: New file.
14905         * m4/pipe.m4: New file.
14906         * modules/pipe-posix (Description): Enhance.
14907         (Files): Add lib/pipe.c, m4/pipe.m4.
14908         (configure.ac): Invoke gl_FUNC_PIPE.
14909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14910         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14911         * tests/test-unistd-c++.cc: Check the signature of pipe.
14912
14913 2010-12-10  Bruno Haible  <bruno@clisp.org>
14914
14915         Rename module 'pipe' to 'spawn-pipe'.
14916         * modules/spawn-pipe: New file, renamed from modules/pipe.
14917         (Files, configure.ac, Makefile.am): Update.
14918         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14919         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14920         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14921         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14922         "spawn-pipe.h" instead of "pipe.h".
14923         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14924         to gl_SPAWN_PIPE.
14925         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14926         (Files, Makefile.am): Update.
14927         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14928         Update.
14929         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14930         Include "spawn-pipe.h" instead of "pipe.h".
14931         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14932         * lib/javacomp.c: Likewise.
14933         * lib/javaversion.c: Likewise.
14934         * lib/pipe-filter-gi.c: Likewise.
14935         * lib/pipe-filter-ii.c: Likewise.
14936         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14937         * modules/javacomp (Depends-on): Likewise.
14938         * modules/javaversion (Depends-on): Likewise.
14939         * modules/pipe-filter-gi (Depends-on): Likewise.
14940         * modules/pipe-filter-ii (Depends-on): Likewise.
14941         * MODULES.html.sh (Executing programs): Update.
14942         * NEWS: Mention the change.
14943
14944 2010-12-10  Eric Blake  <eblake@redhat.com>
14945
14946         pipe-posix: new module
14947         * modules/pipe-posix: New file.
14948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14949         (gl_UNISTD_H): Check for declaration.
14950         * modules/unistd (Makefile.am): Substitute it.
14951         * lib/unistd.in.h (pipe): Provide it for mingw.
14952         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14953         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14954
14955 2010-12-07  Bruno Haible  <bruno@clisp.org>
14956
14957         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14958         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14959         u8_strcmp_gnu.
14960         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14961
14962 2010-12-06  Bruno Haible  <bruno@clisp.org>
14963
14964         Update internal documentation.
14965         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14966
14967 2010-12-04  Bruno Haible  <bruno@clisp.org>
14968
14969         Put more information about failed tests into the test return codes.
14970         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14971         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14972         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14973         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14974         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14975         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14976         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14977         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14978         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14979         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14981         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14982         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14983         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14984         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14985         returns a bit mask.
14986         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14987         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14988         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14989         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14990         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14991         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14992         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14994         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14995         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14996         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14997         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14998         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14999         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15000         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15001         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15002         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15003         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15004         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15005         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15007         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15008         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15009         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15010         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15011         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15012         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15013         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15014         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15015         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15016         gl_PRINTF_PRECISION): Likewise.
15017         * m4/regex.m4 (gl_REGEX): Likewise.
15018         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15020         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15021         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15022         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15024         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15025         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15026         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15027         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15028         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15029         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15030         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15031         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15032         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15033         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15034         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15035         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15037         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15038         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15039         enumerated value.
15040         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15041
15042 2010-12-04  Bruno Haible  <bruno@clisp.org>
15043
15044         Update for Solaris 11 2010-11.
15045         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15046         Express, released in November 2010.
15047
15048 2010-12-04  Bruno Haible  <bruno@clisp.org>
15049
15050         nproc: Relax license.
15051         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15052         and Paul Eggert.
15053         Requested by Ludovic Courtès <ludo@gnu.org>.
15054
15055 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15056
15057         utimecmp: fine-grained src to nearby coarse-grained dest
15058
15059         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15060         and the source is on a file system with higher-resolution time
15061         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15062         not work, and the time stamps are close together, the algorithm to
15063         determine the exact resolution from the read-back mtime was buggy:
15064         it had a "!=" where it should have had an "==".  This bug has been
15065         in the code ever since it was introduced to gnulib.
15066         Problem reported by Dan Jacobson in
15067         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15068
15069 2010-11-30  Bruno Haible  <bruno@clisp.org>
15070
15071         strerror_r-posix: Fix autoconf test.
15072         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15073
15074 2010-11-28  Bruno Haible  <bruno@clisp.org>
15075             Paul Eggert  <eggert@cs.ucla.edu>
15076
15077         Tests for module 'getdomainname'.
15078         * modules/getdomainname-tests: New file.
15079         * tests/test-getdomainname.c: New file, based on
15080         tests/test-gethostname.c.
15081
15082 2010-11-28  Bruno Haible  <bruno@clisp.org>
15083             Paul Eggert  <eggert@cs.ucla.edu>
15084
15085         getdomainname: Use the system function when possible.
15086         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15087         (getdomainname): Replace if needed. Provide the declaration if it is
15088         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15089         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15090         (getdomainname): When the system has getdomainname, call the system
15091         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15092         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15093         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15094         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15095         the function if its second argument is of type 'int' or if it is found
15096         in libnsl.
15097         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15098         <sys/systeminfo.h> and sysinfo().
15099         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15101         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15102         HAVE_GETDOMAINNAME.
15103         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15104         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15105         * doc/glibc-functions/getdomainname.texi: Document the problems with
15106         the getdomainname declaration.
15107
15108 2010-11-28  Bruno Haible  <bruno@clisp.org>
15109
15110         sys_socket: Ensure ss_family field on AIX.
15111         * lib/sys_socket.in.h (ss_family): New macro definition.
15112         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15113         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15114         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15115         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15116         * modules/sys_socket (Makefile.am): Substitute
15117         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15118         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15119
15120 2010-11-27  Bruno Haible  <bruno@clisp.org>
15121
15122         readline: Improve configure output.
15123         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15124         "checking for readline..." result understandable.
15125
15126 2010-11-27  Bruno Haible  <bruno@clisp.org>
15127
15128         *printf-posix: Detect a bug on Solaris 10/x86.
15129         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15130         for floating-point output.
15131         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15132         directive.
15133         * tests/test-snprintf-posix.h (test_function): Likewise.
15134         * tests/test-sprintf-posix.h (test_function): Likewise.
15135         * tests/test-vasprintf-posix.c (test_function): Likewise.
15136         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15137         * doc/posix-functions/printf.texi: Likewise.
15138         * doc/posix-functions/snprintf.texi: Likewise.
15139         * doc/posix-functions/sprintf.texi: Likewise.
15140         * doc/posix-functions/vfprintf.texi: Likewise.
15141         * doc/posix-functions/vprintf.texi: Likewise.
15142         * doc/posix-functions/vsnprintf.texi: Likewise.
15143         * doc/posix-functions/vsprintf.texi: Likewise.
15144         * doc/glibc-functions/obstack_printf.texi: Likewise.
15145         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15146
15147 2010-11-27  Bruno Haible  <bruno@clisp.org>
15148
15149         Fix link error when module libunistring-optional is in use.
15150         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15151         * modules/striconveha-tests (Makefile.am): Likewise.
15152
15153 2010-11-27  Bruno Haible  <bruno@clisp.org>
15154
15155         regex: Mention link dependencies.
15156         * modules/regex (Link): New section.
15157         * modules/rpmatch (Link): Likewise.
15158         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15159
15160 2010-11-27  Bruno Haible  <bruno@clisp.org>
15161
15162         ftoastr: Fix compilation error on Solaris.
15163         * lib/ftoastr.c: Include <config.h>.
15164
15165 2010-11-27  Bruno Haible  <bruno@clisp.org>
15166
15167         getloadavg: Update documentation.
15168         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15169
15170 2010-11-27  Bruno Haible  <bruno@clisp.org>
15171
15172         sys_socket: Fix test whether the functions are declared.
15173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15174         not <sys/select.h>.
15175
15176 2010-11-27  Bruno Haible  <bruno@clisp.org>
15177
15178         getpass: Make sure to get system declaration on some platforms.
15179         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15180         gl_USE_SYSTEM_EXTENSIONS.
15181         * modules/getpass (Depends-on): Add extensions.
15182
15183 2010-11-26  Bruno Haible  <bruno@clisp.org>
15184
15185         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15186         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15187         'iconv' module is present.
15188         (ICONV_CONST): New macro.
15189         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15190         ICONV_CONST.
15191         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15192         set ICONV_CONST.
15193         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15194         here.
15195         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15196         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15197         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15198         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15199         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15200         present.
15201
15202 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15203
15204         ftoastr: comment fix
15205         * lib/ftoastr.c: "little" -> "little or no" in comment
15206
15207 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15208
15209         stdint: port to GCC 4.3 + OSX + Octave
15210         On this platform, stdint.h is buggy and defines int64_t to long
15211         long int.  The replacement defined it to long int, causing
15212         problems with C++ style name mangling.  Instead, trust the system
15213         definition if INT64_MAX is defined, and likewise for the unsigned
15214         variant.   Problem reported by Jarno Rajahalme in
15215         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15216         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15217         and don't mess with int64_t and INT64_MAX in this case.
15218         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15219
15220 2010-11-24  Bruno Haible  <bruno@clisp.org>
15221
15222         doc: Corrections regarding MacOS X 10.4 and 10.5.
15223         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15224         MacOS X.
15225         Reported by Simon Josefsson.
15226
15227 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15228
15229         Uninstall ".bin" files installed by relocwrapper.
15230         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15231         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15232         unless it is already there.
15233
15234 2010-11-21  Bruno Haible  <bruno@clisp.org>
15235
15236         Update for NetBSD 5.0.
15237         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15238         NetBSD; the test fails on NetBSD 5.0.
15239         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15240         about NetBSD.
15241
15242 2010-11-21  Bruno Haible  <bruno@clisp.org>
15243
15244         Update for HP-UX 11.23 and HP-UX 11.31.
15245         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15246         HP-UX.
15247
15248 2010-11-21  Bruno Haible  <bruno@clisp.org>
15249
15250         Update for MacOS X 10.5.
15251         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15252         MacOS X; the test fails on MacOS X 10.5.8.
15253         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15254         about MacOS X.
15255
15256 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15257
15258         bootstrap: add bootstrap_sync option.
15259         See discussion at
15260         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15261         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15262         * build-aux/bootstrap: Accept --bootstrap-sync to update
15263         bootstrap if it is not identical to the local gnulib's
15264         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15265         enable this by default.  Accept --no-bootstrap-sync to disable
15266         it.
15267
15268 2010-11-20  Bruno Haible  <bruno@clisp.org>
15269
15270         Ensure that <features.h> is included before __GLIBC__ is tested.
15271         * lib/printf-parse.h: Include <features.h>.
15272         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15273         Reported by Mike Frysinger <vapier@gentoo.org>.
15274
15275         Ensure that <features.h> is included before __GLIBC__ is tested.
15276         * lib/wchar.in.h: Include <features.h>.
15277         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15278         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15279         Reported by Mike Frysinger <vapier@gentoo.org>.
15280
15281         Ensure that <features.h> is included before __GLIBC__ is tested.
15282         * lib/arpa_inet.in.h: Include <features.h>.
15283         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15284         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15285         Reported by Mike Frysinger <vapier@gentoo.org>.
15286
15287         Ensure that <features.h> is included before __GLIBC__ is tested.
15288         * build-aux/link-warning.h: Include <features.h>.
15289         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15290         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15291         Reported by Mike Frysinger <vapier@gentoo.org>.
15292
15293         Ensure that <features.h> is included before __GLIBC__ is tested.
15294         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15295         Reported by Mike Frysinger <vapier@gentoo.org>.
15296
15297 2010-11-20  Bruno Haible  <bruno@clisp.org>
15298
15299         memmem: Fix autoconf test.
15300         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15301
15302 2010-11-20  Bruno Haible  <bruno@clisp.org>
15303
15304         Port to uClibc.
15305         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15306         * lib/fcntl.in.h: Likewise.
15307         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15308         * lib/mbrtowc.c (mbrtowc): Likewise.
15309         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15310         * lib/strerror_r.c: Likewise.
15311         * lib/unistr/u8-strnlen.c: Likewise.
15312         * lib/vasnprintf.c (decimal_point_char): Likewise.
15313         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15314         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15315         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15316         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15317         * tests/test-sigaction.c (handler, main): Likewise.
15318         * lib/freading.h: Treat uClibc like a non-glibc platform.
15319         * lib/freading.c: Likewise.
15320         * lib/gettext.h: Likewise.
15321         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15322         Likewise.
15323         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15324         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15325         * lib/propername.c (proper_name_utf8): Likewise.
15326         * lib/spawn.in.h: Likewise.
15327         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15328         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15329         mem_cd_iconveh_internal): Likewise.
15330         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15331         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15332         strstr, strcasestr): Likewise.
15333         * lib/unicodeio.c (unicode_to_mb): Likewise.
15334         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15335         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15336         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15337         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15338         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15339         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15340         * lib/unistr/u8-stpncpy.c: Likewise.
15341         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15342         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15343         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15344         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15345         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15346         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15347         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15348         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15349         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15350         Likewise.
15351         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15352         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15353         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15355         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15356         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15357         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15358         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15359         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15360         * tests/test-striconveha.c (main): Likewise.
15361         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15362         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15363         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15364         * doc/posix-functions/getline.texi: Likewise.
15365         Reported by Mike Frysinger <vapier@gentoo.org>.
15366
15367 2010-11-20  Bruno Haible  <bruno@clisp.org>
15368
15369         nproc: Fix condition.
15370         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15371         HAVE_PTHREAD_AFFINITY_NP.
15372
15373 2010-11-20  Bruno Haible  <bruno@clisp.org>
15374
15375         Fix a comment.
15376         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15377
15378 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15379
15380         ftoastr: don't assume snprintf
15381         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15382         Implement a subset of snprintf here, by using sprintf safely.
15383         * modules/ftoastr (Depends-on): Remove snprintf.
15384
15385 2010-11-19  Jim Meyering  <meyering@redhat.com>
15386
15387         test-rename.h: fix compilation failure
15388         * tests/test-rename.h (test_rename): Add omitted "}".
15389
15390 2010-11-17  Jim Meyering  <meyering@redhat.com>
15391
15392         maint.mk: add a URL discussing the no-@acronym policy
15393         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15394
15395 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15396
15397         ftoastr: depend on snprintf, improve comments
15398         * lib/ftoastr.c: Also mention Loitsch's draft.
15399         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15400         needed in the current implementation, but it might simplify
15401         speeding up the code later.
15402         * modules/ftoastr: Depend on snprintf; this improves portability.
15403         Suggested by Bruno Haible in the same email.
15404
15405         ftoastr: port to hosts lacking strtof and strtold
15406         Problem reported by Bruno Haible in
15407         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15408         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15409         environment and strtold (and presumably strtof) are not available.
15410         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15411         (configure.ac): Require gl_C99_STRTOLD.
15412
15413 2010-11-18  Bruno Haible  <bruno@clisp.org>
15414
15415         c-strtold: Avoid link error on AIX 7.
15416         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15417         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15418         (gl_C_STRTOLD): Test whether strtold_l exists.
15419         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15420
15421 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15422
15423         intprops: new macro INT_BITS_STRLEN_BOUND
15424         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15425         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15426         not exposed.  Also, it uses a slightly tighter bound than before;
15427         though this makes no practical difference, we might as well be as
15428         tight as we easily can.
15429
15430         ftoastr: new module, for lossless conversion of floats to short strings
15431         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15432         * modules/ftoastr: New files.
15433
15434 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15435
15436         bootstrap: port to Solaris sed
15437         * build-aux/bootstrap (get_version): Port to Solaris sed.
15438         See Ralf Wildenhues's note in
15439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15440
15441 2010-11-14  Jim Meyering  <meyering@redhat.com>
15442
15443         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15444         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15445         and move definition closer to sole use.
15446
15447 2010-11-13  Jim Meyering  <meyering@redhat.com>
15448
15449         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15450         Now we require at least autoconf-2.59, which means the work-around
15451         is no longer needed.
15452         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15453         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15454         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15455         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15456         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15457
15458 2010-11-13  Bruno Haible  <bruno@clisp.org>
15459
15460         rename, renameat: Avoid test failures at NFS mounted locations.
15461         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15462         functions.
15463         (test_rename): Use assert_nonexistent.
15464         * tests/test-rename.c: Include <dirent.h>.
15465         * tests/test-renameat.c: Likewise.
15466         Reported by Gary V. Vaughan <gary@gnu.org>.
15467
15468         rename, renameat: Document Linux bug with NFS
15469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15470         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15471         * doc/posix-functions/renameat.texi: Likewise.
15472         Suggested by Eric Blake.
15473
15474 2010-11-13  Bruno Haible  <bruno@clisp.org>
15475
15476         rename test: Add comments.
15477         * tests/test-rename.h (test_rename): Add structure and comments.
15478
15479 2010-11-13  Eric Blake  <eblake@redhat.com>
15480
15481         maintainer-makefile: cover a few more files
15482         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15483         scripts generated within C files, for libvirt.
15484
15485 2010-11-13  Bruno Haible  <bruno@clisp.org>
15486
15487         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15488         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15489         character, return the number of bytes that belong together, not always
15490         1.
15491         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15492         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15493         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15494         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15495         number of bytes of an invalid character.
15496         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15497         (main): Invoke it.
15498         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15499         results.
15500         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15501         malformed byte sequences.
15502         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15503         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15504         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15505         Reported by Ben Pfaff and Paolo Bonzini.
15506
15507 2010-11-13  Bruno Haible  <bruno@clisp.org>
15508
15509         openat: Work around glibc bug with fchownat() and empty file names.
15510         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15511         (gl_FUNC_FCHOWNAT): Invoke it.
15512         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15513         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15514         Reported by Gary V. Vaughan <gary@gnu.org>.
15515
15516 2010-11-13  Bruno Haible  <bruno@clisp.org>
15517
15518         openat: Ensure autoconf macro ordering.
15519         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15520         gl_USE_SYSTEM_EXTENSIONS.
15521         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15522
15523 2010-11-13  Bruno Haible  <bruno@clisp.org>
15524
15525         Update comments.
15526         * lib/unistr/u8-check.c: Update file name in comments.
15527         * lib/unistr/u8-mblen.c: Likewise.
15528         * lib/unistr/u8-prev.c: Likewise.
15529         * lib/unistr/u8-strmblen.c: Likewise.
15530         * lib/unistr/u8-strmbtouc.c: Likewise.
15531
15532 2010-11-13  Jim Meyering  <meyering@redhat.com>
15533
15534         tests: avoid test failure on Solaris 10 due to lack of PATH export
15535         * tests/test-update-copyright.sh: Don't forget to export PATH.
15536
15537         init.sh: ensure that IFS is defined, just in case...
15538         * tests/init.sh (setup_): Ensure that IFS is defined,
15539         so that saving and restoring it works as expected.  This
15540         appears to be useful at least for an old version of dash
15541         from a long time ago (RH 6).  See here for details:
15542         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15543
15544         maint.mk: tighten "test a == b" check
15545         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15546         test to files that contain something like #!/bin/sh.
15547         Without this, coreutils would get two false positives in
15548         the comments of C source files.
15549
15550 2010-11-12  Eric Blake  <eblake@redhat.com>
15551
15552         bootstrap: fix typo in previous attempt
15553         * build-aux/bootstrap (buildreq): Correct the grouping.
15554         Reported by Paul Eggert.
15555
15556         maintainer-makefile: prohibit test x == x
15557         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15558         Based on a report by Matthias Bolte.
15559
15560         bootstrap: allow FreeBSD gzip
15561         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15562         which has no '.' and goes to stderr.
15563         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15564         Reported by Matthias Bolte.
15565
15566         maintainer-makefile: check for i18n setup
15567         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15568         will likely work.
15569
15570 2010-11-12  Bruno Haible  <bruno@clisp.org>
15571
15572         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15573         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15574         * lib/nanosleep.c (nanosleep): Likewise.
15575
15576 2010-11-11  Bruno Haible  <bruno@clisp.org>
15577
15578         fcntl-h: Fix for use of C++ on glibc systems.
15579         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15580         also on glibc systems in C++ mode.
15581         Reported by Gary V. Vaughan <gary@gnu.org>.
15582
15583 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15584
15585         mknod: avoid false failure with dash
15586         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15587
15588 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15589
15590         unlink: Fix "is it should" typo in diagnostic.
15591         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15592         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15593
15594 2010-11-11  Bruno Haible  <bruno@clisp.org>
15595
15596         Tests for module 'strerror_r-posix'.
15597         * modules/strerror_r-posix-tests: New file.
15598         * tests/test-strerror_r.c: New file.
15599         * tests/test-string-c++.cc: Check the signature of strerror_r.
15600
15601         New module 'strerror_r-posix'.
15602         * lib/string.in.h (strerror_r): New declaration.
15603         * lib/strerror_r.c: New file.
15604         * m4/strerror_r.m4: New file.
15605         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15606         of strerror_r.
15607         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15608         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15609         * modules/strerror_r-posix: New file.
15610         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15611         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15612         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15613         portability problems.
15614
15615 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15616
15617         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15618         line is also considered for output. Quoted function name in shell
15619         command, so temporary files for functions like MyClass::operator()
15620         are removed correctly without errors.
15621
15622 2010-11-09  Bruno Haible  <bruno@clisp.org>
15623
15624         * doc/posix-functions/strerror.texi: List more failing platforms.
15625
15626         * doc/posix-functions/strerror.texi: Add a comment.
15627
15628 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15629
15630         fdopendir: fix bug on MacOS X when low on file descriptors
15631
15632         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15633         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15634         All callers changed.
15635         (fdopendir): Invoke save_cwd at the top level, not after using
15636         multiple dup() calls to use up file descriptors.  Then retry
15637         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15638         less than the maximum number of open file descriptors, because
15639         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15640         on Mac OS X 10.6.4 for tar 1.24
15641         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15642         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15643         and for tar 1.25
15644         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15645
15646 2010-11-07  Bruno Haible  <bruno@clisp.org>
15647
15648         vasnprintf: Support I flag on glibc systems.
15649         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15650         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15651         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15652         snprintf function.
15653         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15654         glibc systems.
15655         * tests/test-vasnprintf-posix3.c: New file.
15656         * modules/vasnprintf-posix-tests (Files): Add it.
15657         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15658
15659 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15660
15661         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15662         * MODULES.html.sh: For compiler warnings, use name
15663         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15664
15665 2010-11-05  Eric Blake  <eblake@redhat.com>
15666
15667         ceil, floor: avoid spurious failure with icc
15668         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15669         [denormals-as-zero] when optimizing without -mieee-fp option.
15670         * tests/test-floorf2.c (floorf_reference): Likewise.
15671         * tests/test-ceilf1.c (dummy): New function.
15672         (main): Use it to outsmart icc's optimization.
15673         * tests/test-floorf1.c (dummy, main): Likewise.
15674
15675         tests: require working signbit
15676         * modules/ceilf-tests (Depends-on): Add signbit.
15677         * modules/ceill-tests (Depends-on): Likewise.
15678         * modules/floorf-tests (Depends-on): Likewise.
15679         * modules/floorl-tests (Depends-on): Likewise.
15680         * modules/round-tests (Depends-on): Likewise.
15681         * modules/roundf-tests (Depends-on): Likewise.
15682         * modules/roundl-tests (Depends-on): Likewise.
15683         * modules/trunc-tests (Depends-on): Likewise.
15684         * modules/truncf-tests (Depends-on): Likewise.
15685         * modules/truncl-tests (Depends-on): Likewise.
15686
15687         strtod: work around icc bug
15688         * lib/strtod.c (minus_zero): Define to working value.
15689         (strtod): Use it to avoid icc bug.
15690
15691         copysign: enhance tests
15692         * modules/copysign-tests (Files): Add minus-zero.h.
15693         * tests/test-copysign.c (main): Also test zeros.
15694
15695 2010-11-04  Eric Blake  <eblake@redhat.com>
15696
15697         ceil, floor, round, trunc: enhance tests of -0
15698         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15699         * tests/test-ceill.c (main): Likewise.
15700         * tests/test-floorf1.c (main): Likewise.
15701         * tests/test-floorl.c (main): Likewise.
15702         * tests/test-round1.c (main): Likewise.
15703         * tests/test-roundf1.c (main): Likewise.
15704         * tests/test-roundl.c (main): Likewise.
15705         * tests/test-trunc1.c (main): Likewise.
15706         * tests/test-truncf1.c (main): Likewise.
15707         * tests/test-truncl.c (main): Likewise.
15708
15709 2010-11-04  Eric Blake  <eblake@redhat.com>
15710
15711         frexp, tests: work around ICC bug with -zero
15712         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15713         works with more compilers.
15714         * tests/minus-zero.h: New file.
15715         * modules/ceilf-tests (Files): Include it.
15716         * modules/ceill-tests (Files): Likewise.
15717         * modules/floorf-tests (Files): Likewise.
15718         * modules/floorl-tests (Files): Likewise.
15719         * modules/frexp-nolibm-tests (Files): Likewise.
15720         * modules/frexp-tests (Files): Likewise.
15721         * modules/frexpl-nolibm-tests (Files): Likewise.
15722         * modules/frexpl-tests (Files): Likewise.
15723         * modules/isnan-tests (Files): Likewise.
15724         * modules/isnand-nolibm-tests (Files): Likewise.
15725         * modules/isnand-tests (Files): Likewise.
15726         * modules/isnanf-nolibm-tests (Files): Likewise.
15727         * modules/isnanf-tests (Files): Likewise.
15728         * modules/isnanl-nolibm-tests (Files): Likewise.
15729         * modules/isnanl-tests (Files): Likewise.
15730         * modules/round-tests (Files): Likewise.
15731         * modules/roundf-tests (Files): Likewise.
15732         * modules/roundl-tests (Files): Likewise.
15733         * modules/ldexpl-tests (Files): Likewise.
15734         * modules/signbit-tests (Files): Likewise.
15735         * modules/snprintf-posix-tests (Files): Likewise.
15736         * modules/sprintf-posix-tests (Files): Likewise.
15737         * modules/strtod-tests (Files): Likewise.
15738         * modules/trunc-tests (Files): Likewise.
15739         * modules/truncf-tests (Files): Likewise.
15740         * modules/truncl-tests (Files): Likewise.
15741         * modules/vsnprintf-posix-tests (Files): Likewise.
15742         * modules/vsprintf-posix-tests (Files): Likewise.
15743         * modules/vasnprintf-posix-tests (Files): Likewise.
15744         * modules/vasprintf-posix-tests (Files): Likewise.
15745         * tests/test-ceilf1.c (main): Use it.
15746         * tests/test-ceill.c (main): Likewise.
15747         * tests/test-floorf1.c (main): Likewise.
15748         * tests/test-floorl.c (main): Likewise.
15749         * tests/test-frexp.c (main): Likewise.
15750         * tests/test-frexpl.c (main): Likewise.
15751         * tests/test-isnan.c (main): Likewise.
15752         * tests/test-isnand.h (main): Likewise.
15753         * tests/test-isnanf.h (main): Likewise.
15754         * tests/test-isnanl.h (main): Likewise.
15755         * tests/test-ldexpl.c (main): Likewise.
15756         * tests/test-round.c (main): Likewise.
15757         * tests/test-roundf.c (main): Likewise.
15758         * tests/test-roundl.c (main): Likewise.
15759         * tests/test-signbit.c (test_signbitf, test_signbitd)
15760         (test_signbitl): Likewise.
15761         * tests/test-snprintf-posix.h (test_function): Likewise.
15762         * tests/test-sprintf-posix.h (test_function): Likewise.
15763         * tests/test-strtod.c (main): Likewise.
15764         * tests/test-trunc1.c (main): Likewise.
15765         * tests/test-truncf1.c (main): Likewise.
15766         * tests/test-truncl.c (main): Likewise.
15767
15768         isnanl: work around icc bug
15769         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15770
15771 2010-11-03  Eric Blake  <eblake@redhat.com>
15772
15773         tests: fix compiler warnings
15774         * tests/test-getopt.h (test_getopt): Fix condition.
15775         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15776         * tests/test-pipe2.c (main): Likewise.
15777         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15778
15779         utimens: fix broken m4 test
15780         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15781
15782 2010-10-28  Bruno Haible  <bruno@clisp.org>
15783
15784         posix_spawn*, getdtablesize: Relax license.
15785         * modules/posix_spawn (License): Change to LGPLv2+.
15786         * modules/posix_spawnp (License): Likewise.
15787         * modules/posix_spawn-internal (License): Likewise.
15788         * modules/posix_spawnattr_init (License): Likewise.
15789         * modules/posix_spawnattr_getflags (License): Likewise.
15790         * modules/posix_spawnattr_setflags (License): Likewise.
15791         * modules/posix_spawnattr_getpgroup (License): Likewise.
15792         * modules/posix_spawnattr_setpgroup (License): Likewise.
15793         * modules/posix_spawnattr_getschedparam (License): Likewise.
15794         * modules/posix_spawnattr_setschedparam (License): Likewise.
15795         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15796         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15797         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15798         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15799         * modules/posix_spawnattr_getsigmask (License): Likewise.
15800         * modules/posix_spawnattr_setsigmask (License): Likewise.
15801         * modules/posix_spawnattr_destroy (License): Likewise.
15802         * modules/posix_spawn_file_actions_init (License): Likewise.
15803         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15804         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15805         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15806         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15807         * modules/getdtablesize (License): Likewise.
15808         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15809
15810 2010-10-26  Bruno Haible  <bruno@clisp.org>
15811
15812         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15813         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15814         Cygwin and mingw.
15815         Suggested by Eric Blake.
15816
15817 2010-10-26  Bruno Haible  <bruno@clisp.org>
15818
15819         stdio: Work around compilation error due to renameat() on Solaris 10.
15820         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15821         * lib/renameat.c: Don't include <unistd.h> here.
15822         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15823         Reported by Paul Eggert and Eric Blake.
15824
15825 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15826
15827         renameat: port to Solaris 10, which declares renameat in unistd.h
15828
15829         * lib/renameat.c: Include unistd.h before stdio.h, because
15830         Solaris 10 declares renameat in unistd.h.  Problem encountered
15831         when building GNU tar 1.24 on Solaris 10.
15832
15833 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15834
15835         fdopendir: fix C89 compilation
15836         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15837         compilers.
15838
15839 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15840
15841         inttostr: simplify by removing unnecessary redundancy
15842         * lib/anytostr.c: Don't include verify.h.
15843         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15844         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15845         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15846         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15847         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15848         Likewise.
15849         * modules/inttostr (Depends-on): Remove 'verify'.
15850
15851 2010-10-23  Bruno Haible  <bruno@clisp.org>
15852
15853         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15854         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15855         Reported by Eric Blake.
15856
15857 2010-10-23  Bruno Haible  <bruno@clisp.org>
15858
15859         Tests: Fix LOCALE_JA on MirBSD 10.
15860         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15861         to an UTF-8 locale.
15862         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15863         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15864         Reported by Eric Blake.
15865
15866 2010-10-21  Bruno Haible  <bruno@clisp.org>
15867
15868         nl_langinfo test: Avoid test failure on NetBSD 5.
15869         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15870         Reported by Eric Blake.
15871
15872 2010-10-21  Eric Blake  <eblake@redhat.com>
15873
15874         c-stack: work around libsigsegv 2.8 bug
15875         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15876         overflow on at least PowerPC64.
15877
15878 2010-10-17  Bruno Haible  <bruno@clisp.org>
15879
15880         userspec: Drop redundant file.
15881         * modules/userspec (Files): Remove lib/inttostr.h.
15882
15883 2010-10-17  Bruno Haible  <bruno@clisp.org>
15884
15885         nl_langinfo tests: Silence some warnings.
15886         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15887         Reported by Jim Meyering.
15888
15889 2010-10-17  Bruno Haible  <bruno@clisp.org>
15890
15891         Make use of GCC's attribute __alloc_size__.
15892         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15893         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15894         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15895         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15896         __alloc_size__.
15897         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15898         Suggested by Jim Meyering.
15899
15900 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15901
15902         bootstrap: anchor .gitignore entries.
15903         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15904         with...
15905         (insert_vc_ignore): ... this new function, which prepends `/' to
15906         all .gitignore entries before passing them to
15907         insert_sorted_if_absent.
15908
15909 2010-10-16  Bruno Haible  <bruno@clisp.org>
15910
15911         nextafter: Fix configure check.
15912         * modules/nextafter (configure.ac): Correct expected prototype.
15913
15914 2010-10-16  Bruno Haible  <bruno@clisp.org>
15915
15916         termios: Update documentation.
15917         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15918
15919 2010-10-16  Bruno Haible  <bruno@clisp.org>
15920
15921         tests: Make them compile with TinyCC.
15922         * tests/test-strstr.c (main): Remove parentheses around array
15923         initializer.
15924
15925 2010-10-15  Eric Blake  <eblake@redhat.com>
15926
15927         ignore-value: make header idempotent
15928         * lib/ignore-value.h: Add double-inclusion guards.
15929         Reported by Stefan Berger.
15930
15931 2010-10-15  Jim Meyering  <meyering@redhat.com>
15932
15933         GNUmakefile: handle "stable" target, not "major"
15934         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15935         lists in maint.mk and announce-gen.  Without this, "make stable"
15936         would fail to ensure that $(VERSION) is up to date.
15937
15938 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15939
15940         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15941         & co.
15942
15943 2010-10-14  Bruno Haible  <bruno@clisp.org>
15944
15945         vasnprintf: Don't set errno to 0.
15946         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15947         block that sets it to 0.
15948         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15949
15950 2010-10-14  Bruno Haible  <bruno@clisp.org>
15951
15952         socketlib: Fix.
15953         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15954         gl_PREREQ_SYS_H_WINSOCK2.
15955         Reported by Ian Beckwith <ianb@erislabs.net>.
15956
15957 2010-10-13  Jim Meyering  <meyering@redhat.com>
15958
15959         test-select-stdin.c: avoid warn_unused_result warnings
15960         * tests/test-select-stdin.c: Include "macros.h".
15961         ASSERT that read and fflush succeed.
15962
15963 2010-10-13  Jim Meyering  <meyering@redhat.com>
15964
15965         git-version-gen: do require git-VC'd files in cwd
15966         * build-aux/git-version-gen: Reject a git version string
15967         if there are no commits associated with the current directory.
15968         This avoids an unlikely false-positive (unrelated dir whose parent
15969         repository also contains a tag matching v*), as pointed out
15970         by Giuseppe Scrivano in
15971         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15972
15973 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         argv-iter: omit nonconforming declaration
15976         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15977         enum arg_iter_err declaration, which doesn't conform to C99.
15978         Solaris 10 cc warns about this.
15979
15980 2010-10-13  Eric Blake  <eblake@redhat.com>
15981
15982         termios: fix compilation on mingw
15983         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15984         (gl_TERMIOS_H): Adjust it on mingw.
15985         * modules/termios (Makefile.am): Substitute new key.
15986         * lib/termios.in.h (includes): Make include_next conditional.
15987         * doc/posix-headers/termios.texi (termios.h): Update
15988         documentation.
15989         Reported by Daniel P. Berrange.
15990
15991 2010-10-13  Jim Meyering  <meyering@redhat.com>
15992
15993         git-version-gen: don't require that .git/ be in the current dir
15994         * build-aux/git-version-gen: Adjust this script so that it works
15995         when run from any working directory beneath the top-level .git/-
15996         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15997         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15998
15999         test-select: avoid warn_unused_result warnings
16000         * tests/test-select.c: Include "macros.h".
16001         ASSERT that each call to read, write, and pipe succeeds.
16002         While not technically required, also check each "close".
16003         * modules/select-tests (Files): Add tests/macros.h.
16004
16005         test-symlinkat: remove declaration of unused local
16006         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16007
16008         test-inttostr: avoid shadowing warnings
16009         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16010         and use malloc rather than the stack for the same reason as
16011         mentioned in the comment justifying the other allocation.
16012
16013 2010-10-11  Bruno Haible  <bruno@clisp.org>
16014
16015         stdlib: Allow multiple gnulib generated replacements to coexist.
16016         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16017         Reported by Sam Steingold <sds@gnu.org>.
16018
16019 2010-10-11  Jim Meyering  <meyering@redhat.com>
16020
16021         fix a documentation typo
16022         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16023
16024 2010-10-11  Eric Blake  <eblake@redhat.com>
16025
16026         futimens: work around Solaris 11 bug
16027         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16028         * tests/test-futimens.h (test_futimens): Enhance, rather than
16029         weaken test.
16030         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16031
16032 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16033
16034         Indentation.
16035         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16036         higher-level operators more to the left.
16037
16038 2010-10-11  Jim Meyering  <meyering@redhat.com>
16039
16040         test-futimens: avoid unwarranted test failure on Solaris 5.11
16041         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16042         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16043         because it tries to dereference the NULL name argument.
16044
16045 2010-10-11  Bruno Haible  <bruno@clisp.org>
16046
16047         Indentation.
16048         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16049         indentation.
16050
16051 2010-10-11  Jim Meyering  <meyering@redhat.com>
16052
16053         spawn.in.h: make indentation consistent with parentheses
16054         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16055         Make indentation consistent with parentheses.
16056
16057 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16058
16059         Fix mismatched parens in previous commit
16060         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16061         parens.
16062
16063 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16064
16065         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16066
16067         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16068         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16069         * lib/malloca.c: Include "verify.h".
16070         (verify1): Remove, replacing with a verify call.
16071         * lib/relocwrapper.c (verify1): Likewise.
16072         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16073         Likewise.
16074         * modules/malloca (Depends-on): Add 'verify'.
16075         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16076         * modules/vasnprintf (Depends-on): Add 'verify'.
16077         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16078         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16079         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16080         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16081         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16082         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16083         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16084
16085         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16086
16087         Formerly the style was sometimes 2*X - 1, because the C standard
16088         was wrongly thought to disallow ?: in integral constant expressions.
16089         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16090         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16091         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16092         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16093         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16094         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16095         verify that time_t cannot be floating.
16096
16097 2010-10-08  Eric Blake  <eblake@redhat.com>
16098
16099         time: enforce recent POSIX ruling that time_t is integral
16100         * lib/time.in.h (__time_t_must_be_integral): Detect any
16101         problematic systems, allowing the rest of gnulib to assume POSIX.
16102
16103 2010-10-08  Jim Meyering  <meyering@redhat.com>
16104
16105         fdopendir: fix a bug on systems lacking openat and /proc support
16106         OpenBSD 4.7 is one such system.  The most noticeable effect was
16107         failure of any application making nontrivial use of fts: rm, du,
16108         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16109           ./rm: traversal failed: `a': Bad file descriptor
16110         Debugging that, you see that even though FD 6 was closed just
16111         prior to the opendir call in fd_clone_opendir, its resulting
16112         dir->dd_fd was 8, rather than the expected value of 6:
16113
16114         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16115         93                close (fd);
16116         (gdb) n
16117         94                dir = fd_clone_opendir (dupfd);
16118         (gdb) n
16119         95                saved_errno = errno;
16120         (gdb) p dir->dd_fd
16121         $11 = 8
16122
16123         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16124         The problem is that on OpenBSD, fd_clone_opendir has to resort
16125         to using the old-style save/restore CWD mechanism, due to its
16126         lack of openat/proc support, and *that* would steal the FD (6)
16127         that opendir was supposed to use.
16128
16129         The fix is to squirrel away the desired FD so that save_cwd uses a
16130         different one, and then free the dest FD right before calling opendir.
16131         That guarantees opendir will use the required file descriptor.
16132
16133         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16134
16135 2010-10-08  Bruno Haible  <bruno@clisp.org>
16136
16137         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16138         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16139
16140 2010-10-08  Bruno Haible  <bruno@clisp.org>
16141
16142         nanosleep: Make replacement POSIX compliant.
16143         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16144         is out of range.
16145         Reported by Jim Meyering.
16146
16147 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16148
16149         bootstrap: add hook for altering gnulib.mk, for Bison
16150         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16151         the Bison bootstrapping process can rewrite file names and variables
16152         in this file before later parts of 'bootstrap' use the file.
16153         Bison wants to include lib/gnulib.mk from the top-level makefile,
16154         so it needs the file names in this file to be relative to the top
16155         level, not relative to lib; plus it needs variable names to be
16156         rewritten.
16157         (slurp): Use the new function.
16158
16159         bootstrap: reformat for readability
16160         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16161
16162 2010-10-08  Eric Blake  <eblake@redhat.com>
16163
16164         docs: update cygwin progress
16165         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16166         1.7.7.
16167         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16168         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16169         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16170         * doc/posix-functions/carg.texi (carg): Likewise.
16171         * doc/posix-functions/cargf.texi (cargf): Likewise.
16172         * doc/posix-functions/casin.texi (casin): Likewise.
16173         * doc/posix-functions/casinf.texi (casinf): Likewise.
16174         * doc/posix-functions/casinh.texi (casinh): Likewise.
16175         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16176         * doc/posix-functions/catan.texi (catan): Likewise.
16177         * doc/posix-functions/catanf.texi (catanf): Likewise.
16178         * doc/posix-functions/catanh.texi (catanh): Likewise.
16179         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16180         * doc/posix-functions/ccos.texi (ccos): Likewise.
16181         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16182         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16183         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16184         * doc/posix-functions/cexp.texi (cexp): Likewise.
16185         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16186         * doc/posix-functions/cimag.texi (cimag): Likewise.
16187         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16188         * doc/posix-functions/clog.texi (clog): Likewise.
16189         * doc/posix-functions/clogf.texi (clogf): Likewise.
16190         * doc/posix-functions/conj.texi (conj): Likewise.
16191         * doc/posix-functions/conjf.texi (conjf): Likewise.
16192         * doc/posix-functions/cpow.texi (cpow): Likewise.
16193         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16194         * doc/posix-functions/cproj.texi (cproj): Likewise.
16195         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16196         * doc/posix-functions/creal.texi (creal): Likewise.
16197         * doc/posix-functions/crealf.texi (crealf): Likewise.
16198         * doc/posix-functions/csin.texi (csin): Likewise.
16199         * doc/posix-functions/csinf.texi (csinf): Likewise.
16200         * doc/posix-functions/csinh.texi (csinh): Likewise.
16201         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16202         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16203         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16204         * doc/posix-functions/ctan.texi (ctan): Likewise.
16205         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16206         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16207         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16208         * doc/posix-headers/complex.texi (complex.h): Likewise.
16209
16210 2010-10-07  Jim Meyering  <meyering@redhat.com>
16211
16212         parse-datetime: avoid compilation failure on OpenBSD 4.7
16213         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16214         This works around a compilation failure on OpenBSD 4.7:
16215         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16216
16217 2010-10-07  Eric Blake  <eblake@redhat.com>
16218
16219         docs: update cygwin progress
16220         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16221         1.7.6.
16222         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16223         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16224         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16225         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16226         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16227         Likewise.
16228         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16229         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16230         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16231         Likewise.
16232         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16233         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16234         Likewise.
16235         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16236         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16237         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16238         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16239         Likewise.
16240         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16241         Likewise.
16242         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16243
16244         docs: update parse-datetime history
16245         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16246         documentation of this function's history and alternatives.
16247
16248         cygwin: use more robust version check
16249         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16250         exclude an eventual cygwin 1.9.1.
16251         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16253         (gl_FUNC_STRCASESTR): Likewise.
16254         Reported by Bruno Haible.
16255
16256 2010-10-06  Bruno Haible  <bruno@clisp.org>
16257
16258         string, sys_select: Avoid #including large headers unless necessary.
16259         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16260         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16261         OSF/1, BeOS, Haiku.
16262         Reported by Jim Meyering.
16263
16264 2010-10-05  Eric Blake  <eblake@redhat.com>
16265
16266         memmem, strstr, strcasestr: fix bug with long periodic needle
16267         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16268         periodic needle having false positive.
16269         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16270         and cygwin 1.7.7.
16271         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16273         (gl_FUNC_STRCASESTR): Likewise.
16274         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16275         * tests/test-memmem.c (main): Expose the bug.
16276         * tests/test-strcasestr.c (main): Likewise.
16277         * tests/test-strstr.c (main): Likewise.
16278         * tests/test-c-strcasestr.c (main): Likewise.
16279         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16280         * doc/posix-functions/strstr.texi (strstr): Likewise.
16281         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16282         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16283
16284 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16285
16286         parse-datetime: do some more renaming
16287         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16288         parse_datetime, not get_date.  Mention the renaming.
16289         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16290         in comments.
16291         * m4/bison.m4: Likewise.
16292
16293 2010-10-05  Eric Blake  <eblake@redhat.com>
16294
16295         parse-datetime: better name than get_date
16296         * NEWS: Reword the deprecation notice.
16297         * modules/get_date: Rename to modules/parse-datetime.
16298         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16299         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16300         * lib/get_date.y: Rename to lib/parse-datetime.y.
16301         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16302         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16303         * doc/getdate.texi: Provide fallback wrapper.
16304         * lib/getdate.h: Move guts, and wrap...
16305         * lib/parse-datetime.h: ...new file.
16306         * lib/parse-datetime.y (get_date): Rename...
16307         (parse_datetime): ...to this.
16308         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16309         (gl_PARSE_DATETIME): ...to this.
16310         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16311         documentation.
16312         * modules/getdate (Files): Provide fallback docs and header.
16313         (Notice, Depends-on): Update references.
16314         * tests/test-parse-datetime.c: Likewise.
16315         * DEPENDENCIES: Likewise.
16316         * MODULES.html.sh (Date and time <time.h>): Likewise.
16317         * doc/parse-datetime.texi (Date input formats)
16318         (Authors of parse_datetime): Likewise.
16319         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16320         (Include): Likewise.
16321         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16322         * gnulib-tool: Likewise.
16323         * m4/bison.m4 (gl_BISON): Likewise.
16324         Suggested by Bruno Haible.
16325
16326 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16327
16328         more ports to Solaris tr, which needs [] around ranges
16329         * gnulib-tool: Solaris tr needs [] around ranges.
16330         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16331         * tests/test-pipe-filter-gi1.c (main): Likewise.
16332         * tests/test-pipe-filter-ii1.c (main): Likewise.
16333
16334 2010-10-05  Eric Blake  <eblake@redhat.com>
16335
16336         bootstrap: fix Solaris regression
16337         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16338         around ranges.
16339         Reported by Pádraig Brady.
16340
16341         bootstrap: work with pkg-config
16342         * build-aux/bootstrap (check_versions): Also transliterate - in
16343         prerequisite name.
16344         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16345         prerequisites that were already found, to avoid confusion.
16346         Reported by Justin Clift.
16347
16348         faccessat: remove unused wrappers
16349         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16350         presence of these wrappers dragged in -lgen on Solaris.
16351         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16352
16353 2010-10-05  Jim Meyering  <meyering@redhat.com>
16354
16355         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16356         * Makefile (sc_pragma_columns): New syntax-check rule.
16357
16358 2010-10-04  Bruno Haible  <bruno@clisp.org>
16359
16360         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16361         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16362         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16363         Reported by Bruce Korb and Eric Blake.
16364
16365 2010-10-04  Bruno Haible  <bruno@clisp.org>
16366
16367         threadlib: Make option --with-libpth-prefix work.
16368         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16369         use $LIBPTH, not just -lpth.
16370
16371 2010-10-04  Bruno Haible  <bruno@clisp.org>
16372
16373         Avoid line length limitation from HP NonStop system header files.
16374         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16375         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16376         * lib/ctype.in.h: Likewise.
16377         * lib/dirent.in.h: Likewise.
16378         * lib/errno.in.h: Likewise.
16379         * lib/fcntl.in.h: Likewise.
16380         * lib/float.in.h: Likewise.
16381         * lib/getopt.in.h: Likewise.
16382         * lib/iconv.in.h: Likewise.
16383         * lib/inttypes.in.h: Likewise.
16384         * lib/langinfo.in.h: Likewise.
16385         * lib/locale.in.h: Likewise.
16386         * lib/math.in.h: Likewise.
16387         * lib/netdb.in.h: Likewise.
16388         * lib/netinet_in.in.h: Likewise.
16389         * lib/poll.in.h: Likewise.
16390         * lib/pthread.in.h: Likewise.
16391         * lib/pty.in.h: Likewise.
16392         * lib/sched.in.h: Likewise.
16393         * lib/se-selinux.in.h: Likewise.
16394         * lib/search.in.h: Likewise.
16395         * lib/signal.in.h: Likewise.
16396         * lib/spawn.in.h: Likewise.
16397         * lib/stdarg.in.h: Likewise.
16398         * lib/stddef.in.h: Likewise.
16399         * lib/stdint.in.h: Likewise.
16400         * lib/stdio.in.h: Likewise.
16401         * lib/stdlib.in.h: Likewise.
16402         * lib/string.in.h: Likewise.
16403         * lib/strings.in.h: Likewise.
16404         * lib/sys_file.in.h: Likewise.
16405         * lib/sys_ioctl.in.h: Likewise.
16406         * lib/sys_select.in.h: Likewise.
16407         * lib/sys_socket.in.h: Likewise.
16408         * lib/sys_stat.in.h: Likewise.
16409         * lib/sys_time.in.h: Likewise.
16410         * lib/sys_times.in.h: Likewise.
16411         * lib/sys_utsname.in.h: Likewise.
16412         * lib/sys_wait.in.h: Likewise.
16413         * lib/sysexits.in.h: Likewise.
16414         * lib/termios.in.h: Likewise.
16415         * lib/time.in.h: Likewise.
16416         * lib/unistd.in.h: Likewise.
16417         * lib/wchar.in.h: Likewise.
16418         * lib/wctype.in.h: Likewise.
16419         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16420         * modules/ctype (Makefile.am): Likewise.
16421         * modules/dirent (Makefile.am): Likewise.
16422         * modules/errno (Makefile.am): Likewise.
16423         * modules/fcntl-h (Makefile.am): Likewise.
16424         * modules/float (Makefile.am): Likewise.
16425         * modules/getopt-posix (Makefile.am): Likewise.
16426         * modules/iconv-h (Makefile.am): Likewise.
16427         * modules/inttypes (Makefile.am): Likewise.
16428         * modules/langinfo (Makefile.am): Likewise.
16429         * modules/locale (Makefile.am): Likewise.
16430         * modules/math (Makefile.am): Likewise.
16431         * modules/netdb (Makefile.am): Likewise.
16432         * modules/netinet_in (Makefile.am): Likewise.
16433         * modules/poll-h (Makefile.am): Likewise.
16434         * modules/pthread (Makefile.am): Likewise.
16435         * modules/pty (Makefile.am): Likewise.
16436         * modules/sched (Makefile.am): Likewise.
16437         * modules/search (Makefile.am): Likewise.
16438         * modules/selinux-h (Makefile.am): Likewise.
16439         * modules/signal (Makefile.am): Likewise.
16440         * modules/spawn (Makefile.am): Likewise.
16441         * modules/stdarg (Makefile.am): Likewise.
16442         * modules/stddef (Makefile.am): Likewise.
16443         * modules/stdint (Makefile.am): Likewise.
16444         * modules/stdio (Makefile.am): Likewise.
16445         * modules/stdlib (Makefile.am): Likewise.
16446         * modules/string (Makefile.am): Likewise.
16447         * modules/strings (Makefile.am): Likewise.
16448         * modules/sys_file (Makefile.am): Likewise.
16449         * modules/sys_ioctl (Makefile.am): Likewise.
16450         * modules/sys_select (Makefile.am): Likewise.
16451         * modules/sys_socket (Makefile.am): Likewise.
16452         * modules/sys_stat (Makefile.am): Likewise.
16453         * modules/sys_time (Makefile.am): Likewise.
16454         * modules/sys_times (Makefile.am): Likewise.
16455         * modules/sys_utsname (Makefile.am): Likewise.
16456         * modules/sys_wait (Makefile.am): Likewise.
16457         * modules/sysexits (Makefile.am): Likewise.
16458         * modules/termios (Makefile.am): Likewise.
16459         * modules/time (Makefile.am): Likewise.
16460         * modules/unistd (Makefile.am): Likewise.
16461         * modules/wchar (Makefile.am): Likewise.
16462         * modules/wctype (Makefile.am): Likewise.
16463
16464 2010-10-04  Bruno Haible  <bruno@clisp.org>
16465
16466         read-file tests: Avoid a test failure on NonStop Kernel.
16467         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16468         a regular file.
16469         Reported by Joachim Schmitz <schmitz@hp.com>.
16470
16471 2010-10-03  Bruno Haible  <bruno@clisp.org>
16472
16473         gnulib-tool: Fixes for --create-testdir with --libtool.
16474         * gnulib-tool (func_get_automake_snippet): Don't augment
16475         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16476         an executable.
16477         (func_create_testdir): Handle module 'alloca' like func_import.
16478         Reported by Bruce Korb <bruce.korb@gmail.com>.
16479
16480 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16481
16482         Avoid some lines longer than 80 characters.
16483         * lib/stdint.in.h: Break long comment lines.
16484         * lib/math.in.h: Likewise.
16485         (_GL_NUM_UINT_WORDS): New macro, for readability.
16486         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16487         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16488         * lib/stdlib.in.h: Likewise.
16489         * lib/spawn.in.h: Likewise.
16490         * lib/sys_socket.in.h: Update an URL.
16491         * lib/sys_stat.in.h: Break long line.
16492
16493 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16494
16495         Improve pmccabe2html.
16496         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16497         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16498         when the sources change. Remove the line in the HTML about "Used
16499         ranges" (which implied that there might be other unused ranges),
16500         rename "Resume" to "Summary" (easier to understand for more users).
16501         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16502         styles, and some unnecessary blank lines.
16503
16504 2010-10-03  Bruno Haible  <bruno@clisp.org>
16505             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16506
16507         acl: Add support for ACLs on NonStop Kernel.
16508         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16509         Check whether the function aclsort() exists.
16510         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16511         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16512         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16513         (acl_nontrivial [HAVE_ACLSORT]: New function.
16514         (file_has_acl): Implement for NonStop Kernel.
16515         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16516         (qset_acl): Implement for NonStop Kernel.
16517         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16518         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16519         (main): Implement for NonStop Kernel.
16520         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16521         Kernel. Handle this flavor.
16522         * tests/test-set-mode-acl.sh: Likewise.
16523         * tests/test-copy-acl.sh: Likewise.
16524         * tests/test-copy-file.sh: Likewise.
16525
16526 2010-10-03  Bruno Haible  <bruno@clisp.org>
16527
16528         Info about ACLs on NonStop Kernel.
16529         * doc/acl-resources.txt: Add info about NonStop Kernel.
16530         References by Joachim Schmitz <schmitz@hp.com>.
16531
16532 2010-10-02  Bruno Haible  <bruno@clisp.org>
16533
16534         Define missing EDQUOT on NonStop Kernel.
16535         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16536         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16537         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16538         missing.
16539         * doc/posix-headers/errno.texi: Mention the NSK bug.
16540         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16541         Reported by Joachim Schmitz <schmitz@hp.com>.
16542
16543 2010-10-02  Bruno Haible  <bruno@clisp.org>
16544
16545         Update doc for POSIX:2008.
16546         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16547         Update URL of POSIX specification.
16548
16549 2010-10-02  Bruno Haible  <bruno@clisp.org>
16550
16551         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16552         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16553         from gnulib, not from Automake.
16554
16555 2010-10-02  Bruno Haible  <bruno@clisp.org>
16556
16557         New module 'system-posix'.
16558         * modules/system-posix: New file.
16559         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16560         module is present.
16561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16562         GNULIB_SYSTEM_POSIX.
16563         * modules/stdlib (Depends-on): Remove sys_wait.
16564         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16565         * doc/posix-functions/system.texi: Mention the new module.
16566         * doc/posix-headers/stdlib.texi: Likewise.
16567         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16568         define test_sys_wait_macros to a no-op.
16569         Reported by Sam Steingold <sds@gnu.org>.
16570
16571 2010-09-30  Bruno Haible  <bruno@clisp.org>
16572
16573         More renaming from 'getdate' to 'get_date'.
16574         * doc/get_date.texi: Renamed from doc/getdate.texi.
16575         * modules/get_date (Files): Update.
16576         * MODULES.html.sh (Date and time <time.h>): Update.
16577         * DEPENDENCIES: Update.
16578         * gnulib-tool: Update comment.
16579         * m4/bison.m4 (gl_BISON): Likewise.
16580         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16581
16582 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16583
16584         bootstrap: support ACLOCAL_FLAGS during aclocal
16585         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16586         can add additional -I dir for third-party .m4 files.
16587
16588 2010-09-30  Eric Blake  <eblake@redhat.com>
16589
16590         bootstrap: use glibtoolize on MacOS
16591         * build-aux/bootstrap (check_versions): Convert libtool into
16592         libtoolize.
16593         (tool search): Move libtool check earlier, and look for
16594         glibtoolize for MacOS.
16595         (gnulib_tool_options): Auto-add --libtool when appropriate.
16596         Reported by Justin Clift.
16597
16598         poll: fix typo that broke test on MacOS
16599         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16600         Reported by Justin Clift.
16601
16602         getdate: rename to get_date
16603         Note: getdate.h is not renamed, to minimize client impact.
16604         * modules/getdate: Mark obsolete.  Move old contents...
16605         * modules/get_date: ...to new module name.
16606         * modules/getdate-tests: Move...
16607         * modules/get_date-tests: ...here.
16608         * m4/getdate.m4: Move...
16609         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16610         * lib/getdate.y: Move...
16611         * lib/get_date.y: ...here.
16612         * tests/test-getdate.c: Move...
16613         * tests/test-get_date.c: ...here.
16614         * doc/posix-functions/getdate.texi (getdate): Update name.
16615         * NEWS: Mention the change.
16616
16617 2010-09-29  Bruno Haible  <bruno@clisp.org>
16618
16619         Separate the module 'waitpid' from the module 'sys_wait'.
16620         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16621         present.
16622         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16623         gl_MODULE_INDICATOR_FOR_TESTS.
16624         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16625         * modules/sys_wait (Depends-on): Remove waitpid.
16626         (Makefile.am): Substitute GNULIB_WAITPID.
16627         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16628         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16629         signature only if the 'waitpid' module is present.
16630         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16631         * NEWS: Mention the change.
16632         * modules/grantpt (Depends-on): Add waitpid.
16633         * modules/wait-process (Depends-on): Likewise.
16634
16635 2010-09-29  Bruno Haible  <bruno@clisp.org>
16636
16637         More tests for module 'sys_wait'.
16638         * modules/sys_wait-c++-tests: New file.
16639         * tests/test-sys_wait-c++.cc: New file.
16640         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16641         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16642
16643 2010-09-29  Bruno Haible  <bruno@clisp.org>
16644
16645         New module 'waitpid'.
16646         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16647         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16648         Don't include <process.h>.
16649         (waitpid): Declare only, using modern idiom.
16650         * m4/waitpid.m4: New file.
16651         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16652         * modules/waitpid: New file.
16653         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16654         (Makefile.am): Update.
16655         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16656
16657 2010-09-28  Bruno Haible  <bruno@clisp.org>
16658
16659         poll: Assume ANSI C.
16660         * lib/poll.c (poll): Use an ANSI C declaration.
16661
16662 2010-09-28  Bruno Haible  <bruno@clisp.org>
16663
16664         poll-h: Create poll.h on all platforms.
16665         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16666         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16667         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16668         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16669         (gl_REPLACE_POLL_H): Don't set POLL_H.
16670         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16671         * modules/poll-h (Depends-on): Add include_next.
16672         (Makefile.am): Create poll.h unconditionally. Substitute also
16673         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16674
16675 2010-09-28  Bruno Haible  <bruno@clisp.org>
16676
16677         Tests for module 'poll-h'.
16678         * modules/poll-h-c++-tests: New file.
16679         * tests/test-poll-h-c++.cc: New file.
16680
16681         Tests for module 'poll-h'.
16682         * modules/poll-h-tests: New file.
16683         * tests/test-poll-h.c: New file.
16684
16685 2010-09-28  Bruno Haible  <bruno@clisp.org>
16686
16687         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16688         * modules/poll-h (Depends-on): Add 'extensions'.
16689
16690 2010-09-28  Bruno Haible  <bruno@clisp.org>
16691
16692         New module 'poll-h'.
16693         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16694         (poll): Use modern idiom.
16695         * modules/poll-h: New file.
16696         * modules/poll (Files): Remove lib/poll.in.h.
16697         (Depends-on): Add poll-h.
16698         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16699         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16700         * m4/poll_h.m4: New file.
16701         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16702         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16703         and invoke gl_REPLACE_POLL_H.
16704         * lib/poll.c: Use common idiom.
16705         * tests/test-poll.c: Likewise.
16706         * doc/posix-headers/poll.texi: Mention the poll-h module.
16707         Suggested by Eric Blake.
16708
16709 2010-09-26  Bruno Haible  <bruno@clisp.org>
16710
16711         sys_wait: Implement WSTOPSIG.
16712         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16713         Reported by Simon Josefsson.
16714
16715 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16716
16717         stdlib, sys_wait: Avoid compilation error on mingw.
16718         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16719
16720 2010-09-26  Bruno Haible  <bruno@clisp.org>
16721
16722         stdlib tests: Avoid code duplication.
16723         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16724         * modules/sys_wait-tests (Files): Likewise.
16725         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16726         * tests/test-stdlib.c: Include test-sys_wait.h.
16727         (main): Invoke test_sys_wait_macros.
16728         * tests/test-sys_wait.c: Include test-sys_wait.h.
16729         (main): Invoke test_sys_wait_macros.
16730
16731 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16732
16733         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16734         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16735         sure Windows sockets are working before calling getaddrinfo.
16736         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16737         * doc/gnulib.texi (Windows sockets): Fix typo.
16738
16739 2010-09-25  Bruno Haible  <bruno@clisp.org>
16740
16741         Tests for module 'regex-quote'.
16742         * modules/regex-quote-tests: New file.
16743         * tests/test-regex-quote.c: New file.
16744
16745         New module 'regex-quote'.
16746         * lib/regex-quote.h: New file.
16747         * lib/regex-quote.c: New file.
16748         * modules/regex-quote: New file.
16749         Suggested by Reuben Thomas <rrt@sc3d.org>.
16750
16751 2010-09-24  Bruno Haible  <bruno@clisp.org>
16752
16753         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16754         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16755
16756 2010-09-23  Bruno Haible  <bruno@clisp.org>
16757
16758         setenv: Relax license.
16759         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16760         Blake.
16761         Requested by Eric Blake.
16762
16763 2010-09-22  Bruno Haible  <bruno@clisp.org>
16764
16765         termios: Relax license.
16766         * modules/termios (License): Change to LGPLv2+.
16767         Requested by Eric Blake.
16768
16769 2010-09-22  Bruno Haible  <bruno@clisp.org>
16770
16771         threadlib: Allow the package to change the default to 'no'.
16772         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16773         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16774         Reported by Paul Eggert.
16775
16776 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16777             Bruno Haible  <bruno@clisp.org>
16778
16779         Fix endless loop in mbmemcasecoll.
16780         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16781         byte.
16782         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16783
16784 2010-09-22  Bruno Haible  <bruno@clisp.org>
16785
16786         Tests for module 'memcoll'.
16787         * modules/memcoll-tests: New file.
16788         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16789
16790         memcoll, xmemcoll: Clarify size vs. length.
16791         * modules/memcoll.c (memcoll0): Clarify specification.
16792         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16793         passed to collate_error.
16794
16795 2010-09-22  Bruno Haible  <bruno@clisp.org>
16796
16797         Tests for module 'memcasecmp'.
16798         * modules/memcasecmp-tests: New file.
16799         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16800
16801 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16802
16803         * lib/pthread.in.h: Add split double-inclusion guard, and include
16804         system <pthread.h> if there is one.  Use @@-style as in other
16805         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16806         pthread.h doesn't.
16807         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16808         (pthread_mutexattr_settype, pthread_mutex_trylock):
16809         New static inline functions, if there's no system <pthread.h>.
16810         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16811         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16812         Approximate with mutexes if the system lacks spinlocks, as in
16813         MacOS.
16814         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16815         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16816         @@-style.  Check for spinlocks separately.
16817         (gl_PTHREAD_DEFAULTS): New macro.
16818         * modules/pthread: Redo to use a more typical style for in.h files.
16819
16820 2010-09-21  Eric Blake  <eblake@redhat.com>
16821
16822         net_if: enhance tests
16823         * tests/test-net_if.c (main): Move signature checks earlier.
16824         Print failures to stderr.
16825         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16826         Document the bug that we do not yet fix.
16827
16828 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16829
16830         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16831         about gnulib, not GSS.
16832
16833 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16834
16835         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16836         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16837         for Emacs.
16838         * build-aux/pmccabe2html: Make Makefile.am example code more
16839         cut-and-paste friendly.
16840
16841 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16842
16843         * tests/test-net_if.c: New file.
16844         * modules/net_if-tests: New file.
16845
16846 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16847
16848         pthread: add pthread_spin_destroy
16849         * lib/pthread.in.h (pthread_spin_destroy): New function.
16850
16851 2010-09-19  Bruno Haible  <bruno@clisp.org>
16852
16853         gnulib-tool: Fix --help output.
16854         * gnulib-tool (func_usage): Fix help message.
16855         Reported by Reuben Thomas <rrt@sc3d.org>.
16856
16857 2010-09-18  Jim Meyering  <meyering@redhat.com>
16858
16859         maint.mk: avoid unexpanded \n in two diagnostics
16860         * top/maint.mk (sc_prohibit_always_true_header_tests):
16861         Don't use a literal \n in a halt=... assignment.  It would not be
16862         expanded, and the two \n bytes would appear in the diagnostic output
16863         rather than the desired newline.  Use halt=$$(printf ... instead.
16864         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16865
16866 2010-09-18  Bruno Haible  <bruno@clisp.org>
16867
16868         netinet_in: Doc tweak.
16869         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16870         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16871
16872 2010-09-18  Jim Meyering  <meyering@redhat.com>
16873
16874         init.sh: correct an outdated comment
16875         * tests/init.sh (create_exe_shims_):  s/function/alias/
16876
16877         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16878         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16879         a file named "*.exe" is removed between the glob expansion and the
16880         processing of that oddly named file.
16881
16882 2010-09-17  Eric Blake  <eblake@redhat.com>
16883
16884         mirbsd: add some more support
16885         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16886         in BSD family.
16887         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16888         devices as OpenBSD.
16889         * m4/host-os.m4 (mirbsd): Add MirBSD.
16890
16891         tests: fix unportable assumption on sys/wait.h
16892         * tests/test-sys_wait.c (main): Relax test.
16893         * tests/test-stdlib.c (main): Likewise.
16894
16895         init.sh: accomodate directory with no .exes
16896         * tests/init.sh: Accomodate directory containing only scripts.
16897
16898         tests: avoid compiler warning
16899         * tests/test-stdlib.c (main): Use the variable.
16900
16901         fdutimens, fdutimensat: update signature, again
16902         * lib/utimens.h (gl_futimens): Delete, and move signature...
16903         (fdutimens): ...here.
16904         (fdutimensat): Rearrange signature.
16905         (lutimensat): Rename variable for clarity.
16906         * lib/fdutimensat.c (fdutimensat): Update signature.
16907         * lib/utimens.c (fdutimens): Likewise.
16908         (gl_futimens): Delete.
16909         (utimens, lutimens): Update callers.
16910         * lib/futimens.c (futimens): Likewise.
16911         * tests/test-fdutimensat.c: Likewise.
16912         * tests/test-utimens.c: Likewise.
16913         * tests/test-futimens.h: Update comment.
16914         * NEWS: Mention this.
16915         Suggested by Paul Eggert.
16916
16917 2010-09-17  Bruno Haible  <bruno@clisp.org>
16918
16919         Take over the maintenance of some older macros from Autoconf.
16920         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16921         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16922         GNU Autoconf.
16923         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16924         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16925
16926 2010-09-17  Eric Blake  <eblake@redhat.com>
16927
16928         fdutimensat: drop atflag validation
16929         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16930         with valid fd, to close a race scenario where futimens is
16931         unsupported and FILE was replaced by a symlink.
16932         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16933         accordingly.
16934         Suggested by Paul Eggert.
16935
16936 2010-09-16  Bruno Haible  <bruno@clisp.org>
16937
16938         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16939         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16940
16941 2010-09-16  Bruno Haible  <bruno@clisp.org>
16942
16943         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16944         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16945         login_tty exists.
16946         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16947
16948 2010-09-16  Bruno Haible  <bruno@clisp.org>
16949
16950         login_tty: Make the replacement code work on BSD systems.
16951         * lib/login_tty.c: Include <sys/ioctl.h>.
16952         (login_tty): Use ioctl TIOCSCTTY when available.
16953         * modules/login_tty (Depends-on): Add sys_ioctl.
16954         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16955
16956 2010-09-16  Bruno Haible  <bruno@clisp.org>
16957
16958         login_tty: Stricter unit test.
16959         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16960         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16961         and tcgetsid() after login_tty.
16962         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16963
16964 2010-09-16  Bruno Haible  <bruno@clisp.org>
16965
16966         New module 'tcgetsid'.
16967         * lib/tcgetsid.c: New file.
16968         * m4/tcgetsid.m4: New file.
16969         * modules/tcgetsid: New file.
16970         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16971         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16972         GNULIB_TCGETSID, HAVE_TCGETSID.
16973         * lib/termios.in.h: Include <sys/types.h>.
16974         (tcgetsid): New declaration.
16975         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16976         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16977         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16978         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16979
16980 2010-09-16  Bruno Haible  <bruno@clisp.org>
16981
16982         Tests for module 'termios'.
16983         * modules/termios-c++-tests: New file.
16984         * modules/termios-tests: New file.
16985         * tests/test-termios-c++.cc: New file.
16986         * tests/test-termios.c: New file.
16987
16988         New module 'termios'.
16989         * modules/termios: New file.
16990         * lib/termios.in.h: New file.
16991         * m4/termios_h.m4: New file.
16992         * doc/posix-headers/termios.texi: Mention the new module.
16993
16994 2010-09-16  Eric Blake  <eblake@redhat.com>
16995
16996         fdutimensat: add an atflag parameter
16997         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16998         * lib/utimens.h (fdutimensat): Update prototype.
16999         * tests/test-fdutimensat.c: Adjust test to match.
17000         * NEWS: Document the change.
17001         Suggested by Paul Eggert.
17002
17003 2010-09-16  Bruno Haible  <bruno@clisp.org>
17004
17005         Fix typos in comments.
17006         * lib/striconveh.h: Fix typo in comment.
17007         * lib/login_tty.c (login_tty): Likewise.
17008
17009 2010-09-15  Bruno Haible  <bruno@clisp.org>
17010
17011         stdlib: clarify MirBSD WEXITSTATUS bug
17012         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17013         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17014
17015 2010-09-15  Eric Blake  <eblake@redhat.com>
17016
17017         stdlib: work around MirBSD WEXITSTATUS bug
17018         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17019         * modules/stdlib (Depends-on): Add sys_wait.
17020         * tests/test-sys_wait.c (main): Enhance test.
17021         * tests/test-stdlib.c (main): Likewise.
17022         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17023
17024         docs: mention MacOS issue with WEXITSTATUS(constant)
17025         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17026         issue.
17027         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17028
17029         strnlen: add tests
17030         * modules/strnlen-tests: New file.
17031         * tests/test-strnlen.c: Likewise.
17032
17033 2010-09-14  Bruno Haible  <bruno@clisp.org>
17034
17035         unistr/base: Avoid link errors when module 'libunistring' is also used.
17036         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17037         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17038         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17039         Declare also when HAVE_LIBUNISTRING is set.
17040         Reported by Pádraig Brady <P@draigbrady.com>.
17041
17042 2010-09-14  Eric Blake  <eblake@redhat.com>
17043
17044         test-rawmemchr: make more robust
17045         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17046         (Depends-on, configure.ac): Add needed prerequisites to use it.
17047         * modules/memchr-tests (Files, Depends-on, configure.ac):
17048         Likewise, to avoid implicit reliance on memchr module prereqs.
17049         * tests/test-memchr.c (main): Ensure proper masking.
17050         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17051         reads.
17052
17053         memchr: detect glibc Alpha bug
17054         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17055         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17056         Alpha.
17057         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17058         * tests/test-memchr.c (main): Enhance test.
17059         Reported by Nelson H. F. Beebe.
17060
17061 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17062
17063         fts, getcwd, glob: audit for dirfd returning -1
17064         * lib/fts.c (opendir): Remove #define; no longer used.
17065         (opendirat): New arg PDIR_FD.  All callers changed.
17066         (fts_build, _opendir2): Use new opendirat to avoid the need for
17067         dirfd, or for checking whether dirfd returns a negative value.
17068         Don't use opendir; always use openat followed by fdopendir.
17069         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17070         it.
17071         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17072         returns -1 here.
17073         * modules/fts (Depends-on): Remove dirfd.
17074         * modules/getcwd (Depends-on): Likewise.
17075
17076 2010-09-13  Eric Blake  <eblake@redhat.com>
17077
17078         float: fix broken MirBSD header
17079         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17080         * doc/posix-headers/float.texi (float.h): Document it.
17081
17082 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17083
17084         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17085         * lib/fts.c (opendirat): New arg extra_flags.
17086         (__opendir2): Use it to avoid following symlinks when opening
17087         a directory, if symlinks are not supposed to be followed.  See
17088         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17089
17090         fdopendir: preserve argument fd before returning
17091         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17092         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17093         (fdopendir): Use them, arranging for FD to be open to the same
17094         directory that it was when it started.  (It might be temporarily
17095         closed while fdopendir is running, so this not thread- or
17096         signal-safe.)  Be careful to do the right thing even when file
17097         descriptors are scarce and dup fails with errno == EMFILE.  See
17098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17099
17100 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17101
17102         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17103         * NEWS: Document change.
17104         * m4/regex.m4: Disable test for regoff_t size.
17105
17106 2010-09-13  Jim Meyering  <meyering@redhat.com>
17107
17108         fts: don't operate on an invalid file descriptor after failed dup
17109         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17110         negative file descriptor.
17111
17112 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17113
17114         savedir: add streamsavedir, deprecate fdsavedir
17115         * NEWS: Mention deprecation of fdsavedir.
17116         * lib/savedir.c (streamsavedir): New extern function, whose name
17117         ends in "savedir" to be consistent with the others.  This differs
17118         from savedirstream in that it doesn't close its argument.  The
17119         next version of GNU tar will use this instead of fdsavedir, to
17120         avoid some race conditions and conserve file descriptors.
17121         (savedirstream): Reimplement as a wrapper around streamsavedir.
17122         (fdsavedir): Add a comment deprecating this function.  As far as
17123         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17124         * lib/savedir.h (streamsavedir): New decl.
17125         (fdsavedir): Add a comment deprecating this.
17126
17127 2010-09-10  Bruno Haible  <bruno@clisp.org>
17128
17129         langinfo: Fix last commit.
17130         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17131         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17133
17134 2010-09-10  Bruno Haible  <bruno@clisp.org>
17135
17136         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17137         * lib/progreloc.c (O_EXEC): Define fallback.
17138
17139 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17140
17141         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17142         * NEWS: Document recent changes to fcntl-h.
17143         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17144         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17145         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17146         Similarly for O_SEARCH; this last was already true, but not documented.
17147         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17148         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17149         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17150         Likewise.
17151         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17152         is zero, not whether it is defined.
17153         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17154         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17155         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17156
17157 2010-09-10  Bruno Haible  <bruno@clisp.org>
17158
17159         langinfo, nl_langinfo: Fix for IRIX 5.3.
17160         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17161         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17162         HAVE_LANGINFO_YESEXPR.
17163         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17164         HAVE_LANGINFO_YESEXPR.
17165         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17166         HAVE_LANGINFO_T_FMT_AMPM is 0.
17167         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17168         HAVE_LANGINFO_YESEXPR is 0.
17169         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17170         NOEXPR.
17171         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17172         * doc/posix-functions/nl_langinfo.texi: Likewise.
17173         Reported by Eric Blake.
17174
17175 2010-09-10  Bruno Haible  <bruno@clisp.org>
17176
17177         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17178         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17179         on FreeBSD 8.0 and OpenBSD 4.6.
17180         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17181         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17182         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17183         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17184         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17185         ac_includes_default.
17186         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17187
17188 2010-09-09  Eric Blake  <eblake@redhat.com>
17189
17190         strsignal: work around NetBSD bug
17191         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17192         * lib/string.in.h (includes): Likewise.
17193         * doc/posix-functions/strsignal.texi (strsignal): Document the
17194         bug.
17195         Reported by Nelson H. F. Beebe.
17196
17197         gnulib-tool: work with NetBSD /bin/sh
17198         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17199         (func_get_description, func_get_comment, func_get_status)
17200         (func_get_notice, func_get_applicability, func_get_filelist)
17201         (func_get_dependencies, func_get_autoconf_early_snippet)
17202         (func_get_autoconf_snippet, func_get_automake_snippet)
17203         (func_get_include_directive, func_get_link_directive)
17204         (func_get_license, func_get_maintainer, func_import): Avoid
17205         shell syntax errors from parsing syntax extensions.
17206
17207 2010-09-09  Bruno Haible  <bruno@clisp.org>
17208
17209         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17210         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17211         a reliable way to determine whether the 'alias' command works.
17212
17213 2010-09-08  Jim Meyering  <meyering@redhat.com>
17214
17215         init.sh: penalize a set-x-impaired shell; don't disqualify it
17216         * tests/init.sh: Too many shells corrupt application stderr when
17217         you set -x, so we can't afford to disqualify them, since at least
17218         on Irix-6.5, that would disqualify all bourne shells.
17219         Instead, use a two-pass approach.
17220         On the first pass, try to find a shell that meets the stricter
17221         condition that set -x does not corrupt stderr.
17222         If no shell meets the stricter condition, retest each candidate
17223         shell, but without that extra condition.  Finally, when
17224         VERBOSE=yes is requested and set -x might cause trouble, simply
17225         issue a warning and refrain from enabling debug output.
17226
17227 2010-09-08  Eric Blake  <eblake@redhat.com>
17228
17229         unsetenv: fix OpenBSD bug
17230         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17231         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17232         documentation.
17233         Reported by Jim Meyering.
17234
17235         strtod: work around IRIX 6.5 bug
17236         * lib/strtod.c (strtod): Reparse number on shorter string if
17237         exponent parse was invalid.
17238         * tests/test-strtod.c (main): Add check for "0x1p 2".
17239         Reported by Tom G. Christensen.
17240
17241         getopt: optimize previous patch
17242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17243         empty variable.  Speed up awk script.
17244         Reported by Paolo Bonzini.
17245
17246 2010-09-08  Jim Meyering  <meyering@redhat.com>
17247
17248         test.sh: disqualify shells for which set -x corrupts stderr
17249         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17250         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17251         appear in stderr output.  For example, this command:
17252             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17253         prints "P=1" on those two systems:
17254
17255 2010-09-08  Bruno Haible  <bruno@clisp.org>
17256
17257         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17258         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17259         commands, because some shells ignore redirections when there is an
17260         error in the command lookup.
17261         Reported by Eric Blake.
17262
17263 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17264
17265         * lib/regex.h: Fix a mention of `regex_compile' (should be
17266         `re_compile_pattern').
17267         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17268         (re_set_registers): Correct name of parameter in comment.
17269
17270         * doc/regex.texi: Add documentation for missing syntax flags.
17271         Remove commented-out documentation of defunct syntax option
17272         RE_NO_EMPTY_ALTS.
17273         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17274         Add documentation of re_set_registers.
17275         Document trick to re-use a pattern buffer by setting fastmap manually.
17276         Update documentation of struct re_pattern_buffer per public members.
17277         Uncomment documentation of equivalence class operators and
17278         collating symbol operators, since they are now implemented,
17279         Explain leftmost-longest matching in relation to alternatives.
17280         Tidy documentation of substring matching.
17281         Remove POSIX documentation, which is done better in
17282         glibc, and refer the reader there. Keep BSD API documentation, as
17283         that is not readily available elsewhere.
17284
17285 2010-09-07  Eric Blake  <eblake@redhat.com>
17286
17287         getopt: handle POSIXLY_CORRECT set but not exported
17288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17289         export state of POSIXLY_CORRECT, due to bash set -o posix.
17290         Reported by Dustin J. Mitchell.
17291
17292 2010-09-05  Bruno Haible  <bruno@clisp.org>
17293
17294         gnulib-tool: Highlight the changed options.
17295         * gnulib-tool (func_usage): Display the --import, --add-import,
17296         --remove-import explanations in bold font.
17297
17298 2010-09-06  Karl Berry  <karl@gnu.org>
17299
17300         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17301
17302 2010-09-05  Bruno Haible  <bruno@clisp.org>
17303
17304         uniwidth/width: Update comment.
17305         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17306         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17307
17308 2010-09-05  Bruno Haible  <bruno@clisp.org>
17309
17310         isinf, isnan: Relax license.
17311         * modules/isinf (License): Change from GPL to LGPL, with consent from
17312         Ben Pfaff.
17313         * modules/isnan (License): Likewise.
17314         Requested by Ludovic Courtès.
17315
17316 2010-09-04  Bruno Haible  <bruno@clisp.org>
17317
17318         gnulib-tool: Help migration from --import to --add-import or --update.
17319         * gnulib-tool: Emit a verbose error message when --import is used
17320         without any module name.
17321
17322 2010-09-04  Bruno Haible  <bruno@clisp.org>
17323
17324         Update doc about gnulib-tool.
17325         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17326         'gnulib-tool --update' in more detail.
17327         Reported by Eric Blake.
17328
17329 2010-09-04  Bruno Haible  <bruno@clisp.org>
17330
17331         gnulib-tool: Change --import. New options --add/remove-import.
17332         * gnulib-tool: New options --add-import, --remove-import.
17333         (func_usage): Document them.
17334         (have_associative): Define always.
17335         (func_import): In import mode, don't merge the specified settings with
17336         the cached settings. Implement remove-import mode.
17337         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17338         Explain when to use them versus --import.
17339         (Simple update): Use --add-import instead of --import.
17340         * NEWS: Mention the change.
17341
17342 2010-09-04  Bruno Haible  <bruno@clisp.org>
17343
17344         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17345         separate gnulib.mk.
17346
17347 2010-09-04  Bruno Haible  <bruno@clisp.org>
17348
17349         gnulib-tool: Don't talk about CVS any more.
17350         * gnulib-tool (func_usage, func_import): Write "version control"
17351         instead of CVS.
17352
17353 2010-09-04  Jim Meyering  <meyering@redhat.com>
17354
17355         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17356         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17357         false positives (whose names may be ill-chosen) when searching
17358         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17359         would cause a false-positive.
17360
17361         avoid coreutils "make distcheck" failure
17362         Coreutils tests with an absolute build directory name that contains
17363         a space.  Not quoting this directory name caused a failure.
17364         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17365         * tests/test-vc-list-files-cvs.sh: Likewise.
17366
17367 2010-09-04  Bruno Haible  <bruno@clisp.org>
17368
17369         gnulib-tool: Avoid error when run in a package without Makefile.am.
17370         * gnulib-tool: When collecting the m4dirs in a package that does not
17371         have a Makefile.am, eliminate those directories that contain no
17372         gnulib-cache.m4. Fix expression that counts these directories.
17373
17374 2010-09-04  Bruno Haible  <bruno@clisp.org>
17375
17376         update-copyright test: Improve output when perl is missing or too old.
17377         * tests/test-update-copyright.sh: Move test of Perl version down after
17378         the test whether Perl exists. Provide an explanation relating Perl's
17379         error message to Automake's SKIP: message.
17380
17381 2010-09-04  Bruno Haible  <bruno@clisp.org>
17382
17383         Don't augment PATH in TESTS_ENVIRONMENT.
17384         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17385         set abs_aux_dir instead of augmenting PATH.
17386         * modules/vc-list-files-tests (Makefile.am): Likewise.
17387         * tests/test-update-copyright.sh: Augment PATH here.
17388         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17389         path_prepend_.
17390         * tests/test-vc-list-files-git.sh: Likewise.
17391
17392 2010-09-04  Jim Meyering  <meyering@redhat.com>
17393
17394         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17395         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17396
17397 2010-09-04  Bruno Haible  <bruno@clisp.org>
17398
17399         strdup: Fix compilation error in C++ mode.
17400         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17401         the macro.
17402
17403 2010-09-04  Bruno Haible  <bruno@clisp.org>
17404
17405         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17406         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17407         macro into a function.
17408         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17409
17410 2010-09-04  Bruno Haible  <bruno@clisp.org>
17411
17412         Set PATH_SEPARATOR the same way autoconf does.
17413         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17414         the value of PATH_SEPARATOR the same way autoconf-generated configure
17415         scripts do.
17416         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17417         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17418
17419 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17420
17421         Set PATH_SEPARATOR the same way autoconf does.
17422         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17423         the same way autoconf-generated configure scripts do.
17424         * posix-modules: Likewise.
17425
17426 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17427
17428         hash: fix safe_hasher const typo
17429         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17430         const; otherwise, there is a type error later.
17431
17432 2010-09-02  Jim Meyering  <meyering@redhat.com>
17433
17434         test-update-copyright.sh: require perl 5.8.0
17435         * tests/test-update-copyright.sh: Require 5.8.0,
17436         which Tom G. Christensen has confirmed is adequate,
17437         while 5.6.1 is not.
17438
17439 2010-09-02  Eric Blake  <eblake@redhat.com>
17440
17441         tests: init.sh improvements for re-exec'ing with zsh
17442         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17443         -vx through shell re-exec.
17444         Reported by Tom G. Christensen.
17445
17446         wctype: fix typo in previous commit
17447         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17448         Reported by Ludovic Courtès.
17449
17450 2010-09-02  Jim Meyering  <meyering@redhat.com>
17451
17452         test-update-copyright.sh: skip test if Perl is too old
17453         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17454         Reported by Tom G. Christensen.
17455
17456 2010-09-02  Bruno Haible  <bruno@clisp.org>
17457
17458         wctype: Avoid compilation error on IRIX 6.5.30.
17459         * lib/wctype.in.h (iswblank): Declare with a replacement if
17460         REPLACE_ISWBLANK is set.
17461         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17462         declared. Set REPLACE_ISWBLANK.
17463         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17464         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17465         * doc/posix-headers/wctype.texi: Likewise.
17466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17467
17468 2010-09-01  Bruno Haible  <bruno@clisp.org>
17469
17470         New module 'socketlib'.
17471         * modules/socketlib: New file.
17472         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17473         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17474         * modules/sockets (Depends-on): Add socketlib.
17475         Suggested by Sam Steingold <sds@gnu.org>.
17476
17477 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17478
17479         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17480
17481         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17482         when one needs search access to a directory but not read access.
17483         On systems where it is available, it works in some cases where
17484         O_RDONLY does not, namely on directories that are searchable but
17485         not readable, and which need only to be searchable.  If O_SEARCH
17486         is not available, fall back to the traditional method of using
17487         O_RDONLY.
17488
17489         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17490         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17491         when opening a directory that needs only to be searchable.
17492         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17493         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17494         * lib/openat-proc.c (openat_proc_name): Likewise.
17495         * lib/openat.c (openat_needs_fchdir): Likewise.
17496         * lib/save-cwd.c (save_cwd): Likewise.
17497         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17498
17499 2010-08-28  Bruno Haible  <bruno@clisp.org>
17500
17501         New module 'host-cpu-c-abi'.
17502         * modules/host-cpu-c-abi: New file.
17503         * m4/host-cpu-c-abi.m4: New file, based on part of
17504         clisp/src/m4/general.m4.
17505         Requested by Sam Steingold <sds@gnu.org>.
17506
17507 2010-08-31  Eric Blake  <eblake@redhat.com>
17508         and Jim Meyering  <meyering@redhat.com>
17509
17510         hash: factor, and guard against misbehaving hasher function
17511         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17512         of table->hasher's return value.  Also protect against a hash value
17513         so large that adding it to table->bucket results in a NULL pointer.
17514         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17515         Use it in place of open-coded check-and-abort.
17516
17517 2010-08-30  Bruno Haible  <bruno@clisp.org>
17518
17519         hash: silence spurious clang warning
17520         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17521         Reported by Eric Blake.
17522
17523 2010-08-30  Eric Blake  <eblake@redhat.com>
17524
17525         strstr, memmem, strcasestr: avoid leaked shell message
17526         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17527         FreeBSD.
17528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17529         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17530
17531         tests: silence clang warning
17532         * tests/test-malloca.c (do_allocation): Avoid dead store.
17533
17534 2010-08-29  Bruno Haible  <bruno@clisp.org>
17535
17536         gettext: Fix recent mistake.
17537         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17538
17539 2010-08-29  Bruno Haible  <bruno@clisp.org>
17540
17541         selinux-h: Offer a --without-selinux option.
17542         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17543         --without-selinux was specified, skip all tests and define
17544         HAVE_SELINUX_SELINUX_H to 0.
17545         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17546         set LIB_SELINUX to empty.
17547         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17548         gl_LIBSELINUX. If --without-selinux was specified, replace
17549         selinux/context.h.
17550         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17551
17552 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17553             Bruno Haible  <bruno@clisp.org>
17554
17555         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17556         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17557         of HAVE_REALLOC.
17558         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17559         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17560         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17561         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17562
17563 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17564             Bruno Haible  <bruno@clisp.org>
17565
17566         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17567         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17568         HAVE_CALLOC.
17569         * lib/xmalloc.c: Update accordingly.
17570         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17571         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17572         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17573
17574 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17575             Bruno Haible  <bruno@clisp.org>
17576
17577         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17578         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17579         HAVE_MALLOC.
17580         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17581         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17582         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17583
17584 2010-08-29  Bruno Haible  <bruno@clisp.org>
17585
17586         Update modules list.
17587         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17588         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17589         (String handling <string.h>): Add astrxfrm.
17590         (File system functions): Add readlinkat.
17591
17592 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17593
17594         Tests for module 'realloc-gnu'.
17595         * modules/realloc-gnu-tests: New file.
17596         * tests/test-realloc-gnu.c: New file.
17597
17598         Tests for module 'calloc-gnu'.
17599         * modules/calloc-gnu-tests: New file.
17600         * tests/test-calloc-gnu.c: New file.
17601
17602         Tests for module 'malloc-gnu'.
17603         * modules/malloc-gnu-tests: New file.
17604         * tests/test-malloc-gnu.c: New file.
17605
17606 2010-08-28  Bruno Haible  <bruno@clisp.org>
17607
17608         Rename module 'realloc' -> 'realloc-gnu'.
17609         * modules/realloc-gnu: New file, copied from modules/realloc.
17610         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17611         obsolete.
17612         * modules/mgetgroups (Depends-on): Update.
17613         * doc/posix-functions/realloc.texi: Update.
17614         * NEWS: Mention the change.
17615
17616         Rename module 'calloc' -> 'calloc-gnu'.
17617         * modules/calloc-gnu: New file, copied from modules/calloc.
17618         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17619         obsolete.
17620         * doc/posix-functions/calloc.texi: Update.
17621         * NEWS: Mention the change.
17622
17623         Rename module 'malloc' -> 'malloc-gnu'.
17624         * modules/malloc-gnu: New file, copied from modules/malloc.
17625         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17626         obsolete.
17627         * modules/argp (Depends-on): Update.
17628         * modules/regex (Depends-on): Update.
17629         * doc/posix-functions/malloc.texi: Update.
17630         * NEWS: Mention the change.
17631
17632 2010-08-28  Eric Blake  <eblake@redhat.com>
17633
17634         pread, pwrite: add missing dependency
17635         * modules/pread (Depends-on): Add extensions.
17636         * modules/pwrite (Depends-on): Likewise.
17637
17638 2010-08-28  Bruno Haible  <bruno@clisp.org>
17639
17640         unistr/u*-strchr: Fix tests dependencies.
17641         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17642         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17643         Reported by Ian Beckwith <ianb@erislabs.net>.
17644
17645 2010-08-28  Bruno Haible  <bruno@clisp.org>
17646
17647         read-file: Don't occupy too much unused memory.
17648         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17649
17650 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17651             Eric Blake  <eblake@redhat.com>
17652             Bruno Haible  <bruno@clisp.org>
17653
17654         read-file: Avoid memory reallocations with regular files.
17655         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17656         (fread_file): With regular files, use the remaining length as the
17657         initial buffer size.  Check against overflow.
17658         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17659         sys_stat.
17660
17661 2010-08-28  Bruno Haible  <bruno@clisp.org>
17662
17663         ftello: Relax license.
17664         * modules/ftello (License): Relax to LGPLv2+.
17665         Reported by Eric Blake.
17666
17667 2010-08-28  Bruno Haible  <bruno@clisp.org>
17668
17669         Avoid relocwrapper link errors due to gnulib replacement functions.
17670         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17671         function.
17672         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17673
17674 2010-08-28  Bruno Haible  <bruno@clisp.org>
17675
17676         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17677         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17678         defined.
17679         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17680         Suggested by Eric Blake.
17681
17682 2010-08-28  Bruno Haible  <bruno@clisp.org>
17683
17684         sys_socket, netdb: Ensure socklen_t gets defined.
17685         * modules/sys_socket (Depends-on): Add socklen.
17686         * modules/netdb (Depends-on): Likewise.
17687         * modules/getaddrinfo (Depends-on): Remove socklen.
17688         * modules/getsockopt (Depends-on): Likewise.
17689         * modules/setsockopt (Depends-on): Likewise.
17690         * tests/test-sys_socket.c: Check that socklen_t is defined.
17691         * tests/test-netdb.c: Likewise.
17692         * m4/socklen.m4: Update comments.
17693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17694
17695 2010-08-27  Eric Blake  <eblake@redhat.com>
17696
17697         login_tty: add missing dependency
17698         * modules/login_tty (Depends-on): Add pty.
17699
17700 2010-08-26  Eric Blake  <eblake@redhat.com>
17701
17702         lib-symbol-versions: fix m4 quoting
17703         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17704         format for AC_LINK_IFELSE.
17705
17706         glob: fix compile test
17707         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17708
17709         btowc: fix missing file
17710         * modules/btowc (Files): Also ship locale-fr.m4.
17711
17712         lseek: fix link test
17713         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17714         AC_LINK_IFELSE.
17715
17716         include_next: silence autoconf 2.68 warning
17717         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17718         AC_COMPILE_IFELSE as special.
17719         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17720         autoconf < 2.68.
17721
17722         acl: fix compilation test
17723         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17724         AC_COMPILE_IFELSE.
17725
17726 2010-08-26  Bruno Haible  <bruno@clisp.org>
17727
17728         Modernize AC_TRY_RUN invocations.
17729         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17730         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17731         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17732         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17733         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17734         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17735         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17736         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17737         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17738         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17739         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17740         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17741         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17742         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17744         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17745         gl_MBRLEN_NUL_RETVAL): Likewise.
17746         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17747         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17748         Likewise.
17749         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17750         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17751         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17752         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17753         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17754         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17755         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17756         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17757         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17758         Likewise.
17759         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17760         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17762         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17763         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17764         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17765         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17766         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17767         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17769
17770 2010-08-26  Bruno Haible  <bruno@clisp.org>
17771
17772         Modernize AC_TRY_LINK invocations.
17773         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17774         AC_TRY_LINK.
17775         * m4/argp.m4 (gl_ARGP): Likewise.
17776         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17777         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17778         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17779         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17780         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17781         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17782         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17783         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17784         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17785         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17786         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17787         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17788         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17789         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17790         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17791         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17792         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17793         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17794         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17795         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17796         Likewise.
17797         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17798         Likewise.
17799         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17800         Likewise.
17801         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17802         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17803         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17804         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17805         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17806         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17807         * m4/servent.m4 (gl_SERVENT): Likewise.
17808         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17809         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17810         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17811         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17812         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17813         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17814         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17815         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17816         * modules/tsearch-tests (configure.ac): Likewise.
17817
17818 2010-08-26  Bruno Haible  <bruno@clisp.org>
17819
17820         Modernize AC_TRY_COMPILE invocations.
17821         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17822         AC_TRY_COMPILE.
17823         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17824         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17825         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17826         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17827         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17828         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17829         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17830         * m4/lock.m4 (gl_LOCK): Likewise.
17831         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17832         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17833         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17834         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17835         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17836         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17837         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17838         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17839         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17840         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17841         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17842         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17843         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17844         extraneous semicolon.
17845
17846 2010-08-26  Jim Meyering  <meyering@redhat.com>
17847
17848         stat-time: relax license LGPL
17849         * modules/stat-time (License): Change from GPL to LGPL,
17850         with consent from all contributors, for use in libguile.
17851         Requested by Ludovic Courtès.
17852
17853 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17854
17855         poll: return immediately on POLLHUP.
17856         * lib/poll.c (poll): Always set timeout before wait_timeout is
17857         computed.
17858
17859 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17860
17861         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17862         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17863         rmdir ("dir/.//"), unlinkat.
17864
17865 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17866
17867         stdbool: avoid spurious failure with modern xlc
17868         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17869
17870 2010-08-24  Bruno Haible  <bruno@clisp.org>
17871
17872         getloadavg: simplify code
17873         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17874         gl_have_func. Update comments.
17875
17876 2010-08-24  Eric Blake  <eblake@redhat.com>
17877
17878         getloadavg: don't define SVR4 on cygwin
17879         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17880         only define SVR4 when -lkvm is required.
17881         Reported by Yaakov Selkowitz.
17882
17883 2010-08-24  Bruno Haible  <bruno@clisp.org>
17884
17885         priv-set: fix comment
17886         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17887
17888 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17889
17890         priv-set: fix comments
17891         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17892         to match code, as suggested by David Bartley in:
17893         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17894
17895 2010-08-23  Eric Blake  <eblake@redhat.com>
17896
17897         stdbool: avoid rejecting clang
17898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17899         * tests/test-stdbool.c: Enable more tests if using the system
17900         <stdbool.h> instead of the gnulib replacement.
17901         (main): Move xlc bug test to a runtime test for all compilers.
17902         Reported by Anders Kaseorg.
17903
17904         argz: fix shell quoting issue
17905         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17906         Reported by Charles Wilson.
17907
17908 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17909             Erik Faye-Lund <kusmabite@gmail.com>
17910
17911         poll, select: handle ERROR_BROKEN_PIPE.
17912         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17913         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17914         * lib/select.c (win32_compute_revents): Do not mark a pipe
17915         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17916
17917 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17918
17919         fts: allow compilation with C++
17920         * lib/fts_.h: Specify extern "C" linkage with C++.
17921
17922 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17923
17924         Fix gnulib-tool sed script de-commentation for AIX sed.
17925         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17926         sed.
17927
17928 2010-08-17  Eric Blake  <eblake@redhat.com>
17929
17930         test-stddef: test for (some) offsetof bugs
17931         * tests/test-stddef.c: Enhance test to ensure correct type of
17932         offsetof.
17933         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17934         that we are not fixing at this time.
17935
17936 2010-08-15  Bruno Haible  <bruno@clisp.org>
17937
17938         stpncpy: Allow stpncpy to be defined as a macro.
17939         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17940         if it's already correctly declared.
17941         * lib/string.in.h (stpncpy): Undefine before redefining.
17942         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17943
17944 2010-08-14  Bruno Haible  <bruno@clisp.org>
17945
17946         Rename module 'memxfrm' to 'amemxfrm'.
17947         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17948         (amemxfrm): Renamed from memxfrm.
17949         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17950         (amemxfrm): Renamed from memxfrm.
17951         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17952         * NEWS: Mention the change.
17953         * MODULES.html.sh (String handling <string.h>): Update.
17954         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17955         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17956         * lib/unicase/u16-casexfrm.c: Likewise.
17957         * lib/unicase/u32-casexfrm.c: Likewise.
17958         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17959         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17960         * lib/uninorm/u16-normxfrm.c: Likewise.
17961         * lib/uninorm/u32-normxfrm.c: Likewise.
17962         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17963         memxfrm.
17964         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17965         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17966         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17967         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17968         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17969         Suggested by Paul Eggert.
17970
17971 2010-08-14  Bruno Haible  <bruno@clisp.org>
17972
17973         Tests for module 'astrxfrm'.
17974         * modules/astrxfrm-tests: New file.
17975         * tests/test-astrxfrm.c: New file.
17976
17977         New module 'astrxfrm'.
17978         * lib/astrxfrm.h: New file.
17979         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17980         * modules/astrxfrm: New file.
17981
17982 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17983
17984         regex: Tweak doc.
17985         * doc/regex.texi (Overview): Don't mention regex.c.
17986         (GNU Regular Expression Compiling): Likewise.
17987         (Match-end-of-line Operator): Mention 'not_eol'.
17988
17989 2010-08-14  Brian Gough  <bjg@gnu.org>
17990             Bruno Haible  <bruno@clisp.org>
17991
17992         git-merge-changelog: add doc relating to use with bzr and hg.
17993         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17994
17995 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17996
17997         pthread: fix pthread.h creation for srcdir != builddir
17998         * modules/pthread (Makefile.am): Fix the rule to work also in a
17999         non-srcdir build.
18000
18001 2010-08-13  Karl Berry  <karl@gnu.org>
18002
18003         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18004         * doc/posix-*/*: force line break before @url of POSIX
18005         specifications.
18006         Suggested by Werner Lemberg.
18007
18008 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18009
18010         strtod: fix const diagnostic
18011         * lib/strtod.c (strtod): Don't assign const char * to char *,
18012         as this elicits a warning from GCC when warnings are enabled.
18013
18014 2010-08-10  Pádraig Brady <P@draigbrady.com>
18015         and Eric Blake  <eblake@redhat.com>
18016
18017         copy-acl: ignore ENOTSUP on HP-UX
18018         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18019         so that it is available for HP-UX.
18020         * lib/copy-acl.c (qcopy_acl): Use it.
18021         Reported by Patrick M. Callahan.
18022
18023 2010-08-10  Eric Blake  <eblake@redhat.com>
18024
18025         open, chown: relax license
18026         * modules/open (License): Change to LGPLv2+, with consent by all
18027         authors, for use in augeas.
18028         * modules/chown (License): Likewise.
18029         * modules/lchown (Likewise): Likewise.
18030         Requested by Adam Stokes.
18031
18032 2010-08-09  Karl Berry  <karl@gnu.org>
18033
18034         * build-aux/ar-lib: new file, import from Automake.
18035         * config/srclist.txt: autocheck for updates.
18036
18037 2010-08-09  Eric Blake  <eblake@redhat.com>
18038
18039         readlinkat: adjust client modules
18040         * modules/areadlinkat (Depends-on): Use readlinkat, not
18041         symlinkat.
18042         * modules/areadlinkat-with-size (Depends-on): Likewise.
18043
18044         mknod: be more vocal about danger of running tests as root
18045         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18046         root, since that is just asking for problems.
18047         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18048
18049         readlinkat: split into its own module
18050         * modules/symlinkat: Split readlinkat...
18051         * modules/readlinkat: ...into separate module.
18052         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18053         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18054         * lib/symlinkat.c (readlinkat): Move...
18055         * lib/readlinkat.c: ...into new file.
18056         * modules/symlinkat-tests: Split readlinkat test...
18057         * modules/readlinkat-tests: ...into separate module.
18058         * tests/test-symlinkat.c: Split...
18059         * tests/test-readlinkat.c: ...into new file.
18060         * NEWS: Document the split.
18061         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18062         * lib/unistd.in.h (readlinkat): Likewise.
18063         Suggested by Bruno Haible.
18064
18065 2010-08-08  Bruno Haible  <bruno@clisp.org>
18066
18067         memxfrm: Speed up.
18068         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18069         that usually only one call to strxfrm is necessary for each string
18070         part.
18071         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18072
18073 2010-08-07  Karl Berry  <karl@gnu.org>
18074
18075         * doc/posix-headers/limits.texi,
18076         * doc/posix-functions/malloc.texi,
18077         * doc/posix-functions/strsignal.texi: missing @item.
18078         * doc/ld-version-script.texi: spurious leading i.
18079         * doc/regex.texi (Interval Operators): no commas inside @var.
18080
18081 2010-08-01  Bruno Haible  <bruno@clisp.org>
18082
18083         Integrate the regex documentation.
18084         * doc/gnulib.texi: Define 'cn' index.
18085         (Regular expressions): New a chapter that includes regex.texi and
18086         regexprops-generic.texi.
18087         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18088         syntax.
18089
18090         Whitespace cleanup.
18091         * doc/regex.texi: Remove trailing spaces.
18092
18093         Add regex documentation.
18094         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18095         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18096         Written by Kathy A. Hargreaves and Karl Berry.
18097
18098 2010-08-01  Bruno Haible  <bruno@clisp.org>
18099
18100         link: Update documentation.
18101         * doc/posix-functions/link.texi: Update regarding Solaris.
18102
18103 2010-07-31  Bruno Haible  <bruno@clisp.org>
18104
18105         Update modules list.
18106         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18107         (String handling <string.h>): Add memcmp2, memxfrm.
18108         (Container data structures): Add xlist, xsublist, xoset.
18109         (Core language properties): Add alignof, unused-parameter.
18110         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18111         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18112         (Unibyte characters <ctype.h>): New section.
18113         (String handling <string.h>): New section.
18114         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18115         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18116         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18117         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18118         tan, tanh, tanl, y0, y1, yn.
18119         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18120         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18121         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18122         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18123         unlockpt, vdprintf, vdprintf-posix.
18124         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18125         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18126         xconcat-filename.
18127         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18128         getdtablesize, pipe2, pipe2-safer.
18129         (Security): New section.
18130         (Networking functions): Add accept4.
18131         (Signal handling): Add sigpipe.
18132         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18133         mbmemcasecoll.
18134         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18135         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18136         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18137         pipe-filter-ii.
18138         (Misc): Add argp-version-etc, login_tty, parse-duration.
18139
18140 2010-07-31  Bruno Haible  <bruno@clisp.org>
18141
18142         Improve doc in MODULES.html.
18143         * modules/linkat (Description): Add the word "function".
18144         * modules/mkfifo (Description): Likewise.
18145         * modules/mknod (Description): Likewise.
18146         * modules/remove (Description): Likewise.
18147         * modules/renameat (Description): Likewise.
18148         * modules/stat (Description): Likewise.
18149         * modules/symlink (Description): Likewise.
18150         * modules/unlink (Description): Likewise.
18151
18152 2010-07-31  Bruno Haible  <bruno@clisp.org>
18153
18154         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18155         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18156         option --enable/disable-c++ instead of --enable/disable-cxx.
18157         * NEWS: Mention the change.
18158
18159 2010-07-31  Bruno Haible  <bruno@clisp.org>
18160
18161         readlink, areadlink: Relax test a bit.
18162         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18163         alternative to ENOTDIR.
18164         * tests/test-areadlink.h (test_areadlink): Likewise.
18165         Reported by Rainer Tammer.
18166
18167 2010-07-31  Bruno Haible  <bruno@clisp.org>
18168
18169         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18170         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18171         character, perform the search using U_STRCHR.
18172         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18173         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18174         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18175         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18176         Suggested by Paolo Bonzini.
18177
18178 2010-07-31  Bruno Haible  <bruno@clisp.org>
18179
18180         unistr/u*-strstr: Fix dependencies.
18181         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18182         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18183         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18184
18185 2010-07-31  Bruno Haible  <bruno@clisp.org>
18186
18187         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18188         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18189         the beginning of the loop.
18190         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18191         cases in 'switch' statement.
18192
18193         unistr/u8-strchr: Fix several bugs.
18194         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18195         the string. When not found, return NULL, not a pointer near the end.
18196
18197         More tests for unistr/u8-strchr.
18198         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18199         that the function does not read past the first occurrence of the byte
18200         being searched.
18201         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18202         * tests/unistr/test-u16-strchr.c (main): New function.
18203         * tests/unistr/test-u32-strchr.c (main): New function.
18204
18205 2010-07-31  Bruno Haible  <bruno@clisp.org>
18206
18207         posix-modules: Ignore backup files of documentation files.
18208         * posix-modules: grep only through files named *.texi.
18209
18210 2010-07-31  Bruno Haible  <bruno@clisp.org>
18211
18212         symlinkat: Fix documentation.
18213         * doc/posix-functions/readlinkat.texi: Fix module name.
18214
18215 2010-07-31  Bruno Haible  <bruno@clisp.org>
18216
18217         fchownat: Replace also when chown has the trailing slash bug.
18218         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18219         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18220         introduced on 2010-04-10.
18221         Reported by Rainer Tammer.
18222
18223 2010-07-31  Bruno Haible  <bruno@clisp.org>
18224
18225         linkat: Work around AIX 7.1 bug.
18226         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18227         whether linkat handles trailing slash correctly. If not, replace linkat
18228         and define LINKAT_TRAILING_SLASH_BUG.
18229         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18230         check whether (fd1,file1) points to a directory if file1 or file2 ends
18231         in a slash. Code taken from lib/link.c.
18232         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18233         Reported by Rainer Tammer.
18234
18235 2010-07-31  Bruno Haible  <bruno@clisp.org>
18236
18237         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18238         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18239         This disables an xlc optimization that was causing wrong test results.
18240         Reported by Rainer Tammer.
18241
18242 2010-07-31  Bruno Haible  <bruno@clisp.org>
18243
18244         iconv: Work around AIX 6.1..7.1 bug.
18245         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18246         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18247         cross-compiling, guess no on all versions of AIX.
18248         Reported by Rainer Tammer.
18249
18250 2010-07-31  Bruno Haible  <bruno@clisp.org>
18251
18252         readlink: Relax test a bit.
18253         * tests/test-readlink.h (test_readlink): Allow different errno value
18254         when readlink is called with a file name that ends in / and refers to
18255         a file.
18256         Suggested by Eric Blake.
18257         Reported by Rainer Tammer.
18258
18259 2010-07-31  Bruno Haible  <bruno@clisp.org>
18260
18261         copysign: Does not require -lm on glibc systems.
18262         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18263         gl_COMMON_DOUBLE_MATHFUNC.
18264         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18265
18266 2010-07-31  Bruno Haible  <bruno@clisp.org>
18267
18268         duplocale: Work around AIX 7.1 bug.
18269         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18270         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18271         * lib/duplocale.c (rpl_duplocale): Update comment.
18272         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18273         Reported by Rainer Tammer.
18274
18275 2010-07-30  Bruno Haible  <bruno@clisp.org>
18276
18277         dirfd: Avoid link error on AIX 7.1.
18278         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18279         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18280         exist, set REPLACE_DIRFD.
18281         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18282         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18283         * doc/posix-functions/dirfd.texi: Update.
18284         Reported by Rainer Tammer.
18285
18286 2010-07-30  Eric Blake  <eblake@redhat.com>
18287
18288         strtod: next round of AIX fixes
18289         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18290         exponent.
18291         * tests/test-strtod.c (main): Enhance tests.
18292         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18293         Reported by Rainer Tammer.
18294
18295         futimens: fix configure check
18296         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18297         Reported by Bruno Haible.
18298
18299 2010-07-30  Bruno Haible  <bruno@clisp.org>
18300
18301         getline: Update regarding AIX.
18302         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18303         Reported by Rainer Tammer.
18304
18305 2010-07-30  Bruno Haible  <bruno@clisp.org>
18306
18307         wcwidth: Drop replacement on AIX 7.
18308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18309         AIX 7.
18310         Reported by Rainer Tammer.
18311
18312 2010-07-30  Bruno Haible  <bruno@clisp.org>
18313
18314         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18315         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18316         a 'char *'.
18317         Reported by Rainer Tammer.
18318
18319 2010-07-30  Bruno Haible  <bruno@clisp.org>
18320
18321         unlink: Update regarding AIX.
18322         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18323         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18324         Reported by Rainer Tammer.
18325
18326 2010-07-30  Bruno Haible  <bruno@clisp.org>
18327
18328         symlink: Update regarding AIX.
18329         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18330         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18331         Reported by Rainer Tammer.
18332
18333 2010-07-30  Bruno Haible  <bruno@clisp.org>
18334
18335         strndup: Update regarding AIX.
18336         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18337         AIX 7.
18338         Reported by Rainer Tammer.
18339
18340 2010-07-30  Bruno Haible  <bruno@clisp.org>
18341
18342         stat: Update regarding AIX.
18343         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18344         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18345         Reported by Rainer Tammer.
18346
18347 2010-07-30  Bruno Haible  <bruno@clisp.org>
18348
18349         truncl: Fix autoconf test.
18350         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18351         whether truncl works.
18352         Reported by Rainer Tammer.
18353
18354 2010-07-30  Bruno Haible  <bruno@clisp.org>
18355
18356         round: Update regarding AIX.
18357         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18358         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18359         Reported by Rainer Tammer.
18360
18361 2010-07-30  Bruno Haible  <bruno@clisp.org>
18362
18363         rename: Update regarding AIX.
18364         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18365         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18366         Reported by Rainer Tammer.
18367
18368 2010-07-30  Bruno Haible  <bruno@clisp.org>
18369
18370         printf.m4: Update regarding AIX.
18371         * m4/printf.m4: Update comments regarding AIX.
18372         Reported by Rainer Tammer.
18373
18374 2010-07-30  Bruno Haible  <bruno@clisp.org>
18375
18376         iconv: Update regarding AIX.
18377         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18378         AIX 7.
18379         Reported by Rainer Tammer.
18380
18381 2010-07-30  Bruno Haible  <bruno@clisp.org>
18382
18383         getopt: Update regarding AIX.
18384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18385         no on AIX.
18386         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18387         Reported by Rainer Tammer.
18388
18389 2010-07-30  Bruno Haible  <bruno@clisp.org>
18390
18391         ldexpl; Update regarding AIX.
18392         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18393         on AIX 7.
18394         Reported by Rainer Tammer.
18395
18396 2010-07-30  Bruno Haible  <bruno@clisp.org>
18397
18398         frexpl: Update regarding AIX.
18399         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18400         on AIX 7.
18401         Reported by Rainer Tammer.
18402
18403 2010-07-30  Bruno Haible  <bruno@clisp.org>
18404
18405         open, fopen: Update regarding AIX.
18406         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18407         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18408         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18409         * doc/posix-functions/fopen.texi: Likewise.
18410         Reported by Rainer Tammer.
18411
18412 2010-07-30  Bruno Haible  <bruno@clisp.org>
18413
18414         chown: Update doc regarding AIX.
18415         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18416         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18417         Reported by Rainer Tammer.
18418
18419 2010-07-30  Eric Blake  <eblake@redhat.com>
18420
18421         strtod: fix bug in replacement function on AIX
18422         * lib/strtod.c (strtod): Special case broken "0x" parse in
18423         underlying strtod.
18424         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18425         * doc/posix-functions/strtod.texi (strtod): Likewise.
18426         Reported by Rainer Tammer.
18427
18428 2010-07-30  Bruno Haible  <bruno@clisp.org>
18429
18430         mbrlen: Fix cross-compilation guess for AIX.
18431         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18432         guess. Leftover from 2008-12-22.
18433
18434 2010-07-30  Bruno Haible  <bruno@clisp.org>
18435
18436         mbrtowc: Fix cross-compilation guess for AIX.
18437         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18438         guess. Leftover from 2008-12-21.
18439
18440 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18441
18442         init.sh: work around trap limitation of some shells
18443         * tests/init.sh (setup_): Move exit trap outside of shell function.
18444
18445 2010-07-29  Eric Blake  <eblake@redhat.com>
18446
18447         strtod: aid debugging
18448         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18449         understanding why strtod is rejected.
18450
18451 2010-07-28  Bruno Haible  <bruno@clisp.org>
18452
18453         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18454         * lib/unistr/u8-chr.c: Include <string.h>.
18455         * tests/unistr/test-u8-chr.c: Likewise.
18456         * tests/unistr/test-u16-chr.c: Likewise.
18457         * tests/unistr/test-u32-chr.c: Likewise.
18458         * tests/unistr/test-u8-strchr.c: Likewise.
18459         * tests/unistr/test-u16-strchr.c: Likewise.
18460         * tests/unistr/test-u32-strchr.c: Likewise.
18461         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18462         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18463         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18464         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18465
18466 2010-07-28  Bruno Haible  <bruno@clisp.org>
18467
18468         Use spaces for indentation, not tabs.
18469         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18470
18471 2010-07-27  Bruno Haible  <bruno@clisp.org>
18472
18473         mbspcasecmp: Fix function specification.
18474         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18475         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18476         Reported by Eric Blake <eblake@redhat.com>.
18477
18478 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18479
18480         timespec: use cast and not conditional, as truncation isn't possible
18481         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18482         instead of a conditional.  Comment about the situation in more detail.
18483         This undoes most of the 2009-10-29 patch.
18484
18485 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18486
18487         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18488         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18489         * lib/unistr/u8-strchr.c: Likewise.
18490         * modules/unistr/u8-chr: Depend on memchr.
18491
18492         unistr/u*-strchr: add tests
18493         * modules/unistr/u8-strchr-tests: New file.
18494         * modules/unistr/u16-strchr-tests: New file.
18495         * modules/unistr/u32-strchr-tests: New file.
18496         * tests/unistr/test-strchr.h: New file.
18497         * tests/unistr/test-u8-strchr.c: New file.
18498         * tests/unistr/test-u16-strchr.c: New file.
18499         * tests/unistr/test-u32-strchr.c: New file.
18500
18501         unistr/u*-chr: test multibyte sequences more
18502         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18503         test vector.
18504         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18505         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18506         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18507
18508         unistr/u*-chr: test multibyte sequences
18509         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18510
18511         unistr/u*-chr: prepare for multibyte tests
18512         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18513         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18514         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18515         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18516         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18517         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18518
18519 2010-07-18  Bruno Haible  <bruno@clisp.org>
18520
18521         unistr/u8-strchr: Optimize non-ASCII argument case.
18522         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18523         because the first byte often matches anyway.
18524         Reported by Pádraig Brady <P@draigbrady.com>.
18525
18526 2010-07-15  Karl Berry  <karl@gnu.org>
18527
18528         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18529
18530 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18531
18532         getcwd: on Solaris, work better if ancestors are inaccessible
18533         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18534         buffer and size, try again with a large buffer.  This works better
18535         on Solaris, since its getcwd succeeds even if the path to the root
18536         is inaccessible, and this is helpful in common cases such as .zfs
18537         hidden directories.  Problem reported by J Chapman Flack in
18538         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18539         Use system getcwd if it's declared, not merely if it's partly
18540         working; use the partly-working test only to avoid needless effort
18541         if the system getcwd fails.
18542         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18543         comment that was already obsolete and is now even more obsolete.
18544         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18545         now might call strdup.
18546
18547 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18548
18549         pthread: Add enough so that coreutils/src/sort.c compiles.
18550         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18551         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18552         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18553         Include <sys/types.h>, in case it defines pthread_t.
18554         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18555         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18556         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18557         (pthread_rwlockattr_t, pthread_spinlock_t):
18558         New typedefs, if HAVE_PTHREAD_T is not defined.
18559         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18560         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18561         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18562         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18563         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18564         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18565         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18566         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18567         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18568         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18569         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18570         New macros.
18571         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18572         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18573         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18574         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18575         (pthread_spin_unlock): New dummy functions.
18576         (pthread_create): Return EAGAIN; don't set errno.
18577         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18578         require AC_C_INLINE.
18579         * modules/pthread (Depends-on): Add sched, time.
18580         (pthread.h): Use AM_V_GEN.
18581
18582 2010-07-13  Bruno Haible  <bruno@clisp.org>
18583
18584         striconveh: Don't malloc memory if the result buffer is sufficient.
18585         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18586         buffer if its size is sufficient.
18587         Reported by Ludovic Courtès <ludo@gnu.org>.
18588
18589 2010-07-13  Bruno Haible  <bruno@clisp.org>
18590
18591         strtod: Add safety check.
18592         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18593
18594 2010-07-12  Bruno Haible  <bruno@clisp.org>
18595
18596         Unify tests that set gl_cv_func_ldexpl_no_libm.
18597         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18598         gl_FUNC_LDEXPL.
18599         (gl_FUNC_LDEXPL): Invoke it.
18600         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18601
18602 2010-07-12  Bruno Haible  <bruno@clisp.org>
18603
18604         Unify tests that set gl_cv_func_ldexp_no_libm.
18605         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18606         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18607         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18608         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18609         * modules/strtod (Files): Add m4/ldexp.m4.
18610
18611 2010-07-12  Bruno Haible  <bruno@clisp.org>
18612
18613         Unify tests that set gl_cv_func_frexpl_no_libm.
18614         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18615         gl_FUNC_FREXPL_NO_LIBM.
18616         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18617         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18618
18619 2010-07-12  Bruno Haible  <bruno@clisp.org>
18620
18621         Unify tests that set gl_cv_func_frexp_no_libm.
18622         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18623         gl_FUNC_FREXP_NO_LIBM.
18624         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18625         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18626
18627 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18628
18629         memcoll: clarify sizes versus lengths, document better, and tweak perf
18630         * lib/memcoll.c (strcoll_loop, memcoll0):
18631         Improve quality of descriptive comments.  Name variables
18632         consistently as to whether they are lengths (which do not include
18633         terminating null) versus sizes (which do).
18634         * lib/xmemcoll.c (xmemcoll0): Likewise.
18635         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18636         returned when s1size == 0; this is easier to compile and saves
18637         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18638
18639 2010-07-12  Bruno Haible  <bruno@clisp.org>
18640
18641         Tests for module '_Exit'.
18642         * modules/_Exit-tests: New file.
18643         * tests/test-_Exit.sh: New file.
18644         * tests/test-_Exit.c: New file.
18645
18646         New module '_Exit'.
18647         * lib/stdlib.in.h (__attribute__): New macro.
18648         (_Exit): New declaration.
18649         * lib/_Exit.c: New file.
18650         * m4/_Exit.m4: New file.
18651         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18652         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18653         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18654         * modules/_Exit: New file.
18655         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18656         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18657
18658 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18659
18660         strtod: make it more-accurate typically, and don't require libm
18661         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18662         Include limits.h.  Don't include string.h.
18663         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18664         (locale_isspace): New function, so that no casts are needed to
18665         check whether *s is a space.
18666         (ldexp): Provide an unused dummy if not available.
18667         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18668         (strtod): Use them.  This implementation prefers to use the
18669         underlying strtod if available, falling back on our own code
18670         only to fix known bugs.  This is more likely to produce an
18671         accurate result.  Also, it avoids the use of libm functions.
18672         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18673         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18674         was absent, but it caused a test failure with coreutils.
18675         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18676         with libm.
18677         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18678         * modules/strtod-tests (Makefile.am): Likewise.
18679
18680 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18681             Bruno Haible  <bruno@clisp.org>
18682
18683         unistr/u8-strchr: Optimize ASCII argument case.
18684         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18685
18686 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18687
18688         (x)memcoll: minor tweaks
18689         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18690         is after the type that it qualifies.
18691         (memcoll0): Likewise.
18692         * lib/memcoll.h (memcoll0): Likewise.
18693         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18694         * lib/xmemcoll.h (xmemcoll0): Likewise.
18695         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18696         differs from memcoll in that the NUL byte is part of the argument.
18697         Omit the abort-checks, as performance is a real issue here.  Plus,
18698         the checks were wrong anyway (an off-by-one error).  Omit local
18699         variable 'diff', as it's a bit clearer that way.
18700         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18701         no longer needed.
18702
18703 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18704
18705         (x)memcoll: speedup when input is known to be NUL delimited
18706         * lib/memcoll.c: Include stdlib.
18707         (memcoll0): New function.
18708         (strcoll_loop): New function, refactored for use in both memcoll
18709         and memcoll0.
18710         * lib/memcoll.h (memcoll0): Add prototype.
18711         * lib/xmemcoll.c (xmemcoll0): New function.
18712         (collate_error): New function, refactored for use in both xmemcoll
18713         and xmemcoll0.
18714         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18715         * m4/memcoll.m4: add inline invocation.
18716
18717 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18718
18719         * build-aux/bootstrap: Remove any local translations
18720         from the translation project synchronization directory,
18721         so that local only translations are not distributed.
18722
18723 2010-07-04  Bruno Haible  <bruno@clisp.org>
18724
18725         fsusage: Clarify which code applies to which platforms.
18726         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18727         platform.
18728         * lib/fsusage.c (get_fs_usage): Likewise.
18729
18730 2010-07-04  Bruno Haible  <bruno@clisp.org>
18731
18732         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18733         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18734         Reported by Martin Lambers <marlam@marlam.de>.
18735
18736 2010-07-04  Jim Meyering  <meyering@redhat.com>
18737
18738         hash: once again explicitly disallow insertion of NULL
18739         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18740         inserting a NULL pointer cannot work with these functions.
18741         Add a comment with details.
18742         This reverts part of the 2010-07-01 commit, 5bef1a35
18743         "hash: extend module to deal with non-pointer keys".
18744
18745 2010-07-01  Bruno Haible  <bruno@clisp.org>
18746
18747         stdbool: Update doc.
18748         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18749         Info from Christian Weisgerber <naddy@mips.inka.de>.
18750
18751 2010-07-01  Jim Meyering  <meyering@redhat.com>
18752
18753         hash: extend module to deal with non-pointer keys
18754         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18755         but that allows insertion of non-pointer entries.
18756         Do not disallow an ENTRY value of NULL.
18757         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18758         * lib/hash.h (hash_insert0): Declare.
18759
18760 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18761
18762         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18763         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18764         not present (i.e. with autoconf 2.59 and when using gettextize, not
18765         gnulib), require AC_GNU_SOURCE instead.
18766
18767 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18768
18769         idpriv-drop: Fix tests.
18770         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18771         not to the test-idpriv-droptemp program.
18772
18773 2010-06-29  Bruno Haible  <bruno@clisp.org>
18774
18775         string: Fix syntax error with g++ 2.96.
18776         * lib/string.in.h (__pure__): Remove definition.
18777         (_GL_ATTRIBUTE_PURE): New macro.
18778         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18779         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18780         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18781
18782 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18783
18784         unitypes: Fix bug introduced on 2010-05-18.
18785         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18786
18787 2010-06-22  Eric Blake  <eblake@redhat.com>
18788
18789         memmem: slight optimization
18790         * lib/str-two-way.h (critical_factorization): Update comments.
18791         Reduce work during factorization phase.
18792         Reported by Carlos Bueno <carlos@bueno.org>.
18793
18794 2010-06-21  Bruno Haible  <bruno@clisp.org>
18795
18796         Fix HAVE_CALLOC_POSIX misnomer.
18797         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18798         !HAVE_CALLOC_POSIX.
18799         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18800         HAVE_CALLOC_POSIX.
18801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18802         instead of HAVE_CALLOC_POSIX.
18803         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18804         HAVE_CALLOC_POSIX.
18805
18806         Use modern idiom for calloc() replacement.
18807         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18808         AC_FUNC_CALLOC.
18809         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18810         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18811         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18812         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18813         (gl_REPLACE_CALLOC): New macro.
18814
18815 2010-06-21  Bruno Haible  <bruno@clisp.org>
18816
18817         Fix HAVE_REALLOC_POSIX misnomer.
18818         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18819         !HAVE_REALLOC_POSIX.
18820         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18821         HAVE_REALLOC_POSIX.
18822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18823         instead of HAVE_REALLOC_POSIX.
18824         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18825         HAVE_REALLOC_POSIX.
18826
18827         Use modern idiom for realloc() replacement.
18828         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18829         AC_FUNC_REALLOC.
18830         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18831         Autoconf's AC_FUNC_REALLOC.
18832         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18833         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18834         (gl_REPLACE_REALLOC): New macro.
18835         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18836
18837 2010-06-21  Bruno Haible  <bruno@clisp.org>
18838
18839         Fix HAVE_MALLOC_POSIX misnomer.
18840         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18841         !HAVE_MALLOC_POSIX.
18842         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18843         HAVE_MALLOC_POSIX.
18844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18845         instead of HAVE_MALLOC_POSIX.
18846         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18847         HAVE_MALLOC_POSIX.
18848
18849         Use modern idiom for malloc() replacement.
18850         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18851         AC_FUNC_MALLOC.
18852         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18853         Autoconf's AC_FUNC_MALLOC.
18854         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18855         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18856         (gl_REPLACE_MALLOC): New macro.
18857         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18858
18859 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18860
18861         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18862         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18863         This macro takes 3 arguments, not 4.
18864
18865 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18866
18867         ipv6: fix detection under mingw
18868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18869         in6_addr.
18870
18871 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18872
18873         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18874         that strtod() works when cross-compiling to a glibc version known
18875         to work.
18876
18877 2010-06-15  Bruno Haible  <bruno@clisp.org>
18878
18879         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18880
18881 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18882
18883         select: Correct timeout.
18884         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18885
18886 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18887
18888         git-version-gen: init shell var to avoid env var influence
18889         * build-aux/git-version-gen (v): Init shell var to empty.
18890
18891 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18892
18893         priv-set: Don't assume that priv.h exists merely because getppriv does.
18894         See Jan Andersen's bug report about AIX 5L in
18895         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18896         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18897         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18898         * lib/priv-set.h: Likewise.
18899         * tests/test-priv-set.c: Likewise.
18900
18901 2010-06-13  Bruno Haible  <bruno@clisp.org>
18902
18903         relocatable: Make it easier to test whether to install wrappers.
18904         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18905         RELOCATABLE_VIA_WRAPPER.
18906
18907 2010-06-13  Bruno Haible  <bruno@clisp.org>
18908
18909         gnulib-tool: Display specified modules and dependencies differently.
18910         * gnulib-tool (func_show_module_list): New function.
18911         (func_import, func_create_testdir): Invoke it.
18912         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18913
18914 2010-06-13  Bruno Haible  <bruno@clisp.org>
18915
18916         gnulib-tool: Align code of func_import and func_create_testdir.
18917         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18918         specified_modules.
18919
18920 2010-06-12  Jim Meyering  <meyering@redhat.com>
18921
18922         test-inttostr: avoid spurious failure on Solaris 9
18923         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18924         to accept "%ju".  Reported by Bruno Haible.
18925
18926 2010-06-11  Jim Meyering  <meyering@redhat.com>
18927
18928         test-sys_socket: mark variables as used more readably
18929         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18930         as "used" explicitly via (void) statement casts.  This is more
18931         readable than using them in an artificial return expression.
18932         Suggestion from Bruno Haible.
18933
18934 2010-06-11  Bruno Haible  <bruno@clisp.org>
18935
18936         Avoid some more warnings from "gcc -Wwrite-strings".
18937         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18938         to 'const char *'.
18939         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18940         * tests/test-c-strcasestr.c (main): Likewise.
18941         * tests/test-mbscasestr1.c (main): Likewise.
18942         * tests/test-mbscasestr2.c (main): Likewise.
18943         * tests/test-memmem.c (main): Likewise.
18944         * tests/test-strstr.c (main): Likewise.
18945         * tests/test-strcasestr.c (main): Likewise.
18946
18947 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18948
18949         init.sh: change framework_failure_ to fail with status 99, not 1
18950         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18951         automake's parallel-tests rule that this is an unexpected failure,
18952         even if the test is listed in XFAIL_TESTS.
18953
18954 2010-06-11  Jim Meyering  <meyering@redhat.com>
18955
18956         test-inttostr: avoid warnings about 4-6KB literal strings
18957         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18958         Include "macros.h", for its definition of ASSERT.
18959         (CK): s/assert/ASSERT/
18960         * modules/inttostr-tests (Files): Add macros.h.
18961
18962         init.sh: don't use $ME_ or skip_ before they are defined
18963         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18964         their first uses.  Also hoist their companions: warn_, fail_,
18965         framework_failure_, $stderr_fileno.  Prompted by a patch from
18966         Stefano Lattarini.
18967
18968         test-sys_socket: avoid set-but-not-used warnings from gcc
18969         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18970         avoid warning about set-but-not-used variables.
18971
18972         test-xvasprintf: avoid 'const' discard warnings
18973         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18974         "const" when assigning from literal strings.
18975         (test_xasprintf): Add "void" in function argument list to placate
18976         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18977
18978         tests: avoid compilation warnings in argmatch and exclude tests...
18979         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18980         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18981         Since it always exits, declare with the "noreturn" attribute.
18982         * tests/test-argmatch.c: Likewise.
18983
18984         tests: avoid 'const' discard warnings in mbsstr tests
18985         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18986         * tests/test-mbsstr2.c (main): Likewise.
18987
18988         test-verify: avoid warning from gcc's -Wmissing-declarations
18989         * tests/test-verify.c (function): Declare to be static.
18990
18991         test-inttostr.c: include <string.h> for use of strcmp
18992         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18993
18994         test-linkat: avoid failed assertion on "other" architectures
18995         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18996         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18997         sparc: https://bugs.launchpad.net/bugs/591968
18998
18999 2010-06-11  Jim Meyering  <meyering@redhat.com>
19000
19001         printf.m4: avoid autoconf's "Expanded Before Required" warning
19002         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19003         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19004         autoconf warning.
19005
19006 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19007
19008         Replacement header templates are now named with ".in", not "_".
19009         * doc/gnulib-intro.texi: Correct.
19010
19011 2010-06-10  Jim Meyering  <meyering@redhat.com>
19012
19013         inttostr-tests: depend on snprintf, not snprintf-posix
19014         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19015         snprintf-posix, to avoid this aclocal failure:
19016           missing file gnulib-tests/vasnprintf.c
19017           configure.ac:45: error: expected source file, required through \
19018           AC_LIBSOURCES, not found
19019
19020 2010-06-10  Jim Meyering  <meyering@redhat.com>
19021
19022         inttostr: add a new function, inttostr, and tests
19023         The namesake function was not available.  The existence of the
19024         template file, inttostr.c makes its addition nontrivial.
19025         * lib/anytostr.c: Rename from inttostr.c.
19026         (anytostr): Rename from inttostr.
19027         * lib/inttostr.c: New file.
19028         * modules/inttostr (Files): Add anytostr.c.
19029         (Makefile.am): Set lib_SOURCES instead of ...
19030         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19031         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19032         * lib/offtostr.c: Likewise.
19033         * lib/uinttostr.c: Likewise.
19034         * lib/umaxtostr.c: Likewise.
19035         * modules/inttostr-tests: New file.
19036         * tests/test-inttostr.c: New file.  Test these functions.
19037
19038 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19039             Bruno Haible  <bruno@clisp.org>
19040
19041         Add "Extending Gnulib" chapter to manual.
19042         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19043         chapter.
19044         (Extending Gnulib): New chapter.
19045         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19046         chapter.
19047
19048 2010-06-09  Bruno Haible  <bruno@clisp.org>
19049
19050         Avoid relocwrapper link errors due to gnulib replacement functions.
19051         * lib/areadlink.c: Use the system's malloc, realloc functions.
19052         (areadlink): Set errno to ENOMEM explicitly.
19053         * modules/areadlink (Depends-on): Remove malloc-posix.
19054         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19055
19056 2010-06-09  Bruno Haible  <bruno@clisp.org>
19057
19058         Avoid relocwrapper link errors due to gnulib replacement functions.
19059         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19060         * lib/malloca.c: Likewise.
19061         * lib/relocatable.c: Likewise.
19062         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19063         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19064         * lib/setenv.c: Use the system's malloc, realloc functions.
19065         * lib/strerror.c: Use the system's sprintf function.
19066         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19067
19068 2010-06-04  Bruno Haible  <bruno@clisp.org>
19069
19070         Prefer documented low-level autoconf macro names.
19071         * m4/lib-link.m4: Use m4_translit instead of translit.
19072         * m4/environ.m4: Likewise.
19073         * m4/mathfunc.m4: Likewise.
19074         * m4/onceonly.m4: Likewise.
19075         * m4/stdint.m4: Likewise.
19076         Suggested by Eric Blake.
19077
19078 2010-06-04  Martin Lambers  <marlam@marlam.de>
19079             Bruno Haible  <bruno@clisp.org>
19080
19081         havelib: Allow library names with '+' characters.
19082         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19083         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19084
19085 2010-06-09  Bruno Haible  <bruno@clisp.org>
19086
19087         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19088         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19089         realloc failed.
19090
19091 2010-06-08  Peter Simons  <simons@cryp.to>
19092
19093         maint.mk: make the news-check rule more configurable
19094         * top/maint.mk (news-check-lines-spec): New variable.
19095         (news-check): Use "sed -n 1,10p" in place of "head".
19096
19097 2010-06-07  Jim Meyering  <meyering@redhat.com>
19098
19099         do-release-commit-and-tag: fix typo in --help
19100         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19101
19102         regex: avoid new dead-code warning with gcc-4.6.0
19103         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19104         if-block containing a while-loop.  It's been unused for at least
19105         5 years.
19106
19107 2010-06-05  Bruno Haible  <bruno@clisp.org>
19108
19109         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19110         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19111
19112 2010-06-04  Bruno Haible  <bruno@clisp.org>
19113
19114         Update to GNU gettext 0.18.1.
19115         * modules/gettext (configure.ac): Require gettext infrastructure from
19116         version 0.18.1.
19117
19118 2010-06-03  Bruno Haible  <bruno@clisp.org>
19119
19120         Don't use AC_LIBOBJ with file names in subdirectories.
19121         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19122         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19123         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19124         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19125         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19126         gl_LIBUNISTRING_LIBSOURCE.
19127         (Makefile.am): Augment lib_SOURCES here, conditionally.
19128         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19129
19130 2010-06-03  Bruno Haible  <bruno@clisp.org>
19131
19132         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19133         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19134         expansion does not end with a newline.
19135         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19136         unnecessary newline.
19137
19138 2010-06-03  Bruno Haible  <bruno@clisp.org>
19139
19140         Reduce dependencies.
19141         * tests/test-quotearg.h: New file, extracted from
19142         tests/test-quotearg.c.
19143         * tests/test-quotearg-simple.c: New file, extracted from
19144         tests/test-quotearg.c.
19145         * tests/test-quotearg.c: Don't include <ctype.h>.
19146         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19147         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19148         use_quote_double_quotes, use_quotearg_colon): Moved to
19149         tests/test-quotearg.h.
19150         (results_g, flag_results, custom_quotes, custom_results): Moved
19151         to tests/test-quotearg-simple.c.
19152         (main): Moved the part that does not depend on gettext to
19153         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19154         performed.
19155         * modules/quotearg-simple: New file.
19156         * modules/quotearg-simple-tests: New file.
19157         * modules/quotearg (Depends-on): Add quotearg-simple.
19158         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19159         (Files): Add tests/test-quotearg.h.
19160         Reported by Paolo Bonzini.
19161
19162 2010-06-03  Bruno Haible  <bruno@clisp.org>
19163
19164         Reduce dependencies.
19165         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19166
19167 2010-06-03  Bruno Haible  <bruno@clisp.org>
19168
19169         time: Undefine more broken macros.
19170         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19171         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19172         Reported by Eric Blake.
19173
19174 2010-06-03  Bruno Haible  <bruno@clisp.org>
19175
19176         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19177         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19178         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19179         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19180         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19181         Reported by Ludovic Courtès <ludo@gnu.org>.
19182
19183 2010-06-02  Eric Blake  <eblake@redhat.com>
19184
19185         time: work with mingw + pthreads-win32 library
19186         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19187         if timespec is defined only in pthread.h.
19188         * modules/time (Makefile.am): Substitute it.
19189         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19190         <pthread.h>, when needed.
19191         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19192         from the library.
19193
19194 2010-05-31  Bruno Haible  <bruno@clisp.org>
19195
19196         Avoid expanding two macros in the wrong order.
19197         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19198         gl_LIBUNISTRING if it is defined.
19199         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19200         autoconf >= 2.64.
19201         Reported by Ludovic Courtès <ludo@gnu.org>.
19202
19203 2010-05-27  Jim Meyering  <meyering@redhat.com>
19204
19205         maint.mk: also prohibit "#undef" of always-defined symbols
19206         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19207         Allow more than one space before the symbol name.
19208         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19209         the regexp uses alternation.
19210
19211 2010-05-26  Eric Blake  <eblake@redhat.com>
19212
19213         maint.mk: avoid echo -e
19214         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19215         Convert all uses of echo -* to printf.
19216         Reported by Matthias Bolte.
19217
19218 2010-05-25  Bruno Haible  <bruno@clisp.org>
19219
19220         Update to GNU gettext 0.18, part 2.
19221         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19222         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19223
19224 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19225
19226         Add missing include in test-pwrite.c.
19227         * tests/test-pwrite.c: Include string.h, for strcmp.
19228
19229 2010-05-24  Bruno Haible  <bruno@clisp.org>
19230
19231         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19232
19233 2010-05-24  Bruno Haible  <bruno@clisp.org>
19234
19235         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19236         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19237         iconveh_error argument.
19238         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19239         U_STRCONV_TO_LOCALE.
19240         * lib/unistr/u16-strcoll.c: Likewise.
19241         * lib/unistr/u32-strcoll.c: Likewise.
19242         * modules/unistr/u8-strcoll (Depends-on): Add
19243         uniconv/u8-strconv-to-enc, localcharset. Remove
19244         uniconv/u8-strconv-to-locale.
19245         (configure.ac): Bump version number.
19246         * modules/unistr/u16-strcoll (Depends-on): Add
19247         uniconv/u16-strconv-to-enc, localcharset. Remove
19248         uniconv/u16-strconv-to-locale.
19249         (configure.ac): Bump version number.
19250         * modules/unistr/u32-strcoll (Depends-on): Add
19251         uniconv/u32-strconv-to-enc, localcharset. Remove
19252         uniconv/u32-strconv-to-locale.
19253         (configure.ac): Bump version number.
19254
19255 2010-05-24  Bruno Haible  <bruno@clisp.org>
19256
19257         Avoid a test failure on NetBSD 5.0.
19258         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19259         an iconv() bug.
19260
19261 2010-05-24  Bruno Haible  <bruno@clisp.org>
19262
19263         Adjust #include directive style.
19264         * modules/regex (Includes): Recommend to write <regex.h>.
19265
19266 2010-05-24  Bruno Haible  <bruno@clisp.org>
19267
19268         regex: Don't require alloca.
19269         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19270         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19271         only inside if (0).
19272
19273 2010-05-23  Jim Meyering  <meyering@redhat.com>
19274
19275         test-renameat.c: include <sys/stat.h>
19276         * tests/test-renameat.c: Include <sys/stat.h>; required for
19277         definition of S_IS* macros.
19278
19279 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19280
19281         Update maintainer documentation for 'relocatable-prog' module.
19282         * doc/relocatable-maint.texi: Update.
19283         Comments by Bruno Haible.
19284
19285 2010-05-23  Bruno Haible  <bruno@clisp.org>
19286
19287         git-merge-changelog: Enable --split-merged-entry by default.
19288         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19289         (usage): Don't mention this option any more.
19290         Reported by Ralf Wildenhues.
19291
19292 2010-05-23  Jim Meyering  <meyering@redhat.com>
19293
19294         test-pwrite: do not leave behind a test file named "out"
19295         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19296         The trivial-looking use of init.sh is really necessary.
19297         It ensures that the temporary file, "out", is created in
19298         a temporary directory, and removed upon termination.
19299         * tests/test-pwrite.sh: Re-add file.
19300         * modules/pwrite-tests: Reference it.
19301
19302 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19303
19304         Fix output redirection buglet in init.sh.
19305         * tests/init.sh: Fix redirection of stderr.
19306
19307 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19308
19309         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19310
19311 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19312
19313         * modules/valgrind-tests: New file.
19314         * m4/valgrind-tests.m4: New file.
19315         * doc/valgrind-tests.texi: New file.
19316         * doc/gnulib.texi (Running self-tests under valgrind): New
19317         section.
19318
19319 2010-05-19  Bruno Haible  <bruno@clisp.org>
19320
19321         Clean up dead code in recent commit.
19322         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19323         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19324         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19325         Suggested by Paolo Bonzini.
19326
19327 2010-05-19  Bruno Haible  <bruno@clisp.org>
19328
19329         Avoid valgrind error reports from libunistring.
19330         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19331         * modules/libunistring (Files): Add it.
19332         * modules/libunistring-optional (Files): Likewise.
19333
19334 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19335             Bruno Haible  <bruno@clisp.org>
19336
19337         New module 'libunistring-optional'.
19338         * modules/libunistring-optional: New file.
19339         * m4/libunistring-base.m4: New file.
19340         * m4/libunistring-optional.m4: New file.
19341         * lib/unicase.in.h: Renamed from lib/unicase.h.
19342         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19343         * lib/unictype.in.h: Renamed from lib/unictype.h.
19344         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19345         * lib/uniname.in.h: Renamed from lib/uniname.h.
19346         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19347         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19348         * lib/unistr.in.h: Renamed from lib/unistr.h.
19349         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19350         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19351         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19352         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19353         gl_LIBUNISTRING. If the library was found, determine the installed
19354         version and set LIBUNISTRING_VERSION.
19355         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19356         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19357         handle a configuration option --with-included-libunistring.
19358         * modules/libunistring (Files): Add m4/absolute-header.m4.
19359         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19360         Add m4/libunistring-base.m4.
19361         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19362         (Makefile.am): Build unicase.h from unicase.in.h.
19363         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19364         Add m4/libunistring-base.m4.
19365         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19366         (Makefile.am): Build uniconv.h from uniconv.in.h.
19367         * modules/unictype/base (Files): Use unictype.in.h instead of
19368         unictype.h. Add m4/libunistring-base.m4.
19369         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19370         (Makefile.am): Build unictype.h from unictype.in.h.
19371         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19372         Add m4/libunistring-base.m4.
19373         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19374         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19375         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19376         Add m4/libunistring-base.m4.
19377         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19378         (Makefile.am): Build uniname.h from uniname.in.h.
19379         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19380         Add m4/libunistring-base.m4.
19381         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19382         (Makefile.am): Build uninorm.h from uninorm.in.h.
19383         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19384         unistdio.h. Add m4/libunistring-base.m4.
19385         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19386         (Makefile.am): Build unistdio.h from unistdio.in.h.
19387         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19388         Add m4/libunistring-base.m4.
19389         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19390         (Makefile.am): Build unistr.h from unistr.in.h.
19391         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19392         Add m4/libunistring-base.m4.
19393         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19394         (Makefile.am): Build unitypes.h from unitypes.in.h.
19395         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19396         Add m4/libunistring-base.m4.
19397         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19398         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19399         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19400         uniwidth.h. Add m4/libunistring-base.m4.
19401         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19402         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19403         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19404         instead of augmenting lib_SOURCES.
19405         * modules/unicase/empty-suffix-context: Likewise.
19406         * modules/unicase/locale-language: Likewise.
19407         * modules/unicase/tolower: Likewise.
19408         * modules/unicase/totitle: Likewise.
19409         * modules/unicase/toupper: Likewise.
19410         * modules/unicase/u8-casecmp: Likewise.
19411         * modules/unicase/u8-casecoll: Likewise.
19412         * modules/unicase/u8-casefold: Likewise.
19413         * modules/unicase/u8-casexfrm: Likewise.
19414         * modules/unicase/u8-ct-casefold: Likewise.
19415         * modules/unicase/u8-ct-tolower: Likewise.
19416         * modules/unicase/u8-ct-totitle: Likewise.
19417         * modules/unicase/u8-ct-toupper: Likewise.
19418         * modules/unicase/u8-is-cased: Likewise.
19419         * modules/unicase/u8-is-casefolded: Likewise.
19420         * modules/unicase/u8-is-lowercase: Likewise.
19421         * modules/unicase/u8-is-titlecase: Likewise.
19422         * modules/unicase/u8-is-uppercase: Likewise.
19423         * modules/unicase/u8-prefix-context: Likewise.
19424         * modules/unicase/u8-suffix-context: Likewise.
19425         * modules/unicase/u8-tolower: Likewise.
19426         * modules/unicase/u8-totitle: Likewise.
19427         * modules/unicase/u8-toupper: Likewise.
19428         * modules/unicase/u16-casecmp: Likewise.
19429         * modules/unicase/u16-casecoll: Likewise.
19430         * modules/unicase/u16-casefold: Likewise.
19431         * modules/unicase/u16-casexfrm: Likewise.
19432         * modules/unicase/u16-ct-casefold: Likewise.
19433         * modules/unicase/u16-ct-tolower: Likewise.
19434         * modules/unicase/u16-ct-totitle: Likewise.
19435         * modules/unicase/u16-ct-toupper: Likewise.
19436         * modules/unicase/u16-is-cased: Likewise.
19437         * modules/unicase/u16-is-casefolded: Likewise.
19438         * modules/unicase/u16-is-lowercase: Likewise.
19439         * modules/unicase/u16-is-titlecase: Likewise.
19440         * modules/unicase/u16-is-uppercase: Likewise.
19441         * modules/unicase/u16-prefix-context: Likewise.
19442         * modules/unicase/u16-suffix-context: Likewise.
19443         * modules/unicase/u16-tolower: Likewise.
19444         * modules/unicase/u16-totitle: Likewise.
19445         * modules/unicase/u16-toupper: Likewise.
19446         * modules/unicase/u32-casecmp: Likewise.
19447         * modules/unicase/u32-casecoll: Likewise.
19448         * modules/unicase/u32-casefold: Likewise.
19449         * modules/unicase/u32-casexfrm: Likewise.
19450         * modules/unicase/u32-ct-casefold: Likewise.
19451         * modules/unicase/u32-ct-tolower: Likewise.
19452         * modules/unicase/u32-ct-totitle: Likewise.
19453         * modules/unicase/u32-ct-toupper: Likewise.
19454         * modules/unicase/u32-is-cased: Likewise.
19455         * modules/unicase/u32-is-casefolded: Likewise.
19456         * modules/unicase/u32-is-lowercase: Likewise.
19457         * modules/unicase/u32-is-titlecase: Likewise.
19458         * modules/unicase/u32-is-uppercase: Likewise.
19459         * modules/unicase/u32-prefix-context: Likewise.
19460         * modules/unicase/u32-suffix-context: Likewise.
19461         * modules/unicase/u32-tolower: Likewise.
19462         * modules/unicase/u32-totitle: Likewise.
19463         * modules/unicase/u32-toupper: Likewise.
19464         * modules/unicase/ulc-casecmp: Likewise.
19465         * modules/unicase/ulc-casecoll: Likewise.
19466         * modules/unicase/ulc-casexfrm: Likewise.
19467         * modules/uniconv/u8-conv-from-enc: Likewise.
19468         * modules/uniconv/u8-conv-to-enc: Likewise.
19469         * modules/uniconv/u8-strconv-from-enc: Likewise.
19470         * modules/uniconv/u8-strconv-from-locale: Likewise.
19471         * modules/uniconv/u8-strconv-to-enc: Likewise.
19472         * modules/uniconv/u8-strconv-to-locale: Likewise.
19473         * modules/uniconv/u16-conv-from-enc: Likewise.
19474         * modules/uniconv/u16-conv-to-enc: Likewise.
19475         * modules/uniconv/u16-strconv-from-enc: Likewise.
19476         * modules/uniconv/u16-strconv-from-locale: Likewise.
19477         * modules/uniconv/u16-strconv-to-enc: Likewise.
19478         * modules/uniconv/u16-strconv-to-locale: Likewise.
19479         * modules/uniconv/u32-conv-from-enc: Likewise.
19480         * modules/uniconv/u32-conv-to-enc: Likewise.
19481         * modules/uniconv/u32-strconv-from-enc: Likewise.
19482         * modules/uniconv/u32-strconv-from-locale: Likewise.
19483         * modules/uniconv/u32-strconv-to-enc: Likewise.
19484         * modules/uniconv/u32-strconv-to-locale: Likewise.
19485         * modules/unictype/bidicategory-byname: Likewise.
19486         * modules/unictype/bidicategory-name: Likewise.
19487         * modules/unictype/bidicategory-of: Likewise.
19488         * modules/unictype/bidicategory-test: Likewise.
19489         * modules/unictype/block-list: Likewise.
19490         * modules/unictype/block-test: Likewise.
19491         * modules/unictype/category-C: Likewise.
19492         * modules/unictype/category-Cc: Likewise.
19493         * modules/unictype/category-Cf: Likewise.
19494         * modules/unictype/category-Cn: Likewise.
19495         * modules/unictype/category-Co: Likewise.
19496         * modules/unictype/category-Cs: Likewise.
19497         * modules/unictype/category-L: Likewise.
19498         * modules/unictype/category-Ll: Likewise.
19499         * modules/unictype/category-Lm: Likewise.
19500         * modules/unictype/category-Lo: Likewise.
19501         * modules/unictype/category-Lt: Likewise.
19502         * modules/unictype/category-Lu: Likewise.
19503         * modules/unictype/category-M: Likewise.
19504         * modules/unictype/category-Mc: Likewise.
19505         * modules/unictype/category-Me: Likewise.
19506         * modules/unictype/category-Mn: Likewise.
19507         * modules/unictype/category-N: Likewise.
19508         * modules/unictype/category-Nd: Likewise.
19509         * modules/unictype/category-Nl: Likewise.
19510         * modules/unictype/category-No: Likewise.
19511         * modules/unictype/category-P: Likewise.
19512         * modules/unictype/category-Pc: Likewise.
19513         * modules/unictype/category-Pd: Likewise.
19514         * modules/unictype/category-Pe: Likewise.
19515         * modules/unictype/category-Pf: Likewise.
19516         * modules/unictype/category-Pi: Likewise.
19517         * modules/unictype/category-Po: Likewise.
19518         * modules/unictype/category-Ps: Likewise.
19519         * modules/unictype/category-S: Likewise.
19520         * modules/unictype/category-Sc: Likewise.
19521         * modules/unictype/category-Sk: Likewise.
19522         * modules/unictype/category-Sm: Likewise.
19523         * modules/unictype/category-So: Likewise.
19524         * modules/unictype/category-Z: Likewise.
19525         * modules/unictype/category-Zl: Likewise.
19526         * modules/unictype/category-Zp: Likewise.
19527         * modules/unictype/category-Zs: Likewise.
19528         * modules/unictype/category-and: Likewise.
19529         * modules/unictype/category-and-not: Likewise.
19530         * modules/unictype/category-byname: Likewise.
19531         * modules/unictype/category-name: Likewise.
19532         * modules/unictype/category-none: Likewise.
19533         * modules/unictype/category-of: Likewise.
19534         * modules/unictype/category-or: Likewise.
19535         * modules/unictype/category-test: Likewise.
19536         * modules/unictype/combining-class: Likewise.
19537         * modules/unictype/ctype-alnum: Likewise.
19538         * modules/unictype/ctype-alpha: Likewise.
19539         * modules/unictype/ctype-blank: Likewise.
19540         * modules/unictype/ctype-cntrl: Likewise.
19541         * modules/unictype/ctype-digit: Likewise.
19542         * modules/unictype/ctype-graph: Likewise.
19543         * modules/unictype/ctype-lower: Likewise.
19544         * modules/unictype/ctype-print: Likewise.
19545         * modules/unictype/ctype-punct: Likewise.
19546         * modules/unictype/ctype-space: Likewise.
19547         * modules/unictype/ctype-upper: Likewise.
19548         * modules/unictype/ctype-xdigit: Likewise.
19549         * modules/unictype/decimal-digit: Likewise.
19550         * modules/unictype/digit: Likewise.
19551         * modules/unictype/mirror: Likewise.
19552         * modules/unictype/numeric: Likewise.
19553         * modules/unictype/property-alphabetic: Likewise.
19554         * modules/unictype/property-ascii-hex-digit: Likewise.
19555         * modules/unictype/property-bidi-arabic-digit: Likewise.
19556         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19557         * modules/unictype/property-bidi-block-separator: Likewise.
19558         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19559         * modules/unictype/property-bidi-common-separator: Likewise.
19560         * modules/unictype/property-bidi-control: Likewise.
19561         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19562         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19563         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19564         * modules/unictype/property-bidi-european-digit: Likewise.
19565         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19566         * modules/unictype/property-bidi-left-to-right: Likewise.
19567         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19568         * modules/unictype/property-bidi-other-neutral: Likewise.
19569         * modules/unictype/property-bidi-pdf: Likewise.
19570         * modules/unictype/property-bidi-segment-separator: Likewise.
19571         * modules/unictype/property-bidi-whitespace: Likewise.
19572         * modules/unictype/property-byname: Likewise.
19573         * modules/unictype/property-combining: Likewise.
19574         * modules/unictype/property-composite: Likewise.
19575         * modules/unictype/property-currency-symbol: Likewise.
19576         * modules/unictype/property-dash: Likewise.
19577         * modules/unictype/property-decimal-digit: Likewise.
19578         * modules/unictype/property-default-ignorable-code-point: Likewise.
19579         * modules/unictype/property-deprecated: Likewise.
19580         * modules/unictype/property-diacritic: Likewise.
19581         * modules/unictype/property-extender: Likewise.
19582         * modules/unictype/property-format-control: Likewise.
19583         * modules/unictype/property-grapheme-base: Likewise.
19584         * modules/unictype/property-grapheme-extend: Likewise.
19585         * modules/unictype/property-grapheme-link: Likewise.
19586         * modules/unictype/property-hex-digit: Likewise.
19587         * modules/unictype/property-hyphen: Likewise.
19588         * modules/unictype/property-id-continue: Likewise.
19589         * modules/unictype/property-id-start: Likewise.
19590         * modules/unictype/property-ideographic: Likewise.
19591         * modules/unictype/property-ids-binary-operator: Likewise.
19592         * modules/unictype/property-ids-trinary-operator: Likewise.
19593         * modules/unictype/property-ignorable-control: Likewise.
19594         * modules/unictype/property-iso-control: Likewise.
19595         * modules/unictype/property-join-control: Likewise.
19596         * modules/unictype/property-left-of-pair: Likewise.
19597         * modules/unictype/property-line-separator: Likewise.
19598         * modules/unictype/property-logical-order-exception: Likewise.
19599         * modules/unictype/property-lowercase: Likewise.
19600         * modules/unictype/property-math: Likewise.
19601         * modules/unictype/property-non-break: Likewise.
19602         * modules/unictype/property-not-a-character: Likewise.
19603         * modules/unictype/property-numeric: Likewise.
19604         * modules/unictype/property-other-alphabetic: Likewise.
19605         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19606         * modules/unictype/property-other-grapheme-extend: Likewise.
19607         * modules/unictype/property-other-id-continue: Likewise.
19608         * modules/unictype/property-other-id-start: Likewise.
19609         * modules/unictype/property-other-lowercase: Likewise.
19610         * modules/unictype/property-other-math: Likewise.
19611         * modules/unictype/property-other-uppercase: Likewise.
19612         * modules/unictype/property-paired-punctuation: Likewise.
19613         * modules/unictype/property-paragraph-separator: Likewise.
19614         * modules/unictype/property-pattern-syntax: Likewise.
19615         * modules/unictype/property-pattern-white-space: Likewise.
19616         * modules/unictype/property-private-use: Likewise.
19617         * modules/unictype/property-punctuation: Likewise.
19618         * modules/unictype/property-quotation-mark: Likewise.
19619         * modules/unictype/property-radical: Likewise.
19620         * modules/unictype/property-sentence-terminal: Likewise.
19621         * modules/unictype/property-soft-dotted: Likewise.
19622         * modules/unictype/property-space: Likewise.
19623         * modules/unictype/property-terminal-punctuation: Likewise.
19624         * modules/unictype/property-test: Likewise.
19625         * modules/unictype/property-titlecase: Likewise.
19626         * modules/unictype/property-unassigned-code-value: Likewise.
19627         * modules/unictype/property-unified-ideograph: Likewise.
19628         * modules/unictype/property-uppercase: Likewise.
19629         * modules/unictype/property-variation-selector: Likewise.
19630         * modules/unictype/property-white-space: Likewise.
19631         * modules/unictype/property-xid-continue: Likewise.
19632         * modules/unictype/property-xid-start: Likewise.
19633         * modules/unictype/property-zero-width: Likewise.
19634         * modules/unictype/scripts: Likewise.
19635         * modules/unictype/syntax-c-ident: Likewise.
19636         * modules/unictype/syntax-c-whitespace: Likewise.
19637         * modules/unictype/syntax-java-ident: Likewise.
19638         * modules/unictype/syntax-java-whitespace: Likewise.
19639         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19640         * modules/unilbrk/u8-width-linebreaks: Likewise.
19641         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19642         * modules/unilbrk/u16-width-linebreaks: Likewise.
19643         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19644         * modules/unilbrk/u32-width-linebreaks: Likewise.
19645         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19646         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19647         * modules/uniname/uniname: Likewise.
19648         * modules/uninorm/canonical-decomposition: Likewise.
19649         * modules/uninorm/composition: Likewise.
19650         * modules/uninorm/decomposing-form: Likewise.
19651         * modules/uninorm/decomposition: Likewise.
19652         * modules/uninorm/filter: Likewise.
19653         * modules/uninorm/nfc: Likewise.
19654         * modules/uninorm/nfd: Likewise.
19655         * modules/uninorm/nfkc: Likewise.
19656         * modules/uninorm/nfkd: Likewise.
19657         * modules/uninorm/u8-normalize: Likewise.
19658         * modules/uninorm/u8-normcmp: Likewise.
19659         * modules/uninorm/u8-normcoll: Likewise.
19660         * modules/uninorm/u8-normxfrm: Likewise.
19661         * modules/uninorm/u16-normalize: Likewise.
19662         * modules/uninorm/u16-normcmp: Likewise.
19663         * modules/uninorm/u16-normcoll: Likewise.
19664         * modules/uninorm/u16-normxfrm: Likewise.
19665         * modules/uninorm/u32-normalize: Likewise.
19666         * modules/uninorm/u32-normcmp: Likewise.
19667         * modules/uninorm/u32-normcoll: Likewise.
19668         * modules/uninorm/u32-normxfrm: Likewise.
19669         * modules/unistdio/u8-asnprintf: Likewise.
19670         * modules/unistdio/u8-asprintf: Likewise.
19671         * modules/unistdio/u8-snprintf: Likewise.
19672         * modules/unistdio/u8-sprintf: Likewise.
19673         * modules/unistdio/u8-u8-asnprintf: Likewise.
19674         * modules/unistdio/u8-u8-asprintf: Likewise.
19675         * modules/unistdio/u8-u8-snprintf: Likewise.
19676         * modules/unistdio/u8-u8-sprintf: Likewise.
19677         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19678         * modules/unistdio/u8-u8-vasprintf: Likewise.
19679         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19680         * modules/unistdio/u8-u8-vsprintf: Likewise.
19681         * modules/unistdio/u8-vasnprintf: Likewise.
19682         * modules/unistdio/u8-vasprintf: Likewise.
19683         * modules/unistdio/u8-vsnprintf: Likewise.
19684         * modules/unistdio/u8-vsprintf: Likewise.
19685         * modules/unistdio/u16-asnprintf: Likewise.
19686         * modules/unistdio/u16-asprintf: Likewise.
19687         * modules/unistdio/u16-snprintf: Likewise.
19688         * modules/unistdio/u16-sprintf: Likewise.
19689         * modules/unistdio/u16-u16-asnprintf: Likewise.
19690         * modules/unistdio/u16-u16-asprintf: Likewise.
19691         * modules/unistdio/u16-u16-snprintf: Likewise.
19692         * modules/unistdio/u16-u16-sprintf: Likewise.
19693         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19694         * modules/unistdio/u16-u16-vasprintf: Likewise.
19695         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19696         * modules/unistdio/u16-u16-vsprintf: Likewise.
19697         * modules/unistdio/u16-vasnprintf: Likewise.
19698         * modules/unistdio/u16-vasprintf: Likewise.
19699         * modules/unistdio/u16-vsnprintf: Likewise.
19700         * modules/unistdio/u16-vsprintf: Likewise.
19701         * modules/unistdio/u32-asnprintf: Likewise.
19702         * modules/unistdio/u32-asprintf: Likewise.
19703         * modules/unistdio/u32-snprintf: Likewise.
19704         * modules/unistdio/u32-sprintf: Likewise.
19705         * modules/unistdio/u32-u32-asnprintf: Likewise.
19706         * modules/unistdio/u32-u32-asprintf: Likewise.
19707         * modules/unistdio/u32-u32-snprintf: Likewise.
19708         * modules/unistdio/u32-u32-sprintf: Likewise.
19709         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19710         * modules/unistdio/u32-u32-vasprintf: Likewise.
19711         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19712         * modules/unistdio/u32-u32-vsprintf: Likewise.
19713         * modules/unistdio/u32-vasnprintf: Likewise.
19714         * modules/unistdio/u32-vasprintf: Likewise.
19715         * modules/unistdio/u32-vsnprintf: Likewise.
19716         * modules/unistdio/u32-vsprintf: Likewise.
19717         * modules/unistdio/ulc-asnprintf: Likewise.
19718         * modules/unistdio/ulc-asprintf: Likewise.
19719         * modules/unistdio/ulc-fprintf: Likewise.
19720         * modules/unistdio/ulc-snprintf: Likewise.
19721         * modules/unistdio/ulc-sprintf: Likewise.
19722         * modules/unistdio/ulc-vasnprintf: Likewise.
19723         * modules/unistdio/ulc-vasprintf: Likewise.
19724         * modules/unistdio/ulc-vfprintf: Likewise.
19725         * modules/unistdio/ulc-vsnprintf: Likewise.
19726         * modules/unistdio/ulc-vsprintf: Likewise.
19727         * modules/unistr/u8-check: Likewise.
19728         * modules/unistr/u8-chr: Likewise.
19729         * modules/unistr/u8-cmp: Likewise.
19730         * modules/unistr/u8-cmp2: Likewise.
19731         * modules/unistr/u8-cpy: Likewise.
19732         * modules/unistr/u8-cpy-alloc: Likewise.
19733         * modules/unistr/u8-endswith: Likewise.
19734         * modules/unistr/u8-mblen: Likewise.
19735         * modules/unistr/u8-mbsnlen: Likewise.
19736         * modules/unistr/u8-mbtouc: Likewise.
19737         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19738         * modules/unistr/u8-mbtoucr: Likewise.
19739         * modules/unistr/u8-move: Likewise.
19740         * modules/unistr/u8-next: Likewise.
19741         * modules/unistr/u8-prev: Likewise.
19742         * modules/unistr/u8-set: Likewise.
19743         * modules/unistr/u8-startswith: Likewise.
19744         * modules/unistr/u8-stpcpy: Likewise.
19745         * modules/unistr/u8-stpncpy: Likewise.
19746         * modules/unistr/u8-strcat: Likewise.
19747         * modules/unistr/u8-strchr: Likewise.
19748         * modules/unistr/u8-strcmp: Likewise.
19749         * modules/unistr/u8-strcoll: Likewise.
19750         * modules/unistr/u8-strcpy: Likewise.
19751         * modules/unistr/u8-strcspn: Likewise.
19752         * modules/unistr/u8-strdup: Likewise.
19753         * modules/unistr/u8-strlen: Likewise.
19754         * modules/unistr/u8-strmblen: Likewise.
19755         * modules/unistr/u8-strmbtouc: Likewise.
19756         * modules/unistr/u8-strncat: Likewise.
19757         * modules/unistr/u8-strncmp: Likewise.
19758         * modules/unistr/u8-strncpy: Likewise.
19759         * modules/unistr/u8-strnlen: Likewise.
19760         * modules/unistr/u8-strpbrk: Likewise.
19761         * modules/unistr/u8-strrchr: Likewise.
19762         * modules/unistr/u8-strspn: Likewise.
19763         * modules/unistr/u8-strstr: Likewise.
19764         * modules/unistr/u8-strtok: Likewise.
19765         * modules/unistr/u8-to-u16: Likewise.
19766         * modules/unistr/u8-to-u32: Likewise.
19767         * modules/unistr/u8-uctomb: Likewise.
19768         * modules/unistr/u16-check: Likewise.
19769         * modules/unistr/u16-chr: Likewise.
19770         * modules/unistr/u16-cmp: Likewise.
19771         * modules/unistr/u16-cmp2: Likewise.
19772         * modules/unistr/u16-cpy: Likewise.
19773         * modules/unistr/u16-cpy-alloc: Likewise.
19774         * modules/unistr/u16-endswith: Likewise.
19775         * modules/unistr/u16-mblen: Likewise.
19776         * modules/unistr/u16-mbsnlen: Likewise.
19777         * modules/unistr/u16-mbtouc: Likewise.
19778         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19779         * modules/unistr/u16-mbtoucr: Likewise.
19780         * modules/unistr/u16-move: Likewise.
19781         * modules/unistr/u16-next: Likewise.
19782         * modules/unistr/u16-prev: Likewise.
19783         * modules/unistr/u16-set: Likewise.
19784         * modules/unistr/u16-startswith: Likewise.
19785         * modules/unistr/u16-stpcpy: Likewise.
19786         * modules/unistr/u16-stpncpy: Likewise.
19787         * modules/unistr/u16-strcat: Likewise.
19788         * modules/unistr/u16-strchr: Likewise.
19789         * modules/unistr/u16-strcmp: Likewise.
19790         * modules/unistr/u16-strcoll: Likewise.
19791         * modules/unistr/u16-strcpy: Likewise.
19792         * modules/unistr/u16-strcspn: Likewise.
19793         * modules/unistr/u16-strdup: Likewise.
19794         * modules/unistr/u16-strlen: Likewise.
19795         * modules/unistr/u16-strmblen: Likewise.
19796         * modules/unistr/u16-strmbtouc: Likewise.
19797         * modules/unistr/u16-strncat: Likewise.
19798         * modules/unistr/u16-strncmp: Likewise.
19799         * modules/unistr/u16-strncpy: Likewise.
19800         * modules/unistr/u16-strnlen: Likewise.
19801         * modules/unistr/u16-strpbrk: Likewise.
19802         * modules/unistr/u16-strrchr: Likewise.
19803         * modules/unistr/u16-strspn: Likewise.
19804         * modules/unistr/u16-strstr: Likewise.
19805         * modules/unistr/u16-strtok: Likewise.
19806         * modules/unistr/u16-to-u32: Likewise.
19807         * modules/unistr/u16-to-u8: Likewise.
19808         * modules/unistr/u16-uctomb: Likewise.
19809         * modules/unistr/u32-check: Likewise.
19810         * modules/unistr/u32-chr: Likewise.
19811         * modules/unistr/u32-cmp: Likewise.
19812         * modules/unistr/u32-cmp2: Likewise.
19813         * modules/unistr/u32-cpy: Likewise.
19814         * modules/unistr/u32-cpy-alloc: Likewise.
19815         * modules/unistr/u32-endswith: Likewise.
19816         * modules/unistr/u32-mblen: Likewise.
19817         * modules/unistr/u32-mbsnlen: Likewise.
19818         * modules/unistr/u32-mbtouc: Likewise.
19819         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19820         * modules/unistr/u32-mbtoucr: Likewise.
19821         * modules/unistr/u32-move: Likewise.
19822         * modules/unistr/u32-next: Likewise.
19823         * modules/unistr/u32-prev: Likewise.
19824         * modules/unistr/u32-set: Likewise.
19825         * modules/unistr/u32-startswith: Likewise.
19826         * modules/unistr/u32-stpcpy: Likewise.
19827         * modules/unistr/u32-stpncpy: Likewise.
19828         * modules/unistr/u32-strcat: Likewise.
19829         * modules/unistr/u32-strchr: Likewise.
19830         * modules/unistr/u32-strcmp: Likewise.
19831         * modules/unistr/u32-strcoll: Likewise.
19832         * modules/unistr/u32-strcpy: Likewise.
19833         * modules/unistr/u32-strcspn: Likewise.
19834         * modules/unistr/u32-strdup: Likewise.
19835         * modules/unistr/u32-strlen: Likewise.
19836         * modules/unistr/u32-strmblen: Likewise.
19837         * modules/unistr/u32-strmbtouc: Likewise.
19838         * modules/unistr/u32-strncat: Likewise.
19839         * modules/unistr/u32-strncmp: Likewise.
19840         * modules/unistr/u32-strncpy: Likewise.
19841         * modules/unistr/u32-strnlen: Likewise.
19842         * modules/unistr/u32-strpbrk: Likewise.
19843         * modules/unistr/u32-strrchr: Likewise.
19844         * modules/unistr/u32-strspn: Likewise.
19845         * modules/unistr/u32-strstr: Likewise.
19846         * modules/unistr/u32-strtok: Likewise.
19847         * modules/unistr/u32-to-u16: Likewise.
19848         * modules/unistr/u32-to-u8: Likewise.
19849         * modules/unistr/u32-uctomb: Likewise.
19850         * modules/uniwbrk/u8-wordbreaks: Likewise.
19851         * modules/uniwbrk/u16-wordbreaks: Likewise.
19852         * modules/uniwbrk/u32-wordbreaks: Likewise.
19853         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19854         * modules/uniwbrk/wordbreak-property: Likewise.
19855         * modules/uniwidth/u8-strwidth: Likewise.
19856         * modules/uniwidth/u8-width: Likewise.
19857         * modules/uniwidth/u16-strwidth: Likewise.
19858         * modules/uniwidth/u16-width: Likewise.
19859         * modules/uniwidth/u32-strwidth: Likewise.
19860         * modules/uniwidth/u32-width: Likewise.
19861         * modules/uniwidth/width: Likewise.
19862         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19863         with $(LIBUNISTRING).
19864         * modules/unicase/ignorable-tests: Likewise.
19865         * modules/unicase/locale-language-tests: Likewise.
19866         * modules/unicase/tolower-tests: Likewise.
19867         * modules/unicase/totitle-tests: Likewise.
19868         * modules/unicase/toupper-tests: Likewise.
19869         * modules/unicase/u8-casecmp-tests: Likewise.
19870         * modules/unicase/u8-casecoll-tests: Likewise.
19871         * modules/unicase/u8-casefold-tests: Likewise.
19872         * modules/unicase/u8-is-cased-tests: Likewise.
19873         * modules/unicase/u8-is-casefolded-tests: Likewise.
19874         * modules/unicase/u8-is-lowercase-tests: Likewise.
19875         * modules/unicase/u8-is-titlecase-tests: Likewise.
19876         * modules/unicase/u8-is-uppercase-tests: Likewise.
19877         * modules/unicase/u8-tolower-tests: Likewise.
19878         * modules/unicase/u8-totitle-tests: Likewise.
19879         * modules/unicase/u8-toupper-tests: Likewise.
19880         * modules/unicase/u16-casecmp-tests: Likewise.
19881         * modules/unicase/u16-casecoll-tests: Likewise.
19882         * modules/unicase/u16-casefold-tests: Likewise.
19883         * modules/unicase/u16-is-cased-tests: Likewise.
19884         * modules/unicase/u16-is-casefolded-tests: Likewise.
19885         * modules/unicase/u16-is-lowercase-tests: Likewise.
19886         * modules/unicase/u16-is-titlecase-tests: Likewise.
19887         * modules/unicase/u16-is-uppercase-tests: Likewise.
19888         * modules/unicase/u16-tolower-tests: Likewise.
19889         * modules/unicase/u16-totitle-tests: Likewise.
19890         * modules/unicase/u16-toupper-tests: Likewise.
19891         * modules/unicase/u32-casecmp-tests: Likewise.
19892         * modules/unicase/u32-casecoll-tests: Likewise.
19893         * modules/unicase/u32-casefold-tests: Likewise.
19894         * modules/unicase/u32-is-cased-tests: Likewise.
19895         * modules/unicase/u32-is-casefolded-tests: Likewise.
19896         * modules/unicase/u32-is-lowercase-tests: Likewise.
19897         * modules/unicase/u32-is-titlecase-tests: Likewise.
19898         * modules/unicase/u32-is-uppercase-tests: Likewise.
19899         * modules/unicase/u32-tolower-tests: Likewise.
19900         * modules/unicase/u32-totitle-tests: Likewise.
19901         * modules/unicase/u32-toupper-tests: Likewise.
19902         * modules/unicase/ulc-casecmp-tests: Likewise.
19903         * modules/unicase/ulc-casecoll-tests: Likewise.
19904         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19905         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19906         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19907         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19908         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19909         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19910         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19911         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19912         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19913         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19914         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19915         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19916         * modules/unictype/bidicategory-byname-tests: Likewise.
19917         * modules/unictype/bidicategory-name-tests: Likewise.
19918         * modules/unictype/bidicategory-of-tests: Likewise.
19919         * modules/unictype/bidicategory-test-tests: Likewise.
19920         * modules/unictype/block-list-tests: Likewise.
19921         * modules/unictype/block-of-tests: Likewise.
19922         * modules/unictype/block-test-tests: Likewise.
19923         * modules/unictype/category-C-tests: Likewise.
19924         * modules/unictype/category-Cc-tests: Likewise.
19925         * modules/unictype/category-Cf-tests: Likewise.
19926         * modules/unictype/category-Cn-tests: Likewise.
19927         * modules/unictype/category-Co-tests: Likewise.
19928         * modules/unictype/category-Cs-tests: Likewise.
19929         * modules/unictype/category-L-tests: Likewise.
19930         * modules/unictype/category-Ll-tests: Likewise.
19931         * modules/unictype/category-Lm-tests: Likewise.
19932         * modules/unictype/category-Lo-tests: Likewise.
19933         * modules/unictype/category-Lt-tests: Likewise.
19934         * modules/unictype/category-Lu-tests: Likewise.
19935         * modules/unictype/category-M-tests: Likewise.
19936         * modules/unictype/category-Mc-tests: Likewise.
19937         * modules/unictype/category-Me-tests: Likewise.
19938         * modules/unictype/category-Mn-tests: Likewise.
19939         * modules/unictype/category-N-tests: Likewise.
19940         * modules/unictype/category-Nd-tests: Likewise.
19941         * modules/unictype/category-Nl-tests: Likewise.
19942         * modules/unictype/category-No-tests: Likewise.
19943         * modules/unictype/category-P-tests: Likewise.
19944         * modules/unictype/category-Pc-tests: Likewise.
19945         * modules/unictype/category-Pd-tests: Likewise.
19946         * modules/unictype/category-Pe-tests: Likewise.
19947         * modules/unictype/category-Pf-tests: Likewise.
19948         * modules/unictype/category-Pi-tests: Likewise.
19949         * modules/unictype/category-Po-tests: Likewise.
19950         * modules/unictype/category-Ps-tests: Likewise.
19951         * modules/unictype/category-S-tests: Likewise.
19952         * modules/unictype/category-Sc-tests: Likewise.
19953         * modules/unictype/category-Sk-tests: Likewise.
19954         * modules/unictype/category-Sm-tests: Likewise.
19955         * modules/unictype/category-So-tests: Likewise.
19956         * modules/unictype/category-Z-tests: Likewise.
19957         * modules/unictype/category-Zl-tests: Likewise.
19958         * modules/unictype/category-Zp-tests: Likewise.
19959         * modules/unictype/category-Zs-tests: Likewise.
19960         * modules/unictype/category-and-not-tests: Likewise.
19961         * modules/unictype/category-and-tests: Likewise.
19962         * modules/unictype/category-byname-tests: Likewise.
19963         * modules/unictype/category-name-tests: Likewise.
19964         * modules/unictype/category-none-tests: Likewise.
19965         * modules/unictype/category-of-tests: Likewise.
19966         * modules/unictype/category-or-tests: Likewise.
19967         * modules/unictype/category-test-withtable-tests: Likewise.
19968         * modules/unictype/combining-class-tests: Likewise.
19969         * modules/unictype/ctype-alnum-tests: Likewise.
19970         * modules/unictype/ctype-alpha-tests: Likewise.
19971         * modules/unictype/ctype-blank-tests: Likewise.
19972         * modules/unictype/ctype-cntrl-tests: Likewise.
19973         * modules/unictype/ctype-digit-tests: Likewise.
19974         * modules/unictype/ctype-graph-tests: Likewise.
19975         * modules/unictype/ctype-lower-tests: Likewise.
19976         * modules/unictype/ctype-print-tests: Likewise.
19977         * modules/unictype/ctype-punct-tests: Likewise.
19978         * modules/unictype/ctype-space-tests: Likewise.
19979         * modules/unictype/ctype-upper-tests: Likewise.
19980         * modules/unictype/ctype-xdigit-tests: Likewise.
19981         * modules/unictype/decimal-digit-tests: Likewise.
19982         * modules/unictype/digit-tests: Likewise.
19983         * modules/unictype/mirror-tests: Likewise.
19984         * modules/unictype/numeric-tests: Likewise.
19985         * modules/unictype/property-alphabetic-tests: Likewise.
19986         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19987         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19988         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19989         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19990         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19991         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19992         * modules/unictype/property-bidi-control-tests: Likewise.
19993         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19994         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19995         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19996         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19997         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19998         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19999         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20000         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20001         * modules/unictype/property-bidi-pdf-tests: Likewise.
20002         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20003         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20004         * modules/unictype/property-byname-tests: Likewise.
20005         * modules/unictype/property-combining-tests: Likewise.
20006         * modules/unictype/property-composite-tests: Likewise.
20007         * modules/unictype/property-currency-symbol-tests: Likewise.
20008         * modules/unictype/property-dash-tests: Likewise.
20009         * modules/unictype/property-decimal-digit-tests: Likewise.
20010         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20011         * modules/unictype/property-deprecated-tests: Likewise.
20012         * modules/unictype/property-diacritic-tests: Likewise.
20013         * modules/unictype/property-extender-tests: Likewise.
20014         * modules/unictype/property-format-control-tests: Likewise.
20015         * modules/unictype/property-grapheme-base-tests: Likewise.
20016         * modules/unictype/property-grapheme-extend-tests: Likewise.
20017         * modules/unictype/property-grapheme-link-tests: Likewise.
20018         * modules/unictype/property-hex-digit-tests: Likewise.
20019         * modules/unictype/property-hyphen-tests: Likewise.
20020         * modules/unictype/property-id-continue-tests: Likewise.
20021         * modules/unictype/property-id-start-tests: Likewise.
20022         * modules/unictype/property-ideographic-tests: Likewise.
20023         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20024         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20025         * modules/unictype/property-ignorable-control-tests: Likewise.
20026         * modules/unictype/property-iso-control-tests: Likewise.
20027         * modules/unictype/property-join-control-tests: Likewise.
20028         * modules/unictype/property-left-of-pair-tests: Likewise.
20029         * modules/unictype/property-line-separator-tests: Likewise.
20030         * modules/unictype/property-logical-order-exception-tests: Likewise.
20031         * modules/unictype/property-lowercase-tests: Likewise.
20032         * modules/unictype/property-math-tests: Likewise.
20033         * modules/unictype/property-non-break-tests: Likewise.
20034         * modules/unictype/property-not-a-character-tests: Likewise.
20035         * modules/unictype/property-numeric-tests: Likewise.
20036         * modules/unictype/property-other-alphabetic-tests: Likewise.
20037         * modules/unictype/property-other-default-ignorable-code-point-tests:
20038         Likewise.
20039         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20040         * modules/unictype/property-other-id-continue-tests: Likewise.
20041         * modules/unictype/property-other-id-start-tests: Likewise.
20042         * modules/unictype/property-other-lowercase-tests: Likewise.
20043         * modules/unictype/property-other-math-tests: Likewise.
20044         * modules/unictype/property-other-uppercase-tests: Likewise.
20045         * modules/unictype/property-paired-punctuation-tests: Likewise.
20046         * modules/unictype/property-paragraph-separator-tests: Likewise.
20047         * modules/unictype/property-pattern-syntax-tests: Likewise.
20048         * modules/unictype/property-pattern-white-space-tests: Likewise.
20049         * modules/unictype/property-private-use-tests: Likewise.
20050         * modules/unictype/property-punctuation-tests: Likewise.
20051         * modules/unictype/property-quotation-mark-tests: Likewise.
20052         * modules/unictype/property-radical-tests: Likewise.
20053         * modules/unictype/property-sentence-terminal-tests: Likewise.
20054         * modules/unictype/property-soft-dotted-tests: Likewise.
20055         * modules/unictype/property-space-tests: Likewise.
20056         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20057         * modules/unictype/property-test-tests: Likewise.
20058         * modules/unictype/property-titlecase-tests: Likewise.
20059         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20060         * modules/unictype/property-unified-ideograph-tests: Likewise.
20061         * modules/unictype/property-uppercase-tests: Likewise.
20062         * modules/unictype/property-variation-selector-tests: Likewise.
20063         * modules/unictype/property-white-space-tests: Likewise.
20064         * modules/unictype/property-xid-continue-tests: Likewise.
20065         * modules/unictype/property-xid-start-tests: Likewise.
20066         * modules/unictype/property-zero-width-tests: Likewise.
20067         * modules/unictype/scripts-tests: Likewise.
20068         * modules/unictype/syntax-c-ident-tests: Likewise.
20069         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20070         * modules/unictype/syntax-java-ident-tests: Likewise.
20071         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20072         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20073         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20074         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20075         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20076         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20077         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20078         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20079         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20080         * modules/uniname/uniname-tests: Likewise.
20081         * modules/uninorm/canonical-decomposition-tests: Likewise.
20082         * modules/uninorm/compat-decomposition-tests: Likewise.
20083         * modules/uninorm/composition-tests: Likewise.
20084         * modules/uninorm/decomposing-form-tests: Likewise.
20085         * modules/uninorm/decomposition-tests: Likewise.
20086         * modules/uninorm/filter-tests: Likewise.
20087         * modules/uninorm/nfc-tests: Likewise.
20088         * modules/uninorm/nfd-tests: Likewise.
20089         * modules/uninorm/nfkc-tests: Likewise.
20090         * modules/uninorm/nfkd-tests: Likewise.
20091         * modules/uninorm/u8-normcmp-tests: Likewise.
20092         * modules/uninorm/u8-normcoll-tests: Likewise.
20093         * modules/uninorm/u16-normcmp-tests: Likewise.
20094         * modules/uninorm/u16-normcoll-tests: Likewise.
20095         * modules/uninorm/u32-normcmp-tests: Likewise.
20096         * modules/uninorm/u32-normcoll-tests: Likewise.
20097         * modules/unistdio/u8-asnprintf-tests: Likewise.
20098         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20099         * modules/unistdio/u8-vasprintf-tests: Likewise.
20100         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20101         * modules/unistdio/u8-vsprintf-tests: Likewise.
20102         * modules/unistdio/u16-asnprintf-tests: Likewise.
20103         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20104         * modules/unistdio/u16-vasprintf-tests: Likewise.
20105         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20106         * modules/unistdio/u16-vsprintf-tests: Likewise.
20107         * modules/unistdio/u32-asnprintf-tests: Likewise.
20108         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20109         * modules/unistdio/u32-vasprintf-tests: Likewise.
20110         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20111         * modules/unistdio/u32-vsprintf-tests: Likewise.
20112         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20113         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20114         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20115         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20116         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20117         * modules/unistr/u8-check-tests: Likewise.
20118         * modules/unistr/u8-chr-tests: Likewise.
20119         * modules/unistr/u8-cmp-tests: Likewise.
20120         * modules/unistr/u8-cmp2-tests: Likewise.
20121         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20122         * modules/unistr/u8-cpy-tests: Likewise.
20123         * modules/unistr/u8-mblen-tests: Likewise.
20124         * modules/unistr/u8-mbsnlen-tests: Likewise.
20125         * modules/unistr/u8-mbtouc-tests: Likewise.
20126         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20127         * modules/unistr/u8-mbtoucr-tests: Likewise.
20128         * modules/unistr/u8-move-tests: Likewise.
20129         * modules/unistr/u8-next-tests: Likewise.
20130         * modules/unistr/u8-prev-tests: Likewise.
20131         * modules/unistr/u8-set-tests: Likewise.
20132         * modules/unistr/u8-stpcpy-tests: Likewise.
20133         * modules/unistr/u8-stpncpy-tests: Likewise.
20134         * modules/unistr/u8-strcat-tests: Likewise.
20135         * modules/unistr/u8-strcmp-tests: Likewise.
20136         * modules/unistr/u8-strcoll-tests: Likewise.
20137         * modules/unistr/u8-strcpy-tests: Likewise.
20138         * modules/unistr/u8-strdup-tests: Likewise.
20139         * modules/unistr/u8-strlen-tests: Likewise.
20140         * modules/unistr/u8-strmblen-tests: Likewise.
20141         * modules/unistr/u8-strmbtouc-tests: Likewise.
20142         * modules/unistr/u8-strncat-tests: Likewise.
20143         * modules/unistr/u8-strncmp-tests: Likewise.
20144         * modules/unistr/u8-strncpy-tests: Likewise.
20145         * modules/unistr/u8-strnlen-tests: Likewise.
20146         * modules/unistr/u8-to-u16-tests: Likewise.
20147         * modules/unistr/u8-to-u32-tests: Likewise.
20148         * modules/unistr/u8-uctomb-tests: Likewise.
20149         * modules/unistr/u16-check-tests: Likewise.
20150         * modules/unistr/u16-chr-tests: Likewise.
20151         * modules/unistr/u16-cmp-tests: Likewise.
20152         * modules/unistr/u16-cmp2-tests: Likewise.
20153         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20154         * modules/unistr/u16-cpy-tests: Likewise.
20155         * modules/unistr/u16-mblen-tests: Likewise.
20156         * modules/unistr/u16-mbsnlen-tests: Likewise.
20157         * modules/unistr/u16-mbtouc-tests: Likewise.
20158         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20159         * modules/unistr/u16-mbtoucr-tests: Likewise.
20160         * modules/unistr/u16-move-tests: Likewise.
20161         * modules/unistr/u16-next-tests: Likewise.
20162         * modules/unistr/u16-prev-tests: Likewise.
20163         * modules/unistr/u16-set-tests: Likewise.
20164         * modules/unistr/u16-stpcpy-tests: Likewise.
20165         * modules/unistr/u16-stpncpy-tests: Likewise.
20166         * modules/unistr/u16-strcat-tests: Likewise.
20167         * modules/unistr/u16-strcmp-tests: Likewise.
20168         * modules/unistr/u16-strcoll-tests: Likewise.
20169         * modules/unistr/u16-strcpy-tests: Likewise.
20170         * modules/unistr/u16-strdup-tests: Likewise.
20171         * modules/unistr/u16-strlen-tests: Likewise.
20172         * modules/unistr/u16-strmblen-tests: Likewise.
20173         * modules/unistr/u16-strmbtouc-tests: Likewise.
20174         * modules/unistr/u16-strncat-tests: Likewise.
20175         * modules/unistr/u16-strncmp-tests: Likewise.
20176         * modules/unistr/u16-strncpy-tests: Likewise.
20177         * modules/unistr/u16-strnlen-tests: Likewise.
20178         * modules/unistr/u16-to-u32-tests: Likewise.
20179         * modules/unistr/u16-to-u8-tests: Likewise.
20180         * modules/unistr/u16-uctomb-tests: Likewise.
20181         * modules/unistr/u32-check-tests: Likewise.
20182         * modules/unistr/u32-chr-tests: Likewise.
20183         * modules/unistr/u32-cmp-tests: Likewise.
20184         * modules/unistr/u32-cmp2-tests: Likewise.
20185         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20186         * modules/unistr/u32-cpy-tests: Likewise.
20187         * modules/unistr/u32-mblen-tests: Likewise.
20188         * modules/unistr/u32-mbsnlen-tests: Likewise.
20189         * modules/unistr/u32-mbtouc-tests: Likewise.
20190         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20191         * modules/unistr/u32-mbtoucr-tests: Likewise.
20192         * modules/unistr/u32-move-tests: Likewise.
20193         * modules/unistr/u32-next-tests: Likewise.
20194         * modules/unistr/u32-prev-tests: Likewise.
20195         * modules/unistr/u32-set-tests: Likewise.
20196         * modules/unistr/u32-stpcpy-tests: Likewise.
20197         * modules/unistr/u32-stpncpy-tests: Likewise.
20198         * modules/unistr/u32-strcat-tests: Likewise.
20199         * modules/unistr/u32-strcmp-tests: Likewise.
20200         * modules/unistr/u32-strcoll-tests: Likewise.
20201         * modules/unistr/u32-strcpy-tests: Likewise.
20202         * modules/unistr/u32-strdup-tests: Likewise.
20203         * modules/unistr/u32-strlen-tests: Likewise.
20204         * modules/unistr/u32-strmblen-tests: Likewise.
20205         * modules/unistr/u32-strmbtouc-tests: Likewise.
20206         * modules/unistr/u32-strncat-tests: Likewise.
20207         * modules/unistr/u32-strncmp-tests: Likewise.
20208         * modules/unistr/u32-strncpy-tests: Likewise.
20209         * modules/unistr/u32-strnlen-tests: Likewise.
20210         * modules/unistr/u32-to-u16-tests: Likewise.
20211         * modules/unistr/u32-to-u8-tests: Likewise.
20212         * modules/unistr/u32-uctomb-tests: Likewise.
20213         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20214         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20215         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20216         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20217         * modules/uniwidth/u8-strwidth-tests: Likewise.
20218         * modules/uniwidth/u8-width-tests: Likewise.
20219         * modules/uniwidth/u16-strwidth-tests: Likewise.
20220         * modules/uniwidth/u16-width-tests: Likewise.
20221         * modules/uniwidth/u32-strwidth-tests: Likewise.
20222         * modules/uniwidth/u32-width-tests: Likewise.
20223         * modules/uniwidth/width-tests: Likewise.
20224
20225 2010-05-18  Richard Jones  <rjones@redhat.com>
20226
20227         doc: users.txt: list hivex
20228         * users.txt: Add hivex.
20229
20230 2010-05-18  Richard Jones  <rjones@redhat.com>
20231
20232         doc: users.txt: list febootstrap
20233         * users.txt: Add febootstrap.
20234
20235 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20236
20237         bootstrap: fix an error when gnulib is not used as a git submodule
20238         * build-aux/bootstrap (gnulib_path): If its length is zero then
20239         assign "gnulib" to it.
20240         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20241
20242 2010-05-16  Bruno Haible  <bruno@clisp.org>
20243
20244         Avoid autoconf warnings about AM_ICONV.
20245         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20246         2.64.
20247
20248 2010-05-16  Bruno Haible  <bruno@clisp.org>
20249
20250         absolute-header: Make the macro usable in more situations.
20251         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20252         from gl_ABSOLUTE_HEADER.
20253         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20254
20255 2010-05-16  James Youngman  <jay@gnu.org>
20256
20257         doc: update users.txt
20258         * users.txt: Add CSSC.
20259
20260 2010-05-16  Jim Meyering  <meyering@redhat.com>
20261
20262         init.sh: fix an error in the previous change; add more comments
20263         * tests/init.sh: Compare exit code in loop against 9, not 2.
20264         Patch by Bruno Haible.
20265         Make the two tests more similar by adding an empty "then" clause.
20266         Add comments.
20267
20268         init.sh: avoid unnecessary shell re-exec
20269         * tests/init.sh: Improve the re-exec-required check to first test the
20270         current shell.  If it passes the test, do not search for a shell that
20271         does pass, and do not re-exec.  This test is particularly contorted to
20272         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20273         of $(...) evokes a syntax error and causes immediate shell exit with
20274         status 2.  Bruno Haible reported that the re-exec made it impossible
20275         to single-step through any init.sh-using script.
20276
20277 2010-05-16  Bruno Haible  <bruno@clisp.org>
20278
20279         Fix collision between gnulib's and libintl's printf replacements.
20280         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20281         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20282         (printf): When using GNU C, map the __printf__ function to rpl_printf
20283         via __asm__. When not using GNU C, define rpl_printf instead of
20284         __printf__.
20285         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20286         commit.
20287         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20288         commit.
20289         * m4/asm-underscore.m4: New file.
20290         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20291         * modules/stdio (Files): Add m4/asm-underscore.m4.
20292         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20293         Reported by Ben Pfaff.
20294
20295 2010-05-16  Bruno Haible  <bruno@clisp.org>
20296
20297         verify: Avoid skipping the test on openSUSE 11.0.
20298         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20299
20300 2010-05-13  Bruno Haible  <bruno@clisp.org>
20301
20302         Avoid useless warnings from G++.
20303         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20304         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20305         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20306
20307 2010-05-11  Jim Meyering  <meyering@redhat.com>
20308
20309         maint.mk: tweak preceding change
20310         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20311         regexps tighter by anchoring at EOL, and make the new group "shy"
20312         for slightly decreased overhead.
20313
20314 2010-05-11  Eric Blake  <eblake@redhat.com>
20315
20316         maint.mk: gnulib doesn't guarantee NSIG
20317         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20318
20319 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20320
20321         test-pwrite.c: Remove unused variable declaration.
20322         * tests/test-pwrite.c (main): Remove read_buf declaration.
20323
20324         Remove useless test-pwrite.sh file.
20325         * tests/test-pwrite.sh: Delete file.
20326         * modules/pwrite-tests: Remove references.
20327         Reported by Bruno Haible.
20328
20329 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20330
20331         init.sh: fix a typo
20332         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20333
20334 2010-05-10  Jim Meyering  <meyering@redhat.com>
20335
20336         maint.mk: avoid using a temporary file in the always-defined-macros check
20337         * top/maint.mk (.re-defmac): Remove rule.
20338         (gl_trap_): Remove definition.
20339         (sc_prohibit_always-defined_macros): Rewrite not to create and
20340         depend on a temporary file.  Instead, depend on GNU grep's ability
20341         to read a list of regular expressions from stdin when given "-f -".
20342
20343 2010-05-09  Bruno Haible  <bruno@clisp.org>
20344
20345         Update to GNU gettext 0.18, part 1.
20346         * m4/gettext.m4: Update to GNU gettext 0.18.
20347         * m4/intl.m4: Likewise.
20348         * m4/po.m4: Likewise.
20349         * modules/gettext (Files): Add m4/fcntl-o.m4.
20350         (configure.ac): Require gettext infrastructure from version 0.18.
20351
20352 2010-05-09  Jim Meyering  <meyering@redhat.com>
20353
20354         init.sh: enable MALLOC_PERTURB_
20355         * tests/init.sh: Enable glibc's malloc-perturbing option.
20356
20357         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20358         With my recent change in init.sh from the two-line form:
20359             -#   : ${srcdir=.}
20360             -#   . "$srcdir/init.sh"; path_prepend_ .
20361             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20362         I noticed that using the one-line form would cause this test
20363         to fail with a false-positive, or to stop working altogether,
20364         depending on whether help-version changed or all the tests did.
20365         * top/maint.mk (_hv_regex): Remove this definition.
20366         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20367         (_hv_regex_strong): Use a stronger regex to check for conformance.
20368         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20369         Give a separate diagnostic for lack of conforming use.
20370
20371         maint.mk: prohibit definition of symbols defined by gnulib
20372         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20373         definition of symbols defined by gnulib.
20374
20375 2010-05-09  Bruno Haible  <bruno@clisp.org>
20376
20377         acl: Avoid test failure on Cygwin-hosted mingw.
20378         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20379
20380 2010-05-09  Bruno Haible  <bruno@clisp.org>
20381
20382         error: Use system's fcntl function.
20383         * lib/error.c (fcntl): Undefine.
20384
20385 2010-05-09  Jim Meyering  <meyering@redhat.com>
20386
20387         verify: adjust formatting to be more consistent
20388         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20389         argument-list '('s, and after one comma.
20390
20391 2010-05-09  Bruno Haible  <bruno@clisp.org>
20392
20393         error: More reliable output on mingw.
20394         * lib/error.c: Include <windows.h>.
20395         (is_open): New function.
20396         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20397         defined.
20398
20399 2010-05-09  Bruno Haible  <bruno@clisp.org>
20400
20401         vasnprintf: Fix syntax errors in libintl build on mingw.
20402         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20403         pad_ourselves and prec_ourselves after use.
20404
20405 2010-05-08  Bruno Haible  <bruno@clisp.org>
20406
20407         * lib/config.charset: Update comments for Cygwin 1.7.
20408         * lib/localcharset.c: Likewise.
20409
20410 2010-05-07  Jim Meyering  <meyering@redhat.com>
20411
20412         init.sh: improve comments
20413         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20414         . "${srcdir=.}/init.sh"; path_prepend_ .
20415         Add a note about path_prepend_ and the alternative of using
20416         TESTS_ENVIRONMENT.
20417
20418 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20419
20420         exclude: Unescape hashed patterns in wildcard mode.
20421         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20422         to the hash list.
20423         * tests/test-exclude8.sh: New test case.
20424         * modules/exclude-tests: Add new test.
20425
20426 2010-05-05  Eric Blake  <eblake@redhat.com>
20427
20428         verify: automate tests
20429         * modules/verify-tests: New module.
20430         * tests/test-verify.sh: New file.
20431         * tests/test-verify.c: Guard each negative test with a unique id.
20432         Also avoid warning about unused left hand of comma expressions.
20433
20434 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20435
20436         Further improvements to verify.h, suggested by Eric Blake.
20437         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20438         the GL_* versions, to avoid collision with OpenGL.
20439         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20440         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20441         than testing merely whether it's defined.
20442
20443         Modify verify.h to pacify gcc -Wredundant_decls.
20444         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20445         These use the prefix "GL_" since they're likely to be useful elsewhere.
20446         We may need to break them out into a different .h file.
20447         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20448         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20449         of verify_function__.
20450
20451 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20452
20453         Tests for module pwrite.
20454         * modules/pwrite-tests: New file.
20455         * tests/test-pwrite.sh: New file.
20456         * tests/test-pwrite.c: New file.
20457
20458         New module pwrite.
20459         * lib/unistd.in.h (pwrite): New declaration.
20460         * lib/pwrite.c: New file, from glibc with modifications.
20461         * m4/pwrite.m4: New file.
20462         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20463         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20464         REPLACE_PWRITE.
20465         * modules/pwrite: New file.
20466         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20467         REPLACE_PWRITE.
20468         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20469         * doc/posix-functions/pwrite.texi: Mention the new module.
20470
20471 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20472
20473         pread: Update documentation.
20474         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20475
20476 2010-05-04  Eric Blake  <eblake@redhat.com>
20477
20478         docs: update cygwin progress
20479         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20480         this bug.
20481         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20482         Added in cygwin 1.7.2.
20483         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20484         Likewise.
20485         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20486         Likewise.
20487         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20488         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20489         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20490         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20491         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20492         Mention nproc module.
20493         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20494         bug in cygwin 1.7.5 addition.
20495         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20496         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20497         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20498         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20499         1.7.5.
20500         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20501         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20502         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20503         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20504         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20505         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20506         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20507         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20508         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20509         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20510         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20511         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20512         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20513         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20514         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20515         Likewise.
20516         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20517         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20518         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20519         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20520         Likewise.
20521         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20522         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20523         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20524         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20525         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20526         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20527         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20528         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20529         Likewise.
20530         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20531         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20532         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20533         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20534         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20535         Likewise.
20536         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20537         Likewise.
20538         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20539         Likewise.
20540         * doc/glibc-functions/xdrrec_endofrecord.texi
20541         (xdrrec_endofrecord): Likewise.
20542         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20543         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20544         Likewise.
20545         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20546         Likewise.
20547
20548 2010-05-04  Jim Meyering  <meyering@redhat.com>
20549
20550         gendocs.sh: make its "-s FILE" option more useful
20551         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20552         $PACKAGE to reflect the probably-different basename of "FILE".
20553
20554 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20555
20556         bootstrap: don't ignore download_po_files failure
20557         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20558         failure.
20559
20560 2010-05-03  Jim Meyering  <meyering@redhat.com>
20561
20562         maint.mk: allow to pass options to gendocs.sh
20563         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20564         (gendocs_options_): New overridable variable.
20565
20566         gnu-web-doc-update: don't ignore configure or build failure
20567         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20568
20569         announce-gen: backslash-escape '@'s in --help output
20570         * build-aux/announce-gen: Fix syntax errors.
20571
20572         maint.mk, announce-gen: allow project-specific announcement mail headers
20573         * top/maint.mk (translation_project_): Define default.
20574         (announcement_Cc_, announcement_mail_headers_): Likewise.
20575         (announcement): Invoke announce-gen with new --mail-headers option.
20576         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20577
20578         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20579         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20580         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20581         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20582         line in the "err2" output file when running "make check" in verbose
20583         mode (i.e., with set -x enabled).
20584
20585 2010-05-03  Bruno Haible  <bruno@clisp.org>
20586
20587         wctob: Fix for weird platforms.
20588         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20589         argument value.
20590
20591 2010-05-03  Jim Meyering  <meyering@redhat.com>
20592
20593         maint.mk: prohibit unwarranted use of <strings.h>
20594         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20595         strings.h in a file that does not also use strcasecmp, strncasecmp,
20596         ffs or ffsll.
20597
20598         maint.mk: remove obsolete comments
20599         * top/maint.mk: Remove stale, commented-out rules.
20600
20601 2010-05-02  Bruno Haible  <bruno@clisp.org>
20602
20603         wcwidth: Declare also when it's aliased.
20604         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20605         macro.
20606
20607 2010-05-02  Bruno Haible  <bruno@clisp.org>
20608
20609         Fix regression from 2010-04-25.
20610         * gnulib-tool (func_modules_transitive_closure): Check the status of
20611         all modules, not only of the tests that are of the form foo-tests where
20612         foo is a module.
20613
20614 2010-05-02  Bruno Haible  <bruno@clisp.org>
20615
20616         wctob: Work around nasty Cygwin 1.7.2 bug.
20617         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20618         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20619
20620 2010-05-01  Bruno Haible  <bruno@clisp.org>
20621
20622         fpurge: Sharper test.
20623         * tests/test-fpurge.c (main): Add one more ftell check.
20624         * modules/fpurge-tests (Depends-on): Add ftell.
20625         Suggested by Eric Blake.
20626
20627 2010-05-01  Bruno Haible  <bruno@clisp.org>
20628
20629         ftello: Another test.
20630         * tests/test-ftello3.c: New file.
20631         * modules/ftello-tests (Files): Add it.
20632         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20633         MOSTLYCLEANFILES.
20634
20635         ftell: Another test.
20636         * tests/test-ftell3.c: New file.
20637         * modules/ftell-tests (Files): Add it.
20638         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20639         MOSTLYCLEANFILES.
20640
20641 2010-05-01  Bruno Haible  <bruno@clisp.org>
20642
20643         ftell, ftello: Work around Solaris bug.
20644         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20645         * lib/ftello.c: Include stdio-impl.h.
20646         (ftello): On Solaris, when _IOWRT is set, compute the result without
20647         looking at _IOREAD.
20648         * modules/ftello (Files): Add lib/stdio-impl.h.
20649         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20650         * doc/posix-functions/ftello.texi: Likewise.
20651         Reported by Eric Blake.
20652
20653 2010-05-01  Bruno Haible  <bruno@clisp.org>
20654
20655         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20656         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20657         the _IOWRT flag is also set.
20658
20659 2010-05-01  Bruno Haible  <bruno@clisp.org>
20660
20661         Fix doc about a HP-UX stdio bug.
20662         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20663         * doc/posix-functions/ftello.texi: Likewise.
20664
20665 2010-05-01  Bruno Haible  <bruno@clisp.org>
20666
20667         lseek test: Fix failure on Solaris.
20668         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20669         output.
20670
20671 2010-04-30  Jim Meyering  <meyering@redhat.com>
20672
20673         bootstrap: don't ignore failure to generate po*/Makevars
20674         * build-aux/bootstrap (with_gettext): Don't ignore failure
20675         to create po/Makevars or runtime-po/Makevars.
20676
20677 2010-04-29  Eric Blake  <eblake@redhat.com>
20678
20679         headers: relax license to LGPLv2+
20680         * modules/fcntl-h (License): Relax license.
20681         * modules/getopt-posix (License): Likewise.
20682         * modules/locale (License): Likewise.
20683         * modules/math (License): Likewise.
20684         * modules/pty (License): Likewise.
20685         * modules/sched (License): Likewise.
20686         * modules/search (License): Likewise.
20687         * modules/spawn (License): Likewise.
20688         * modules/stdarg (License): Likewise.
20689         * modules/sysexits (License): Likewise.
20690
20691 2010-04-29  Jim Meyering  <meyering@redhat.com>
20692
20693         inttypes: relax license to LGPLv2+
20694         * modules/inttypes (License): Relax license.
20695
20696 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20697
20698         * top/maint.mk (indent): Run twice to produce idempotent results.
20699
20700 2010-04-28  Bruno Haible  <bruno@clisp.org>
20701
20702         getdate: Generate getdate.c in the source directory.
20703         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20704         MOSTLYCLEANFILES.
20705         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20706
20707 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20708
20709         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20710         is not declared as a const *; avoid warnings in that case.
20711
20712 2010-04-28  Eric Blake  <eblake@redhat.com>
20713
20714         canonicalize-lgpl: avoid compiler warning
20715         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20716         declaration' / 'extraneous semicolon' warning with some compilers.
20717         Reported by Andreas Gruenbacher.
20718
20719 2010-04-28  Jim Meyering  <meyering@redhat.com>
20720
20721         init.sh: ensure a more reliable exit status when exiting via trap
20722         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20723         Inspired by patches from Dmitry V. Levin.
20724         Also trap on signal 3 (SIGQUIT).
20725
20726 2010-04-27  Bruno Haible  <bruno@clisp.org>
20727
20728         Update doc about utimes().
20729         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20730         'utimens' module.
20731         Reported by Andreas Gruenbacher <agruen@suse.de>.
20732
20733 2010-04-27  Eric Blake  <eblake@redhat.com>
20734
20735         full-read, full-write: relax license
20736         * modules/full-read (License): Drop to LGPLv2+.
20737         * modules/full-write (License): Likewise.
20738         * modules/safe-read (License): Likewise.
20739         * modules/safe-write (License): Likewise.
20740
20741         pthread: mention library for linking
20742         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20743
20744 2010-04-27  Jim Meyering  <meyering@redhat.com>
20745
20746         maint.mk: fix a bug introduced in last change
20747         * top/maint.mk (gl_assured_headers_): Now that all names are on
20748         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20749         is not anchored to end of word, it should be adequate.
20750
20751         maint.mk: avoid side-effect in latest syntax-check
20752         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20753         to run commands via $(shell...), and hence to incur cost only when
20754         the new rule is actually run.
20755
20756         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20757         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20758         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20759         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20760         (gl_assured_headers_, az_, AZ_): Define.
20761         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20762
20763 2010-04-26  Jim Meyering  <jim@meyering.net>
20764             Bruno Haible  <bruno@clisp.org>
20765
20766         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20767         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20768         Prompted by an exchange with Gilles Espinasse.
20769
20770 2010-04-26  Jim Meyering  <meyering@redhat.com>
20771
20772         git-version-gen: aesthetic tweak
20773         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20774         so that the command remains on a single line.
20775
20776 2010-04-26  Eric Blake  <eblake@redhat.com>
20777
20778         git-version-gen: allow use on EBCDIC hosts
20779         * build-aux/git-version-gen (dirty): Use literal rather than tying
20780         ourselves to ascii.
20781         Reported by Steve Goetze.
20782
20783 2010-04-25  Bruno Haible  <bruno@clisp.org>
20784
20785         netdb: Add support for GNULIB_POSIXCHECK.
20786         * lib/netdb.in.h: Include warn-on-use.h.
20787         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20788         functions are used when GNULIB_POSIXCHECK is defined and the
20789         getaddrinfo module is not in use.
20790         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20791         freeaddrinfo, gai_strerror, getnameinfo are declared.
20792         * modules/netdb (Depends-on): Add warn-on-use.
20793         (Makefile.am): Include warn-on-use.h in netdb.h.
20794
20795 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20796
20797         build: avoid "make check" failure without .git/ directory
20798         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20799         there is no .git/ directory.
20800
20801 2010-04-25  Bruno Haible  <bruno@clisp.org>
20802
20803         ptsname: Fix misuse of ttyname_r.
20804         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20805         of errno.
20806
20807 2010-04-25  Bruno Haible  <bruno@clisp.org>
20808
20809         ttyname_r: Make it work on Solaris 10.
20810         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20811         if the system function has the POSIX declaration. Test whether the
20812         function fails if the buffer is less than 128 bytes large.
20813         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20814         system's ttyname_r function. Provide a reasonably large buffer.
20815         * modules/ttyname_r (Depends-on): Add extensions.
20816         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20817
20818 2010-04-25  Bruno Haible  <bruno@clisp.org>
20819
20820         Use the 'extensions' module for some more functions on Solaris.
20821         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20822         module.
20823         * doc/posix-functions/ctime_r.texi: Likewise.
20824         * doc/posix-functions/getgrgid_r.texi: Likewise.
20825         * doc/posix-functions/getgrnam_r.texi: Likewise.
20826         * doc/posix-functions/getpwnam_r.texi: Likewise.
20827         * doc/posix-functions/getpwuid_r.texi: Likewise.
20828         * doc/posix-functions/readdir_r.texi: Likewise.
20829         * doc/posix-functions/sigwait.texi: Likewise.
20830         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20831         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20832
20833 2010-04-25  Bruno Haible  <bruno@clisp.org>
20834
20835         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20836         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20837         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20838         * lib/ttyname_r.c: Include <limits.h>.
20839         (ttyname_r): Define using the system's ttyname_r function, if it exists
20840         and not on Solaris.
20841         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20842         set.
20843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20844         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20845         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20846         Reported by Simon Josefsson.
20847
20848 2010-04-25  Bruno Haible  <bruno@clisp.org>
20849
20850         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20851         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20852         * doc/posix-functions/ctime_r.texi: Likewise.
20853         * doc/posix-functions/getgrgid_r.texi: Likewise.
20854         * doc/posix-functions/getgrnam_r.texi: Likewise.
20855         * doc/posix-functions/getlogin_r.texi: Likewise.
20856         * doc/posix-functions/getpwnam_r.texi: Likewise.
20857         * doc/posix-functions/getpwuid_r.texi: Likewise.
20858         * doc/posix-functions/readdir_r.texi: Likewise.
20859         * doc/posix-functions/sigwait.texi: Likewise.
20860         * doc/posix-functions/ttyname_r.texi: Likewise.
20861         Reported by Simon Josefsson.
20862
20863 2010-04-25  Bruno Haible  <bruno@clisp.org>
20864
20865         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20866         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20867         also to --create-testdir.
20868         (func_acceptable): Don't consider the status of *-tests modules here.
20869         (func_modules_transitive_closure): Consider it here, before including a
20870         test module.
20871         (func_import, func_create_testdir): Set inc_all_direct_tests,
20872         inc_all_indirect_tests.
20873         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20874         --create-testdir and --create-megatestdir.
20875
20876 2010-04-25  Bruno Haible  <bruno@clisp.org>
20877
20878         gnulib-tool: Add --without-*-tests options.
20879         * gnulib-tool (func_usage): Document the --without-*-tests options.
20880         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20881         excl_unportable_tests): New variables.
20882         Fail if they are specified with --import or --update.
20883         (func_acceptable): Respect the excl_*_tests variables.
20884         (func_import): Set the excl_*_tests variables to empty.
20885
20886 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20887             Bruno Haible  <bruno@clisp.org>
20888
20889         Work around a MacOS X 10.4 bug with openpty.
20890         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20891         * tests/test-openpty.c (main): Close the master side explicitly.
20892
20893 2010-04-25  Bruno Haible  <bruno@clisp.org>
20894
20895         strnlen: Fix a C++ test error on MacOS X and Solaris.
20896         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20897         the function is not declared.
20898         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20899         Simon Josefsson.
20900
20901 2010-04-24  Bruno Haible  <bruno@clisp.org>
20902
20903         Avoid a gcc warning.
20904         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20905         of correct type for %08lx directive.
20906         Reported by Eric Blake.
20907
20908 2010-04-24  Bruno Haible  <bruno@clisp.org>
20909
20910         vasnprintf: Correct errno value in case of out-of-memory.
20911         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20912         or sprintf. Use the errno value from SNPRINTF or sprintf.
20913         Reported by Ian Beckwith <ianb@erislabs.net>.
20914
20915 2010-04-24  Bruno Haible  <bruno@clisp.org>
20916
20917         ansi-c++-opt: Find correct compiler when cross-compiling.
20918         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20919         AC_CHECK_PROGS.
20920         Reported by Simon Josefsson.
20921
20922 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20923
20924         vc-list-files: Add support for subversion
20925         * build-aux/vc-list-files: Use "svn list" to generate the list of
20926         files controlled by subversion.
20927
20928 2010-04-23  Jim Meyering  <meyering@redhat.com>
20929
20930         vc-list-files tests: convert to use init.sh
20931         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20932         path_prepend_.
20933         Use Exit, not exit.
20934         Use skip_ rather than open coding it.
20935         Remove trap set-up and compare definitions.
20936         * tests/test-vc-list-files-git.sh: Likewise.
20937         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20938
20939 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20940
20941         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20942         backup files.
20943
20944 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20945
20946         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20947
20948 2010-04-20  Eric Blake  <eblake@redhat.com>
20949
20950         tests: be robust to ignored SIGPIPE
20951         * tests/test-select-in.sh: Consume all output.
20952         * tests/test-lseek.sh: Check correct exit status, while avoiding
20953         EPIPE.
20954
20955 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20956             Bruno Haible  <bruno@clisp.org>
20957
20958         visibility: Don't use -fvisibility if it leads to a warning.
20959         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20960         yes, don't pretend that visibility works if it leads to a warning.
20961         Reported by Mike Gran <spk121@yahoo.com>.
20962
20963 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20964
20965         * build-aux/bootstrap: Use "git -h" for testing for supported options
20966         instead of "git --help".  The short-form option only shows a summary,
20967         and doesn't layout the full man page.  Grep for the full option name
20968         in the summary, too.
20969
20970 2010-04-19  Bruno Haible  <bruno@clisp.org>
20971
20972         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20973         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20974         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20975         mention of RELOCATABLE_STRIP.
20976         Reported by Sylvain Beucler <beuc@beuc.net>.
20977
20978 2010-04-19  Bruno Haible  <bruno@clisp.org>
20979
20980         * lib/diffseq.h: Fix typo in comment.
20981         Reported by Eric Blake.
20982
20983 2010-04-19  Bruno Haible  <bruno@clisp.org>
20984
20985         ioctl: Move autoconf macro to a .m4 file.
20986         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20987         * modules/ioctl (Files): Add it.
20988         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20989         Reported by Ian Beckwith <ianb@erislabs.net>.
20990
20991 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20992             Bruno Haible  <bruno@clisp.org>
20993
20994         diffseq: Accommodate use-case with abstract arrays.
20995         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20996         is not defined.
20997         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20998         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20999
21000 2010-04-18  Bruno Haible  <bruno@clisp.org>
21001
21002         * doc/posix-headers/stdbool.texi: More precise wording.
21003
21004 2010-04-17  Jim Meyering  <meyering@redhat.com>
21005
21006         maint.mk: use gnu-style indentation in an embedded perl script
21007         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21008         Rename variable: s/two/last_two_bytes/
21009
21010 2010-04-16  Eric Blake  <eblake@redhat.com>
21011
21012         test-stdbool: skip test that fails with Solaris CC
21013         * tests/test-stdbool.c (f): Skip test that causes compilation
21014         error under buggy C++ compiler.
21015         * lib/stdbool.in.h: Document the limitation.
21016         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21017
21018         setenv: allow compilation with C++
21019         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21020         register keyword.
21021
21022         stdint: allow test to pass with C++
21023         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21024
21025         getopt: allow compilation with C++
21026         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21027         struct.
21028         * lib/getopt.c (_getopt_internal_r): Use correct type.
21029         Reported by Dagobert Michelson, via Joel E. Denny.
21030
21031 2010-04-16  Bruno Haible  <bruno@clisp.org>
21032
21033         Override netdb.h always.
21034         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21035         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21036         Reported by Ludovic Courtès <ludo@gnu.org>.
21037
21038 2010-04-15  Bruno Haible  <bruno@clisp.org>
21039
21040         openpty: Fix mistake from 2010-03-21.
21041         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21042         Reported by Simon Josefsson.
21043
21044 2010-04-15  Eric Blake  <eblake@redhat.com>
21045
21046         test-forkpty: fix expected signature
21047         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21048         Reported by Simon Josefsson.
21049
21050 2010-04-15  Jim Meyering  <meyering@redhat.com>
21051
21052         maint.mk: texinfo_suffix_re_: correct the default regexp
21053         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21054
21055         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21056         make it configurable via texinfo_suffix_re_.
21057
21058 2010-04-14  Eric Blake  <eblake@redhat.com>
21059
21060         strtok_r: relax license to LGPLv2+
21061         * modules/strtok_r (License): Relax license.
21062         Reported by Matthias Bolte.
21063
21064 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21065
21066         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21067         version 1.4.4 by default instead of requiring the libgcrypt
21068         version used during build.  This makes it possible to use the
21069         application with older but still binary compatible libgcrypt
21070         versions.
21071
21072 2010-04-13  Eric Blake  <eblake@redhat.com>
21073
21074         getopt-gnu: match recent glibc fixes and posix ruling
21075         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21076         '+' handling, when requesting extensions.
21077         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21078         'W;' handling.
21079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21080         * doc/posix-functions/getopt.texi (getopt): Document this.
21081         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21082         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21083         Likewise.
21084
21085         getopt: merge bug fixes from glibc
21086         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21087         diagnostics.  Honor '+:' correctly.  Reject ';'.
21088
21089         getopt-posix: detect MacOS bug
21090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21091         optind when missing a required argument.
21092         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21093         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21094         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21095         Likewise.
21096
21097         getopt-posix: avoid spurious failure on Solaris
21098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21099         an indicator that setting optind=1 is sufficient for reset.
21100
21101         getopt-posix: avoid spurious failure on FreeBSD
21102         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21103         in POSIX mode, since the m4 test uses it.
21104
21105         gnulib-tool: silence warning on BSD sh
21106         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21107
21108 2010-04-13  Jim Meyering  <meyering@redhat.com>
21109
21110         doc: users.txt: GNU patch now uses gnulib
21111         * users.txt: Add patch.
21112
21113 2010-04-12  Jim Meyering  <meyering@redhat.com>
21114
21115         maint.mk: generate more concise timing data for syntax-check rules
21116         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21117         " done" from each line that reports a syntax-check test duration.
21118
21119 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21120
21121         git-version-gen: use "git update-index..." rather than "git status"
21122         * build-aux/git-version-gen: Use git update-index --refresh, not
21123         "git status".  With some versions of git, "git status" would fail
21124         to update the index and result in an unwarranted "-dirty" suffix.
21125
21126 2010-04-11  Jim Meyering  <meyering@redhat.com>
21127
21128         openat: correct formatting (no semantic change)
21129         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21130         Suggested by Bruno Haible.
21131
21132 2010-04-11  Bruno Haible  <bruno@clisp.org>
21133
21134         Stricter declaration checking in testdirs.
21135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21136         If for_tests is true, augment AM_CPPFLAGS to define
21137         GNULIB_STRICT_CHECKING.
21138         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21139         GNULIB_STRICT_CHECKING is defined, verify that the function is
21140         declared.
21141
21142 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21143             Bruno Haible  <bruno@clisp.org>
21144
21145         libunistring: Improve configure output.
21146         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21147         Don't say "consider installing GNU libunistring" when checking again
21148         with libiconv.
21149
21150 2010-04-11  Bruno Haible  <bruno@clisp.org>
21151
21152         libunistring: Correct value of $LTLIBUNISTRING.
21153         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21154         correct the value of $LTLIBUNISTRING.
21155
21156 2010-04-11  Bruno Haible  <bruno@clisp.org>
21157
21158         havelib: Add static libraries to LIBS in the right order.
21159         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21160         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21161
21162 2010-04-11  Bruno Haible  <bruno@clisp.org>
21163
21164         libunistring: Detect libunistring also when it depends on libiconv.
21165         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21166         the second AC_LIB_HAVE_LINKFLAGS invocation.
21167
21168 2010-04-11  James Youngman  <jay@gnu.org>
21169
21170         close-stream: declare local scalars to be "const"
21171         * lib/close-stream.c (close_stream): Make boolean variables const
21172         to document the fact that we set but do not change them.
21173
21174 2010-04-11  Bruno Haible  <bruno@clisp.org>
21175
21176         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21177
21178 2010-04-11  Jim Meyering  <meyering@redhat.com>
21179
21180         maint.mk: don't include dist-check.mk
21181         * top/maint.mk: Remove bogus include directive.
21182
21183         maint.mk: improve empty-line-at-EOF check
21184         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21185         solution, rather than tail+Perl-based one.  The latter would read
21186         a few kilobytes from the end of each file, and did not handle empty
21187         files properly.
21188
21189         maint.mk: print the elapsed time for each syntax-check rule
21190         * top/maint.mk (sc_m_rules_): Save start time in a file.
21191         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21192         (local-check): Interpose the .z rules
21193
21194 2010-04-11  Jim Meyering  <meyering@redhat.com>
21195
21196         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21197         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21198         empty file with one that ends in an empty line.
21199
21200 2010-04-10  Bruno Haible  <bruno@clisp.org>
21201
21202         mkdir: Make it work on mingw64.
21203         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21204         * lib/mkdir.c: Update comment.
21205         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21206
21207 2010-04-10  Bruno Haible  <bruno@clisp.org>
21208
21209         Don't override improved macro from newer autoconf.
21210         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21211         autoconf >= 2.62.
21212         Reported by Joel E. Denny <jdenny@clemson.edu>.
21213
21214 2010-04-10  Jim Meyering  <meyering@redhat.com>
21215
21216         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21217         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21218
21219         maint.mk: correct a diagnostic
21220         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21221         in diagnostic; now use $prohibit.
21222
21223 2010-04-10  Bruno Haible  <address@hidden>
21224
21225         fchownat: Fix a C++ test error on Solaris 8.
21226         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21227         the function does not exist.
21228
21229 2010-04-10  Bruno Haible  <bruno@clisp.org>
21230
21231         vasnprintf: Add more tests.
21232         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21233         (test_function): Test converting an invalid wide string.
21234
21235         vasnprintf: Correct handling of unconvertible wide string arguments.
21236         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21237         VASNPRINTF.
21238         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21239         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21240         smaller than the expected maximum need for the directive. Set errno to
21241         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21242         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21244         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21245         * modules/vasnprintf (Files): Add m4/printf.m4.
21246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21247
21248 2010-04-10  Bruno Haible  <bruno@clisp.org>
21249
21250         vasnprintf: Fix crash in %ls directive.
21251         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21252         string is passed as argument to %ls, with no precision and no width.
21253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21254
21255 2010-04-10  Bruno Haible  <bruno@clisp.org>
21256
21257         vasnprintf: Fix multiple test failures on mingw.
21258         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21259         _snprintf, or snwprintf, not _snwprintf.
21260
21261 2010-04-10  Bruno Haible  <bruno@clisp.org>
21262
21263         write: Fix a C++ test error on mingw.
21264         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21265
21266 2010-04-10  Bruno Haible  <bruno@clisp.org>
21267
21268         vasnprintf test: Reduce code duplication.
21269         * tests/test-vasnprintf.c (test_function): New function, extracted from
21270         test_vasnprintf.
21271         (test_vasnprintf, test_asnprintf): Invoke it.
21272
21273 2010-04-10  Bruno Haible  <bruno@clisp.org>
21274
21275         strnlen: Fix warning in C++ mode on MacOS X.
21276         * lib/string.in.h (strnlen): Use the modern idiom.
21277         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21278         defining strnlen as a macro already in <config.h>.
21279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21280         REPLACE_STRNLEN.
21281         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21282         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21283
21284 2010-04-08  James Youngman  <jay@gnu.org>
21285
21286         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21287         the example.
21288
21289 2010-04-09  Jim Meyering  <meyering@redhat.com>
21290
21291         maint.mk: print better diagnostic when there is no $(_hv_file)
21292         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21293         announce that when $(_hv_file) (aka help-version) does not exist.
21294
21295         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21296         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21297         not try to interpret its random input bytes.  Jarno Rajahalme reported
21298         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21299         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21300         (mktempd_): Likewise, just in case.
21301
21302         ftruncate: add two years to projected module removal date: 2012
21303         * m4/ftruncate.m4: Adjust comments.
21304
21305         ftruncate: mark module as obsolete; even MinGW provides it, now
21306         * modules/ftruncate (Status): Obsolete.
21307         (Notice): Say that.
21308         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21309         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21310
21311 2010-04-08  Bruno Haible  <bruno@clisp.org>
21312
21313         Fix side effects from tests-related modules.
21314         * modules/dprintf-posix (Comment): New section.
21315         * modules/fprintf-posix (Comment): Likewise.
21316         * modules/obstack-printf-posix (Comment): Likewise.
21317         * modules/printf-posix (Comment): Likewise.
21318         * modules/snprintf-posix (Comment): Likewise.
21319         * modules/sprintf-posix (Comment): Likewise.
21320         * modules/vasnprintf-posix (Comment): Likewise.
21321         * modules/vasprintf-posix (Comment): Likewise.
21322         * modules/vdprintf-posix (Comment): Likewise.
21323         * modules/vfprintf-posix (Comment): Likewise.
21324         * modules/vprintf-posix (Comment): Likewise.
21325         * modules/vsnprintf-posix (Comment): Likewise.
21326         * modules/vsprintf-posix (Comment): Likewise.
21327         * modules/xprintf-posix (Comment): Likewise.
21328         * modules/xvasprintf-posix (Comment): Likewise.
21329         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21330         * modules/floorf-tests (Depends-on): Likewise.
21331         * modules/round-tests (Depends-on): Likewise.
21332         * modules/roundf-tests (Depends-on): Likewise.
21333         * modules/trunc-tests (Depends-on): Likewise.
21334         * modules/truncf-tests (Depends-on): Likewise.
21335         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21336         'fprintf-posix' module is not present.
21337         * tests/test-floorf2.c (check): Likewise.
21338         * tests/test-trunc2.c (check): Likewise.
21339         * tests/test-truncf2.c (check): Likewise.
21340         * tests/test-round2.c (equal): Likewise.
21341         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21342
21343 2010-04-07  Karl Berry  <karl@gnu.org>
21344
21345         * config/srclist.txt,
21346         * config/srclistvars.sh,
21347         * config/srclist-update: doc fixes.
21348
21349 2010-04-07  Jim Meyering  <meyering@redhat.com>
21350
21351         maint.mk: add a PATH crosschecking syntax-check rule
21352         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21353         Useful if you use a test like the one in help-version (coreutils,
21354         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21355         printed by prog --version.
21356
21357 2010-04-06  Bruno Haible  <bruno@clisp.org>
21358
21359         Fix link error on mingw.
21360         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21361         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21362
21363 2010-04-06  Bruno Haible  <bruno@clisp.org>
21364
21365         Assume rmdir exists.
21366         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21367
21368 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21369
21370         doc: update users.txt
21371         * users.txt: Add gcal.
21372
21373 2010-04-06  Jim Meyering  <meyering@redhat.com>
21374
21375         init.sh: simply unset TMPDIR rather than risking env -i
21376         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21377         although it probably works fine on all Unix-based systems, some
21378         systems (Cygwin?) cannot tolerate a totally cleared environment.
21379         Suggestion from Eric Blake.
21380
21381 2010-04-06  Jim Meyering  <meyering@redhat.com>
21382
21383         init.sh: portability fix: use env's POSIX-specified -i option not -u
21384         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21385         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21386
21387 2010-04-05  Bruno Haible  <bruno@clisp.org>
21388
21389         btowc: Work around Cygwin 1.7.2 bug.
21390         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21391         does not map NUL to 0.
21392         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21393
21394 2010-04-05  Bruno Haible  <bruno@clisp.org>
21395
21396         Make the multithread modules work on Cygwin 1.7.2.
21397         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21398         imported symbols can be declared weak, so that it returns "no" on
21399         Cygwin 1.7.2.
21400
21401 2010-04-05  Bruno Haible  <bruno@clisp.org>
21402
21403         Use the module 'strncat'.
21404         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21405
21406         Tests for module 'strncat'.
21407         * modules/strncat-tests: New file.
21408         * tests/test-strncat.c: New file.
21409
21410         New module 'strncat'.
21411         * lib/string.in.h (strncat): New declaration.
21412         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21413         * m4/strncat.m4: New file, based on m4/memchr.m4.
21414         * modules/strncat: New file.
21415         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21416         is declared.
21417         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21418         REPLACE_STRNCAT.
21419         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21420         REPLACE_STRNCAT.
21421         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21422         module.
21423         * tests/test-string-c++.cc: Check signature of strncat.
21424
21425 2010-04-05  Jim Meyering  <meyering@redhat.com>
21426
21427         xstrtoumax-tests: convert to use init.sh
21428         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21429         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21430         Use Exit, not exit.
21431         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21432
21433         xstrtoimax-tests: convert to use init.sh
21434         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21435         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21436         Use Exit, not exit.
21437         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21438
21439 2010-04-05  Bruno Haible  <bruno@clisp.org>
21440
21441         sys_socket: Avoid #define replacements in C++ mode.
21442         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21443         warning to the function if possible, rather than #defining the symbol
21444         to a dysfunctional alias.
21445
21446 2010-04-05  Bruno Haible  <bruno@clisp.org>
21447
21448         fseeko: Fix C++ test error on mingw.
21449         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21450         gl_FUNC_FSEEKO.
21451         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21452         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21453         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21454         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21455
21456 2010-04-05  Bruno Haible  <bruno@clisp.org>
21457
21458         duplocale: Improve test output.
21459         * tests/test-duplocale.c (main): Print reason for skipped test.
21460
21461 2010-04-05  Bruno Haible  <bruno@clisp.org>
21462
21463         Assume rmdir exists.
21464         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21465         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21466
21467 2010-04-05  Bruno Haible  <bruno@clisp.org>
21468
21469         Fix link error on Solaris 8 with cc.
21470         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21471
21472 2010-04-05  Bruno Haible  <bruno@clisp.org>
21473
21474         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21475         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21476
21477 2010-04-05  Bruno Haible  <bruno@clisp.org>
21478
21479         vasprintf: Update documentation.
21480         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21481
21482 2010-04-05  Bruno Haible  <bruno@clisp.org>
21483
21484         ptsname: Improve test.
21485         * tests/test-ptsname.c (main): Also try the various master names of BSD
21486         systems.
21487
21488 2010-04-05  Bruno Haible  <bruno@clisp.org>
21489
21490         memchr: Avoid a possible C++ test error.
21491         * lib/string.in.h (memchr): Provide declaration if function is missing.
21492         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21493         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21495         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21496
21497 2010-04-05  Bruno Haible  <bruno@clisp.org>
21498
21499         strtok_r: Improve idiom.
21500         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21501         AC_LIBOBJ is used.
21502
21503 2010-04-05  Bruno Haible  <bruno@clisp.org>
21504
21505         strdup: Improve idiom.
21506         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21507         AC_LIBOBJ is used.
21508         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21509         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21510         when AC_LIBOBJ is used.
21511
21512 2010-04-05  Bruno Haible  <bruno@clisp.org>
21513
21514         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21515         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21516         don't set REPLACE_MBSINIT to 1.
21517         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21518         don't set REPLACE_MBRTOWC to 1.
21519         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21520         exist, don't set REPLACE_MBSRTOWCS to 1.
21521         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21522         exist, don't set REPLACE_MBSNRTOWCS to 1.
21523         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21524         don't set REPLACE_WCRTOMB to 1.
21525         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21526         exist, don't set REPLACE_WCSRTOMBS to 1.
21527         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21528         exist, don't set REPLACE_WCSNRTOMBS to 1.
21529
21530 2010-04-05  Bruno Haible  <bruno@clisp.org>
21531
21532         ldexpl: Improve idiom.
21533         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21534         make sure to set HAVE_DECL_LDEXPL to 0.
21535
21536 2010-04-05  Jim Meyering  <meyering@redhat.com>
21537
21538         xstrtol-tests: convert to use init.sh
21539         * modules/xstrtol-tests (Files): Add tests/init.sh.
21540         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21541         Use Exit, not exit.
21542         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21543
21544         atexit-tests: convert to use init.sh
21545         * modules/atexit-tests (Files): Add tests/init.sh.
21546         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21547         Use Exit, not exit.
21548         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21549
21550         init.sh: fix typo
21551         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21552
21553         init.sh: make it easier for a test script to write to the tty, ...
21554         when using automake's parallel-tests mode.
21555         * tests/init.sh (stderr_fileno_): Define overridable variable.
21556         (warn_): New function, to use it.
21557         (fail_, skip_, framework_failure_): Use warn_.
21558
21559 2010-04-04  Bruno Haible  <bruno@clisp.org>
21560
21561         btowc: Avoid warning.
21562         * lib/btowc.c: Include <stdlib.h>.
21563         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21564
21565 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21566             Bruno Haible  <bruno@clisp.org>
21567
21568         wchar: Port to NetBSD 1.5.
21569         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21570         * lib/wctype.in.h (WEOF): Likewise.
21571
21572 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21573             Bruno Haible  <bruno@clisp.org>
21574
21575         Port extended stdio to NetBSD 1.5.
21576         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21577         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21578         older.
21579
21580 2010-04-04  Bruno Haible  <bruno@clisp.org>
21581
21582         string: Remove unused substitution.
21583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21584         HAVE_DECL_STRERROR.
21585         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21586
21587 2010-04-04  Bruno Haible  <bruno@clisp.org>
21588
21589         strtod: Avoid a possible C++ test error.
21590         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21591         set REPLACE_STRTOD.
21592
21593 2010-04-04  Bruno Haible  <bruno@clisp.org>
21594
21595         strerror: Update documentation.
21596         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21597
21598 2010-04-04  Bruno Haible  <bruno@clisp.org>
21599
21600         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21601         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21602         _GL_CXXALIAS_SYS_CAST.
21603
21604 2010-04-04  Bruno Haible  <bruno@clisp.org>
21605
21606         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21607         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21608         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21609         REPLACE_FREXPL to 1.
21610         * doc/posix-functions/frexpl.texi: Update documentation.
21611
21612 2010-04-04  Bruno Haible  <bruno@clisp.org>
21613
21614         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21615         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21616
21617 2010-04-04  Bruno Haible  <bruno@clisp.org>
21618
21619         Implement nanosleep for native Windows.
21620         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21621
21622 2010-04-04  Bruno Haible  <bruno@clisp.org>
21623
21624         math: Fix some C++ test errors on Solaris 8.
21625         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21626
21627 2010-04-04  Bruno Haible  <bruno@clisp.org>
21628
21629         math: Fix some C++ test errors on Cygwin.
21630         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21631         truncl): Provide declaration if the system does not have it.
21632         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21633         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21634         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21635         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21636         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21637         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21638         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21639         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21640         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21641         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21642         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21643         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21644         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21645         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21646         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21647         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21649         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21650         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21651         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21652         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21653         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21654
21655 2010-04-04  Bruno Haible  <bruno@clisp.org>
21656
21657         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21658         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21659         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21660         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21661         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21662         * m4/isinf.m4 (gl_ISINF): Likewise.
21663         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21664
21665 2010-04-04  Bruno Haible  <bruno@clisp.org>
21666
21667         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21668         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21669
21670 2010-04-04  Bruno Haible  <bruno@clisp.org>
21671
21672         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21673         * modules/tmpfile (configure.ac): Update.
21674
21675         tmpfile: Fix C++ test error on mingw.
21676         * lib/stdio.in.h (tmpfile): New declaration.
21677         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21678         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21679         * modules/tmpfile (Depends-on): Add stdio.
21680         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21681         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21682         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21683         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21684         REPLACE_TMPFILE.
21685         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21686
21687 2010-04-04  Bruno Haible  <bruno@clisp.org>
21688
21689         ioctl: Fix C++ test error on mingw.
21690         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21691         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21692         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21693
21694 2010-04-03  Bruno Haible  <bruno@clisp.org>
21695
21696         wcwidth: Fix C++ test error on mingw.
21697         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21699         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21700
21701 2010-04-03  Bruno Haible  <bruno@clisp.org>
21702
21703         nanosleep: Fix C++ test error on mingw.
21704         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21705         * lib/time.in.h (nanosleep): Use modern idiom.
21706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21707         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21708         REPLACE_NANOSLEEP to 1.
21709         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21710         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21711
21712 2010-04-03  Bruno Haible  <bruno@clisp.org>
21713
21714         strptime: Fix C++ test error on mingw.
21715         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21716         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21717         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21718         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21719         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21720         not REPLACE_STRPTIME.
21721         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21722         REPLACE_STRPTIME.
21723
21724 2010-04-03  Bruno Haible  <bruno@clisp.org>
21725
21726         timegm: Fix C++ test error on mingw.
21727         * lib/time.in.h (timegm): Use modern idiom.
21728         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21729         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21731         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21732
21733 2010-04-03  Bruno Haible  <bruno@clisp.org>
21734
21735         timegm: Assume declaration if function exists.
21736         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21737         if it exists. Don't clobber ac_cv_func_timegm.
21738
21739 2010-04-03  Bruno Haible  <bruno@clisp.org>
21740
21741         time_r: Fix C++ test error on mingw.
21742         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21743         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21744         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21745         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21746         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21747
21748 2010-04-03  Bruno Haible  <bruno@clisp.org>
21749
21750         time_r: Minor updates.
21751         * modules/time_r (Description): Mention the provided functions.
21752         * lib/time_r.c: Don't include <string.h>.
21753         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21754         * doc/posix-functions/localtime_r.texi: Likewise.
21755
21756 2010-04-03  Bruno Haible  <bruno@clisp.org>
21757
21758         time: Fix regression introduced on 2010-03-08.
21759         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21760         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21761
21762 2010-04-03  Jim Meyering  <meyering@redhat.com>
21763
21764         maint.mk: don't silently disable project-specific syntax-check rules
21765         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21766         that they need to convert their project-specific syntax-check rules
21767         to use the new _sc_search_regexp.
21768
21769 2010-04-03  Bruno Haible  <bruno@clisp.org>
21770
21771         fchdir: Fix regression introduced on 2010-03-08.
21772         * lib/unistd.in.h (fchdir): Fix declaration.
21773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21775         REPLACE_FCHDIR.
21776         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21777         REPLACE_FCHDIR.
21778
21779 2010-04-03  Bruno Haible  <bruno@clisp.org>
21780
21781         getpagesize: Fix C++ test error on mingw.
21782         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21783         system does not declare the function.
21784         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21785         declared.
21786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21787         HAVE_DECL_GETPAGESIZE.
21788         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21789
21790 2010-04-03  Bruno Haible  <bruno@clisp.org>
21791
21792         stdio: Make C++ tests work on mingw.
21793         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21794         does not declare the function.
21795
21796 2010-04-03  Bruno Haible  <bruno@clisp.org>
21797
21798         ftello: Fix C++ test error on mingw.
21799         * lib/stdio.in.h (ftello): Use modern idiom.
21800         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21801         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21802         is missing and that it needs to be replaced.
21803         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21805         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21806
21807 2010-04-03  Bruno Haible  <bruno@clisp.org>
21808
21809         fseeko: Fix C++ test error on mingw.
21810         * lib/stdio.in.h (fseeko): Use modern idiom.
21811         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21812         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21813         is missing and that it needs to be replaced.
21814         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21816         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21817
21818 2010-04-03  Bruno Haible  <bruno@clisp.org>
21819
21820         mkstemp: Fix C++ test error on mingw.
21821         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21822         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21823         function is missing and that it needs to be replaced.
21824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21825         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21826
21827 2010-04-03  Bruno Haible  <bruno@clisp.org>
21828
21829         stpncpy: Fix C++ test error on mingw.
21830         * lib/string.in.h (stpncpy): Use modern idiom.
21831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21832         function is missing and that it needs to be replaced.
21833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21834         REPLACE_STPNCPY.
21835         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21836
21837 2010-04-03  Bruno Haible  <bruno@clisp.org>
21838
21839         sys_stat: Fix C++ test error on mingw.
21840         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21841         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21842
21843 2010-04-03  Bruno Haible  <bruno@clisp.org>
21844
21845         pty: Update doc.
21846         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21847
21848 2010-04-03  Bruno Haible  <bruno@clisp.org>
21849
21850         unistd: Fix C++ test error on mingw.
21851         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21852
21853 2010-04-03  Bruno Haible  <bruno@clisp.org>
21854
21855         Update doc regarding mingw.
21856         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21857         * doc/glibc-functions/login_tty.texi: Likewise.
21858         * doc/glibc-functions/forkpty.texi: Likewise.
21859
21860 2010-04-03  Bruno Haible  <bruno@clisp.org>
21861
21862         stdlib: Avoid compilation failure of c-strtold on mingw.
21863         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21864
21865 2010-04-03  Bruno Haible  <bruno@clisp.org>
21866
21867         locale: Make C++ tests work on Cygwin and mingw.
21868         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21869         cannot provide the function.
21870         Reported by Simon Josefsson.
21871
21872 2010-04-03  Bruno Haible  <bruno@clisp.org>
21873
21874         localename: Port to MacOS X 10.6.
21875         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21876         memory layout of the locales in MacOS X 10.6 as well.
21877         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21878
21879 2010-04-02  Bruno Haible  <bruno@clisp.org>
21880
21881         gnulib-tool: Ensure that long-running tests are executed last.
21882         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21883         running tests after the one for the other tests.
21884
21885 2010-04-02  Bruno Haible  <bruno@clisp.org>
21886
21887         gnulib-tool: Ensure the tests in the main directory are executed first.
21888         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21889         start with the current directory.
21890
21891 2010-04-02  Bruno Haible  <bruno@clisp.org>
21892
21893         Tests for module 'havelib', moved here from GNU gettext.
21894         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21895         modifications.
21896         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21897         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21898         with modifications.
21899         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21900         modifications.
21901         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21902         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21903         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21904         with modifications.
21905         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21906         with modifications.
21907         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21908         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21909         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21910         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21911         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21912         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21913         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21914         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21915         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21916         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21917         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21918         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21919         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21920         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21921         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21922         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21923         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21924         with modifications.
21925         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21926         with modifications.
21927         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21928         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21929         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21930         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21931         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21932         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21933         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21934         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21935         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21936         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21937         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21938         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21939         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21940         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21941         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21942         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21943         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21944         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21945         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21946         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21947         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21948         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21949         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21950         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21951         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21952         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21953         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21954         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21955         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21956         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21957         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21958         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21959         * tests/havelib/rpathx/rpathx.c: New file, from
21960         gettext/autoconf-lib-link.
21961         * tests/havelib/rpathx/Makefile.am: New file, from
21962         gettext/autoconf-lib-link.
21963         * tests/havelib/rpathx/configure.ac: New file, from
21964         gettext/autoconf-lib-link with modifications.
21965         * tests/havelib/rpathy/rpathy.c: New file, from
21966         gettext/autoconf-lib-link.
21967         * tests/havelib/rpathy/Makefile.am: New file, from
21968         gettext/autoconf-lib-link.
21969         * tests/havelib/rpathy/configure.ac: New file, from
21970         gettext/autoconf-lib-link with modifications.
21971         * tests/havelib/rpathz/rpathz.c: New file, from
21972         gettext/autoconf-lib-link.
21973         * tests/havelib/rpathz/Makefile.am: New file, from
21974         gettext/autoconf-lib-link.
21975         * tests/havelib/rpathz/configure.ac: New file, from
21976         gettext/autoconf-lib-link with modifications.
21977         * tests/havelib/rpathlx/usex.c: New file, from
21978         gettext/autoconf-lib-link.
21979         * tests/havelib/rpathlx/Makefile.am: New file, from
21980         gettext/autoconf-lib-link.
21981         * tests/havelib/rpathlx/configure.ac: New file, from
21982         gettext/autoconf-lib-link with modifications.
21983         * tests/havelib/rpathly/usey.c: New file, from
21984         gettext/autoconf-lib-link.
21985         * tests/havelib/rpathly/Makefile.am: New file, from
21986         gettext/autoconf-lib-link.
21987         * tests/havelib/rpathly/configure.ac: New file, from
21988         gettext/autoconf-lib-link with modifications.
21989         * tests/havelib/rpathlz/usez.c: New file, from
21990         gettext/autoconf-lib-link.
21991         * tests/havelib/rpathlz/Makefile.am: New file, from
21992         gettext/autoconf-lib-link.
21993         * tests/havelib/rpathlz/configure.ac: New file, from
21994         gettext/autoconf-lib-link with modifications.
21995         * tests/havelib/rpathlyx/usey.c: New file, from
21996         gettext/autoconf-lib-link.
21997         * tests/havelib/rpathlyx/Makefile.am: New file, from
21998         gettext/autoconf-lib-link.
21999         * tests/havelib/rpathlyx/configure.ac: New file, from
22000         gettext/autoconf-lib-link with modifications.
22001         * tests/havelib/rpathlzyx/usez.c: New file, from
22002         gettext/autoconf-lib-link.
22003         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22004         gettext/autoconf-lib-link.
22005         * tests/havelib/rpathlzyx/configure.ac: New file, from
22006         gettext/autoconf-lib-link with modifications.
22007         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22008         with modifications.
22009
22010 2010-04-02  Bruno Haible  <bruno@clisp.org>
22011
22012         gnulib-tool: Create distributed built sources also for the tests.
22013         * gnulib-tool (func_create_testdir): Also generate distributed built
22014         sources in the tests directory.
22015
22016 2010-04-02  Bruno Haible  <bruno@clisp.org>
22017
22018         gnulib-tool: Obey user's environment variables.
22019         * gnulib-tool (func_create_testdir): When creating built sources,
22020         respect the environment variables for autoconf, automake, etc. given by
22021         the user.
22022
22023 2010-04-02  Bruno Haible  <bruno@clisp.org>
22024
22025         gnulib-tool: Provide the value of --m4-base to modules.
22026         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22027         of gl_m4_base.
22028
22029 2010-04-02  Eric Blake  <eblake@redhat.com>
22030
22031         maint.mk: fix some fallout
22032         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22033         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22034
22035 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22036
22037         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22038         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22039         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22040         (sc_cast_of_x_alloc_return_value): Likewise.
22041         (sc_cast_of_alloca_return_value): Likewise.
22042         (sc_space_tab): Likewise.
22043         (sc_prohibit_atoi_atof): Likewise.
22044         (sc_prohibit_magic_number_exit): Likewise.
22045         (sc_error_exit_success): Likewise.
22046         (sc_file_system): Likewise.
22047         (sc_prohibit_have_config_h): Likewise.
22048         (sc_require_config_h): Likewise.
22049         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22050         (sc_obsolete_symbols): Likewise.
22051         (sc_changelog): Likewise.
22052         (sc_program_name): Likewise.
22053         (sc_the_the): Likewise.
22054         (sc_trailing_blank): Likewise.
22055         (sc_two_space_separator_in_usage): Likewise.
22056         (sc_useless_cpp_parens): Likewise.
22057         (sc_GPL_version): Likewise.
22058         (sc_GFDL_version): Likewise.
22059         (sc_texinfo_acronym): Likewise.
22060         (sc_prohibit_cvs_keyword): Likewise.
22061         (sc_prohibit_stat_st_blocks): Likewise.
22062         (sc_prohibit_S_IS_definition): Likewise.
22063         (sc_redundant_const): Likewise.
22064         (sc_makefile_TAB_only_indentation): Likewise.
22065         (sc_m4_quote_check): Likewise.
22066         (sc_makefile_path_separator_check): Likewise.
22067         (sc_copyright_check): Likewise.
22068         (sc_Wundef_boolean): Likewise.
22069         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22070
22071         maint.mk: match 0 or more whitespace-before-function-call '('
22072         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22073         that have zero or two-and-more spaces between the function name
22074         and the open parenthesis.
22075         (sc_error_message_warn_fatal): Likewise.
22076         (sc_error_message_uppercase): Likewise.
22077         (sc_error_message_period): Likewise.
22078
22079 2010-03-31  Eric Blake  <eblake@redhat.com>
22080
22081         maint.mk: check for [ as well as test
22082         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22083         Based on a libvirt report by Matthias Bolte.
22084
22085         gnumakefile: don't squelch _version output
22086         * top/GNUmakefile (_version): Create one-shot dependency rather
22087         than using $(shell) when version must be regenerated.
22088         (_autoreconf): Run verbosely, by default.
22089
22090         sys_time: avoid compiler warnings
22091         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22092         unconditional, fixing regression from 2010-03-29.
22093         Reported by Simon Josefsson.
22094
22095 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22096
22097         maint.mk: s/_header_without_use/_sc_header_without_use/
22098         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22099         (sc_prohibit_assert_without_use): Use the new name.
22100         (sc_prohibit_close_stream_without_use): Likewise.
22101         (sc_prohibit_getopt_without_use): Likewise.
22102         (sc_prohibit_quotearg_without_use): Likewise.
22103         (sc_prohibit_quote_without_use): Likewise.
22104         (sc_prohibit_long_options_without_use): Likewise.
22105         (sc_prohibit_inttostr_without_use): Likewise.
22106         (sc_prohibit_ignore_value_without_use): Likewise.
22107         (sc_prohibit_error_without_use): Likewise.
22108         (sc_prohibit_xalloc_without_use): Likewise.
22109         (sc_prohibit_hash_without_use): Likewise.
22110         (sc_prohibit_hash_pjw_without_use): Likewise.
22111         (sc_prohibit_safe_read_without_use): Likewise.
22112         (sc_prohibit_argmatch_without_use): Likewise.
22113         (sc_prohibit_canonicalize_without_use): Likewise.
22114         (sc_prohibit_root_dev_ino_without_use): Likewise.
22115         (sc_prohibit_openat_without_use): Likewise.
22116         (sc_prohibit_c_ctype_without_use): Likewise.
22117         (sc_prohibit_signal_without_use): Likewise.
22118         (sc_prohibit_intprops_without_use): Likewise.
22119
22120 2010-03-30  Eric Blake  <eblake@redhat.com>
22121
22122         maint: improve module indicators
22123         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22124         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22125         columns, and avoid extra macro expansion.
22126
22127         fdopendir: work around FreeBSD bug
22128         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22129         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22130         * modules/dirent (Makefile.am): Substitute it.
22131         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22132         declaration.
22133         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22134         fix.
22135         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22136
22137 2010-03-29  Bruno Haible  <bruno@clisp.org>
22138
22139         Emit #pragma system_header after the inclusion guard, not before.
22140         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22141         guard that spans the entire file, not before. This enables an
22142         optimization in GCC's preprocessor.
22143         * lib/ctype.in.h: Likewise.
22144         * lib/dirent.in.h: Likewise.
22145         * lib/errno.in.h: Likewise.
22146         * lib/float.in.h: Likewise.
22147         * lib/getopt.in.h: Likewise.
22148         * lib/iconv.in.h: Likewise.
22149         * lib/langinfo.in.h: Likewise.
22150         * lib/locale.in.h: Likewise.
22151         * lib/math.in.h: Likewise.
22152         * lib/netdb.in.h: Likewise.
22153         * lib/netinet_in.in.h: Likewise.
22154         * lib/pty.in.h: Likewise.
22155         * lib/sched.in.h: Likewise.
22156         * lib/se-selinux.in.h: Likewise.
22157         * lib/search.in.h: Likewise.
22158         * lib/spawn.in.h: Likewise.
22159         * lib/stdarg.in.h: Likewise.
22160         * lib/stdint.in.h: Likewise.
22161         * lib/string.in.h: Likewise.
22162         * lib/strings.in.h: Likewise.
22163         * lib/sys_file.in.h: Likewise.
22164         * lib/sys_ioctl.in.h: Likewise.
22165         * lib/sys_time.in.h: Likewise.
22166         * lib/sys_times.in.h: Likewise.
22167         * lib/sys_utsname.in.h: Likewise.
22168         * lib/sys_wait.in.h: Likewise.
22169         * lib/sysexits.in.h: Likewise.
22170         * lib/wctype.in.h: Likewise.
22171
22172 2010-03-28  James Youngman  <jay@gnu.org>
22173
22174         save-cwd: don't leak a file descriptor when the caller execs.
22175         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22176         saved file descriptor.
22177         * modules/save-cwd (Depends-on): Depend on cloexec.
22178
22179 2010-03-29  Bruno Haible  <bruno@clisp.org>
22180
22181         Remove vestiges of fts-lgpl module.
22182         * lib/fts_.h: Assume GNULIB_FTS is 1.
22183         * lib/fts.c: Likewise.
22184         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22185
22186 2010-03-28  Bruno Haible  <bruno@clisp.org>
22187
22188         Fix definition of tests witness macro.
22189         * gnulib-tool (func_import): Fix definition of witness macro.
22190
22191 2010-03-28  Bruno Haible  <bruno@clisp.org>
22192
22193         Fix ioctl's protoype on glibc systems.
22194         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22195         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22196         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22197         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22198         signature. If not, arrange to replace the ioctl function.
22199         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22200         REPLACE_IOCTL.
22201         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22202         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22203         Reported by Ludovic Courtès <ludo@gnu.org>.
22204
22205 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22206
22207         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22208         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22209         made it so grep -r --include=GLOB* ... did not work.
22210
22211 2010-03-26  Jim Meyering  <meyering@redhat.com>
22212             Eric Blake  <eblake@redhat.com>
22213
22214         maint.mk: prohibit use of test's -o and -a operators
22215         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22216
22217 2010-03-28  Bruno Haible  <bruno@clisp.org>
22218
22219         Remove unused GNULIB_XYZ macro definitions.
22220         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22221         invocation.
22222
22223 2010-03-28  Bruno Haible  <bruno@clisp.org>
22224
22225         Mark privileged tests modules.
22226         * modules/idpriv-drop-tests (Status): New section.
22227         * modules/idpriv-droptemp-tests (Status): New section.
22228
22229 2010-03-28  Bruno Haible  <bruno@clisp.org>
22230
22231         Split C++ tests into separate tests modules.
22232         * modules/dirent-c++-tests: New file, extracted from
22233         modules/dirent-tests.
22234         * modules/dirent-tests: Depend on it.
22235         * modules/fcntl-h-c++-tests: New file, extracted from
22236         modules/fcntl-h-tests.
22237         * modules/fcntl-h-tests: Depend on it.
22238         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22239         * modules/glob-tests: Depend on it.
22240         * modules/iconv-h-c++-tests: New file, extracted from
22241         modules/iconv-h-tests.
22242         * modules/iconv-h-tests: Depend on it.
22243         * modules/langinfo-c++-tests: New file, extracted from
22244         modules/langinfo-tests.
22245         * modules/langinfo-tests: Depend on it.
22246         * modules/locale-c++-tests: New file, extracted from
22247         modules/locale-tests.
22248         * modules/locale-tests: Depend on it.
22249         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22250         * modules/math-tests: Depend on it.
22251         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22252         * modules/pty-tests: Depend on it.
22253         * modules/search-c++-tests: New file, extracted from
22254         modules/search-tests.
22255         * modules/search-tests: Depend on it.
22256         * modules/signal-c++-tests: New file, extracted from
22257         modules/signal-tests.
22258         * modules/signal-tests: Depend on it.
22259         * modules/spawn-c++-tests: New file, extracted from
22260         modules/spawn-tests.
22261         * modules/spawn-tests: Depend on it.
22262         * modules/stdio-c++-tests: New file, extracted from
22263         modules/stdio-tests.
22264         * modules/stdio-tests: Depend on it.
22265         * modules/stdlib-c++-tests: New file, extracted from
22266         modules/stdlib-tests.
22267         * modules/stdlib-tests: Depend on it.
22268         * modules/string-c++-tests: New file, extracted from
22269         modules/string-tests.
22270         * modules/string-tests: Depend on it.
22271         * modules/sys_ioctl-c++-tests: New file, extracted from
22272         modules/sys_ioctl-tests.
22273         * modules/sys_ioctl-tests: Depend on it.
22274         * modules/sys_select-c++-tests: New file, extracted from
22275         modules/sys_select-tests.
22276         * modules/sys_select-tests: Depend on it.
22277         * modules/sys_socket-c++-tests: New file, extracted from
22278         modules/sys_socket-tests.
22279         * modules/sys_socket-tests: Depend on it.
22280         * modules/sys_stat-c++-tests: New file, extracted from
22281         modules/sys_stat-tests.
22282         * modules/sys_stat-tests: Depend on it.
22283         * modules/sys_time-c++-tests: New file, extracted from
22284         modules/sys_time-tests.
22285         * modules/sys_time-tests: Depend on it.
22286         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22287         * modules/time-tests: Depend on it.
22288         * modules/unistd-c++-tests: New file, extracted from
22289         modules/unistd-tests.
22290         * modules/unistd-tests: Depend on it.
22291         * modules/wchar-c++-tests: New file, extracted from
22292         modules/wchar-tests.
22293         * modules/wchar-tests: Depend on it.
22294         * modules/wctype-c++-tests: New file, extracted from
22295         modules/wctype-tests.
22296         * modules/wctype-tests: Depend on it.
22297         Reported by Simon Josefsson.
22298
22299 2010-03-28  Bruno Haible  <bruno@clisp.org>
22300
22301         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22302         * gnulib-tool (func_exists_module): New function, extracted from
22303         func_verify_module.
22304         (func_verify_module): Use it.
22305         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22306         'foo' only if 'foo' exists.
22307         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22308         module.
22309
22310 2010-03-28  Bruno Haible  <bruno@clisp.org>
22311
22312         gnulib-tool: Add support for special categories of tests.
22313         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22314         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22315         (func_usage): Document them.
22316         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22317         inc_unportable_tests, inc_all_tests): New variables.
22318         (func_acceptable): Consider these variables.
22319         (func_modules_transitive_closure): Make it work when the 'Status' field
22320         consists of multiple words.
22321         (func_import): Store and restore the values of inc_cxx_tests,
22322         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22323         inc_all_tests in gnulib-comp.m4.
22324         (func_create_testdir): Set inc_all_tests to true.
22325         * doc/gnulib.texi (Extra tests modules): New section.
22326         Suggested by Jim Meyering.
22327
22328 2010-03-28  Bruno Haible  <bruno@clisp.org>
22329
22330         ansi-c++-opt: Allow turning off the C++ build by default.
22331         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22332         gl_CXX_CHOICE_DEFAULT_NO is defined.
22333         Requested by Eric Blake.
22334
22335 2010-03-28  Bruno Haible  <bruno@clisp.org>
22336
22337         unistd: Avoid #define replacements in C++ mode.
22338         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22339         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22340         setsockopt, shutdown, select): In C++, attach a warning to the function
22341         if possible, rather than #defining the symbol to a dysfunctional alias.
22342         Reported by John W. Eaton <jwe@gnu.org>.
22343
22344 2010-03-28  Bruno Haible  <bruno@clisp.org>
22345
22346         Fix link errors on mingw.
22347         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22348         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22349         $(LIBSOCKET).
22350         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22351         $(LIBSOCKET).
22352
22353 2010-03-28  Bruno Haible  <bruno@clisp.org>
22354             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22355
22356         lib-ignore: Determine different options for different compilers.
22357         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22358         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22359         Add comments.
22360         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22361         * NEWS: Mention the change.
22362
22363 2010-03-27  Bruno Haible  <bruno@clisp.org>
22364
22365         Remove unused GNULIB_XYZ macro definitions.
22366         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22367         * modules/fseek (configure.ac): Likewise.
22368         * modules/ioctl (configure.ac): Likewise.
22369         * modules/open (configure.ac): Likewise.
22370         * modules/stdlib-safer (configure.ac): Likewise.
22371
22372 2010-03-27  Bruno Haible  <bruno@clisp.org>
22373
22374         Add a remark about certain modules.
22375         * modules/malloc (Comment): New section.
22376         * modules/realloc (Comment): Likewise.
22377         * modules/sigpipe (Comment): Likewise.
22378
22379 2010-03-27  Bruno Haible  <bruno@clisp.org>
22380
22381         Resolve conflict between the two kinds of module indicators.
22382         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22383         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22384         * modules/canonicalize (configure.ac): Invoke
22385         gl_MODULE_INDICATOR_FOR_TESTS.
22386         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22387         GNULIB_XYZ.
22388         * tests/test-dirent-c++.cc: Likewise.
22389         * tests/test-dirent-safer.c: Likewise.
22390         * tests/test-dup2.c: Likewise.
22391         * tests/test-fchdir.c: Likewise.
22392         * tests/test-fcntl-h-c++.cc: Likewise.
22393         * tests/test-getopt.c: Likewise.
22394         * tests/test-getopt.h: Likewise.
22395         * tests/test-langinfo-c++.cc: Likewise.
22396         * tests/test-locale-c++.cc: Likewise.
22397         * tests/test-math-c++.cc: Likewise.
22398         * tests/test-pty-c++.cc: Likewise.
22399         * tests/test-search-c++.cc: Likewise.
22400         * tests/test-signal-c++.cc: Likewise.
22401         * tests/test-spawn-c++.cc: Likewise.
22402         * tests/test-stdio-c++.cc: Likewise.
22403         * tests/test-stdlib-c++.cc: Likewise.
22404         * tests/test-string-c++.cc: Likewise.
22405         * tests/test-sys_ioctl-c++.cc: Likewise.
22406         * tests/test-sys_select-c++.cc: Likewise.
22407         * tests/test-sys_socket-c++.cc: Likewise.
22408         * tests/test-sys_stat-c++.cc: Likewise.
22409         * tests/test-sys_time-c++.cc: Likewise.
22410         * tests/test-time-c++.cc: Likewise.
22411         * tests/test-unistd-c++.cc: Likewise.
22412         * tests/test-wchar-c++.cc: Likewise.
22413         * tests/uninorm/test-u8-nfc.c: Likewise.
22414         * tests/uninorm/test-u8-nfd.c: Likewise.
22415         * tests/uninorm/test-u8-nfkc.c: Likewise.
22416         * tests/uninorm/test-u8-nfkd.c: Likewise.
22417         * tests/uninorm/test-u16-nfc.c: Likewise.
22418         * tests/uninorm/test-u16-nfd.c: Likewise.
22419         * tests/uninorm/test-u16-nfkc.c: Likewise.
22420         * tests/uninorm/test-u16-nfkd.c: Likewise.
22421         * tests/uninorm/test-u32-nfc.c: Likewise.
22422         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22423         * tests/uninorm/test-u32-nfd.c: Likewise.
22424         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22425         * tests/uninorm/test-u32-nfkc.c: Likewise.
22426         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22427         * tests/uninorm/test-u32-nfkd.c: Likewise.
22428         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22429         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22430
22431 2010-03-27  Bruno Haible  <bruno@clisp.org>
22432
22433         Distinguish two kinds of module indicators.
22434         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22435         gl_MODULE_INDICATOR.
22436         (gl_MODULE_INDICATOR): New macro.
22437         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22438         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22439         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22440         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22441         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22442         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22443         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22444         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22445         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22446         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22447         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22448         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22449         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22450         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22451         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22452         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22453         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22454         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22455         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22456         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22457         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22458         * modules/cloexec (configure.ac): Likewise.
22459         * modules/getopt-gnu (configure.ac): Likewise.
22460         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22461         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22462         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22463         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22464
22465 2010-03-27  Bruno Haible  <bruno@clisp.org>
22466
22467         New module description field 'Comment'.
22468         * gnulib-tool: New option --extract-comment.
22469         (func_usage): Document it.
22470         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22471         (func_get_comment): New function.
22472         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22473
22474 2010-03-27  Bruno Haible  <bruno@clisp.org>
22475
22476         Addendum to 2010-02-07 commit.
22477         * gnulib-tool (func_usage): Document --extract-applicability option.
22478
22479 2010-03-27  Bruno Haible  <bruno@clisp.org>
22480
22481         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22482         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22483         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22484         rather than link errors.
22485
22486 2010-03-27  Bruno Haible  <bruno@clisp.org>
22487
22488         Avoid side effects from tests-related modules on the compilation of lib.
22489         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22490         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22491         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22492         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22493         macro.
22494         (func_import): Define a witness macro. Assign it a value that depends
22495         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22496         tests-related modules.
22497         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22498         Reported by Jim Meyering.
22499
22500 2010-03-27  Bruno Haible  <bruno@clisp.org>
22501
22502         Factorize common .m4 code.
22503         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22504         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22505         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22506         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22507         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22508         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22509         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22510         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22511         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22512         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22513         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22514         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22515         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22516         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22517         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22518         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22519         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22520         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22522         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22523         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22524         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22525         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22526         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22527         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22528         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22529         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22530         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22531         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22532         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22533         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22534         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22535
22536 2010-03-27  Bruno Haible  <bruno@clisp.org>
22537
22538         Fix a compilation error on Cygwin with g++ >= 4.3.
22539         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22540         if it is undefined or if we alias it to chmod.
22541         (lstat): Don't warn about the use of this function if it is undefined
22542         or if we alias it to stat.
22543         Reported by Simon Josefsson.
22544
22545 2010-03-27  Bruno Haible  <bruno@clisp.org>
22546
22547         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22548         * modules/getlogin (configure.ac): Update.
22549
22550         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22551         * modules/getlogin_r (configure.ac): Update.
22552
22553         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22554         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22555         * modules/inet_ntop (configure.ac): Update.
22556
22557         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22558         * modules/inet_pton (configure.ac): Update.
22559
22560         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22561         * modules/mbslen (configure.ac): Update.
22562
22563         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22564         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22565         * modules/forkpty (configure.ac): Update.
22566         * modules/openpty (configure.ac): Update.
22567
22568 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22569
22570         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22571         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22572
22573 2010-03-25  Eric Blake  <eblake@redhat.com>
22574
22575         maint: use pragma consistently across replacement headers
22576         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22577         * lib/dirent.in.h (system_header): Likewise.
22578         * lib/errno.in.h (system_header): Likewise.
22579         * lib/float.in.h (system_header): Likewise.
22580         * lib/getopt.in.h (system_header): Likewise.
22581         * lib/iconv.in.h (system_header): Likewise.
22582         * lib/inttypes.in.h (system_header): Likewise.
22583         * lib/langinfo.in.h (system_header): Likewise.
22584         * lib/locale.in.h (system_header): Likewise.
22585         * lib/math.in.h (system_header): Likewise.
22586         * lib/netdb.in.h (system_header): Likewise.
22587         * lib/netinet_in.in.h (system_header): Likewise.
22588         * lib/pty.in.h (system_header): Likewise.
22589         * lib/sched.in.h (system_header): Likewise.
22590         * lib/se-selinux.in.h (system_header): Likewise.
22591         * lib/search.in.h (system_header): Likewise.
22592         * lib/spawn.in.h (system_header): Likewise.
22593         * lib/stdarg.in.h (system_header): Likewise.
22594         * lib/stdint.in.h (system_header): Likewise.
22595         * lib/string.in.h (system_header): Likewise.
22596         * lib/strings.in.h (system_header): Likewise.
22597         * lib/sys_file.in.h (system_header): Likewise.
22598         * lib/sys_ioctl.in.h (system_header): Likewise.
22599         * lib/sys_socket.in.h (system_header): Likewise.
22600         * lib/sys_times.in.h (system_header): Likewise.
22601         * lib/sys_utsname.in.h (system_header): Likewise.
22602         * lib/sys_wait.in.h (system_header): Likewise.
22603         * lib/sysexits.in.h (system_header): Likewise.
22604         * lib/unistd.in.h (system_header): Likewise.
22605         * lib/wctype.in.h (system_header): Likewise.
22606
22607         arpa/inet: fix mingw compilation warning
22608         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22609         Reported by Matthew Bolte.
22610
22611 2010-03-25  Bruno Haible  <bruno@clisp.org>
22612
22613         Avoid collision between gnulib wrapper and libintl wrapper.
22614         * lib/printf.c (printf): Don't define if a printf wrapper is already
22615         defined in intl/printf.c.
22616         Reported by Michel Boaventura <michel@michelboaventura.com>.
22617
22618 2010-03-25  Bruno Haible  <bruno@clisp.org>
22619
22620         Use ANSI C.
22621         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22622
22623 2010-03-25  Bruno Haible  <bruno@clisp.org>
22624
22625         Minor formatting changes.
22626         * lib/acosl.c: Insert space before function argument list.
22627         * lib/argz.c: Likewise.
22628         * lib/asinl.c: Likewise.
22629         * lib/expl.c: Likewise.
22630         * lib/gen-uni-tables.c: Likewise.
22631         * lib/gettext.h: Likewise.
22632         * lib/glthread/lock.h: Likewise.
22633         * lib/tanl.c: Likewise.
22634         * lib/uniname/uniname.c: Likewise.
22635         * tests/test-idpriv-drop.c: Likewise.
22636         * tests/test-idpriv-droptemp.c: Likewise.
22637         * tests/test-lock.c: Likewise.
22638         * tests/test-tls.c: Likewise.
22639         * lib/argp-help.c: Insert space before function-like macro argument
22640         list.
22641         * lib/memcmp.c: Likewise.
22642         * tests/test-base64.c: Likewise.
22643         * lib/localename.c: Insert space before sizeof's argument list.
22644         * lib/safe-alloc.h: Likewise.
22645         * lib/file-set.h: Insert space before macro argument list.
22646         * tests/test-argp.c: Likewise.
22647         * lib/argp-namefrob.h: Insert space before function parameter list.
22648         * lib/getaddrinfo.c: Likewise.
22649         * lib/netdb.in.h: Likewise.
22650         * lib/parse-duration.h: Likewise.
22651         * lib/parse-duration.c: Likewise.
22652         * lib/poll.c: Likewise.
22653         * lib/select.c: Likewise.
22654         * lib/trim.h: Likewise.
22655         * tests/test-usleep.c: Likewise.
22656         * lib/ldexpl.c: Insert space before function parameter list and before
22657         function argument list.
22658         * lib/logl.c: Likewise.
22659         * lib/sqrtl.c: Likewise.
22660         * lib/trim.c: Likewise.
22661         * lib/cosl.c: Use GNU style indentation. Insert space before function
22662         argument list.
22663         * lib/sinl.c: Likewise.
22664         * lib/tsearch.c: Insert space after 'for'.
22665         Reported by Jim Meyering.
22666
22667 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22668
22669         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22670         config header before grepping, as it's not present before
22671         autoreconf/configure are run.  Reported by Simon Josefsson.
22672
22673 2010-03-23  Bruno Haible  <bruno@clisp.org>
22674
22675         pt_chown: Make it work with automake < 1.11.
22676         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22677         Reported by Simon Josefsson.
22678
22679 2010-03-23  Bruno Haible  <bruno@clisp.org>
22680
22681         pt_chown: Don't depend on GPLed modules.
22682         * lib/pt_chown.c: Don't include idpriv.h.
22683         (main): Don't drop privileges.
22684         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22685         Reported by Simon Josefsson.
22686
22687 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22688
22689         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22690         suggestions from karl@freefriends.org (Karl Berry).
22691
22692 2010-03-22  Eric Blake  <eblake@redhat.com>
22693
22694         gethostname: further tweaks
22695         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22696         are overriding gethostname.
22697         Suggested by Bruno Haible.
22698
22699 2010-03-21  Bruno Haible  <bruno@clisp.org>
22700
22701         Fix comments.
22702         * lib/forkpty.c (rpl_forkpty): Fix comment.
22703         * lib/openpty.c (rpl_openpty): Likewise.
22704         Reported by Eric Blake.
22705
22706 2010-03-22  Eric Blake  <eblake@redhat.com>
22707
22708         gethostname: fix build on mingw
22709         * lib/unistd.in.h (includes): Work around fact that mingw
22710         <winsock2.h> re-includes <unistd.h>, by avoiding any
22711         redeclarations if we are being included by <winsock2.h>.
22712         Reported by Matthias Bolte.
22713
22714 2010-03-21  Bruno Haible  <bruno@clisp.org>
22715
22716         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22717         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22718         modifications.
22719         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22720         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22721         provide the replacement.
22722         * modules/forkpty (Depends-on): Add openpty, login_tty.
22723         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22724         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22725         * doc/glibc-functions/forkpty.texi: More supported platforms.
22726         * config/srclist.txt: Add forkpty.c (commented).
22727
22728 2010-03-21  Bruno Haible  <bruno@clisp.org>
22729
22730         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22731         (Makefile.am): Verify that PTY_LIB is defined.
22732
22733         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22734
22735 2010-03-21  Bruno Haible  <bruno@clisp.org>
22736
22737         Tests for module 'login_tty'.
22738         * modules/login_tty-tests: New file.
22739         * tests/test-login_tty.c: New file.
22740
22741         New module 'login_tty'.
22742         * lib/login_tty.c: New file.
22743         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22744         * modules/login_tty: New file.
22745         * doc/glibc-functions/login_tty.texi: Mention the new module.
22746
22747 2010-03-21  Bruno Haible  <bruno@clisp.org>
22748
22749         login_tty: Documentation.
22750         * doc/glibc-functions/login_tty.texi: New file.
22751         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22752
22753 2010-03-21  Bruno Haible  <bruno@clisp.org>
22754
22755         pty: Consistent macro naming.
22756         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22757         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22758         * modules/pty (configure.ac): Update.
22759
22760 2010-03-21  Bruno Haible  <bruno@clisp.org>
22761
22762         Tests for openpty: Make stricter.
22763         * tests/test-openpty.c (main): Add test of canonical processing and
22764         erase.
22765         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22766
22767         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22768         * lib/openpty.c (openpty): New replacement function.
22769         * lib/pty.in.h: Include <termios.h>.
22770         (openpty): Update declaration. Add comments.
22771         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22772         is not declared, arrange to provide the replacement. Check for _getpty
22773         and posix_openpt.
22774         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22775         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22776         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22777         * modules/pty-tests (test_pty_c___LDADD): New variable.
22778         * doc/glibc-functions/openpty.texi: More supported platforms.
22779
22780 2010-03-21  Bruno Haible  <bruno@clisp.org>
22781
22782         setenv: Tweaks.
22783         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22784         the test program.
22785         * doc/posix-functions/setenv.texi: Update platforms list.
22786
22787 2010-03-21  Bruno Haible  <bruno@clisp.org>
22788
22789         New module 'unlockpt'.
22790         * lib/unlockpt.c: New file, from glibc with modifications.
22791         * m4/unlockpt.m4: New file.
22792         * modules/unlockpt: New file.
22793         * lib/stdlib.in.h (unlockpt): New declaration.
22794         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22795         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22796         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22797         HAVE_UNLOCKPT.
22798         * doc/posix-functions/unlockpt.texi: Mention the new module.
22799         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22800         * config/srclist.txt: Add unlockpt.c (commented).
22801
22802 2010-03-21  Jim Meyering  <meyering@redhat.com>
22803
22804         maint.mk: prohibit inclusion of "intprops.h" without use
22805         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22806
22807 2010-03-21  Bruno Haible  <bruno@clisp.org>
22808
22809         New module 'grantpt'.
22810         * lib/grantpt.c: New file, from glibc with modifications.
22811         * m4/grantpt.m4: New file.
22812         * modules/grantpt: New file.
22813         * lib/stdlib.in.h (grantpt): New declaration.
22814         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22815         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22816         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22817         HAVE_GRANTPT.
22818         * doc/posix-functions/grantpt.texi: Mention the new module.
22819         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22820         * config/srclist.txt: Add grantpt.c (commented).
22821
22822 2010-03-21  Bruno Haible  <bruno@clisp.org>
22823
22824         New module 'pt_chown'.
22825         * lib/pt_chown.c: New file, from glibc with modifications.
22826         * lib/pty-private.h: New file, from glibc with modifications.
22827         * modules/pt_chown: New file.
22828         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22829
22830 2010-03-21  Bruno Haible  <bruno@clisp.org>
22831
22832         Tests for module 'ptsname'.
22833         * modules/ptsname-tests: New file.
22834         * tests/test-ptsname.c: New file.
22835
22836         New module 'ptsname'.
22837         * lib/ptsname.c: New file, from glibc with modifications.
22838         * m4/ptsname.m4: New file.
22839         * modules/ptsname: New file.
22840         * lib/stdlib.in.h (ptsname): New declaration.
22841         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22842         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22843         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22844         HAVE_PTSNAME.
22845         * doc/posix-functions/ptsname.texi: Mention the new module.
22846         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22847         * config/srclist.txt: Add ptsname.c (commented).
22848
22849 2010-03-21  Bruno Haible  <bruno@clisp.org>
22850
22851         Tests for module 'ttyname_r'.
22852         * modules/ttyname_r-tests: New file.
22853         * tests/test-ttyname_r.c: New file.
22854
22855         New module 'ttyname_r'.
22856         * lib/ttyname_r.c: New file.
22857         * m4/ttyname_r.m4: New file.
22858         * modules/ttyname_r: New file.
22859         * lib/unistd.in.h (ttyname_r): New declaration.
22860         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22861         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22862         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22863         HAVE_TTYNAME_R.
22864         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22865         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22866
22867 2010-03-20  Bruno Haible  <bruno@clisp.org>
22868
22869         signal: Undefine macro definitions in C++ mode.
22870         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22871         sigfillset): Undefine macro definitions from the system header in C++
22872         mode.
22873         Reported by John W. Eaton <jwe@gnu.org>.
22874
22875 2010-03-20  Bruno Haible  <bruno@clisp.org>
22876
22877         Ensure no #include statements inside extern "C" { ... }.
22878         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22879         contain #include statements.
22880         * lib/time.in.h: Likewise.
22881
22882 2010-03-20  Bruno Haible  <bruno@clisp.org>
22883
22884         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22885         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22886         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22887         Reported by John W. Eaton <jwe@gnu.org>.
22888
22889 2010-03-20  Bruno Haible  <bruno@clisp.org>
22890
22891         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22892         Reported by Jim Meyering.
22893
22894 2010-03-20  Bruno Haible  <bruno@clisp.org>
22895
22896         pipe: Set errno upon failure.
22897         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22898         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22899         errno value in error message.
22900
22901 2010-03-20  Bruno Haible  <bruno@clisp.org>
22902             Jim Meyering  <meyering@redhat.com>
22903
22904         lchown: Avoid "unused variable" warning.
22905         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22906
22907 2010-03-20  Bruno Haible  <bruno@clisp.org>
22908
22909         Work around unlink() bug on MacOS X 10.5.6.
22910         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22911         attempting to unlink a parent directory.
22912         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22913         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22914         activate for the replacement function.
22915         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22916
22917 2010-03-20  Bruno Haible  <bruno@clisp.org>
22918
22919         Fix link errors on Solaris 8.
22920         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22921         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22922
22923 2010-03-19  Jim Meyering  <meyering@redhat.com>
22924
22925         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22926         The _LIBC implementation of build_range_exp correctly honors the
22927         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22928         However, the non-_LIBC implementation would ignore that syntax-bit
22929         flag and return REG_ERANGE unconditionally.
22930         This change makes it honor that flag.
22931         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22932         Make two pointer parameters "const".
22933         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22934         (parse_bracket_exp): Update caller.
22935
22936         regex.m4: correct the reversed range endpoint ([b-a]) test
22937         * m4/regex.m4: When requiring that [b-a] evoke failure,
22938         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22939         test pass once again for x86-based systems.
22940
22941 2010-03-19  Bruno Haible  <bruno@clisp.org>
22942
22943         scandir: Fix link error on Solaris 8.
22944         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22945         macros.
22946
22947 2010-03-19  Bruno Haible  <bruno@clisp.org>
22948
22949         getusershell: Fix documentation.
22950         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22951         module.
22952         * doc/glibc-functions/setusershell.texi: Likewise.
22953
22954         getusershell: Provide declaration, missing on Solaris 9.
22955         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22956         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22957         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22958         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22960         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22961         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22962         HAVE_GETUSERSHELL.
22963         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22964
22965 2010-03-19  Bruno Haible  <bruno@clisp.org>
22966
22967         wctype: Provide iswblank function.
22968         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22969         exists and is fine.
22970         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22971         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22972         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22973         * doc/posix-functions/iswblank.texi: Update.
22974
22975 2010-03-19  Bruno Haible  <bruno@clisp.org>
22976
22977         Tests of module 'pty' in C++ mode.
22978         * modules/pty-tests: New file.
22979         * tests/test-pty-c++.cc: New file.
22980         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22981
22982 2010-03-19  Eric Blake  <eblake@redhat.com>
22983
22984         logb: fix documentation
22985         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22986         1.5 declaration bug.
22987
22988         forkpty, openpty: prefer glibc's const-safe prototype
22989         * lib/forkpty.c (rpl_forkpty): New file.
22990         * lib/openpty.c (rpl_openpty): Likewise.
22991         * modules/forkpty (Files): Distribute it.
22992         * modules/openpty (Files): Likewise.
22993         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22994         check...
22995         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22996         replacement for for non-const BSD signature.
22997         * modules/pty (Makefile.am): Substitute witnesses.
22998         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22999         * tests/test-forkpty.c: Update signature check.
23000         * tests/test-openpty.c: Likewise.
23001         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23002         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23003
23004         forkpty, openpty: split functions into new modules
23005         * modules/pty (Makefile.am): Substitute new witnesses.
23006         (Libraries): Move library detection...
23007         * modules/forkpty: ...into new module.
23008         * modules/openpty: Another new module.
23009         * modules/pty-tests: Rename and split...
23010         * modules/forkpty-tests: ...to this...
23011         * modules/openpty-tests: ...and this.
23012         * tests/test-pty.c: Rename and split...
23013         * tests/test-forkpty.c: ...to this...
23014         * tests/test-openpty.c: ...and this.
23015         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23016         (gl_PTY): Split library searching...
23017         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23018         (gl_FORKPTY, gl_OPENPTY): New macros.
23019         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23020         * NEWS: Mention the split.
23021         * MODULES.html.sh (Misc): Document the modules.
23022         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23023         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23024
23025         pty: improve replacement header
23026         * lib/pty.in.h: New file.
23027         * modules/pty (Files): Ship it.
23028         (Makefile.am): Always build replacement.
23029         * m4/pty.m4: Rename...
23030         * m4/pty_h.m4: ...to this.
23031         (gl_PTY): Modernize setting of witness macros; update check of
23032         forkpty to take proper advantage of cache.
23033         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23034
23035         getopt: avoid compiler warning
23036         * lib/getopt.c (attribute_hidden): Remove unused macro.
23037
23038 2010-03-18  Bruno Haible  <bruno@clisp.org>
23039
23040         Fix link errors on Solaris 8.
23041         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23042         * modules/search-tests (test_search_c___LDADD): Likewise.
23043         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23044         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23045         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23046         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23047         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23048         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23049         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23050
23051 2010-03-18  Bruno Haible  <bruno@clisp.org>
23052
23053         Fix bug introduced on 2010-03-14.
23054         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23055         (gl_SPAWN_H): Require it.
23056         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23057         Reported by Simon Josefsson.
23058
23059 2010-03-18  Bruno Haible  <bruno@clisp.org>
23060
23061         Fix typo introduced on 2009-12-31.
23062         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23063         posix_spawn_file_actions_adddup2.
23064
23065 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23066         and Eric Blake  <eblake@redhat.com>
23067
23068         test-vc-list-files-git: make more robust
23069         * tests/test-vc-list-files-git.sh: Unset problematic environment
23070         variables.  Chain commands together.
23071
23072 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23073
23074         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23075         `AC_CHECK_DECL' invocation.
23076
23077 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23078
23079         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23080         appears before executable statements. Suggested by Petr Sumbera
23081         <Petr.Sumbera@Sun.COM>.
23082
23083 2010-03-14  Bruno Haible  <bruno@clisp.org>
23084
23085         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23086         portability problems. Instead use a simpler test.
23087         (main): Check that invalid arguments are rejected only on Linux.
23088
23089 2010-03-14  Bruno Haible  <bruno@clisp.org>
23090
23091         Fix bug introduced on 2009-12-31.
23092         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23093         gl_PREREQ_SYS_H_WINSOCK2 always.
23094         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23095         SYS_SOCKET_H variable.
23096         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23097         Update comments.
23098         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23099         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23100         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23101         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23102         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23103
23104 2010-03-14  Bruno Haible  <bruno@clisp.org>
23105
23106         Fix values returned by sinl, cosl.
23107         * lib/trigl.h: Add specification comments.
23108         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23109         that combines the values from the precomputed table with the values of
23110         the Chebyshev polynomials.
23111
23112 2010-03-14  Bruno Haible  <bruno@clisp.org>
23113
23114         Fix compilation error when modules 'posix_spawn[p]' are not used.
23115         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23116         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23117
23118 2010-03-14  Bruno Haible  <bruno@clisp.org>
23119
23120         Fix compilation error on mingw when module 'time_r' is not used.
23121         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23122         is 1.
23123         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23124         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23125         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23126         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23127
23128 2010-03-14  Bruno Haible  <bruno@clisp.org>
23129
23130         Fix compilation error with Sun C.
23131         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23132         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23133         instead of GCC specific ULONG_LONG_MAX.
23134         * lib/xstrtoll.c: Likewise.
23135         * lib/xstrtoull.c: Likewise.
23136
23137 2010-03-13  Bruno Haible  <bruno@clisp.org>
23138
23139         Allow the user to disable C++ code and tests.
23140         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23141         (gl_PROG_ANSI_CXX): Require it.
23142
23143 2010-03-13  Bruno Haible  <bruno@clisp.org>
23144
23145         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23146         cases.
23147
23148 2010-03-13  Bruno Haible  <bruno@clisp.org>
23149
23150         Test that gnulib does not break the standard C++ headers.
23151         * tests/test-locale-c++2.cc: New file.
23152         * modules/locale-tests (Files): Add it.
23153         (Makefile.am): Compile it for test-locale-c++.
23154         * tests/test-math-c++2.cc: New file.
23155         * modules/math-tests (Files): Add it.
23156         (Makefile.am): Compile it for test-math-c++.
23157         * tests/test-signal-c++2.cc: New file.
23158         * modules/signal-tests (Files): Add it.
23159         (Makefile.am): Compile it for test-signal-c++.
23160         * tests/test-stdio-c++2.cc: New file.
23161         * modules/stdio-tests (Files): Add it.
23162         (Makefile.am): Compile it for test-stdio-c++.
23163         * tests/test-stdlib-c++2.cc: New file.
23164         * modules/stdlib-tests (Files): Add it.
23165         (Makefile.am): Compile it for test-stdlib-c++.
23166         * tests/test-string-c++2.cc: New file.
23167         * modules/string-tests (Files): Add it.
23168         (Makefile.am): Compile it for test-string-c++.
23169         * tests/test-time-c++2.cc: New file.
23170         * modules/time-tests (Files): Add it.
23171         (Makefile.am): Compile it for test-time-c++.
23172         Reported by John W. Eaton <jwe@gnu.org>.
23173
23174 2010-03-13  Bruno Haible  <bruno@clisp.org>
23175
23176         * gnulib-tool (func_usage): Clarify which options are available for
23177         --create-testdir and --create-megatestdir.
23178
23179 2010-03-13  Bruno Haible  <bruno@clisp.org>
23180
23181         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23182         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23183         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23184         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23185         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23186         when appropriate.
23187         Reported by Jim Meyering.
23188
23189 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23190
23191         * gnulib-tool (func_import): Explain origin of code.
23192
23193 2010-03-12  Bruno Haible  <bruno@clisp.org>
23194
23195         Fix problem with automake's definition of CXXLINK.
23196         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23197         Reported by Simon Josefsson and Ludovic Courtès.
23198
23199 2010-03-12  Bruno Haible  <bruno@clisp.org>
23200
23201         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23202         stable releases.
23203
23204 2010-03-11  Bruno Haible  <bruno@clisp.org>
23205
23206         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23207         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23208         whether the system provides one variant or multiple variants of the
23209         function.
23210         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23211         C++ compilers.
23212         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23213         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23214         Reported by Jim Meyering.
23215
23216 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23217
23218         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23219
23220 2010-03-08  Bruno Haible  <bruno@clisp.org>
23221
23222         gnulib-tool: Add support for --libtool in --create-testdir.
23223         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23224         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23225
23226 2010-03-08  Eric Blake  <eblake@redhat.com>
23227
23228         gnulib-tool.texi: mention possibility of git submodule
23229         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23230         submodules.
23231         * doc/.gitignore: Ignore another generated file.
23232
23233 2010-03-08  Karl Berry  <karl@gnu.org>
23234
23235         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23236         of committing gnulib files while skipping others.
23237
23238 2010-03-07  Bruno Haible  <bruno@clisp.org>
23239
23240         Tests of module 'wctype' in C++ mode.
23241         * tests/test-wctype-c++.cc: New file.
23242         * modules/wctype-tests (Files): Add it and tests/signature.h.
23243         (Depends-on): Add ansi-c++-opt.
23244         (Makefile.am): Arrange to compile and run test-wctype-c++.
23245
23246         Tests of module 'wchar' in C++ mode.
23247         * tests/test-wchar-c++.cc: New file.
23248         * modules/wchar-tests (Files): Add it and tests/signature.h.
23249         (Depends-on): Add ansi-c++-opt.
23250         (Makefile.am): Arrange to compile and run test-wchar-c++.
23251         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23252         gl_MODULE_INDICATOR.
23253
23254         Tests of module 'unistd' in C++ mode.
23255         * tests/test-unistd-c++.cc: New file.
23256         * modules/unistd-tests (Files): Add it and tests/signature.h.
23257         (Depends-on): Add ansi-c++-opt.
23258         (Makefile.am): Arrange to compile and run test-unistd-c++.
23259         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23260         gl_MODULE_INDICATOR.
23261
23262         Tests of module 'time' in C++ mode.
23263         * tests/test-time-c++.cc: New file.
23264         * modules/time-tests (Files): Add it and tests/signature.h.
23265         (Depends-on): Add ansi-c++-opt.
23266         (Makefile.am): Arrange to compile and run test-time-c++.
23267         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23268
23269         Tests of module 'sys_time' in C++ mode.
23270         * tests/test-sys_time-c++.cc: New file.
23271         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23272         (Depends-on): Add ansi-c++-opt.
23273         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23274         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23275         gl_MODULE_INDICATOR.
23276
23277         Tests of module 'sys_stat' in C++ mode.
23278         * tests/test-sys_stat-c++.cc: New file.
23279         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23280         (Depends-on): Add ansi-c++-opt.
23281         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23282         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23283         gl_MODULE_INDICATOR.
23284
23285         Tests of module 'sys_socket' in C++ mode.
23286         * tests/test-sys_socket-c++.cc: New file.
23287         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23288         (Depends-on): Add ansi-c++-opt.
23289         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23290         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23291         gl_MODULE_INDICATOR.
23292
23293         Tests of module 'sys_select' in C++ mode.
23294         * tests/test-sys_select-c++.cc: New file.
23295         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23296         (Depends-on): Add ansi-c++-opt.
23297         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23298         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23299         gl_MODULE_INDICATOR.
23300
23301         Tests of module 'sys_ioctl' in C++ mode.
23302         * tests/test-sys_ioctl-c++.cc: New file.
23303         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23304         (Depends-on): Add ansi-c++-opt.
23305         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23306         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23307         gl_MODULE_INDICATOR.
23308
23309         Tests of module 'string' in C++ mode.
23310         * tests/test-string-c++.cc: New file.
23311         * modules/string-tests (Files): Add it and tests/signature.h.
23312         (Depends-on): Add ansi-c++-opt.
23313         (Makefile.am): Arrange to compile and run test-string-c++.
23314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23315         gl_MODULE_INDICATOR.
23316
23317         Tests of module 'stdlib' in C++ mode.
23318         * tests/test-stdlib-c++.cc: New file.
23319         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23320         (Depends-on): Add ansi-c++-opt.
23321         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23322         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23323         gl_MODULE_INDICATOR.
23324
23325         Tests of module 'stdio' in C++ mode.
23326         * tests/test-stdio-c++.cc: New file.
23327         * modules/stdio-tests (Files): Add it and tests/signature.h.
23328         (Depends-on): Add ansi-c++-opt.
23329         (Makefile.am): Arrange to compile and run test-stdio-c++.
23330         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23331         gl_MODULE_INDICATOR.
23332
23333         Tests of module 'spawn' in C++ mode.
23334         * tests/test-spawn-c++.cc: New file.
23335         * modules/spawn-tests (Files): Add it and tests/signature.h.
23336         (Depends-on): Add ansi-c++-opt.
23337         (Makefile.am): Arrange to compile and run test-spawn-c++.
23338         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23339         gl_MODULE_INDICATOR.
23340
23341         Tests of module 'signal' in C++ mode.
23342         * tests/test-signal-c++.cc: New file.
23343         * modules/signal-tests (Files): Add it and tests/signature.h.
23344         (Depends-on): Add ansi-c++-opt.
23345         (Makefile.am): Arrange to compile and run test-signal-c++.
23346         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23347         gl_MODULE_INDICATOR.
23348
23349         Tests of module 'search' in C++ mode.
23350         * tests/test-search-c++.cc: New file.
23351         * modules/search-tests (Files): Add it and tests/signature.h.
23352         (Depends-on): Add ansi-c++-opt.
23353         (Makefile.am): Arrange to compile and run test-search-c++.
23354         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23355         gl_MODULE_INDICATOR.
23356
23357         Tests of module 'math' in C++ mode.
23358         * tests/test-math-c++.cc: New file.
23359         * modules/math-tests (Files): Add it and tests/signature.h.
23360         (Depends-on): Add ansi-c++-opt.
23361         (Makefile.am): Arrange to compile and run test-math-c++.
23362         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23363
23364         Tests of module 'locale' in C++ mode.
23365         * tests/test-locale-c++.cc: New file.
23366         * modules/locale-tests (Files): Add it and tests/signature.h.
23367         (Depends-on): Add ansi-c++-opt.
23368         (Makefile.am): Arrange to compile and run test-locale-c++.
23369         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23370         gl_MODULE_INDICATOR.
23371
23372         Tests of module 'langinfo' in C++ mode.
23373         * tests/test-langinfo-c++.cc: New file.
23374         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23375         (Depends-on): Add ansi-c++-opt.
23376         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23377         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23378         gl_MODULE_INDICATOR.
23379
23380         Tests of module 'iconv-h' in C++ mode.
23381         * tests/test-iconv-h-c++.cc: New file.
23382         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23383         (Depends-on): Add ansi-c++-opt.
23384         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23385
23386         Tests of module 'glob' in C++ mode.
23387         * tests/test-glob-c++.cc: New file.
23388         * modules/glob-tests (Files): Add it.
23389         (Depends-on): Add ansi-c++-opt.
23390         (Makefile.am): Arrange to compile and run test-glob-c++.
23391
23392         Tests of module 'fcntl-h' in C++ mode.
23393         * tests/test-fcntl-h-c++.cc: New file.
23394         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23395         (Depends-on): Add ansi-c++-opt.
23396         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23397         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23398         gl_MODULE_INDICATOR.
23399
23400         Tests of module 'dirent' in C++ mode.
23401         * tests/test-dirent-c++.cc: New file.
23402         * modules/dirent-tests (Files): Add it and tests/signature.h.
23403         (Depends-on): Add ansi-c++-opt.
23404         (Makefile.am): Arrange to compile and run test-dirent-c++.
23405         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23406         gl_MODULE_INDICATOR.
23407
23408         New module 'ansi-c++-opt'.
23409         * modules/ansi-c++-opt: New file.
23410         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23411
23412         Document C++ namespace mode.
23413         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23414
23415         wctype: Avoid #define replacements in C++ mode.
23416         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23417         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23418         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23419         In C++, define a namespaced alias symbol.
23420         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23421         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23422         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23423         rule.
23424
23425         wchar: Avoid #define replacements in C++ mode.
23426         * lib/wchar.in.h: Include c++defs.h.
23427         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23428         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23429         symbol.
23430         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23431         * modules/wchar (Depends-on): Add c++defs.
23432         (Makefile.am): Update wchar.h rule.
23433
23434         unistd: Avoid #define replacements in C++ mode.
23435         * lib/unistd.in.h: Include c++defs.h.
23436         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23437         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23438         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23439         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23440         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23441         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23442         symbol.
23443         (environ): Update.
23444         * modules/unistd (Depends-on): Add c++defs.
23445         (Makefile.am): Update unistd.h rule.
23446
23447         time: Avoid #define replacements in C++ mode.
23448         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23449         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23450         define a namespaced alias symbol.
23451         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23452         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23453         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23454         * modules/time (Depends-on): Add c++defs, warn-on-use.
23455         (Makefile.am): Update time.h rule.
23456         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23457         * modules/nanosleep (configure.ac): Likewise.
23458         * modules/strptime (configure.ac): Likewise.
23459         * modules/timegm (configure.ac): Likewise.
23460
23461         sys_time: Avoid #define replacements in C++ mode.
23462         * lib/sys_time.in.h: Include c++defs.h.
23463         (gettimeofday): In C++, define a namespaced alias symbol.
23464         * modules/sys_time (Depends-on): Add c++defs.
23465         (Makefile.am): Update sys/time.h rule.
23466
23467         sys_stat: Avoid #define replacements in C++ mode.
23468         * lib/sys_stat.in.h: Include c++defs.h.
23469         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23470         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23471         namespaced alias symbol.
23472         In C++, define a namespaced alias symbol.
23473         * modules/sys_stat (Depends-on): Add c++defs.
23474         (Makefile.am): Update sys/stat.h rule.
23475
23476         sys_socket: Avoid #define replacements in C++ mode.
23477         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23478         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23479         definitions also when the system has a <sys/socket.h>.
23480         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23481         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23482         In C++, define a namespaced alias symbol.
23483         * modules/sys_socket (Depends-on): Add c++defs.
23484         (Makefile.am): Update sys/socket.h rule.
23485
23486         sys_select: Avoid #define replacements in C++ mode.
23487         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23488         definitions also when the system has a <sys/select.h>.
23489         (select): In C++, define a namespaced alias symbol.
23490         * modules/sys_select (Depends-on): Add c++defs.
23491         (Makefile.am): Update sys/select.h rule.
23492
23493         sys_ioctl: Avoid #define replacements in C++ mode.
23494         * lib/sys_ioctl.in.h: Include c++defs.h.
23495         (ioctl): In C++, define a namespaced alias symbol.
23496         * modules/sys_ioctl (Depends-on): Add c++defs.
23497         (Makefile.am): Update sys/ioctl.h rule.
23498
23499         string: Avoid #define replacements in C++ mode.
23500         * lib/string.in.h: Include c++defs.h.
23501         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23502         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23503         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23504         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23505         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23506         * modules/string (Depends-on): Add c++defs.
23507         (Makefile.am): Update string.h rule.
23508
23509         stdlib: Avoid #define replacements in C++ mode.
23510         * lib/stdlib.in.h: Include c++defs.h.
23511         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23512         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23513         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23514         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23515         symbol.
23516         * modules/stdlib (Depends-on): Add c++defs.
23517         (Makefile.am): Update stdlib.h rule.
23518
23519         stdio: Avoid #define replacements in C++ mode.
23520         * lib/stdio.in.h: Include c++defs.h.
23521         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23522         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23523         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23524         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23525         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23526         namespaced alias symbol.
23527         * modules/stdio (Depends-on): Add c++defs.
23528         (Makefile.am): Update stdio.h rule.
23529
23530         spawn: Avoid #define replacements in C++ mode.
23531         * lib/spawn.in.h: Include c++defs.h.
23532         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23533         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23534         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23535         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23536         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23537         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23538         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23539         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23540         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23541         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23542         In C++, define a namespaced alias symbol.
23543         * modules/spawn (Depends-on): Add c++defs.
23544         (Makefile.am): Update spawn.h rule.
23545
23546         signal: Avoid #define replacements in C++ mode.
23547         * lib/signal.in.h: Include c++defs.h.
23548         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23549         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23550         namespaced alias symbol.
23551         * modules/signal (Depends-on): Add c++defs.
23552         (Makefile.am): Update signal.h rule.
23553
23554         search: Avoid #define replacements in C++ mode.
23555         * lib/search.in.h: Include c++defs.h.
23556         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23557         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23558         symbol.
23559         * modules/search (Depends-on): Add c++defs.
23560         (Makefile.am): Update search.h rule.
23561
23562         math: Avoid #define replacements in C++ mode.
23563         * lib/math.in.h: Include c++defs.h.
23564         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23565         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23566         trunc, truncl): In C++, define a namespaced alias symbol.
23567         * modules/math (Depends-on): Add c++defs.
23568         (Makefile.am): Update math.h rule.
23569
23570         locale: Avoid #define replacements in C++ mode.
23571         * lib/locale.in.h: Include c++defs.h.
23572         (duplocale): In C++, define a namespaced alias symbol.
23573         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23574         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23575         * modules/locale (Depends-on): Add c++defs.
23576         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23577
23578         langinfo: Avoid #define replacements in C++ mode.
23579         * lib/langinfo.in.h: Include c++defs.h.
23580         (nl_langinfo): In C++, define a namespaced alias symbol.
23581         * modules/langinfo (Depends-on): Add c++defs.
23582         (Makefile.am): Update langinfo.h rule.
23583
23584         iconv-h: Avoid #define replacements in C++ mode.
23585         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23586         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23587         symbol.
23588         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23589         whenever iconv is present.
23590         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23591         (Makefile.am): Update iconv.h rule.
23592
23593         glob: Avoid #define replacements in C++ mode.
23594         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23595         (_gl_glob_errfunc_fn): New type.
23596         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23597         symbol.
23598         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23599         (Makefile.am): Update glob.h rule.
23600
23601         fcntl-h: Avoid #define replacements in C++ mode.
23602         * lib/fcntl.in.h: Include c++defs.h.
23603         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23604         * modules/fcntl-h (Depends-on): Add c++defs.
23605         (Makefile.am): Update fcntl.h rule.
23606
23607         dirent: Avoid #define replacements in C++ mode.
23608         * lib/dirent.in.h: Include c++defs.h.
23609         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23610         namespaced alias symbol.
23611         (dirfd): Update declaration.
23612         * modules/dirent (Depends-on): Add c++defs.
23613         (Makefile.am): Update dirent.h rule.
23614
23615         ctype: Make it usable in C++ code.
23616         * lib/ctype.in.h: Include c++defs.h.
23617         (isblank): Declare as extern "C".
23618         * modules/ctype (Depends-on): Add c++defs.
23619         (Makefile.am): Update ctype.h rule.
23620
23621         New module 'c++defs'.
23622         * modules/c++defs: New file.
23623         * build-aux/c++defs.h: New file.
23624         Reported by John W. Eaton <jwe@gnu.org>.
23625
23626 2010-03-07  Bruno Haible  <bruno@clisp.org>
23627
23628         logb: Provide missing declaration for Cygwin.
23629         * lib/math.in.h (logb): New declaration.
23630         * m4/logb.m4: New file.
23631         * modules/logb (Files): Add m4/logb.m4.
23632         (Depends-on): Add math.
23633         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23634         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23636         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23637         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23638
23639 2010-03-07  Bruno Haible  <bruno@clisp.org>
23640
23641         Fix test-cond link error.
23642         * tests/test-cond.c: Include <stdio.h>.
23643
23644 2010-03-07  Bruno Haible  <bruno@clisp.org>
23645
23646         Fix test-dirent-safer link error.
23647         * modules/dirent-safer-tests (Makefile.am): Define
23648         test_dirent_safer_LDADD.
23649
23650 2010-03-07  Bruno Haible  <bruno@clisp.org>
23651
23652         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23653         among default module list.
23654
23655 2010-03-07  Bruno Haible  <bruno@clisp.org>
23656
23657         Fix link error on platforms with GNU libiconv.
23658         * modules/unistr/u8-strcoll-tests (Makefile): Define
23659         test_u8_strcoll_LDADD.
23660         * modules/unistr/u16-strcoll-tests (Makefile): Define
23661         test_u16_strcoll_LDADD.
23662         * modules/unistr/u32-strcoll-tests (Makefile): Define
23663         test_u32_strcoll_LDADD.
23664
23665 2010-03-07  Bruno Haible  <bruno@clisp.org>
23666
23667         Use POSIX declarations for socket functions.
23668         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23669         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23670         rpl_sendto): Change declaration to match POSIX.
23671         * lib/connect.c (rpl_connect): Likewise.
23672         * lib/accept.c (rpl_accept): Likewise.
23673         * lib/bind.c (rpl_bind): Likewise.
23674         * lib/getpeername.c (rpl_getpeername): Likewise.
23675         * lib/getsockname.c (rpl_getsockname): Likewise.
23676         * lib/recv.c (rpl_recv): Likewise.
23677         * lib/send.c (rpl_send): Likewise.
23678         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23679         * lib/sendto.c (rpl_sendto): Likewise.
23680
23681 2010-03-06  Bruno Haible  <bruno@clisp.org>
23682
23683         Clarify access, euidaccess, faccessat.
23684         * doc/posix-functions/faccessat.texi: Mention security problem under
23685         "Other problems", not "Portability problems".
23686         * doc/posix-functions/access.texi: Likewise. Mention a related security
23687         problem.
23688         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23689         * lib/euidaccess.c: Add comments about platforms.
23690         * lib/unistd.in.h (access, euidaccess): Add warnings.
23691
23692 2010-03-07  Bruno Haible  <bruno@clisp.org>
23693
23694         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23695         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23696         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23697         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23698         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23699         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23700         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23701         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23702         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23703         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23704         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23705         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23706         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23707         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23708         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23709         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23710         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23711         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23712         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23713         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23714         Likewise.
23715         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23716         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23717         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23718         Likewise.
23719         * tests/test-spawn.c (main): Make it work when
23720         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23721
23722 2010-03-07  Bruno Haible  <bruno@clisp.org>
23723
23724         Fix incorrect Makefile.am generation in German locale.
23725         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23726         Execute sed command with character range in C locale.
23727
23728 2010-03-06  Bruno Haible  <bruno@clisp.org>
23729
23730         Tests for module 'iconv-h'.
23731         * modules/iconv-h-tests: New file.
23732         * tests/test-iconv-h.c: New file.
23733
23734         New module 'iconv-h'.
23735         * modules/iconv-h: New file.
23736         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23737         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23738         (configure.ac): Remove gl_ICONV_H.
23739         (Makefile.am): Remove rule for iconv.h.
23740
23741 2010-03-06  Bruno Haible  <bruno@clisp.org>
23742
23743         More consistent naming of *.m4 files.
23744         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23745         * modules/wctype (Files): Update.
23746
23747         More consistent naming of *.m4 files.
23748         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23749         * modules/wchar (Files): Update.
23750
23751 2010-03-06  Jim Meyering  <meyering@redhat.com>
23752
23753         euidaccess: relax license to LGPLv2+
23754         * modules/euidaccess (License): Relax to LGPLv2+.
23755
23756 2010-03-06  Bruno Haible  <bruno@clisp.org>
23757
23758         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23759         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23760         (Makefile.am): Augment lib_SOURCES instead.
23761
23762 2010-03-04  Jim Meyering  <meyering@redhat.com>
23763
23764         utime: remove obsolete module
23765         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23766         unnecessary for years, and has been marked as obsolete for 10 months.
23767         * modules/utime: Remove file.
23768         * lib/utime.c: Remove file.
23769         * m4/utime.m4: Remove file.
23770         * m4/utimes-null.m4: Remove file.
23771         * doc/posix-functions/utime.texi (utime): Remove reference to
23772         the module.  Move the sole "fixed by gnulib" item into the
23773         "problems not fixed by Gnulib" list.
23774         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23775
23776 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23777
23778         * modules/exit (License): Relax license to LGPLv2+.
23779         (Status): Mark as obsolete.
23780         * NEWS: Mention deprecated 'exit' module.
23781         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23782         of now obsolete 'exit'.
23783
23784 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23785
23786         fts-lgpl: remove unused module
23787         * modules/fts-lgpl: Remove.
23788         * MODULES.html.sh (func_all_modules): Adjust.
23789         * check-module (find_included_lib_files): Adjust.
23790         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23791
23792 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23793
23794         copy-acl: enhance Solaris ACL error handling
23795         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23796         * lib/set-mode-acl.c (qset_acl): Likewise.
23797
23798 2010-03-02  Bruno Haible  <bruno@clisp.org>
23799
23800         spawn: Don't override the system defined values on FreeBSD 8.
23801         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23802         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23803         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23804         if HAVE_POSIX_SPAWN is 1.
23805         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23806
23807 2010-03-01  Bruno Haible  <bruno@clisp.org>
23808
23809         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23810         regarding Automake.
23811
23812 2010-02-25  Bruno Haible  <bruno@clisp.org>
23813
23814         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23815         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23816         setting, not afterwards.
23817         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23818
23819 2010-02-24  Eric Blake  <eblake@redhat.com>
23820
23821         bootstrap, git-version-gen: use timestamp
23822         * build-aux/git-version-gen (scriptversion): Force UTC.
23823         * build-aux/bootstrap (scriptversion): New variable.
23824
23825         bootstrap: allow older git
23826         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23827         older than 1.6.4.  Requested by the libvirt project.
23828
23829 2010-02-23  Eric Blake  <eblake@redhat.com>
23830
23831         warn-on-use: work with old autoconf
23832         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23833         AS_VAR semantics of autoconf 2.60.
23834         Reported by Bruno Haible.
23835
23836         bootstrap: improve some comments
23837         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23838         clarification comments.
23839
23840         gettimeofday: provide correct function
23841         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23842         when replacement is declared, otherwise provide gettimeofday.
23843         Reported by Michael Goffioul.
23844
23845 2010-02-23  Jim Meyering  <meyering@redhat.com>
23846
23847         lib-ignore: relax license to "unlimited", not LGPLv2+
23848         * modules/lib-ignore (License): Relax to "unlimited".
23849
23850 2010-02-23  Jim Meyering  <meyering@redhat.com>
23851
23852         lib-ignore: relax license to LGPLv2+
23853         * modules/lib-ignore (License): Relax to LGPLv2+.
23854
23855 2010-02-22  Eric Blake  <eblake@redhat.com>
23856
23857         lseek: avoid bash 3.2 broken pipe bug
23858         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23859         warning from bash 3.2.
23860         Reported by Ben Pfaff, with analysis from Bruno Haible.
23861
23862         bootstrap: support non-FSF copyright holder
23863         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23864         bootstrap.conf override of COPYRIGHT_HOLDER.
23865         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23866
23867         bootstrap: interoperate with gettext 0.14.1
23868         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23869
23870         bootstrap: allow for alternate submodule location
23871         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23872         hardcoding submodule location.
23873         (gnulib_mk): Allow direct use of Makefile.am.
23874
23875         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23876         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23877         rather than reconfiguring where the submodule points.
23878
23879         gettimeofday: restore support for platforms that lack function
23880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23881         replacement if function is missing.
23882         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23883         * modules/sys_time (Makefile.am): Substitute it.
23884         * lib/sys_time.in.h (gettimeofday): Check it.
23885         Reported by Michael Goffioul.
23886
23887 2010-02-21  Bruno Haible  <bruno@clisp.org>
23888
23889         * lib/stdio.in.h (obstack_printf): Fix typo.
23890
23891 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23892
23893         vc-list-files: use bzr ls's -R option
23894         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23895         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23896
23897 2010-02-21  Jim Meyering  <meyering@redhat.com>
23898
23899         init.sh: fix EXEEXT shims to work also for names like test-prog
23900         * tests/init.sh: Re-exec a better shell, when needed.
23901         If the current shell lacks support for posix $(...), an init.sh-using
23902         test will now try to find a shell that supports that.  If EXEEXT is
23903         nonempty, we also require support for hyphen-in-alias-name and shell
23904         substitutions like ${var#glob}.  Failure to find such a shell results
23905         in a skipped test.
23906
23907 2010-02-21  Bruno Haible  <bruno@clisp.org>
23908
23909         Really work around around "broken pipe" error message from bash 3.2.
23910         * gnulib-tool (func_reset_sigpipe): Remove function.
23911         (echo): In bash 3.2, define to a function that uses printf.
23912         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23913
23914 2010-02-20  Bruno Haible  <bruno@clisp.org>
23915
23916         Restore support for automake 1.9.6 with autoconf 2.61.
23917         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23918         Reported by James Youngman <jay@gnu.org>.
23919
23920 2010-02-20  Bruno Haible  <bruno@clisp.org>
23921
23922         Improve *printf warning condition.
23923         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23924         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23925         and the function is overridden due to SIGPIPE emulation.
23926
23927 2010-02-20  Bruno Haible  <bruno@clisp.org>
23928
23929         * lib/stdio.in.h: Tweak comments.
23930
23931 2010-02-19  Bruno Haible  <bruno@clisp.org>
23932
23933         Make it easier to find modules. New gnulib-tool option '--find'.
23934         * gnulib-tool: New option --find.
23935         (func_usage): Document it.
23936         (func_sanitize_modulelist): New function, extracted from
23937         func_all_modules.
23938         (func_all_modules): Invoke it.
23939         * doc/gnulib-tool.texi (Which modules?): New node.
23940
23941 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23942
23943         * lib/sys_select.in.h: Provide select replacement even if
23944         sys/select.h exists on a system, for Interix.
23945
23946 2010-02-18  Jim Meyering  <meyering@redhat.com>
23947
23948         init.sh: don't use $(...) just yet
23949         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23950         to accommodate e.g., Solaris' /bin/sh.
23951
23952 2010-02-17  Bruno Haible  <bruno@clisp.org>
23953
23954         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23955         Reported by Ludovic Courtès <ludo@gnu.org>.
23956
23957 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23958
23959         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23960         linking with -lintl.
23961
23962 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23963
23964         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23965         if not provided by the system's netdb.h.  Reported by
23966         ludo@gnu.org (Ludovic Courtès).
23967
23968 2010-02-15  Jim Meyering  <meyering@redhat.com>
23969
23970         init.sh: improve portability and efficiency
23971         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23972         "dummy" in a for loop.
23973         Use '!', not '^' to select the complement of a character set used
23974         in a "case" statement.
23975         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23976         Suggestions from Eric Blake.
23977
23978         init.sh: automatically accommodate programs with the .exe suffix
23979         Automatically arrange for an invocation of "prog" to execute the
23980         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23981         may use the simpler "prog", yet still work when built on a system
23982         that requires specifying the added suffix.
23983         Do this by constructing a function named "prog" that invokes
23984         "prog.exe" for each .exe file in selected directories.
23985         * tests/init.sh (find_exe_basenames_): New function.
23986         (create_exe_shim_functions_): New function.
23987         (path_prepend_): Use it.
23988
23989         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23990         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23991         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23992
23993 2010-02-14  Jim Meyering  <meyering@redhat.com>
23994
23995         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23996         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23997         (sc_prohibit_hash_pjw_without_use): New rule.
23998
23999         maint.mk: allow the default upload destination dir to be overridden
24000         * top/maint.mk (upload_dest_dir_): Define with a default that
24001         preserves the status quo.
24002         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24003         Reported by Peter Simons.
24004
24005         maint.mk: prohibit inclusion of "hash.h" without_use
24006         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24007
24008 2010-02-10  Jim Meyering  <meyering@redhat.com>
24009
24010         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24011         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24012
24013 2010-02-09  Eric Blake  <ebb9@byu.net>
24014         and Bruno Haible  <bruno@clisp.org>
24015
24016         obstack-printf-posix: ensure declaration
24017         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24018         extracted from gl_FUNC_OBSTACK_PRINTF.
24019         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24020         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24021         Likewise.
24022         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24023         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24024         0.
24025
24026 2010-02-08  Bruno Haible  <bruno@clisp.org>
24027
24028         gnulib-tool: Fix typo in 2010-02-07 commit.
24029         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24030         Reported by Eric Blake.
24031
24032 2010-02-07  Bruno Haible  <bruno@clisp.org>
24033
24034         gnulib-tool: Fix up caching patches.
24035         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24036         option --no-cache. Use associative arrays when supported by the shell.
24037         (sed_comments): New variable.
24038         (modcache): Renamed from do_cache.
24039         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24040         abbreviate unnecessarily.
24041         (have_associative): New variable.
24042         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24043         way also for ksh and zsh.
24044         (func_init_sed_convert_to_cache_statements): New function, extracted
24045         from func_cache_lookup_module. Add support for associative arrays.
24046         Don't set the c_MODULE_cached variable here. Ignore all lines before
24047         the first field header. Remove only the final newline, not all trailing
24048         newlines. Support empty fields correctly. Limit the use of 'eval' to
24049         assignments.
24050         (func_get_description, func_get_status, func_get_notice,
24051         func_get_applicability, func_get_filelist, func_get_dependencies,
24052         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24053         func_get_automake_snippet, func_get_include_directive,
24054         func_get_link_directive, func_get_license, func_get_maintainer):
24055         Update documentation. List the unoptimized code first. Add support for
24056         associative arrays. Limit the use of 'eval' to assignments.
24057         (func_get_applicability): Undo stylistic pessimisations.
24058         (func_get_automake_snippet, func_get_include_directive): Reduce code
24059         duplication.
24060         (func_modules_transitive_closure, func_modules_add_dummy,
24061         func_modules_notice, func_modules_to_filelist, func_add_file,
24062         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24063         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24064         func_create_testdir, func_create_megatestdir): Update documentation.
24065
24066 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24067
24068         * gnulib-tool (func_cache_lookup_module): Store the module name
24069         belonging to the cache variable; error out if two different
24070         module names map to the same cache variable name.
24071
24072 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24073
24074         gnulib-tool: Make caching optional.
24075         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24076         Update matching short versions of --no-changelog.
24077         (func_usage): Update.
24078         (sed_extract_cache_prog): Renamed from ...
24079         (sed_extract_prog): ... this; revert to old extraction script.
24080         (func_get_description, func_get_status)
24081         (func_get_notice, func_get_applicability, func_get_filelist)
24082         (func_get_dependencies, func_get_autoconf_early_snippet)
24083         (func_get_autoconf_snippet, func_get_automake_snippet)
24084         (func_get_include_directive, func_get_link_directive)
24085         (func_get_license, func_get_maintainer): If $do_cache is false,
24086         use old, non-caching extraction scripts.
24087         Suggestion by Bruno Haible.
24088
24089 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24090
24091         gnulib-tool: cache module metainformation.
24092         * gnulib-tool (sed_extract_prog): Match newline before each
24093         header, and rewrite header to a shell variable suffix.
24094         (func_cache_var, func_cache_lookup_module): New functions,
24095         to turn a module name into a cache variable prefix, and to
24096         look up and cache module metainformation.
24097         (func_get_description, func_get_status)
24098         (func_get_notice, func_get_applicability, func_get_filelist)
24099         (func_get_dependencies, func_get_autoconf_early_snippet)
24100         (func_get_autoconf_snippet, func_get_automake_snippet)
24101         (func_get_include_directive, func_get_link_directive)
24102         (func_get_license, func_get_maintainer): Use
24103         func_cache_lookup_module.
24104
24105 2010-02-07  Bruno Haible  <bruno@clisp.org>
24106
24107         fnctl: Fix missing dependency.
24108         * modules/fcntl (Depends-on): Add getdtablesize.
24109         Reported by John W. Eaton <jwe@gnu.org>.
24110
24111 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24112
24113         Argp: fix recognition of short alias options.
24114
24115         * lib/argp-parse.c (convert_options): Fix improper use of
24116         `|' between character values.
24117         * tests/test-argp.c (group1_option): New alias option
24118         --read (-r).
24119         (group1_parser): Special handling for 'r'.
24120         (test15): New test case.
24121         (test_fun): Add test15.
24122         * tests/test-argp-2.sh: Update expected --help and --usage
24123         outputs.
24124
24125 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24126
24127         * tests/test-argp.c: Fix indentation.
24128
24129 2010-02-04  Eric Blake  <ebb9@byu.net>
24130
24131         gettimeofday: expose type of second argument
24132         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24133         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24134         * tests/test-gettimeofday.c: Use it to silence warning.
24135         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24136         the issue.
24137
24138 2010-02-03  Jim Meyering  <meyering@redhat.com>
24139
24140         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24141         * lib/regcomp.c (TYPE_SIGNED): Define.
24142         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24143
24144         regcomp.c: avoid a new -Wshadow warning
24145         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24146
24147 2010-02-01  Jim Meyering  <meyering@redhat.com>
24148
24149         removing useless parentheses in cpp #define directives
24150         For motivation, see commit c0221df4, "define STREQ(a,b)
24151         consistently, removing useless parentheses"
24152         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24153         * lib/mountlist.c (MNT_IGNORE): Likewise.
24154         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24155
24156 2010-02-01  Eric Blake  <ebb9@byu.net>
24157
24158         sys_time: use link-warning
24159         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24160         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24161         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24162         * modules/sys_time (Depends-on): Add warn-on-use.
24163         (Makefile.am): Always build replacement.
24164         (configure.ac): Update substitutions.
24165         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24166         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24167         bother with SYS_TIME_H.
24168         * modules/gettimeofday (configure.ac): Declare indicator.
24169         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24170         in use.
24171
24172         closein-tests: silence compiler warning
24173         * tests/test-closein.c (main): Ignore fread result.
24174         * modules/closein-tests (Depends-on): Add ignore-value.
24175
24176         tests: silence warning about system return
24177         * tests/test-areadlink-with-size.c (main): Ignore system result.
24178         * tests/test-areadlink.c (main): Likewise.
24179         * tests/test-areadlinkat-with-size.c (main): Likewise.
24180         * tests/test-areadlinkat.c (main): Likewise.
24181         * tests/test-canonicalize-lgpl.c (main): Likewise.
24182         * tests/test-canonicalize.c (main): Likewise.
24183         * tests/test-chown.c (main): Likewise.
24184         * tests/test-fchownat.c (main): Likewise.
24185         * tests/test-fdutimensat.c (main): Likewise.
24186         * tests/test-fstatat.c (main): Likewise.
24187         * tests/test-futimens.c (main): Likewise.
24188         * tests/test-lchown.c (main): Likewise.
24189         * tests/test-link.c (main): Likewise.
24190         * tests/test-linkat.c (main): Likewise.
24191         * tests/test-lstat.c (main): Likewise.
24192         * tests/test-mkdir.c (main): Likewise.
24193         * tests/test-mkdirat.c (main): Likewise.
24194         * tests/test-mkfifo.c (main): Likewise.
24195         * tests/test-mkfifoat.c (main): Likewise.
24196         * tests/test-mknod.c (main): Likewise.
24197         * tests/test-readlink.c (main): Likewise.
24198         * tests/test-remove.c (main): Likewise.
24199         * tests/test-rename.c (main): Likewise.
24200         * tests/test-renameat.c (main): Likewise.
24201         * tests/test-rmdir.c (main): Likewise.
24202         * tests/test-symlink.c (main): Likewise.
24203         * tests/test-symlinkat.c (main): Likewise.
24204         * tests/test-unlink.c (main): Likewise.
24205         * tests/test-unlinkat.c (main): Likewise.
24206         * tests/test-utimens.c (main): Likewise.
24207         * tests/test-utimensat.c (main): Likewise.
24208         * modules/areadlink-tests (Depends-on): Add ignore-value.
24209         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24210         * modules/areadlinkat-tests (Depends-on): Likewise.
24211         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24212         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24213         * modules/canonicalize-tests (Depends-on): Likewise.
24214         * modules/chown-tests (Depends-on): Likewise.
24215         * modules/fdutimensat-tests (Depends-on): Likewise.
24216         * modules/futimens-tests (Depends-on): Likewise.
24217         * modules/lchown-tests (Depends-on): Likewise.
24218         * modules/link-tests (Depends-on): Likewise.
24219         * modules/linkat-tests (Depends-on): Likewise.
24220         * modules/lstat-tests (Depends-on): Likewise.
24221         * modules/mkdir-tests (Depends-on): Likewise.
24222         * modules/mkfifo-tests (Depends-on): Likewise.
24223         * modules/mkfifoat-tests (Depends-on): Likewise.
24224         * modules/mknod-tests (Depends-on): Likewise.
24225         * modules/openat-tests (Depends-on): Likewise.
24226         * modules/readlink-tests (Depends-on): Likewise.
24227         * modules/remove-tests (Depends-on): Likewise.
24228         * modules/rename-tests (Depends-on): Likewise.
24229         * modules/renameat-tests (Depends-on): Likewise.
24230         * modules/rmdir-tests (Depends-on): Likewise.
24231         * modules/symlink-tests (Depends-on): Likewise.
24232         * modules/symlinkat-tests (Depends-on): Likewise.
24233         * modules/unlink-tests (Depends-on): Likewise.
24234         * modules/utimens-tests (Depends-on): Likewise.
24235         * modules/utimensat-tests (Depends-on): Likewise.
24236
24237 2010-01-31  Bruno Haible  <bruno@clisp.org>
24238
24239         Perform the same test for many <math.h> functions.
24240         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24241         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24242         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24243         of gl_MATHFUNC.
24244         * modules/acos (configure.ac): Likewise.
24245         * modules/asin (configure.ac): Likewise.
24246         * modules/atan (configure.ac): Likewise.
24247         * modules/atan2 (configure.ac): Likewise.
24248         * modules/cbrt (configure.ac): Likewise.
24249         * modules/copysign (configure.ac): Likewise.
24250         * modules/cos (configure.ac): Likewise.
24251         * modules/cosh (configure.ac): Likewise.
24252         * modules/erf (configure.ac): Likewise.
24253         * modules/erfc (configure.ac): Likewise.
24254         * modules/exp (configure.ac): Likewise.
24255         * modules/fmod (configure.ac): Likewise.
24256         * modules/hypot (configure.ac): Likewise.
24257         * modules/j0 (configure.ac): Likewise.
24258         * modules/j1 (configure.ac): Likewise.
24259         * modules/jn (configure.ac): Likewise.
24260         * modules/lgamma (configure.ac): Likewise.
24261         * modules/log (configure.ac): Likewise.
24262         * modules/log10 (configure.ac): Likewise.
24263         * modules/log1p (configure.ac): Likewise.
24264         * modules/pow (configure.ac): Likewise.
24265         * modules/remainder (configure.ac): Likewise.
24266         * modules/sin (configure.ac): Likewise.
24267         * modules/sinh (configure.ac): Likewise.
24268         * modules/tan (configure.ac): Likewise.
24269         * modules/tanh (configure.ac): Likewise.
24270         * modules/y0 (configure.ac): Likewise.
24271         * modules/y1 (configure.ac): Likewise.
24272         * modules/yn (configure.ac): Likewise.
24273         Suggested by Paolo Bonzini.
24274
24275 2010-01-31  Bruno Haible  <bruno@clisp.org>
24276
24277         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24278
24279 2010-01-31  Bruno Haible  <bruno@clisp.org>
24280
24281         Work around getdelim() bug on FreeBSD 8.0.
24282         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24283         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24284         not work.
24285         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24286         is 1.
24287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24288         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24289         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24290         a non-zero size.
24291         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24292
24293 2010-01-31  Bruno Haible  <bruno@clisp.org>
24294
24295         Work around getline() bug on FreeBSD 8.0.
24296         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24297         and a non-zero size.
24298         * tests/test-getline.c (main): Likewise.
24299         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24300         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24301
24302 2010-01-28  Eric Blake  <ebb9@byu.net>
24303
24304         regex: fix build failure
24305         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24306         platforms.
24307
24308 2010-01-28  Jim Meyering  <meyering@redhat.com>
24309
24310         regex: do not ignore memory allocation failure
24311         * lib/regex_internal.c (create_cd_newstate): Detect
24312         re_node_set_init_copy failure.   Extracted from glibc commit
24313         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24314
24315         regex: sync more white-space changes from libc
24316         * lib/regex_internal.c: White-space only changes.
24317         * lib/regexec.c: Likewise.
24318
24319         regex: add many uses of __attribute_warn_unused_result__
24320         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24321         * lib/regexec.c: Likewise.
24322         Extracted from a messy glibc commit.
24323
24324         regcomp.c: spelling and merge-artifact from glibc
24325         * lib/regcomp.c: Merge remainder of glibc's
24326         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24327
24328         regcomp.c: sync white-space changes from glibc
24329         * lib/regcomp.c: Merge to accommodate white space
24330         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24331
24332         regcomp.c: do not ignore internal return values
24333         * lib/regcomp.c: Do not ignore internal return values.
24334         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24335         but without its white-space changes and spelling fixes.
24336
24337         regex_internal.h: define __attribute_warn_unused_result__
24338         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24339
24340         maint: add a syntax-check rule to check for vulnerable Makefile.in
24341         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24342
24343 2010-01-27  Jim Meyering  <meyering@redhat.com>
24344
24345         ncftpput-ftp: clean up spaces
24346         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24347         Remove trailing blanks.
24348
24349 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24350
24351         * build-aux/git-version-gen: Fix copyright statement.
24352         * build-aux/gnupload: Likewise.
24353         * tests/test-arcfour.c: Likewise.
24354         * tests/test-arctwo.c: Likewise.
24355         * tests/test-count-one-bits.c: Likewise.
24356         * tests/test-crc.c: Likewise.
24357         * tests/test-des.c: Likewise.
24358         * tests/test-gc-arcfour.c: Likewise.
24359         * tests/test-gc-arctwo.c: Likewise.
24360         * tests/test-gc-des.c: Likewise.
24361         * tests/test-gc-hmac-md5.c: Likewise.
24362         * tests/test-gc-hmac-sha1.c: Likewise.
24363         * tests/test-gc-md2.c: Likewise.
24364         * tests/test-gc-md4.c: Likewise.
24365         * tests/test-gc-md5.c: Likewise.
24366         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24367         * tests/test-gc-rijndael.c: Likewise.
24368         * tests/test-gc-sha1.c: Likewise.
24369         * tests/test-gc.c: Likewise.
24370         * tests/test-gethostname.c: Likewise.
24371         * tests/test-gettimeofday.c: Likewise.
24372         * tests/test-hash.c: Likewise.
24373         * tests/test-hmac-md5.c: Likewise.
24374         * tests/test-hmac-sha1.c: Likewise.
24375         * tests/test-md2.c: Likewise.
24376         * tests/test-md4.c: Likewise.
24377         * tests/test-md5.c: Likewise.
24378         * tests/test-memchr.c: Likewise.
24379         * tests/test-memchr2.c: Likewise.
24380         * tests/test-memcmp.c: Likewise.
24381         * tests/test-memmem.c: Likewise.
24382         * tests/test-memrchr.c: Likewise.
24383         * tests/test-rawmemchr.c: Likewise.
24384         * tests/test-read-file.c: Likewise.
24385         * tests/test-rijndael.c: Likewise.
24386         * tests/test-sockets.c: Likewise.
24387         * tests/test-strchrnul.c: Likewise.
24388         * tests/test-strstr.c: Likewise.
24389         * tests/test-strtod.c: Likewise.
24390         * build-aux/ncftpput-ftp: Likewise.
24391
24392 2010-01-26  Eric Blake  <ebb9@byu.net>
24393
24394         ignore-value: update recommended header name
24395         * modules/ignore-value (Include): Only use <> for headers that
24396         exist in glibc.
24397
24398 2010-01-26  Jim Meyering  <meyering@redhat.com>
24399
24400         test-userspec.c: avoid compiler warnings
24401         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24402         and "initialization discards qualifiers..." warnings.
24403         Put the first "uid" in its own scope, and make char* members "const".
24404
24405 2010-01-25  Bruno Haible  <bruno@clisp.org>
24406
24407         gnulib-tool: Make warning diagnostics consistent.
24408         * gnulib-tool (func_warning): New function.
24409         Use it everywhere where gnulib-tool produces output to stderr and it is
24410         not a fatal error.
24411
24412 2010-01-25  Bruno Haible  <bruno@clisp.org>
24413
24414         Fix test dependencies.
24415         * modules/xstrtol-tests (Depends-on): Add inttypes.
24416         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24417
24418 2010-01-25 Pádraig Brady <P@draigBrady.com>
24419
24420         syntax-check: detect incorrect boolean macro values in config.h
24421         * modules/maintainer-makefile (configure.ac): Parameterize the location
24422         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24423         The logic is from Eric Blake and the location indicated by Jim Meyering.
24424         Note the more natural CONFIG_HEADER name is prohibited by automake
24425         for backwards compatibility reasons.
24426         * top/maint.mk (sc_Wundef_boolean): New rule.
24427
24428 2010-01-25  Jim Meyering  <meyering@redhat.com>
24429
24430         bootstrap: detect MacOS 10.6's shasum, too
24431         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24432         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24433
24434 2010-01-23  Jim Meyering  <meyering@redhat.com>
24435
24436         xstrtoll: new module
24437         * modules/xstrtoll: New file.
24438         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24439         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24440         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24441         ./configure fails if you use this module and lack "long long".
24442         * modules/xstrtoll-tests: New module.
24443         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24444         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24445         new init.sh-based test framework.
24446
24447 2010-01-24  Bruno Haible  <bruno@clisp.org>
24448
24449         Tests for module 'yn'.
24450         * modules/yn-tests: New file.
24451         * tests/test-yn.c: New file.
24452
24453         Tests for module 'y1'.
24454         * modules/y1-tests: New file.
24455         * tests/test-y1.c: New file.
24456
24457         Tests for module 'y0'.
24458         * modules/y0-tests: New file.
24459         * tests/test-y0.c: New file.
24460
24461         Tests for module 'tanh'.
24462         * modules/tanh-tests: New file.
24463         * tests/test-tanh.c: New file.
24464
24465         Tests for module 'tan'.
24466         * modules/tan-tests: New file.
24467         * tests/test-tan.c: New file.
24468
24469         Tests for module 'sqrt'.
24470         * modules/sqrt-tests: New file.
24471         * tests/test-sqrt.c: New file.
24472
24473         Tests for module 'sinh'.
24474         * modules/sinh-tests: New file.
24475         * tests/test-sinh.c: New file.
24476
24477         Tests for module 'sin'.
24478         * modules/sin-tests: New file.
24479         * tests/test-sin.c: New file.
24480
24481         Tests for module 'rint'.
24482         * modules/rint-tests: New file.
24483         * tests/test-rint.c: New file.
24484
24485         Tests for module 'remainder'.
24486         * modules/remainder-tests: New file.
24487         * tests/test-remainder.c: New file.
24488
24489         Tests for module 'pow'.
24490         * modules/pow-tests: New file.
24491         * tests/test-pow.c: New file.
24492
24493         Tests for module 'nextafter'.
24494         * modules/nextafter-tests: New file.
24495         * tests/test-nextafter.c: New file.
24496
24497         Tests for module 'modf'.
24498         * modules/modf-tests: New file.
24499         * tests/test-modf.c: New file.
24500
24501         Tests for module 'logb'.
24502         * modules/logb-tests: New file.
24503         * tests/test-logb.c: New file.
24504
24505         Tests for module 'log1p'.
24506         * modules/log1p-tests: New file.
24507         * tests/test-log1p.c: New file.
24508
24509         Tests for module 'log10'.
24510         * modules/log10-tests: New file.
24511         * tests/test-log10.c: New file.
24512
24513         Tests for module 'log'.
24514         * modules/log-tests: New file.
24515         * tests/test-log.c: New file.
24516
24517         Tests for module 'lgamma'.
24518         * modules/lgamma-tests: New file.
24519         * tests/test-lgamma.c: New file.
24520
24521         Tests for module 'ldexp'.
24522         * modules/ldexp-tests: New file.
24523         * tests/test-ldexp.c: New file.
24524
24525         Tests for module 'jn'.
24526         * modules/jn-tests: New file.
24527         * tests/test-jn.c: New file.
24528
24529         Tests for module 'j1'.
24530         * modules/j1-tests: New file.
24531         * tests/test-j1.c: New file.
24532
24533         Tests for module 'j0'.
24534         * modules/j0-tests: New file.
24535         * tests/test-j0.c: New file.
24536
24537         Tests for module 'hypot'.
24538         * modules/hypot-tests: New file.
24539         * tests/test-hypot.c: New file.
24540
24541         Tests for module 'fmod'.
24542         * modules/fmod-tests: New file.
24543         * tests/test-fmod.c: New file.
24544
24545         Tests for module 'fabs'.
24546         * modules/fabs-tests: New file.
24547         * tests/test-fabs.c: New file.
24548
24549         Tests for module 'exp'.
24550         * modules/exp-tests: New file.
24551         * tests/test-exp.c: New file.
24552
24553         Tests for module 'erfc'.
24554         * modules/erfc-tests: New file.
24555         * tests/test-erfc.c: New file.
24556
24557         Tests for module 'erf'.
24558         * modules/erf-tests: New file.
24559         * tests/test-erf.c: New file.
24560
24561         Tests for module 'cosh'.
24562         * modules/cosh-tests: New file.
24563         * tests/test-cosh.c: New file.
24564
24565         Tests for module 'cos'.
24566         * modules/cos-tests: New file.
24567         * tests/test-cos.c: New file.
24568
24569         Tests for module 'copysign'.
24570         * modules/copysign-tests: New file.
24571         * tests/test-copysign.c: New file.
24572
24573         Tests for module 'cbrt'.
24574         * modules/cbrt-tests: New file.
24575         * tests/test-cbrt.c: New file.
24576
24577         Tests for module 'atan2'.
24578         * modules/atan2-tests: New file.
24579         * tests/test-atan2.c: New file.
24580
24581         Tests for module 'atan'.
24582         * modules/atan-tests: New file.
24583         * tests/test-atan.c: New file.
24584
24585         Tests for module 'asin'.
24586         * modules/asin-tests: New file.
24587         * tests/test-asin.c: New file.
24588
24589         Tests for module 'acos'.
24590         * modules/acos-tests: New file.
24591         * tests/test-acos.c: New file.
24592
24593 2010-01-24  Bruno Haible  <bruno@clisp.org>
24594
24595         Fix tests for common <math.h> functions.
24596         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24597         code snippet that references the function pointer, rather than merely
24598         calling the function. Substitute the FUNC_LIBM variable.
24599         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24600         * modules/acos (configure.ac): Likewise.
24601         * modules/asin (configure.ac): Likewise.
24602         * modules/atan (configure.ac): Likewise.
24603         * modules/atan2 (configure.ac): Likewise.
24604         * modules/cbrt (configure.ac): Likewise.
24605         * modules/copysign (configure.ac): Likewise.
24606         * modules/cos (configure.ac): Likewise.
24607         * modules/cosh (configure.ac): Likewise.
24608         * modules/erf (configure.ac): Likewise.
24609         * modules/erfc (configure.ac): Likewise.
24610         * modules/exp (configure.ac): Likewise.
24611         * modules/fabs (configure.ac): Likewise.
24612         * modules/fmod (configure.ac): Likewise.
24613         * modules/hypot (configure.ac): Likewise.
24614         * modules/j0 (configure.ac): Likewise.
24615         * modules/j1 (configure.ac): Likewise.
24616         * modules/jn (configure.ac): Likewise.
24617         * modules/ldexp (configure.ac): Likewise.
24618         * modules/lgamma (configure.ac): Likewise.
24619         * modules/log (configure.ac): Likewise.
24620         * modules/log10 (configure.ac): Likewise.
24621         * modules/log1p (configure.ac): Likewise.
24622         * modules/logb (configure.ac): Likewise.
24623         * modules/modf (configure.ac): Likewise.
24624         * modules/nextafter (configure.ac): Likewise.
24625         * modules/pow (configure.ac): Likewise.
24626         * modules/remainder (configure.ac): Likewise.
24627         * modules/rint (configure.ac): Likewise.
24628         * modules/sin (configure.ac): Likewise.
24629         * modules/sinh (configure.ac): Likewise.
24630         * modules/tan (configure.ac): Likewise.
24631         * modules/tanh (configure.ac): Likewise.
24632         * modules/y0 (configure.ac): Likewise.
24633         * modules/y1 (configure.ac): Likewise.
24634         * modules/yn (configure.ac): Likewise.
24635
24636 2010-01-24  Bruno Haible  <bruno@clisp.org>
24637
24638         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24639         * tests/test-acosl.c (x): New variable.
24640         (main): Store argument in x and fetch it from x.
24641         * tests/test-asinl.c (x): New variable.
24642         (main): Store argument in x and fetch it from x.
24643         * tests/test-atanl.c (x): New variable.
24644         (main): Store argument in x and fetch it from x.
24645         * tests/test-cosl.c (x): New variable.
24646         (main): Store argument in x and fetch it from x.
24647         * tests/test-expl.c (x): New variable.
24648         (main): Store argument in x and fetch it from x.
24649         * tests/test-logl.c (x): New variable.
24650         (main): Store argument in x and fetch it from x.
24651         * tests/test-sinl.c (x): New variable.
24652         (main): Store argument in x and fetch it from x.
24653         * tests/test-sqrtl.c (x): New variable.
24654         (main): Store argument in x and fetch it from x.
24655         * tests/test-tanl.c (x): New variable.
24656         (main): Store argument in x and fetch it from x.
24657
24658 2010-01-24  Bruno Haible  <bruno@clisp.org>
24659
24660         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24661         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24662         assignments to the initial TESTS_ENVIRONMENT.
24663         * doc/gnulib.texi (Unit test modules): Document it.
24664         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24665         TESTS_ENVIRONMENT.
24666         * modules/btowc-tests (Makefile.am): Likewise.
24667         * modules/c-stack-tests (Makefile.am): Likewise.
24668         * modules/c-strcase-tests (Makefile.am): Likewise.
24669         * modules/copy-file-tests (Makefile.am): Likewise.
24670         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24671         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24672         * modules/mbrtowc-tests (Makefile.am): Likewise.
24673         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24674         * modules/mbscasestr-tests (Makefile.am): Likewise.
24675         * modules/mbschr-tests (Makefile.am): Likewise.
24676         * modules/mbscspn-tests (Makefile.am): Likewise.
24677         * modules/mbsinit-tests (Makefile.am): Likewise.
24678         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24679         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24680         * modules/mbspbrk-tests (Makefile.am): Likewise.
24681         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24682         * modules/mbsrchr-tests (Makefile.am): Likewise.
24683         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24684         * modules/mbsspn-tests (Makefile.am): Likewise.
24685         * modules/mbsstr-tests (Makefile.am): Likewise.
24686         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24687         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24688         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24689         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24690         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24691         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24692         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24693         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24694         * modules/wcrtomb-tests (Makefile.am): Likewise.
24695         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24696         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24697         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24698         assignments from TESTS_ENVIRONMENT.
24699         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24700         augmentation.
24701         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24702         * modules/atexit-tests (Makefile.am): Likewise.
24703         * modules/binary-io-tests (Makefile.am): Likewise.
24704         * modules/closein-tests (Makefile.am): Likewise.
24705         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24706         * modules/exclude-tests (Makefile.am): Likewise.
24707         * modules/fflush-tests (Makefile.am): Likewise.
24708         * modules/fpending-tests (Makefile.am): Likewise.
24709         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24710         * modules/freadahead-tests (Makefile.am): Likewise.
24711         * modules/freadptr-tests (Makefile.am): Likewise.
24712         * modules/freadseek-tests (Makefile.am): Likewise.
24713         * modules/fseek-tests (Makefile.am): Likewise.
24714         * modules/fseeko-tests (Makefile.am): Likewise.
24715         * modules/ftell-tests (Makefile.am): Likewise.
24716         * modules/ftello-tests (Makefile.am): Likewise.
24717         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24718         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24719         * modules/lseek-tests (Makefile.am): Likewise.
24720         * modules/parse-duration-tests (Makefile.am): Likewise.
24721         * modules/perror-tests (Makefile.am): Likewise.
24722         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24723         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24724         * modules/pipe-tests (Makefile.am): Likewise.
24725         * modules/pread-tests (Makefile.am): Likewise.
24726         * modules/printf-posix-tests (Makefile.am): Likewise.
24727         * modules/select-tests (Makefile.am): Likewise.
24728         * modules/sigpipe-tests (Makefile.am): Likewise.
24729         * modules/tsearch-tests (Makefile.am): Likewise.
24730         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24731         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24732         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24733         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24734         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24735         * modules/version-etc-tests (Makefile.am): Likewise.
24736         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24737         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24738         * modules/xalloc-die-tests (Makefile.am): Likewise.
24739         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24740         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24741         * modules/xstrtol-tests (Makefile.am): Likewise.
24742         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24743         * modules/yesno-tests (Makefile.am): Likewise.
24744         Suggested by Jim Meyering.
24745
24746 2010-01-24  Bruno Haible  <bruno@clisp.org>
24747
24748         More documentation.
24749         * doc/gnulib.texi (Writing modules): New chapter.
24750         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24751         the new chapter.
24752
24753 2010-01-24  Jim Meyering  <meyering@redhat.com>
24754
24755         maint.mk: do not prepend "./" after filtering
24756         * top/maint.mk (_prepend_srcdir_prefix): New variable
24757         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24758         "./" when $(srcdir) is ".".
24759
24760         define STREQ(a,b) consistently, removing useless parentheses
24761         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24762         since the only risk is that "a" or "b" contains an unparenthesized
24763         comma, but if either did that, STREQ would have 3 or more arguments.
24764         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24765         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24766         * lib/hash-triple.c (STREQ): Likewise.
24767         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24768         * lib/getugroups.c (STREQ): Likewise.
24769
24770 2010-01-23  Jim Meyering  <meyering@redhat.com>
24771
24772         maint.mk: fix syntax-check in a non-srcdir build directory
24773         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24774         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24775
24776 2010-01-22  Jim Meyering  <meyering@redhat.com>
24777
24778         userspec: add unit tests
24779         * tests/test-userspec.c: New file.
24780         * modules/userspec-tests: Likewise.
24781
24782 2010-01-21  Jim Meyering  <meyering@redhat.com>
24783
24784         maint.mk: handle source file names containing "." robustly
24785         * top/maint.mk (_dot_escaped_srcdir): Define.
24786         (VC_LIST): Use it in LHS of sed substitution.
24787
24788 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24789
24790         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24791         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24792         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24793         from a non-srcdir build.
24794
24795 2010-01-20  Eric Blake  <ebb9@byu.net>
24796
24797         warn-on-use: use instead of link-warning
24798         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24799         * modules/unistd (Depends-on, Makefile.am): Likewise.
24800         * modules/arpa_inet (Depends-on): Replace link-warning with
24801         warn-on-use.
24802         (Makefile.am): Update rules accordingly.
24803         * modules/ctype (Depends-on, Makefile.am): Likewise.
24804         * modules/dirent (Depends-on, Makefile.am): Likewise.
24805         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24806         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24807         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24808         * modules/locale (Depends-on, Makefile.am): Likewise.
24809         * modules/math (Depends-on, Makefile.am): Likewise.
24810         * modules/search (Depends-on, Makefile.am): Likewise.
24811         * modules/signal (Depends-on, Makefile.am): Likewise.
24812         * modules/spawn (Depends-on, Makefile.am): Likewise.
24813         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24814         * modules/string (Depends-on, Makefile.am): Likewise.
24815         * modules/strings (Depends-on, Makefile.am): Likewise.
24816         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24817         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24818         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24819         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24820         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24821         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24822         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24823         * modules/wchar (Depends-on, Makefile.am): Likewise.
24824         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24825         should be poisoned.
24826         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24827         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24828         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24829         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24830         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24831         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24832         * m4/math_h.m4 (gl_MATH_H): Likewise.
24833         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24834         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24835         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24836         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24837         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24838         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24839         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24840         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24841         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24842         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24843         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24844         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24845         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24846         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24847         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24848         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24849         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24850         GL_LINK_WARNING.
24851         * lib/ctype.in.h: Likewise.
24852         * lib/dirent.in.h: Likewise.
24853         * lib/fcntl.in.h: Likewise.
24854         * lib/inttypes.in.h: Likewise.
24855         * lib/langinfo.in.h: Likewise.
24856         * lib/locale.in.h: Likewise.
24857         * lib/math.in.h: Likewise.
24858         * lib/search.in.h: Likewise.
24859         * lib/signal.in.h: Likewise.
24860         * lib/spawn.in.h: Likewise.
24861         * lib/stdio.in.h: Likewise.
24862         * lib/stdlib.in.h: Likewise.
24863         * lib/string.in.h: Likewise.
24864         * lib/strings.in.h: Likewise.
24865         * lib/sys_file.in.h: Likewise.
24866         * lib/sys_ioctl.in.h: Likewise.
24867         * lib/sys_select.in.h: Likewise.
24868         * lib/sys_socket.in.h: Likewise.
24869         * lib/sys_stat.in.h: Likewise.
24870         * lib/sys_times.in.h: Likewise.
24871         * lib/sys_utsname.in.h: Likewise.
24872         * lib/unistd.in.h: Likewise.
24873         * lib/wchar.in.h: Likewise.
24874
24875 2010-01-20  Bruno Haible  <bruno@clisp.org>
24876
24877         Avoid duplicate -lm.
24878         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24879         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24880         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24881         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24882         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24883         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24884         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24885         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24886         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24887         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24888         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24889         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24890         Reported by Paolo Bonzini.
24891
24892 2010-01-19  Bruno Haible  <bruno@clisp.org>
24893
24894         langinfo, nl_langinfo: Relicense under LGPLv2+.
24895         * modules/langinfo (License): Change to LGPLv2+.
24896         * modules/nl_langinfo (License): Likewise.
24897         Patch by David Lutterkort <lutter@redhat.com>.
24898
24899 2010-01-19  Bruno Haible  <bruno@clisp.org>
24900
24901         Avoid compilation error with cc on OSF/1 5.1.
24902         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24903         statement, not before.
24904         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24905
24906 2010-01-18  Bruno Haible  <bruno@clisp.org>
24907
24908         Avoid a link error due to the __printf__ symbol.
24909         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24910         and 2.6.x.
24911         (__format__, __printf__): Remove definitions.
24912         * lib/argp-fmtstream.h: Likewise.
24913         * lib/argp.h: Likewise.
24914         * lib/error.h: Likewise.
24915         * lib/vasnprintf.h: Likewise.
24916         * lib/xprintf.h: Likewise.
24917         * lib/xvasprintf.h: Likewise.
24918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24919
24920 2010-01-18  Bruno Haible  <bruno@clisp.org>
24921
24922         Tests for module 'tanl'.
24923         * modules/tanl-tests: New file.
24924         * tests/test-tanl.c: New file.
24925
24926         Tests for module 'sqrtl'.
24927         * modules/sqrtl-tests: New file.
24928         * tests/test-sqrtl.c: New file.
24929
24930         Tests for module 'sinl'.
24931         * modules/sinl-tests: New file.
24932         * tests/test-sinl.c: New file.
24933
24934         Tests for module 'logl'.
24935         * modules/logl-tests: New file.
24936         * tests/test-logl.c: New file.
24937
24938         Tests for module 'expl'.
24939         * modules/expl-tests: New file.
24940         * tests/test-expl.c: New file.
24941
24942         Tests for module 'cosl'.
24943         * modules/cosl-tests: New file.
24944         * tests/test-cosl.c: New file.
24945
24946         Tests for module 'atanl'.
24947         * modules/atanl-tests: New file.
24948         * tests/test-atanl.c: New file.
24949
24950         Tests for module 'asinl'.
24951         * modules/asinl-tests: New file.
24952         * tests/test-asinl.c: New file.
24953
24954         Tests for module 'acosl'.
24955         * modules/acosl-tests: New file.
24956         * tests/test-acosl.c: New file.
24957
24958         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24959         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24960         tanl): Use the standard gnulib idiom.
24961         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24962         * lib/sinl.c: Likewise.
24963         * lib/tanl.c: Don't include trigl.c.
24964         (kernel_tanl): Make static.
24965         * lib/sincosl.c: Include trigl.h first.
24966         * lib/trigl.c: Likewise.
24967         * m4/acosl.m4: New file.
24968         * m4/asinl.m4: New file.
24969         * m4/atanl.m4: New file.
24970         * m4/cosl.m4: New file.
24971         * m4/expl.m4: New file.
24972         * m4/logl.m4: New file.
24973         * m4/sinl.m4: New file.
24974         * m4/sqrtl.m4: New file.
24975         * m4/tanl.m4: New file.
24976         * m4/mathl.m4: Remove file.
24977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24978         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24979         Don't initialize GNULIB_MATHL.
24980         * modules/acosl: New file.
24981         * modules/asinl: New file.
24982         * modules/atanl: New file.
24983         * modules/cosl: New file.
24984         * modules/expl: New file.
24985         * modules/logl: New file.
24986         * modules/sinl: New file.
24987         * modules/sqrtl: New file.
24988         * modules/tanl: New file.
24989         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24990         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24991         substitute GNULIB_MATHL.
24992         * modules/mathl: Rewritten.
24993         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24994         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24995         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24996         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24997         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24998         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24999         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25000         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25001         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25002
25003 2010-01-18  Bruno Haible  <bruno@clisp.org>
25004
25005         sqrt: Make gl_FUNC_SQRT requirable.
25006         * m4/sqrt.m4: New file.
25007         * modules/sqrt (Files): Add it.
25008         (configure.ac): Invoke gl_FUNC_SQRT.
25009
25010 2010-01-18  Bruno Haible  <bruno@clisp.org>
25011
25012         New modules for common <math.h> functions.
25013         * m4/mathfunc.m4: New file.
25014         * modules/acos: New file.
25015         * modules/asin: New file.
25016         * modules/atan: New file.
25017         * modules/atan2: New file.
25018         * modules/cbrt: New file.
25019         * modules/copysign: New file.
25020         * modules/cos: New file.
25021         * modules/cosh: New file.
25022         * modules/erf: New file.
25023         * modules/erfc: New file.
25024         * modules/exp: New file.
25025         * modules/fabs: New file.
25026         * modules/fmod: New file.
25027         * modules/hypot: New file.
25028         * modules/j0: New file.
25029         * modules/j1: New file.
25030         * modules/jn: New file.
25031         * modules/ldexp: New file.
25032         * modules/lgamma: New file.
25033         * modules/log: New file.
25034         * modules/log10: New file.
25035         * modules/log1p: New file.
25036         * modules/logb: New file.
25037         * modules/modf: New file.
25038         * modules/nextafter: New file.
25039         * modules/pow: New file.
25040         * modules/remainder: New file.
25041         * modules/rint: New file.
25042         * modules/sin: New file.
25043         * modules/sinh: New file.
25044         * modules/sqrt: New file.
25045         * modules/tan: New file.
25046         * modules/tanh: New file.
25047         * modules/y0: New file.
25048         * modules/y1: New file.
25049         * modules/yn: New file.
25050         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25051         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25052         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25053         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25054         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25055         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25056         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25057         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25058         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25059         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25060         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25061         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25062         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25063         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25064         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25065         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25066         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25067         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25068         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25069         * doc/posix-functions/log.texi: Mention the 'log' module.
25070         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25071         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25072         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25073         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25074         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25075         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25076         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25077         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25078         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25079         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25080         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25081         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25082         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25083         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25084         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25085         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25086
25087 2010-01-18  Jim Meyering  <meyering@redhat.com>
25088
25089         ignore-value: relax license to LGPLv2+
25090         * modules/ignore-value (License): Relax to LGPLv2+.
25091
25092         getdate: don't leak when TZ contains two or more '"'s
25093         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25094         double quote in TZ after the first one.
25095
25096         readtokens: do not leak internal token_lengths buffer
25097         * lib/readtokens.c (readtokens): Free the local, lengths,
25098         when the supplied "token_lengths" parameter is NULL.
25099
25100 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25101
25102         Fix a couple of missing LIBTHREAD link failures on AIX.
25103         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25104         $(LIBTHREAD).
25105         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25106
25107         Link test-poll against INET_PTON_LIB.
25108         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25109         for inet_pton on Solaris 10.
25110
25111 2010-01-17  Bruno Haible  <bruno@clisp.org>
25112
25113         unistdio/*-sprintf: Fix typo in module description.
25114         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25115         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25116         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25117         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25118         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25119         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25120         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25121         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25122
25123 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25124
25125         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25126         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25127         variables in shell case patterns, for AIX and HP-UX ksh.
25128
25129         Split large sed scripts, for HP-UX sed.
25130         * modules/stdio: Split sed scripts around 50 sed commands,
25131         to avoid HP-UX limit of 99 commands, in the near future.
25132         * modules/string: Likewise.
25133         * modules/unistd: Likewise.
25134
25135         gnulib-tool: avoid writing in the current directory.
25136         * gnulib-tool (func_emit_lib_Makefile_am)
25137         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25138         not in the current directory, so concurrent gnulib-tool
25139         instances do not interfere.
25140
25141 2010-01-16  Jim Meyering  <meyering@redhat.com>
25142
25143         doc: update users.txt
25144         * users.txt: Add grep.
25145         (diffutils, gzip): Update URLs.
25146
25147 2010-01-12  Bruno Haible  <bruno@clisp.org>
25148
25149         posix_spawn: Avoid test failure on Cygwin.
25150         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25151         characters.
25152         Reported by Simon Josefsson.
25153
25154 2010-01-12  Bruno Haible  <bruno@clisp.org>
25155
25156         * tests/test-cond.c (main): When skipping the test, show the reason.
25157
25158 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25159
25160         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25161
25162 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25163
25164         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25165         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25166
25167 2010-01-12  Eric Blake  <ebb9@byu.net>
25168
25169         build: guarantee AS_VAR_IF
25170         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25171         (gl_AS_VAR_IF): Move...
25172         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25173         Reported by Simon Josefsson.
25174
25175 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25176
25177         * lib/stdio.in.h: Fix typo.
25178
25179 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25180
25181         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25182         libgpg-error.
25183
25184 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25185
25186         * tests/test-xalloc-die.sh: Use $EXEEXT.
25187
25188 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25189             Bruno Haible  <bruno@clisp.org>
25190
25191         getlogin, getlogin_r: Avoid test failure.
25192         * tests/test-getlogin.c: Include <stdio.h>.
25193         (main): Skip the test when the function fails because stdin is not a
25194         tty.
25195         * tests/test-getlogin_r.c: Include <stdio.h>.
25196         (main): Skip the test when the function fails because stdin is not a
25197         tty.
25198
25199 2010-01-11  Eric Blake  <ebb9@byu.net>
25200
25201         tests: avoid more large file warnings
25202         * tests/test-fflush.c: Avoid warning about ftell use.
25203         * tests/test-fseek.c: Avoid warning about fseek use.
25204
25205 2010-01-10  Bruno Haible  <bruno@clisp.org>
25206
25207         nproc: Work better on Linux when /proc and /sys are not mounted.
25208         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25209         as lower bound when, on glibc/Linux systems,
25210         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25211         Suggested by Pádraig Brady <P@draigbrady.com>.
25212         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25213
25214         nproc: Refactor.
25215         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25216         extracted from num_processors.
25217         (num_processors): Call it.
25218
25219 2010-01-11  Jim Meyering  <meyering@redhat.com>
25220
25221         utimecmp: avoid new warning from upcoming gcc-4.5.0
25222         * lib/utimecmp.c (BILLION): Define using #define rather than an
25223         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25224
25225 2010-01-11  Eric Blake  <ebb9@byu.net>
25226
25227         math: add portability warnings for classification macros
25228         * modules/math (Depends-on): Add warn-on-use.
25229         (Makefile.am): Provide new substitutions.
25230         * m4/math_h.m4 (gl_MATH_H): Require inline.
25231         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25232         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25233         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25234         implement warnings.
25235
25236         unistd: warn on use of environ without module
25237         * modules/unistd (Depends-on): Add warn-on-use.
25238         (Makefile.am): Provide new substitutions.
25239         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25240         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25241
25242         stdio: warn on suspicious uses
25243         * modules/stdio (Depends-on): Add warn-on-use.
25244         (Makefile.am): Provide new substitutions.
25245         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25246         fseeko.
25247         * lib/stdio.in.h (gets): Always warn on use.
25248         (fseek, ftell): Adjust when warnings are issued, and honor
25249         _GL_NO_LARGE_FILES as a way to silence the warning.
25250         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25251         any warning about large file offsets.
25252         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25253         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25254         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25255         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25256         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25257         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25258         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25259         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25260
25261         warn-on-use: new module
25262         * modules/warn-on-use: New file.
25263         * build-aux/warn-on-use.h: Likewise.
25264         * m4/warn-on-use.m4: Likewise.
25265         * MODULES.html.sh (Support for building): Mention it.
25266
25267 2010-01-10  Bruno Haible  <bruno@clisp.org>
25268
25269         Tests for module 'unistr/u32-strdup'.
25270         * modules/unistr/u32-strdup-tests: New file.
25271         * tests/unistr/test-u32-strdup.c: New file.
25272
25273         Tests for module 'unistr/u16-strdup'.
25274         * modules/unistr/u16-strdup-tests: New file.
25275         * tests/unistr/test-u16-strdup.c: New file.
25276
25277         Tests for module 'unistr/u8-strdup'.
25278         * modules/unistr/u8-strdup-tests: New file.
25279         * tests/unistr/test-u8-strdup.c: New file.
25280         * tests/unistr/test-strdup.h: New file.
25281
25282         Tests for module 'unistr/u32-strncmp'.
25283         * modules/unistr/u32-strncmp-tests: New file.
25284         * tests/unistr/test-u32-strncmp.c: New file.
25285
25286         Tests for module 'unistr/u16-strncmp'.
25287         * modules/unistr/u16-strncmp-tests: New file.
25288         * tests/unistr/test-u16-strncmp.c: New file.
25289
25290         Tests for module 'unistr/u8-strncmp'.
25291         * modules/unistr/u8-strncmp-tests: New file.
25292         * tests/unistr/test-u8-strncmp.c: New file.
25293         * tests/unistr/test-strncmp.h: New file.
25294
25295         Tests for module 'unistr/u32-strcoll'.
25296         * modules/unistr/u32-strcoll-tests: New file.
25297         * tests/unistr/test-u32-strcoll.c: New file.
25298
25299         Tests for module 'unistr/u16-strcoll'.
25300         * modules/unistr/u16-strcoll-tests: New file.
25301         * tests/unistr/test-u16-strcoll.c: New file.
25302
25303         Tests for module 'unistr/u8-strcoll'.
25304         * modules/unistr/u8-strcoll-tests: New file.
25305         * tests/unistr/test-u8-strcoll.c: New file.
25306
25307         Tests for module 'unistr/u32-strcmp'.
25308         * modules/unistr/u32-strcmp-tests: New file.
25309         * tests/unistr/test-u32-strcmp.c: New file.
25310         * tests/unistr/test-u32-strcmp.h: New file.
25311
25312         Tests for module 'unistr/u16-strcmp'.
25313         * modules/unistr/u16-strcmp-tests: New file.
25314         * tests/unistr/test-u16-strcmp.c: New file.
25315         * tests/unistr/test-u16-strcmp.h: New file.
25316
25317         Tests for module 'unistr/u8-strcmp'.
25318         * modules/unistr/u8-strcmp-tests: New file.
25319         * tests/unistr/test-u8-strcmp.c: New file.
25320         * tests/unistr/test-u8-strcmp.h: New file.
25321         * tests/unistr/test-strcmp.h: New file.
25322
25323         Tests for module 'unistr/u32-strncat'.
25324         * modules/unistr/u32-strncat-tests: New file.
25325         * tests/unistr/test-u32-strncat.c: New file.
25326
25327         Tests for module 'unistr/u16-strncat'.
25328         * modules/unistr/u16-strncat-tests: New file.
25329         * tests/unistr/test-u16-strncat.c: New file.
25330
25331         Tests for module 'unistr/u8-strncat'.
25332         * modules/unistr/u8-strncat-tests: New file.
25333         * tests/unistr/test-u8-strncat.c: New file.
25334         * tests/unistr/test-strncat.h: New file.
25335
25336         Tests for module 'unistr/u32-strcat'.
25337         * modules/unistr/u32-strcat-tests: New file.
25338         * tests/unistr/test-u32-strcat.c: New file.
25339
25340         Tests for module 'unistr/u16-strcat'.
25341         * modules/unistr/u16-strcat-tests: New file.
25342         * tests/unistr/test-u16-strcat.c: New file.
25343
25344         Tests for module 'unistr/u8-strcat'.
25345         * modules/unistr/u8-strcat-tests: New file.
25346         * tests/unistr/test-u8-strcat.c: New file.
25347         * tests/unistr/test-strcat.h: New file.
25348
25349         Tests for module 'unistr/u32-stpncpy'.
25350         * modules/unistr/u32-stpncpy-tests: New file.
25351         * tests/unistr/test-u32-stpncpy.c: New file.
25352
25353         Tests for module 'unistr/u16-stpncpy'.
25354         * modules/unistr/u16-stpncpy-tests: New file.
25355         * tests/unistr/test-u16-stpncpy.c: New file.
25356
25357         Tests for module 'unistr/u8-stpncpy'.
25358         * modules/unistr/u8-stpncpy-tests: New file.
25359         * tests/unistr/test-u8-stpncpy.c: New file.
25360         * tests/unistr/test-stpncpy.h: New file.
25361
25362         Tests for module 'unistr/u32-strncpy'.
25363         * modules/unistr/u32-strncpy-tests: New file.
25364         * tests/unistr/test-u32-strncpy.c: New file.
25365
25366         Tests for module 'unistr/u16-strncpy'.
25367         * modules/unistr/u16-strncpy-tests: New file.
25368         * tests/unistr/test-u16-strncpy.c: New file.
25369
25370         Tests for module 'unistr/u8-strncpy'.
25371         * modules/unistr/u8-strncpy-tests: New file.
25372         * tests/unistr/test-u8-strncpy.c: New file.
25373         * tests/unistr/test-strncpy.h: New file.
25374
25375         Tests for module 'unistr/u32-stpcpy'.
25376         * modules/unistr/u32-stpcpy-tests: New file.
25377         * tests/unistr/test-u32-stpcpy.c: New file.
25378
25379         Tests for module 'unistr/u16-stpcpy'.
25380         * modules/unistr/u16-stpcpy-tests: New file.
25381         * tests/unistr/test-u16-stpcpy.c: New file.
25382
25383         Tests for module 'unistr/u8-stpcpy'.
25384         * modules/unistr/u8-stpcpy-tests: New file.
25385         * tests/unistr/test-u8-stpcpy.c: New file.
25386         * tests/unistr/test-stpcpy.h: New file.
25387
25388         Tests for module 'unistr/u32-strcpy'.
25389         * modules/unistr/u32-strcpy-tests: New file.
25390         * tests/unistr/test-u32-strcpy.c: New file.
25391
25392         Tests for module 'unistr/u16-strcpy'.
25393         * modules/unistr/u16-strcpy-tests: New file.
25394         * tests/unistr/test-u16-strcpy.c: New file.
25395
25396         Tests for module 'unistr/u8-strcpy'.
25397         * modules/unistr/u8-strcpy-tests: New file.
25398         * tests/unistr/test-u8-strcpy.c: New file.
25399         * tests/unistr/test-strcpy.h: New file.
25400
25401         Tests for module 'unistr/u32-strnlen'.
25402         * modules/unistr/u32-strnlen-tests: New file.
25403         * tests/unistr/test-u32-strnlen.c: New file.
25404
25405         Tests for module 'unistr/u16-strnlen'.
25406         * modules/unistr/u16-strnlen-tests: New file.
25407         * tests/unistr/test-u16-strnlen.c: New file.
25408
25409         Tests for module 'unistr/u8-strnlen'.
25410         * modules/unistr/u8-strnlen-tests: New file.
25411         * tests/unistr/test-u8-strnlen.c: New file.
25412         * tests/unistr/test-strnlen.h: New file.
25413
25414         Tests for module 'unistr/u32-strlen'.
25415         * modules/unistr/u32-strlen-tests: New file.
25416         * tests/unistr/test-u32-strlen.c: New file.
25417
25418         Tests for module 'unistr/u16-strlen'.
25419         * modules/unistr/u16-strlen-tests: New file.
25420         * tests/unistr/test-u16-strlen.c: New file.
25421
25422         Tests for module 'unistr/u8-strlen'.
25423         * modules/unistr/u8-strlen-tests: New file.
25424         * tests/unistr/test-u8-strlen.c: New file.
25425
25426         Tests for module 'unistr/u32-prev'.
25427         * modules/unistr/u32-prev-tests: New file.
25428         * tests/unistr/test-u32-prev.c: New file.
25429
25430         Tests for module 'unistr/u16-prev'.
25431         * modules/unistr/u16-prev-tests: New file.
25432         * tests/unistr/test-u16-prev.c: New file.
25433
25434         Tests for module 'unistr/u8-prev'.
25435         * modules/unistr/u8-prev-tests: New file.
25436         * tests/unistr/test-u8-prev.c: New file.
25437
25438         Tests for module 'unistr/u32-next'.
25439         * modules/unistr/u32-next-tests: New file.
25440         * tests/unistr/test-u32-next.c: New file.
25441
25442         Tests for module 'unistr/u16-next'.
25443         * modules/unistr/u16-next-tests: New file.
25444         * tests/unistr/test-u16-next.c: New file.
25445
25446         Tests for module 'unistr/u8-next'.
25447         * modules/unistr/u8-next-tests: New file.
25448         * tests/unistr/test-u8-next.c: New file.
25449
25450         Tests for module 'unistr/u32-strmbtouc'.
25451         * modules/unistr/u32-strmbtouc-tests: New file.
25452         * tests/unistr/test-u32-strmbtouc.c: New file.
25453
25454         Tests for module 'unistr/u16-strmbtouc'.
25455         * modules/unistr/u16-strmbtouc-tests: New file.
25456         * tests/unistr/test-u16-strmbtouc.c: New file.
25457
25458         Tests for module 'unistr/u8-strmbtouc'.
25459         * modules/unistr/u8-strmbtouc-tests: New file.
25460         * tests/unistr/test-u8-strmbtouc.c: New file.
25461
25462         Tests for module 'unistr/u32-strmblen'.
25463         * modules/unistr/u32-strmblen-tests: New file.
25464         * tests/unistr/test-u32-strmblen.c: New file.
25465
25466         Tests for module 'unistr/u16-strmblen'.
25467         * modules/unistr/u16-strmblen-tests: New file.
25468         * tests/unistr/test-u16-strmblen.c: New file.
25469
25470         Tests for module 'unistr/u8-strmblen'.
25471         * modules/unistr/u8-strmblen-tests: New file.
25472         * tests/unistr/test-u8-strmblen.c: New file.
25473
25474         Tests for module 'unistr/u32-cpy-alloc'.
25475         * modules/unistr/u32-cpy-alloc-tests: New file.
25476         * tests/unistr/test-u32-cpy-alloc.c: New file.
25477
25478         Tests for module 'unistr/u16-cpy-alloc'.
25479         * modules/unistr/u16-cpy-alloc-tests: New file.
25480         * tests/unistr/test-u16-cpy-alloc.c: New file.
25481
25482         Tests for module 'unistr/u8-cpy-alloc'.
25483         * modules/unistr/u8-cpy-alloc-tests: New file.
25484         * tests/unistr/test-u8-cpy-alloc.c: New file.
25485         * tests/unistr/test-cpy-alloc.h: New file.
25486
25487         Tests for module 'unistr/u32-mbsnlen'.
25488         * modules/unistr/u32-mbsnlen-tests: New file.
25489         * tests/unistr/test-u32-mbsnlen.c: New file.
25490
25491         Tests for module 'unistr/u16-mbsnlen'.
25492         * modules/unistr/u16-mbsnlen-tests: New file.
25493         * tests/unistr/test-u16-mbsnlen.c: New file.
25494
25495         Tests for module 'unistr/u8-mbsnlen'.
25496         * modules/unistr/u8-mbsnlen-tests: New file.
25497         * tests/unistr/test-u8-mbsnlen.c: New file.
25498
25499         Tests for module 'unistr/u32-chr'.
25500         * modules/unistr/u32-chr-tests: New file.
25501         * tests/unistr/test-u32-chr.c: New file.
25502
25503         Tests for module 'unistr/u16-chr'.
25504         * modules/unistr/u16-chr-tests: New file.
25505         * tests/unistr/test-u16-chr.c: New file.
25506
25507         Tests for module 'unistr/u8-chr'.
25508         * modules/unistr/u8-chr-tests: New file.
25509         * tests/unistr/test-u8-chr.c: New file.
25510         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25511
25512         Tests for module 'unistr/u32-cmp2'.
25513         * modules/unistr/u32-cmp2-tests: New file.
25514         * tests/unistr/test-u32-cmp2.c: New file.
25515
25516         Tests for module 'unistr/u16-cmp2'.
25517         * modules/unistr/u16-cmp2-tests: New file.
25518         * tests/unistr/test-u16-cmp2.c: New file.
25519
25520         Tests for module 'unistr/u8-cmp2'.
25521         * modules/unistr/u8-cmp2-tests: New file.
25522         * tests/unistr/test-u8-cmp2.c: New file.
25523         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25524
25525         Tests for module 'unistr/u32-cmp'.
25526         * modules/unistr/u32-cmp-tests: New file.
25527         * tests/unistr/test-u32-cmp.c: New file.
25528
25529         Tests for module 'unistr/u16-cmp'.
25530         * modules/unistr/u16-cmp-tests: New file.
25531         * tests/unistr/test-u16-cmp.c: New file.
25532
25533         Tests for module 'unistr/u8-cmp'.
25534         * modules/unistr/u8-cmp-tests: New file.
25535         * tests/unistr/test-u8-cmp.c: New file.
25536         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25537
25538         Tests for module 'unistr/u32-set'.
25539         * modules/unistr/u32-set-tests: New file.
25540         * tests/unistr/test-u32-set.c: New file.
25541
25542         Tests for module 'unistr/u16-set'.
25543         * modules/unistr/u16-set-tests: New file.
25544         * tests/unistr/test-u16-set.c: New file.
25545
25546         Tests for module 'unistr/u8-set'.
25547         * modules/unistr/u8-set-tests: New file.
25548         * tests/unistr/test-u8-set.c: New file.
25549         * tests/unistr/test-set.h: New file.
25550
25551         Tests for module 'unistr/u32-move'.
25552         * modules/unistr/u32-move-tests: New file.
25553         * tests/unistr/test-u32-move.c: New file.
25554
25555         Tests for module 'unistr/u16-move'.
25556         * modules/unistr/u16-move-tests: New file.
25557         * tests/unistr/test-u16-move.c: New file.
25558
25559         Tests for module 'unistr/u8-move'.
25560         * modules/unistr/u8-move-tests: New file.
25561         * tests/unistr/test-u8-move.c: New file.
25562         * tests/unistr/test-move.h: New file.
25563
25564         Tests for module 'unistr/u32-cpy'.
25565         * modules/unistr/u32-cpy-tests: New file.
25566         * tests/unistr/test-u32-cpy.c: New file.
25567
25568         Tests for module 'unistr/u16-cpy'.
25569         * modules/unistr/u16-cpy-tests: New file.
25570         * tests/unistr/test-u16-cpy.c: New file.
25571
25572         Tests for module 'unistr/u8-cpy'.
25573         * modules/unistr/u8-cpy-tests: New file.
25574         * tests/unistr/test-u8-cpy.c: New file.
25575         * tests/unistr/test-cpy.h: New file.
25576
25577 2010-01-09  Bruno Haible  <bruno@clisp.org>
25578
25579         Tests for module 'unistr/u32-uctomb'.
25580         * modules/unistr/u32-uctomb-tests: New file.
25581         * tests/unistr/test-u32-uctomb.c: New file.
25582
25583         Tests for module 'unistr/u16-uctomb'.
25584         * modules/unistr/u16-uctomb-tests: New file.
25585         * tests/unistr/test-u16-uctomb.c: New file.
25586
25587         Tests for module 'unistr/u8-uctomb'.
25588         * modules/unistr/u8-uctomb-tests: New file.
25589         * tests/unistr/test-u8-uctomb.c: New file.
25590
25591         Tests for module 'unistr/u32-mbtoucr'.
25592         * modules/unistr/u32-mbtoucr-tests: New file.
25593         * tests/unistr/test-u32-mbtoucr.c: New file.
25594
25595         Tests for module 'unistr/u16-mbtoucr'.
25596         * modules/unistr/u16-mbtoucr-tests: New file.
25597         * tests/unistr/test-u16-mbtoucr.c: New file.
25598
25599         Tests for module 'unistr/u8-mbtoucr'.
25600         * modules/unistr/u8-mbtoucr-tests: New file.
25601         * tests/unistr/test-u8-mbtoucr.c: New file.
25602
25603         Tests for module 'unistr/u32-mbtouc'.
25604         * modules/unistr/u32-mbtouc-tests: New file.
25605         * tests/unistr/test-u32-mbtouc.c: New file.
25606
25607         Tests for module 'unistr/u16-mbtouc'.
25608         * modules/unistr/u16-mbtouc-tests: New file.
25609         * tests/unistr/test-u16-mbtouc.c: New file.
25610
25611         Tests for module 'unistr/u8-mbtouc'.
25612         * modules/unistr/u8-mbtouc-tests: New file.
25613         * tests/unistr/test-u8-mbtouc.c: New file.
25614
25615         Tests for module 'unistr/u32-mbtouc-unsafe'.
25616         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25617         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25618         * tests/unistr/test-u32-mbtouc.h: New file.
25619
25620         Tests for module 'unistr/u16-mbtouc-unsafe'.
25621         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25622         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25623         * tests/unistr/test-u16-mbtouc.h: New file.
25624
25625         Tests for module 'unistr/u8-mbtouc-unsafe'.
25626         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25627         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25628         * tests/unistr/test-u8-mbtouc.h: New file.
25629
25630         Tests for module 'unistr/u32-mblen'.
25631         * modules/unistr/u32-mblen-tests: New file.
25632         * tests/unistr/test-u32-mblen.c: New file.
25633
25634         Tests for module 'unistr/u16-mblen'.
25635         * modules/unistr/u16-mblen-tests: New file.
25636         * tests/unistr/test-u16-mblen.c: New file.
25637
25638         Tests for module 'unistr/u8-mblen'.
25639         * modules/unistr/u8-mblen-tests: New file.
25640         * tests/unistr/test-u8-mblen.c: New file.
25641
25642         Tests for module 'unistr/u32-to-u16'.
25643         * modules/unistr/u32-to-u16-tests: New file.
25644         * tests/unistr/test-u32-to-u16.c: New file.
25645
25646         Tests for module 'unistr/u32-to-u8'.
25647         * modules/unistr/u32-to-u8-tests: New file.
25648         * tests/unistr/test-u32-to-u8.c: New file.
25649
25650         Tests for module 'unistr/u16-to-u32'.
25651         * modules/unistr/u16-to-u32-tests: New file.
25652         * tests/unistr/test-u16-to-u32.c: New file.
25653
25654         Tests for module 'unistr/u16-to-u8'.
25655         * modules/unistr/u16-to-u8-tests: New file.
25656         * tests/unistr/test-u16-to-u8.c: New file.
25657
25658         Tests for module 'unistr/u8-to-u32'.
25659         * modules/unistr/u8-to-u32-tests: New file.
25660         * tests/unistr/test-u8-to-u32.c: New file.
25661
25662         Tests for module 'unistr/u8-to-u16'.
25663         * modules/unistr/u8-to-u16-tests: New file.
25664         * tests/unistr/test-u8-to-u16.c: New file.
25665
25666         Tests for module 'unistr/u32-check'.
25667         * modules/unistr/u32-check-tests: New file.
25668         * tests/unistr/test-u32-check.c: New file.
25669
25670         Tests for module 'unistr/u16-check'.
25671         * modules/unistr/u16-check-tests: New file.
25672         * tests/unistr/test-u16-check.c: New file.
25673
25674         Tests for module 'unistr/u8-check'.
25675         * modules/unistr/u8-check-tests: New file.
25676         * tests/unistr/test-u8-check.c: New file.
25677
25678         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25679         (category_equals): New function.
25680         (main): Add more tests.
25681         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25682
25683         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25684
25685 2010-01-10  Bruno Haible  <bruno@clisp.org>
25686
25687         unistr/u*-strcoll: Try harder to distinguish different strings.
25688         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25689         compare s1 and s2 to see if they are different.
25690
25691 2010-01-10  Bruno Haible  <bruno@clisp.org>
25692
25693         unistr/u*-stpncpy: Fix the return value.
25694         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25695         description of the return value consistent with stpncpy in glibc.
25696         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25697         written non-NUL unit.
25698
25699 2010-01-10  Bruno Haible  <bruno@clisp.org>
25700
25701         unistr/u*-next: Add missing dependencies.
25702         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25703         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25704         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25705
25706 2010-01-10  Bruno Haible  <bruno@clisp.org>
25707
25708         unistr/u8-mbsnlen: Fix return value for incomplete character.
25709         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25710         u8_mblen.
25711         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25712         Remove unistr/u8-mblen.
25713         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25714         u16_mblen.
25715         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25716         Remove unistr/u16-mblen.
25717
25718 2010-01-10  Bruno Haible  <bruno@clisp.org>
25719
25720         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25721         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25722         Reported by Brian Gough <bjg@gnu.org> and
25723         Chris Clayton <chris2553@googlemail.com> via
25724         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25725
25726 2010-01-09  Bruno Haible  <bruno@clisp.org>
25727
25728         unistr/u16-to-u32: Reject invalid input.
25729         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25730         u16_mbtouc.
25731         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25732         Remove unistr/u16-mbtouc.
25733
25734         unistr/u16-to-u8: Reject invalid input.
25735         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25736         u16_mbtouc.
25737         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25738         Remove unistr/u16-mbtouc.
25739
25740         unistr/u8-to-u32: Reject invalid input.
25741         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25742         u8_mbtouc.
25743         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25744         Remove unistr/u8-mbtouc.
25745
25746         unistr/u8-to-u16: Reject invalid input.
25747         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25748         u8_mbtouc.
25749         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25750         Remove unistr/u8-mbtouc.
25751
25752 2010-01-09  Bruno Haible  <bruno@clisp.org>
25753
25754         Tests for module 'getlogin'.
25755         * modules/getlogin-tests: New file.
25756         * tests/test-getlogin.c: New file.
25757
25758         New module 'getlogin'.
25759         * lib/unistd.in.h (getlogin): New declaration.
25760         * lib/getlogin.c: New file.
25761         * m4/getlogin.m4: New file.
25762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25763         HAVE_GETLOGIN.
25764         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25765         HAVE_GETLOGIN.
25766         * modules/getlogin: New file.
25767         * doc/posix-functions/getlogin.texi: Mention the new module.
25768         Reported by John W. Eaton <jwe@gnu.org>.
25769
25770 2010-01-09  Bruno Haible  <bruno@clisp.org>
25771
25772         getlogin_r: Support for native Windows.
25773         * lib/getlogin_r.c: Include <windows.h>
25774         (getlogin_r): Implement for native Windows.
25775         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25776         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25777         via John W. Eaton <jwe@gnu.org>.
25778
25779 2010-01-09  Bruno Haible  <bruno@clisp.org>
25780
25781         getlogin_r: Small fixes.
25782         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25783         succeeds.
25784         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25785         before testing whether getlogin_r is declared. No need to set
25786         HAVE_DECL_GETLOGIN_R to 1.
25787         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25788
25789 2010-01-09  Bruno Haible  <bruno@clisp.org>
25790
25791         * lib/unistd.in.h (getlogin_r): Add comment.
25792
25793 2010-01-09  Bruno Haible  <bruno@clisp.org>
25794
25795         Tests for module 'getlogin_r'.
25796         * modules/getlogin_r-tests: New file.
25797         * tests/test-getlogin_r.c: New file.
25798
25799 2010-01-09  Jim Meyering  <meyering@redhat.com>
25800
25801         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25802         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25803         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25804
25805 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25806
25807         * lib/dup2.c (rpl_dup2): Improve comment.
25808
25809 2010-01-08  Eric Blake  <ebb9@byu.net>
25810
25811         maint.mk: allow packages to add makefile @@ exceptions
25812         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25813         (sc_makefile_check): Rename...
25814         (sc_makefile_at_at_check): ...to this, and use hook.
25815
25816         dup2: work around mingw bug
25817         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25818         Reported by Simon Josefsson.
25819
25820 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25821
25822         glob: Fix C++ compilation.
25823         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25824         C++.
25825
25826 2010-01-07  Bruno Haible  <bruno@clisp.org>
25827
25828         Fix indentation of wctype.in.h, broken since 2007-01-06.
25829         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25830
25831 2010-01-07  Bruno Haible  <bruno@clisp.org>
25832
25833         mbslen: Avoid collision with system function.
25834         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25835         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25836         * m4/mbslen.m4: New file.
25837         * modules/mbslen (Files): Add it.
25838         (configure.ac): Invoke gl_MBSLEN.
25839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25840         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25841         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25842         via Ian Beckwith <ianb@erislabs.net>.
25843
25844 2010-01-07  Bruno Haible  <bruno@clisp.org>
25845
25846         dirent: Document the last fix.
25847         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25848
25849 2010-01-07  Bruno Haible  <bruno@clisp.org>
25850
25851         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25852         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25853         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25854         va_list are defined.
25855         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25856         Reported by Eric Blake.
25857
25858 2010-01-07  Bruno Haible  <bruno@clisp.org>
25859
25860         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25861         * modules/xlist (Depends-on): Add 'list',
25862         * modules/xoset (Depends-on): Add 'oset'.
25863         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25864
25865 2010-01-07  Bruno Haible  <bruno@clisp.org>
25866
25867         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25868         * doc/posix-functions/strncasecmp.texi: Likewise.
25869
25870 2010-01-07  Bruno Haible  <bruno@clisp.org>
25871
25872         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25873
25874 2010-01-07  John W. Eaton  <jwe@octave.org>
25875
25876         wctype: allow C++ use
25877         * lib/wctype.in.h: Add extern "C" block for C++.
25878
25879 2010-01-06  Eric Blake  <ebb9@byu.net>
25880
25881         maint.mk: detect incorrect GFDL usage
25882         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25883
25884 2010-01-06  Jim Meyering  <meyering@redhat.com>
25885         and Eric Blake  <ebb9@byu.net>
25886
25887         maint.mk: ignore multi-line copyright in NEWS
25888         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25889
25890 2010-01-06  Eric Blake  <ebb9@byu.net>
25891
25892         select: add missing dependency
25893         * modules/select-tests (Depends-on): Move sockets dependency...
25894         * modules/select (Depends-on): ...here.
25895         Reported by Ian Beckwith.
25896
25897         doc: regenerate INSTALL
25898         * doc/INSTALL: Reflect recent autoconf update.
25899         * doc/INSTALL.ISO: Likewise.
25900         * doc/INSTALL.UTF-8: Likewise.
25901
25902         pread: fix compilation on glibc
25903         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25904         Reported by Ralf Wildenhues.
25905
25906         dirent: fix test failure
25907         * lib/dirent.in.h (includes): Guarantee ino_t.
25908         Reported by Ralf Wildenhues.
25909
25910 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25911
25912         linkat, renameat: avoid bad free
25913         * lib/at-func2.c (at_func2): Fix typo.
25914         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25915
25916 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25917
25918         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25919         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25920         to avoid failure of symlink test later.
25921
25922 2010-01-06  Eric Blake  <ebb9@byu.net>
25923
25924         stdio, unistd: guarantee ssize_t
25925         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25926         2008 are exposed when needed.
25927         * lib/stdio.in.h (includes): Likewise.
25928         Reported by Ralf Wildenhues.
25929
25930 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25931
25932         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25933         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25934         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25935
25936 2010-01-06  Jim Meyering  <meyering@redhat.com>
25937
25938         readtokens: this module *does* require xalloc.h
25939         It uses only functions that were omitted by the old syntax-check rule.
25940         * lib/readtokens.c: Include "xalloc.h" once again.
25941         * modules/readtokens (Depends-on): Add xalloc.
25942         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25943
25944 2010-01-05  Eric Blake  <ebb9@byu.net>
25945
25946         maint: support 'make announcement' from a VPATH build
25947         * top/maint.mk (announcement): Look for correct NEWS file.
25948
25949 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25950
25951         utimens (fdutimens): ignore a negative FD, per contract
25952         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25953         when we have a valid file descriptor.  Otherwise, using a brand
25954         new glibc (with just-patched futimens that now fails with EBADF)
25955         would cause this function to fail with ENOSYS.
25956         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25957         See also http://bugzilla.redhat.com/552320.
25958
25959 2010-01-05  Eric Blake  <ebb9@byu.net>
25960
25961         strcase: document what it provides
25962         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25963         gnulib module.
25964         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25965         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25966
25967 2010-01-05  Jim Meyering  <meyering@redhat.com>
25968
25969         maint: remove useless inclusions of "xalloc.h"
25970         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25971         * lib/readtokens.c: Likewise.
25972         * lib/same.c: Likewise.
25973         * modules/getloadavg (Depends-on): Remove xalloc.
25974         * modules/readtokens: Likewise.
25975         * modules/same: Likewise.
25976
25977         maint.mk: include 4 more function names in alloca.h-checking regexp
25978         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25979         regexp.  Before, we would give a false-positive (saying alloca.h
25980         is included unnecessarily) when the only uses involved omitted symbols.
25981
25982         xalloc.h: use consistent formatting
25983         * lib/xalloc.h: Move declarations to start in the first column.
25984
25985 2010-01-05  Eric Blake  <ebb9@byu.net>
25986
25987         mkdir: avoid xalloc
25988         * lib/mkdir.c (includes): Drop unused header.
25989         Reported by John W. Eaton.
25990
25991 2010-01-04  Jim Meyering  <meyering@redhat.com>
25992
25993         nl_langinfo: avoid configure-time syntax error
25994         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25995         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25996         the empty string.  Don't let that provoke a shell syntax error.
25997
25998         regcomp, regexec, fnmatch: avoid array bounds read error
25999         * lib/regcomp.c (build_equiv_class): From glibc:
26000         Use only the low 24 bits of a findidx return value as an index
26001         into the weights array.  Patch by Ulrich Drepper:
26002         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26003         * lib/regexec.c (check_node_accept_bytes): Likewise.
26004         * lib/fnmatch_loop.c (FCT): Likewise.
26005
26006         regcomp: skip collseq lookup when there are no rules
26007         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26008         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26009
26010         regcomp: recognize ill-formed { } expressions
26011         * lib/regcomp.c (parse_dup_op): From glibc:
26012         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26013
26014         regcomp: fix typo in comment
26015         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26016         s/satisfy/satisfies/.
26017
26018         regcomp: sync from glibc: remove dead store
26019         * lib/regcomp.c (duplicate_node_closure): Remove useless
26020         search_duplicated_node call and dead store.
26021
26022         regcomp: sync from glibc; always use nl_langinfo
26023         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26024         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26025         * modules/regex (Depends-on): Add nl_langinfo.
26026
26027 2010-01-04  Eric Blake  <ebb9@byu.net>
26028
26029         fdopendir: fix configure test
26030         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26031
26032 2010-01-01  Bruno Haible  <bruno@clisp.org>
26033
26034         wchar: Remove unused configure check.
26035         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26036
26037 2010-01-01  Eric Blake  <ebb9@byu.net>
26038
26039         headers: make check of system header explicit
26040         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26041         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26042         ourselves.
26043         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26044         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26045         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26046         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26047         internals.
26048         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26049         missing.
26050         Suggested by Bruno Haible.
26051
26052 2010-01-01  Jim Meyering  <meyering@redhat.com>
26053
26054         ChangeLog: tweak to eliminate unnecessary copyright line
26055         * ChangeLog: Remove a copyright line that was mistakenly updated
26056         by today's update-copyright run.  Reported by Eric Blake.
26057
26058         test-update-copyright: don't let envvar setting cause test failure
26059         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26060
26061 2010-01-01  Bruno Haible  <bruno@clisp.org>
26062
26063         localename: Avoid gcc warning.
26064         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26065         function if it is not used.
26066
26067 2010-01-01  Jim Meyering  <meyering@redhat.com>
26068
26069         update nearly all FSF copyright year lists to include 2010
26070         Use the same procedure as for 2009, outlined in
26071         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26072
26073         version-etc: set COPYRIGHT_YEAR to 2010
26074         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26075
26076 2009-12-31  Eric Blake  <ebb9@byu.net>
26077
26078         doc: correct availability of cygwin 1.5.x getopt
26079         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26080         variables.
26081         * doc/posix-functions/opterr.texi (opterr): Likewise.
26082         * doc/posix-functions/optind.texi (optind): Likewise.
26083         * doc/posix-functions/optopt.texi (optopt): Likewise.
26084         * doc/posix-functions/tzname.texi (tzname): Likewise.
26085
26086         openat: update maintainer
26087         * modules/openat (Maintainer): Add myself.
26088
26089         utimens: avoid shadowing warning
26090         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26091         buffers into one, to avoid shadowing, as well as avoiding a
26092         redundant stat.
26093         Reported by Jim Meyering.
26094
26095         test-dup2: avoid compiler warning
26096         * tests/test-dup2.c (is_inheritable): Only define if used.
26097
26098 2010-01-01  Bruno Haible  <bruno@clisp.org>
26099
26100         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26101         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26102         defined, use wctomb instead of wcrtomb.
26103
26104 2010-01-01  Bruno Haible  <bruno@clisp.org>
26105
26106         iconv: Reject native Solaris iconv.
26107         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26108         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26109
26110 2009-12-31  Bruno Haible  <bruno@clisp.org>
26111
26112         * tests/test-signal.c (main): Remove test of 'SIG'.
26113
26114 2009-12-31  Bruno Haible  <bruno@clisp.org>
26115
26116         spawn: Fix incomplete fix.
26117         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26118         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26119         warnings for GNULIB_POSIXCHECK again.
26120         Reported by Eric Blake.
26121
26122 2009-12-31  Bruno Haible  <bruno@clisp.org>
26123
26124         Avoid namespace pollution on glibc systems.
26125         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26126         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26127         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26128         glibc systems.
26129
26130 2009-12-31  Bruno Haible  <bruno@clisp.org>
26131
26132         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26133         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26134         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26135         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26136         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26137         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26138         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26139
26140 2009-12-31  Bruno Haible  <bruno@clisp.org>
26141
26142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26143         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26144         afterwards.
26145
26146 2009-12-31  Bruno Haible  <bruno@clisp.org>
26147
26148         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26149         SYS_UTSNAME_H.
26150
26151 2009-12-31  Bruno Haible  <bruno@clisp.org>
26152
26153         spawn: Fix misapplied patch.
26154         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26155         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26156         warnings for GNULIB_POSIXCHECK.
26157
26158 2009-12-31  Bruno Haible  <bruno@clisp.org>
26159
26160         times: Update after sys_times changed.
26161         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26162         * modules/times (Files): Add it.
26163         (configure.ac): Invoke gl_FUNC_TIMES.
26164
26165 2009-12-31  Bruno Haible  <bruno@clisp.org>
26166
26167         Use AC_C_INLINE where necessary.
26168         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26169         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26170         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26171         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26172         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26173         * m4/mbiter.m4 (gl_MBITER): Likewise.
26174         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26175         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26176         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26177         * modules/u64 (configure.ac): Likewise.
26178
26179 2009-12-31  Bruno Haible  <bruno@clisp.org>
26180
26181         Use AC_C_INLINE instead of module 'inline' where possible.
26182         * modules/inline (Description): Clarify purpose.
26183         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26184         * modules/count-one-bits (Depends-on): Remove inline.
26185         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26186         * modules/openat (Depends-on): Remove inline.
26187         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26188         instead of depending on module 'inline'.
26189         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26190         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26191         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26192         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26193         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26194         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26195         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26196         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26197         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26198         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26199         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26200         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26201         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26202         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26203         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26204         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26205         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26206         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26207         Likewise.
26208         * modules/unictype/property-ascii-hex-digit (Depends-on,
26209         configure.ac): Likewise.
26210         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26211         configure.ac): Likewise.
26212         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26213         configure.ac): Likewise.
26214         * modules/unictype/property-bidi-block-separator (Depends-on,
26215         configure.ac): Likewise.
26216         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26217         configure.ac): Likewise.
26218         * modules/unictype/property-bidi-common-separator (Depends-on,
26219         configure.ac): Likewise.
26220         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26221         Likewise.
26222         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26223         configure.ac): Likewise.
26224         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26225         configure.ac): Likewise.
26226         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26227         configure.ac): Likewise.
26228         * modules/unictype/property-bidi-european-digit (Depends-on,
26229         configure.ac): Likewise.
26230         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26231         configure.ac): Likewise.
26232         * modules/unictype/property-bidi-left-to-right (Depends-on,
26233         configure.ac): Likewise.
26234         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26235         configure.ac): Likewise.
26236         * modules/unictype/property-bidi-other-neutral (Depends-on,
26237         configure.ac): Likewise.
26238         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26239         Likewise.
26240         * modules/unictype/property-bidi-segment-separator (Depends-on,
26241         configure.ac): Likewise.
26242         * modules/unictype/property-bidi-whitespace (Depends-on,
26243         configure.ac): Likewise.
26244         * modules/unictype/property-combining (Depends-on, configure.ac):
26245         Likewise.
26246         * modules/unictype/property-composite (Depends-on, configure.ac):
26247         Likewise.
26248         * modules/unictype/property-currency-symbol (Depends-on,
26249         configure.ac): Likewise.
26250         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26251         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26252         Likewise.
26253         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26254         configure.ac): Likewise.
26255         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26256         Likewise.
26257         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26258         Likewise.
26259         * modules/unictype/property-extender (Depends-on, configure.ac):
26260         Likewise.
26261         * modules/unictype/property-format-control (Depends-on, configure.ac):
26262         Likewise.
26263         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26264         Likewise.
26265         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26266         Likewise.
26267         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26268         Likewise.
26269         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26270         Likewise.
26271         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26272         Likewise.
26273         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26274         Likewise.
26275         * modules/unictype/property-id-start (Depends-on, configure.ac):
26276         Likewise.
26277         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26278         Likewise.
26279         * modules/unictype/property-ids-binary-operator (Depends-on,
26280         configure.ac): Likewise.
26281         * modules/unictype/property-ids-trinary-operator (Depends-on,
26282         configure.ac): Likewise.
26283         * modules/unictype/property-ignorable-control (Depends-on,
26284         configure.ac): Likewise.
26285         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26286         Likewise.
26287         * modules/unictype/property-join-control (Depends-on, configure.ac):
26288         Likewise.
26289         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26290         Likewise.
26291         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26292         Likewise.
26293         * modules/unictype/property-logical-order-exception (Depends-on,
26294         configure.ac): Likewise.
26295         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26296         Likewise.
26297         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26298         * modules/unictype/property-non-break (Depends-on, configure.ac):
26299         Likewise.
26300         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26301         Likewise.
26302         * modules/unictype/property-numeric (Depends-on, configure.ac):
26303         Likewise.
26304         * modules/unictype/property-other-alphabetic (Depends-on,
26305         configure.ac): Likewise.
26306         * modules/unictype/property-other-default-ignorable-code-point
26307         (Depends-on, configure.ac): Likewise.
26308         * modules/unictype/property-other-grapheme-extend (Depends-on,
26309         configure.ac): Likewise.
26310         * modules/unictype/property-other-id-continue (Depends-on,
26311         configure.ac): Likewise.
26312         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26313         Likewise.
26314         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26315         Likewise.
26316         * modules/unictype/property-other-math (Depends-on, configure.ac):
26317         Likewise.
26318         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26319         Likewise.
26320         * modules/unictype/property-paired-punctuation (Depends-on,
26321         configure.ac): Likewise.
26322         * modules/unictype/property-paragraph-separator (Depends-on,
26323         configure.ac): Likewise.
26324         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26325         Likewise.
26326         * modules/unictype/property-pattern-white-space (Depends-on,
26327         configure.ac): Likewise.
26328         * modules/unictype/property-private-use (Depends-on, configure.ac):
26329         Likewise.
26330         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26331         Likewise.
26332         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26333         Likewise.
26334         * modules/unictype/property-radical (Depends-on, configure.ac):
26335         Likewise.
26336         * modules/unictype/property-sentence-terminal (Depends-on,
26337         configure.ac): Likewise.
26338         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26339         Likewise.
26340         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26341         * modules/unictype/property-terminal-punctuation (Depends-on,
26342         configure.ac): Likewise.
26343         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26344         Likewise.
26345         * modules/unictype/property-unassigned-code-value (Depends-on,
26346         configure.ac): Likewise.
26347         * modules/unictype/property-unified-ideograph (Depends-on,
26348         configure.ac): Likewise.
26349         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26350         Likewise.
26351         * modules/unictype/property-variation-selector (Depends-on,
26352         configure.ac): Likewise.
26353         * modules/unictype/property-white-space (Depends-on, configure.ac):
26354         Likewise.
26355         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26356         Likewise.
26357         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26358         Likewise.
26359         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26360         Likewise.
26361         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26362         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26363         Likewise.
26364
26365 2009-12-31  Bruno Haible  <bruno@clisp.org>
26366
26367         Remove unnecessary AC_C_INLINE invocation.
26368         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26369         since 2009-08-21.
26370
26371 2009-12-31  Jim Meyering  <meyering@redhat.com>
26372
26373         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26374         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26375         With this change, we can all remove the gpg_key_ID = ... definition
26376         from our respective cfg.mk files.
26377
26378         maint.mk: create announcement template in ~/, not in /tmp
26379         * top/maint.mk (emit_upload_commands): Adjust.
26380         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26381         Remove temporary file, .ci-msg.
26382
26383 2009-12-31  Eric Blake  <ebb9@byu.net>
26384
26385         link-warning: always build headers with link warnings
26386         * modules/arpa_inet (Makefile.am): Always build replacement
26387         header.
26388         * modules/ctype (Makefile.am): Likewise.
26389         * modules/dirent (Makefile.am): Likewise.
26390         * modules/inttypes (Makefile.am): Likewise.
26391         * modules/langinfo (Makefile.am): Likewise.
26392         * modules/locale (Makefile.am): Likewise.
26393         * modules/spawn (Makefile.am): Likewise.
26394         * modules/sys_file (Makefile.am): Likewise.
26395         * modules/sys_ioctl (Makefile.am): Likewise.
26396         * modules/sys_select (Makefile.am): Likewise.
26397         * modules/sys_socket (Makefile.am): Likewise.
26398         * modules/sys_times (Makefile.am): Likewise.
26399         * modules/sys_utsname (Makefile.am): Likewise.
26400         * modules/sys_wait (Makefile.am): Likewise.
26401         * modules/wchar (Makefile.am): Likewise.
26402         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26403         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26404         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26405         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26406         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26407         Likewise.
26408         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26409         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26410         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26411         Likewise.
26412         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26413         Likewise.
26414         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26415         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26416         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26418         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26419         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26420         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26421         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26422         (gl_WCHAR_H_DEFAULTS): Likewise.
26423
26424 2009-12-31  Eric Blake  <ebb9@byu.net>
26425
26426         signal, spawn: use link warnings
26427         * lib/signal.in.h (sigset_t): Make unconditional.
26428         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26429         (sigpending, sigprocmask, sigaction): Add link warnings.
26430         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26431         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26432         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26433         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26434         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26435         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26436         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26437         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26438         (posix_spawn_file_actions_destroy)
26439         (posix_spawn_file_actions_addopen)
26440         (posix_spawn_file_actions_addclose)
26441         (posix_spawn_file_actions_adddup2): Likewise.
26442         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26443         * tests/test-signal.c (main): Enhance test.
26444
26445         spawn: improve wrapper support
26446         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26447         (gl_SPAWN_H_DEFAULTS): New defaults.
26448         * modules/spawn (Makefile.am): Substitute them.
26449         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26450         Only declare if missing or broken.
26451
26452         sys_times, sys_utsname: use include_next
26453         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26454         header.
26455         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26456         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26457         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26458         * modules/sys_times (Depends-on): Add include_next.
26459         (Makefile.am): Substitute additional values.
26460         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26461         * lib/sys_times.in.h (includes): Include native header, if
26462         available.
26463         * lib/sys_utsname.in.h (includes): Likewise.
26464         * tests/test-sys_times.c (main): Enhance test.
26465
26466         fdutimensat: revert prior patch
26467         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26468         utimens.h.
26469         Reported by Bruno Haible.
26470
26471 2009-12-30  Eric Blake  <ebb9@byu.net>
26472
26473         sys_wait: drop link-warning dependency
26474         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26475         link-warning efforts.
26476         * lib/sys_wait.in.h: Likewise.
26477
26478         fdutimensat: remove bogus dependency
26479         * modules/fdutimensat (Depends-on): Drop inline.
26480
26481         unistd: fix typo
26482         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26483
26484 2009-12-30  Bruno Haible  <bruno@clisp.org>
26485
26486         Fix compilation error with Solaris cc.
26487         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26488         * lib/unicase/u16-is-invariant.c: Likewise.
26489         * lib/unicase/u32-is-invariant.c: Likewise.
26490         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26491
26492 2009-12-30  Bruno Haible  <bruno@clisp.org>
26493
26494         Fix test crash.
26495         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26496         locales.
26497         Reported by Simon Josefsson <simon@josefsson.org>.
26498
26499 2009-12-30  Bruno Haible  <bruno@clisp.org>
26500
26501         Fix compilation error on most platforms.
26502         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26503         Reported by Simon Josefsson <simon@josefsson.org>
26504         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26505
26506 2009-12-30  Eric Blake  <ebb9@byu.net>
26507
26508         futimens, utimensat: work around ntfs-3g bug
26509         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26510         a ctime bug is present, and expand workaround to cover ntfs-3g.
26511         * lib/utimens.c (fdutimens, lutimens): Likewise.
26512         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26513         (validate_timespec): Adjust return value.
26514         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26515         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26516         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26517
26518 2009-12-29  Eric Blake  <ebb9@byu.net>
26519
26520         link-warning: make usage consistent
26521         * modules/ctype (Depends-on): Add link-warning.
26522         (Makefile.am): Update rules accordingly.
26523         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26524         * modules/locale (Depends-on, Makefile.am): Likewise.
26525         * modules/sys_file (Makefile.am): Likewise.
26526         * modules/getopt-posix (Makefile.am): Delete unused link warning
26527         efforts.
26528         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26529         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26530         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26531         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26532
26533         stdio: remove unused variables
26534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26535         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26536         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26537
26538         tests: test more substitute headers
26539         * modules/ctype-tests: New file.
26540         * modules/dirent-tests: Likewise.
26541         * modules/spawn-tests: Likewise.
26542         * modules/sys_file-tests: Likewise.
26543         * modules/sys_ioctl-tests: Likewise.
26544         * modules/sys_wait-tests: Likewise.
26545         * tests/test-ctype.c: Likewise.
26546         * tests/test-dirent.c: Likewise.
26547         * tests/test-spawn.c: Likewise.
26548         * tests/test-sys_file.c: Likewise.
26549         * tests/test-sys_ioctl.c: Likewise.
26550         * tests/test-sys_wait.c: Likewise.
26551         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26552         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26553         whether or not flock is in use.
26554
26555         tests: remove License section from module
26556         * modules/arpa_inet-tests: Remove unneeded section.
26557         * modules/byteswap-tests: Likewise.
26558         * modules/ceilf-tests: Likewise.
26559         * modules/ceill-tests: Likewise.
26560         * modules/crypto/des-tests: Likewise.
26561         * modules/crypto/gc-arcfour-tests: Likewise.
26562         * modules/crypto/gc-arctwo-tests: Likewise.
26563         * modules/crypto/gc-des-tests: Likewise.
26564         * modules/crypto/gc-hmac-md5-tests: Likewise.
26565         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26566         * modules/crypto/gc-md2-tests: Likewise.
26567         * modules/crypto/gc-md4-tests: Likewise.
26568         * modules/crypto/gc-md5-tests: Likewise.
26569         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26570         * modules/crypto/gc-rijndael-tests: Likewise.
26571         * modules/crypto/gc-sha1-tests: Likewise.
26572         * modules/crypto/gc-tests: Likewise.
26573         * modules/crypto/md2-tests: Likewise.
26574         * modules/crypto/md4-tests: Likewise.
26575         * modules/fcntl-h-tests: Likewise.
26576         * modules/floorf-tests: Likewise.
26577         * modules/floorl-tests: Likewise.
26578         * modules/frexp-nolibm-tests: Likewise.
26579         * modules/frexp-tests: Likewise.
26580         * modules/frexpl-nolibm-tests: Likewise.
26581         * modules/frexpl-tests: Likewise.
26582         * modules/getaddrinfo-tests: Likewise.
26583         * modules/inttypes-tests: Likewise.
26584         * modules/isfinite-tests: Likewise.
26585         * modules/isinf-tests: Likewise.
26586         * modules/ldexpl-tests: Likewise.
26587         * modules/locale-tests: Likewise.
26588         * modules/math-tests: Likewise.
26589         * modules/netdb-tests: Likewise.
26590         * modules/netinet_in-tests: Likewise.
26591         * modules/printf-frexp-tests: Likewise.
26592         * modules/printf-frexpl-tests: Likewise.
26593         * modules/priv-set-tests: Likewise.
26594         * modules/random_r-tests: Likewise.
26595         * modules/round-tests: Likewise.
26596         * modules/roundf-tests: Likewise.
26597         * modules/roundl-tests: Likewise.
26598         * modules/search-tests: Likewise.
26599         * modules/select-tests: Likewise.
26600         * modules/signal-tests: Likewise.
26601         * modules/stdbool-tests: Likewise.
26602         * modules/stddef-tests: Likewise.
26603         * modules/stdint-tests: Likewise.
26604         * modules/stdio-tests: Likewise.
26605         * modules/stdlib-tests: Likewise.
26606         * modules/string-tests: Likewise.
26607         * modules/strings-tests: Likewise.
26608         * modules/sys_select-tests: Likewise.
26609         * modules/sys_socket-tests: Likewise.
26610         * modules/sys_stat-tests: Likewise.
26611         * modules/sys_time-tests: Likewise.
26612         * modules/sys_utsname-tests: Likewise.
26613         * modules/sysexits-tests: Likewise.
26614         * modules/time-tests: Likewise.
26615         * modules/trunc-tests: Likewise.
26616         * modules/truncf-tests: Likewise.
26617         * modules/truncl-tests: Likewise.
26618         * modules/tsearch-tests: Likewise.
26619         * modules/unistd-tests: Likewise.
26620         * modules/wchar-tests: Likewise.
26621         * modules/wctype-tests: Likewise.
26622
26623         tests: fix license on several tests
26624         * tests/test-des.c: Update to GPLv3+.
26625         * tests/test-flock.c: Likewise.
26626         * tests/test-fsync.c: Likewise.
26627         * tests/test-futimens.h: Likewise.
26628         * tests/test-gc-arcfour.c: Likewise.
26629         * tests/test-gc-arctwo.c: Likewise.
26630         * tests/test-gc-des.c: Likewise.
26631         * tests/test-gc-hmac-md5.c: Likewise.
26632         * tests/test-gc-hmac-sha1.c: Likewise.
26633         * tests/test-gc-md2.c: Likewise.
26634         * tests/test-gc-md4.c: Likewise.
26635         * tests/test-gc-md5.c: Likewise.
26636         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26637         * tests/test-gc-rijndael.c: Likewise.
26638         * tests/test-gc-sha1.c: Likewise.
26639         * tests/test-gc.c: Likewise.
26640         * tests/test-getcwd.c: Likewise.
26641         * tests/test-link.c: Likewise.
26642         * tests/test-link.h: Likewise.
26643         * tests/test-lutimens.h: Likewise.
26644         * tests/test-md2.c: Likewise.
26645         * tests/test-md4.c: Likewise.
26646         * tests/test-mkdir.h: Likewise.
26647         * tests/test-rename.c: Likewise.
26648         * tests/test-rename.h: Likewise.
26649         * tests/test-safe-alloc.c: Likewise.
26650         * tests/test-utimens-common.h: Likewise.
26651         * tests/test-utimens.h: Likewise.
26652
26653         maint: sync license texts
26654         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26655         * doc/gpl-3.0.texi: Revert copyright year update.
26656         * doc/lgpl-3.0.texi: Likewise.
26657
26658 2009-12-29  Jim Meyering  <meyering@redhat.com>
26659
26660         update nearly all FSF copyright year lists to include 2009
26661         The files named by the following are exempted:
26662             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26663               test -f "$dst" && { echo "$dst"; continue; }
26664               test -d "$dst" || continue
26665               echo "$dst"/$(basename "$src")
26666             done > exempt
26667             git ls-files tests/unictype >> exempt
26668         In the remaining files, convert to all-interval notation if
26669         - there is already at least one year interval like 2000-2003
26670         - the file is maintained by me
26671         - the file is in lib/uni*/, where that style already prevails
26672         Otherwise, use update-copyright's default.
26673
26674 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26675         and Eric Blake  <ebb9@byu.net>
26676
26677         tests: don't require debug system() to pass
26678         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26679         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26680         * tests/test-unlink.h (test_unlink_func): Likewise.
26681         * tests/test-fstatat.c (main): ...into callers.
26682         * tests/test-lstat.c (main): Likewise.
26683         * tests/test-rmdir.c (main): Likewise.
26684         * tests/test-unlink.c (main): Likewise.
26685         * tests/test-unlinkat.c (main): Likewise.
26686         * tests/test-areadlink-with-size.c (main): Don't require a
26687         debug-only system call to pass, aiding cross-testing to mingw.
26688         * tests/test-areadlink.c (main): Likewise.
26689         * tests/test-areadlinkat-with-size.c (main): Likewise.
26690         * tests/test-areadlinkat.c (main): Likewise.
26691         * tests/test-canonicalize-lgpl.c (main): Likewise.
26692         * tests/test-canonicalize.c (main): Likewise.
26693         * tests/test-chown.c (main): Likewise.
26694         * tests/test-fchownat.c (main): Likewise.
26695         * tests/test-lchown.c (main): Likewise.
26696         * tests/test-fdutimensat.c (main): Likewise.
26697         * tests/test-futimens.c (main): Likewise.
26698         * tests/test-link.c (main): Likewise.
26699         * tests/test-linkat.c (main): Likewise.
26700         * tests/test-mkdir.c (main): Likewise.
26701         * tests/test-mkdirat.c (main): Likewise.
26702         * tests/test-mkfifo.c (main): Likewise.
26703         * tests/test-mkfifoat.c (main): Likewise.
26704         * tests/test-mknod.c (main): Likewise.
26705         * tests/test-readlink.c (main): Likewise.
26706         * tests/test-remove.c (main): Likewise.
26707         * tests/test-rename.c (main): Likewise.
26708         * tests/test-renameat.c (main): Likewise.
26709         * tests/test-symlink.c (main): Likewise.
26710         * tests/test-symlinkat.c (main): Likewise.
26711         * tests/test-utimens.c (main): Likewise.
26712         * tests/test-utimensat.c (main): Likewise.
26713
26714 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26715
26716         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26717         on $(UNUSED_PARAMETER_H) to avoid build failure.
26718
26719 2009-12-28  Jim Meyering  <meyering@redhat.com>
26720
26721         update-copyright: you may specify a max. line length other than 72
26722         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26723
26724         maint: use consistent FSF copyright line syntax
26725         * lib/posixtm.c: Add missing comma in FSF copyright line.
26726         * lib/posixtm.h: Likewise.
26727         * lib/getugroups.c: Add missing ", Inc.".
26728
26729         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26730         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26731         FSF copyright line.  Remove trailing blanks.
26732
26733 2009-12-28  Eric Blake  <ebb9@byu.net>
26734
26735         test-dup2: reduce dependencies
26736         * modules/cloexec (Configure.ac): Set witness.
26737         * modules/dup2-tests (Depends-on): Drop cloexec.
26738         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26739         not present.
26740         Suggested by Bruno Haible.
26741
26742 2009-12-26  Bruno Haible  <bruno@clisp.org>
26743
26744         Remove an unneeded dependency.
26745         * modules/fseterr (Depends-on): Remove dup2.
26746
26747 2009-12-26  Eric Blake  <ebb9@byu.net>
26748
26749         tests: use macros.h in more places
26750         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26751         (ASSERT_STREAM): Provide default of stderr.
26752         * tests/test-dirent-safer.c: Include macros.h, using alternate
26753         stream for assertions.
26754         * tests/test-dup-safer.c: Likewise.
26755         * tests/test-freopen-safer.c: Likewise.
26756         * tests/test-getopt.c: Likewise.
26757         * tests/test-openat-safer.c: Likewise.
26758         * tests/test-pipe.c: Likewise.
26759         * tests/test-popen-safer.c: Likewise.
26760         * modules/dirent-safer-tests (Files): Include macros.h.
26761         * modules/unistd-safer-tests (Files): Likewise.
26762         * modules/freopen-safer-tests (Files): Likewise.
26763         * modules/getopt-posix-tests (Files): Likewise.
26764         * modules/openat-safer-tests (Files): Likewise.
26765         * modules/pipe-tests (Files): Likewise.
26766
26767 2009-12-26  Bruno Haible  <bruno@clisp.org>
26768
26769         javacomp: Portability fix.
26770         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26771         that it also works on Solaris.
26772
26773 2009-12-26  Bruno Haible  <bruno@clisp.org>
26774
26775         localename: Fix storage allocation of gl_locale_name_thread's result.
26776         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26777         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26778         all platforms that have 'uselocale'.
26779         (gl_locale_name_thread_unsafe): New function, extracted from
26780         gl_locale_name_thread.
26781         (gl_locale_name_thread): Call struniq on all platforms that have
26782         'uselocale'.
26783         * tests/test-localename.c (test_locale_name_thread): Check that the
26784         resulting strings are permanently allocated.
26785         * modules/localename-tests (Depends-on): Add strdup.
26786
26787 2009-12-26  Bruno Haible  <bruno@clisp.org>
26788
26789         * tests/test-localename.c (categories): Fill in the strings.
26790
26791 2009-12-26  Jim Meyering  <meyering@redhat.com>
26792
26793         isdir: complete the removal of m4/isdir.m4
26794         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26795
26796         isdir: clean up, since at least grep still uses it
26797         * lib/isdir.c: Include "isdir.h".
26798         (S_ISDIR): Remove now-unneeded definition.
26799         * modules/isdir (Files): Add lib/isdir.h.
26800         * lib/isdir.h: New file, with declaration.
26801         * m4/isdir.m4: Remove file -- unneeded.
26802
26803 2009-12-25  Bruno Haible  <bruno@clisp.org>
26804
26805         selinux-h: Make generated .h files standalone.
26806         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26807         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26808         * lib/se-selinux.in.h: Likewise.
26809         * modules/selinux-h (Depends-on): Add unused-parameter.
26810         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26811         selinux/selinux.h and selinux/context.h.
26812         Suggested by Eric Blake.
26813
26814 2009-12-25  Bruno Haible  <bruno@clisp.org>
26815
26816         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26817         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26818         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26819         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26820         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26821
26822 2009-12-24  Bruno Haible  <bruno@clisp.org>
26823
26824         openat: Fix warning.
26825         * lib/openat-proc.c: Include <unistd.h>.
26826
26827 2009-12-24  Bruno Haible  <bruno@clisp.org>
26828
26829         New module 'unused-parameter'.
26830         * build-aux/unused-parameter.h: New file, extracted from earlier
26831         gnulib-common.m4.
26832         * modules/unused-parameter: New file.
26833         * lib/unistr.h: Include unused-parameter.h.
26834         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26835         _GL_UNUSED.
26836         * modules/unistr/base (Depends-on): Add unused-parameter.
26837
26838 2009-12-24  Bruno Haible  <bruno@clisp.org>
26839
26840         Add missing dependencies to 'extensions' module.
26841         * m4/extensions.m4: Add comment.
26842         * modules/accept4 (Depends-on): Add extensions.
26843         * modules/dup3 (Depends-on): Likewise.
26844         * modules/fcntl (Depends-on): Likewise.
26845         * modules/futimens (Depends-on): Likewise.
26846         * modules/mknod (Depends-on): Likewise.
26847         * modules/pipe2 (Depends-on): Likewise.
26848         * modules/stat-time (Depends-on): Likewise.
26849         * modules/strcasestr-simple (Depends-on): Likewise.
26850         * modules/strsignal (Depends-on): Likewise.
26851         * modules/utimensat (Depends-on): Likewise.
26852         * modules/localcharset (Depends-on): Likewise. Needed because of
26853         gl_FCNTL_O_FLAGS.
26854         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26855         AC_TYPE_MBSTATE_T.
26856         * modules/wcsnrtombs (Depends-on): Likewise.
26857         * modules/wcsrtombs (Depends-on): Likewise.
26858
26859 2009-12-24  Bruno Haible  <bruno@clisp.org>
26860
26861         binary-io: Avoid gcc warning due to SET_BINARY.
26862         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26863         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26864
26865 2009-12-24  Bruno Haible  <bruno@clisp.org>
26866
26867         Avoid future namespace pollution on glibc systems.
26868         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26869         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26870         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26871         glibc systems.
26872
26873 2009-12-24  Bruno Haible  <bruno@clisp.org>
26874
26875         Refactor common macros used in tests.
26876         * tests/macros.h: New file.
26877         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26878         and/or <stdlib.h>, if appropriate.
26879         (ASSERT, SIZEOF): Remove macros.
26880         * tests/test-areadlink-with-size.c: Likewise.
26881         * tests/test-areadlinkat.c: Likewise.
26882         * tests/test-areadlinkat-with-size.c: Likewise.
26883         * tests/test-argmatch.c: Likewise.
26884         * tests/test-argv-iter.c: Likewise.
26885         * tests/test-array-mergesort.c: Likewise.
26886         * tests/test-array_list.c: Likewise.
26887         * tests/test-array_oset.c: Likewise.
26888         * tests/test-avltree_list.c: Likewise.
26889         * tests/test-avltree_oset.c: Likewise.
26890         * tests/test-avltreehash_list.c: Likewise.
26891         * tests/test-base64.c: Likewise.
26892         * tests/test-binary-io.c: Likewise.
26893         * tests/test-bitrotate.c: Likewise.
26894         * tests/test-btowc.c: Likewise.
26895         * tests/test-byteswap.c: Likewise.
26896         * tests/test-c-ctype.c: Likewise.
26897         * tests/test-c-stack.c: Likewise.
26898         * tests/test-c-strcasecmp.c: Likewise.
26899         * tests/test-c-strcasestr.c: Likewise.
26900         * tests/test-c-strncasecmp.c: Likewise.
26901         * tests/test-c-strstr.c: Likewise.
26902         * tests/test-canonicalize-lgpl.c: Likewise.
26903         * tests/test-canonicalize.c: Likewise.
26904         * tests/test-carray_list.c: Likewise.
26905         * tests/test-ceilf1.c: Likewise.
26906         * tests/test-ceilf2.c: Likewise.
26907         * tests/test-ceill.c: Likewise.
26908         * tests/test-chown.c: Likewise.
26909         * tests/test-cloexec.c: Likewise.
26910         * tests/test-copy-acl.c: Likewise.
26911         * tests/test-copy-file.c: Likewise.
26912         * tests/test-count-one-bits.c: Likewise.
26913         * tests/test-dprintf-posix.c: Likewise.
26914         * tests/test-dup2.c: Likewise.
26915         * tests/test-dup3.c: Likewise.
26916         * tests/test-duplocale.c: Likewise.
26917         * tests/test-fbufmode.c: Likewise.
26918         * tests/test-fchdir.c: Likewise.
26919         * tests/test-fchownat.c: Likewise.
26920         * tests/test-fcntl-safer.c: Likewise.
26921         * tests/test-fcntl.c: Likewise.
26922         * tests/test-fdopendir.c: Likewise.
26923         * tests/test-fdutimensat.c: Likewise.
26924         * tests/test-fflush2.c: Likewise.
26925         * tests/test-file-has-acl.c: Likewise.
26926         * tests/test-filevercmp.c: Likewise.
26927         * tests/test-flock.c: Likewise.
26928         * tests/test-floorf1.c: Likewise.
26929         * tests/test-floorf2.c: Likewise.
26930         * tests/test-floorl.c: Likewise.
26931         * tests/test-fnmatch.c: Likewise.
26932         * tests/test-fopen.h: Likewise.
26933         * tests/test-fpending.c: Likewise.
26934         * tests/test-fprintf-posix.c: Likewise.
26935         * tests/test-fpurge.c: Likewise.
26936         * tests/test-freadable.c: Likewise.
26937         * tests/test-freadahead.c: Likewise.
26938         * tests/test-freading.c: Likewise.
26939         * tests/test-freadptr.c: Likewise.
26940         * tests/test-freadptr2.c: Likewise.
26941         * tests/test-freadseek.c: Likewise.
26942         * tests/test-freopen.c: Likewise.
26943         * tests/test-frexp.c: Likewise.
26944         * tests/test-frexpl.c: Likewise.
26945         * tests/test-fseek.c: Likewise.
26946         * tests/test-fseeko.c: Likewise.
26947         * tests/test-fstatat.c: Likewise.
26948         * tests/test-fstrcmp.c: Likewise.
26949         * tests/test-fsync.c: Likewise.
26950         * tests/test-ftell.c: Likewise.
26951         * tests/test-ftello.c: Likewise.
26952         * tests/test-func.c: Likewise.
26953         * tests/test-futimens.c: Likewise.
26954         * tests/test-fwritable.c: Likewise.
26955         * tests/test-fwriting.c: Likewise.
26956         * tests/test-getcwd.c: Likewise.
26957         * tests/test-getdate.c: Likewise.
26958         * tests/test-getdelim.c: Likewise.
26959         * tests/test-getdtablesize.c: Likewise.
26960         * tests/test-getgroups.c: Likewise.
26961         * tests/test-getline.c: Likewise.
26962         * tests/test-getndelim2.c: Likewise.
26963         * tests/test-glob.c: Likewise.
26964         * tests/test-hash.c: Likewise.
26965         * tests/test-i-ring.c: Likewise.
26966         * tests/test-iconv-utf.c: Likewise.
26967         * tests/test-iconv.c: Likewise.
26968         * tests/test-idpriv-drop.c: Likewise.
26969         * tests/test-idpriv-droptemp.c: Likewise.
26970         * tests/test-inet_ntop.c: Likewise.
26971         * tests/test-inet_pton.c: Likewise.
26972         * tests/test-isblank.c: Likewise.
26973         * tests/test-isfinite.c: Likewise.
26974         * tests/test-isinf.c: Likewise.
26975         * tests/test-isnan.c: Likewise.
26976         * tests/test-isnand.h: Likewise.
26977         * tests/test-isnanf.h: Likewise.
26978         * tests/test-isnanl.h: Likewise.
26979         * tests/test-lchown.c: Likewise.
26980         * tests/test-ldexpl.c: Likewise.
26981         * tests/test-link.c: Likewise.
26982         * tests/test-linkat.c: Likewise.
26983         * tests/test-linked_list.c: Likewise.
26984         * tests/test-linkedhash_list.c: Likewise.
26985         * tests/test-localename.c: Likewise.
26986         * tests/test-lseek.c: Likewise.
26987         * tests/test-lstat.c: Likewise.
26988         * tests/test-mbmemcasecmp.c: Likewise.
26989         * tests/test-mbmemcasecoll.c: Likewise.
26990         * tests/test-mbrtowc.c: Likewise.
26991         * tests/test-mbscasecmp.c: Likewise.
26992         * tests/test-mbscasestr1.c: Likewise.
26993         * tests/test-mbscasestr2.c: Likewise.
26994         * tests/test-mbscasestr3.c: Likewise.
26995         * tests/test-mbscasestr4.c: Likewise.
26996         * tests/test-mbschr.c: Likewise.
26997         * tests/test-mbscspn.c: Likewise.
26998         * tests/test-mbsinit.c: Likewise.
26999         * tests/test-mbsncasecmp.c: Likewise.
27000         * tests/test-mbsnrtowcs.c: Likewise.
27001         * tests/test-mbspbrk.c: Likewise.
27002         * tests/test-mbspcasecmp.c: Likewise.
27003         * tests/test-mbsrchr.c: Likewise.
27004         * tests/test-mbsrtowcs.c: Likewise.
27005         * tests/test-mbsspn.c: Likewise.
27006         * tests/test-mbsstr1.c: Likewise.
27007         * tests/test-mbsstr2.c: Likewise.
27008         * tests/test-mbsstr3.c: Likewise.
27009         * tests/test-memchr.c: Likewise.
27010         * tests/test-memchr2.c: Likewise.
27011         * tests/test-memcmp.c: Likewise.
27012         * tests/test-memmem.c: Likewise.
27013         * tests/test-memrchr.c: Likewise.
27014         * tests/test-mkdir.c: Likewise.
27015         * tests/test-mkdirat.c: Likewise.
27016         * tests/test-mkfifo.c: Likewise.
27017         * tests/test-mkfifoat.c: Likewise.
27018         * tests/test-mknod.c: Likewise.
27019         * tests/test-nanosleep.c: Likewise.
27020         * tests/test-nl_langinfo.c: Likewise.
27021         * tests/test-obstack-printf.c: Likewise.
27022         * tests/test-open.c: Likewise.
27023         * tests/test-openat.c: Likewise.
27024         * tests/test-pipe-filter-gi1.c: Likewise.
27025         * tests/test-pipe-filter-gi2-main.c: Likewise.
27026         * tests/test-pipe-filter-ii1.c: Likewise.
27027         * tests/test-pipe-filter-ii2-main.c: Likewise.
27028         * tests/test-pipe2.c: Likewise.
27029         * tests/test-popen.h: Likewise.
27030         * tests/test-posixtm.c: Likewise.
27031         * tests/test-pread.c: Likewise.
27032         * tests/test-printf-frexp.c: Likewise.
27033         * tests/test-printf-frexpl.c: Likewise.
27034         * tests/test-printf-posix.c: Likewise.
27035         * tests/test-priv-set.c: Likewise.
27036         * tests/test-quotearg.c: Likewise.
27037         * tests/test-random_r.c: Likewise.
27038         * tests/test-rawmemchr.c: Likewise.
27039         * tests/test-rbtree_list.c: Likewise.
27040         * tests/test-rbtree_oset.c: Likewise.
27041         * tests/test-rbtreehash_list.c: Likewise.
27042         * tests/test-readlink.c: Likewise.
27043         * tests/test-remove.c: Likewise.
27044         * tests/test-rename.c: Likewise.
27045         * tests/test-renameat.c: Likewise.
27046         * tests/test-rmdir.c: Likewise.
27047         * tests/test-round1.c: Likewise.
27048         * tests/test-roundf1.c: Likewise.
27049         * tests/test-roundl.c: Likewise.
27050         * tests/test-safe-alloc.c: Likewise.
27051         * tests/test-sameacls.c: Likewise.
27052         * tests/test-set-mode-acl.c: Likewise.
27053         * tests/test-setenv.c: Likewise.
27054         * tests/test-sigaction.c: Likewise.
27055         * tests/test-signbit.c: Likewise.
27056         * tests/test-sleep.c: Likewise.
27057         * tests/test-snprintf-posix.c: Likewise.
27058         * tests/test-snprintf.c: Likewise.
27059         * tests/test-sprintf-posix.c: Likewise.
27060         * tests/test-stat-time.c: Likewise.
27061         * tests/test-stat.c: Likewise.
27062         * tests/test-strcasestr.c: Likewise.
27063         * tests/test-strchrnul.c: Likewise.
27064         * tests/test-strerror.c: Likewise.
27065         * tests/test-striconv.c: Likewise.
27066         * tests/test-striconveh.c: Likewise.
27067         * tests/test-striconveha.c: Likewise.
27068         * tests/test-strsignal.c: Likewise.
27069         * tests/test-strstr.c: Likewise.
27070         * tests/test-strtod.c: Likewise.
27071         * tests/test-strverscmp.c: Likewise.
27072         * tests/test-symlink.c: Likewise.
27073         * tests/test-symlinkat.c: Likewise.
27074         * tests/test-trunc1.c: Likewise.
27075         * tests/test-trunc2.c: Likewise.
27076         * tests/test-truncf1.c: Likewise.
27077         * tests/test-truncf2.c: Likewise.
27078         * tests/test-truncl.c: Likewise.
27079         * tests/test-uname.c: Likewise.
27080         * tests/test-unlink.c: Likewise.
27081         * tests/test-unlinkat.c: Likewise.
27082         * tests/test-unsetenv.c: Likewise.
27083         * tests/test-usleep.c: Likewise.
27084         * tests/test-utimens.c: Likewise.
27085         * tests/test-utimensat.c: Likewise.
27086         * tests/test-vasnprintf-posix.c: Likewise.
27087         * tests/test-vasnprintf-posix2.c: Likewise.
27088         * tests/test-vasnprintf.c: Likewise.
27089         * tests/test-vasprintf-posix.c: Likewise.
27090         * tests/test-vasprintf.c: Likewise.
27091         * tests/test-vdprintf-posix.c: Likewise.
27092         * tests/test-vfprintf-posix.c: Likewise.
27093         * tests/test-vprintf-posix.c: Likewise.
27094         * tests/test-vsnprintf-posix.c: Likewise.
27095         * tests/test-vsnprintf.c: Likewise.
27096         * tests/test-vsprintf-posix.c: Likewise.
27097         * tests/test-wcrtomb.c: Likewise.
27098         * tests/test-wcsnrtombs.c: Likewise.
27099         * tests/test-wcsrtombs.c: Likewise.
27100         * tests/test-wctype.c: Likewise.
27101         * tests/test-wcwidth.c: Likewise.
27102         * tests/test-xfprintf-posix.c: Likewise.
27103         * tests/test-xmemdup0.c: Likewise.
27104         * tests/test-xprintf-posix.c: Likewise.
27105         * tests/test-xvasprintf.c: Likewise.
27106         * tests/unicase/test-locale-language.c: Likewise.
27107         * tests/unicase/test-mapping-part1.h: Likewise.
27108         * tests/unicase/test-predicate-part1.h: Likewise.
27109         * tests/unicase/test-u8-casecmp.c: Likewise.
27110         * tests/unicase/test-u8-casecoll.c: Likewise.
27111         * tests/unicase/test-u8-casefold.c: Likewise.
27112         * tests/unicase/test-u8-is-cased.c: Likewise.
27113         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27114         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27115         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27116         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27117         * tests/unicase/test-u8-tolower.c: Likewise.
27118         * tests/unicase/test-u8-totitle.c: Likewise.
27119         * tests/unicase/test-u8-toupper.c: Likewise.
27120         * tests/unicase/test-u16-casecmp.c: Likewise.
27121         * tests/unicase/test-u16-casecoll.c: Likewise.
27122         * tests/unicase/test-u16-casefold.c: Likewise.
27123         * tests/unicase/test-u16-is-cased.c: Likewise.
27124         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27125         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27126         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27127         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27128         * tests/unicase/test-u16-tolower.c: Likewise.
27129         * tests/unicase/test-u16-totitle.c: Likewise.
27130         * tests/unicase/test-u16-toupper.c: Likewise.
27131         * tests/unicase/test-u32-casecmp.c: Likewise.
27132         * tests/unicase/test-u32-casecoll.c: Likewise.
27133         * tests/unicase/test-u32-casefold.c: Likewise.
27134         * tests/unicase/test-u32-is-cased.c: Likewise.
27135         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27136         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27137         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27138         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27139         * tests/unicase/test-u32-tolower.c: Likewise.
27140         * tests/unicase/test-u32-totitle.c: Likewise.
27141         * tests/unicase/test-u32-toupper.c: Likewise.
27142         * tests/unicase/test-ulc-casecmp.c: Likewise.
27143         * tests/unicase/test-ulc-casecoll.c: Likewise.
27144         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27145         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27146         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27147         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27148         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27149         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27150         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27151         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27152         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27153         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27154         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27155         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27156         * tests/unictype/test-bidi_byname.c: Likewise.
27157         * tests/unictype/test-bidi_name.c: Likewise.
27158         * tests/unictype/test-bidi_of.c: Likewise.
27159         * tests/unictype/test-bidi_test.c: Likewise.
27160         * tests/unictype/test-block_list.c: Likewise.
27161         * tests/unictype/test-block_of.c: Likewise.
27162         * tests/unictype/test-block_test.c: Likewise.
27163         * tests/unictype/test-categ_and.c: Likewise.
27164         * tests/unictype/test-categ_and_not.c: Likewise.
27165         * tests/unictype/test-categ_byname.c: Likewise.
27166         * tests/unictype/test-categ_name.c: Likewise.
27167         * tests/unictype/test-categ_none.c: Likewise.
27168         * tests/unictype/test-categ_of.c: Likewise.
27169         * tests/unictype/test-categ_or.c: Likewise.
27170         * tests/unictype/test-categ_test_withtable.c: Likewise.
27171         * tests/unictype/test-combining.c: Likewise.
27172         * tests/unictype/test-decdigit.c: Likewise.
27173         * tests/unictype/test-digit.c: Likewise.
27174         * tests/unictype/test-mirror.c: Likewise.
27175         * tests/unictype/test-numeric.c: Likewise.
27176         * tests/unictype/test-pr_byname.c: Likewise.
27177         * tests/unictype/test-pr_test.c: Likewise.
27178         * tests/unictype/test-predicate-part1.h: Likewise.
27179         * tests/unictype/test-scripts.c: Likewise.
27180         * tests/unictype/test-sy_c_ident.c: Likewise.
27181         * tests/unictype/test-sy_java_ident.c: Likewise.
27182         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27183         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27184         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27185         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27186         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27187         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27188         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27189         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27190         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27191         * tests/uninorm/test-compat-decomposition.c: Likewise.
27192         * tests/uninorm/test-composition.c: Likewise.
27193         * tests/uninorm/test-decomposing-form.c: Likewise.
27194         * tests/uninorm/test-decomposition.c: Likewise.
27195         * tests/uninorm/test-u8-nfc.c: Likewise.
27196         * tests/uninorm/test-u8-nfd.c: Likewise.
27197         * tests/uninorm/test-u8-nfkc.c: Likewise.
27198         * tests/uninorm/test-u8-nfkd.c: Likewise.
27199         * tests/uninorm/test-u8-normcmp.c: Likewise.
27200         * tests/uninorm/test-u8-normcoll.c: Likewise.
27201         * tests/uninorm/test-u16-nfc.c: Likewise.
27202         * tests/uninorm/test-u16-nfd.c: Likewise.
27203         * tests/uninorm/test-u16-nfkc.c: Likewise.
27204         * tests/uninorm/test-u16-nfkd.c: Likewise.
27205         * tests/uninorm/test-u16-normcmp.c: Likewise.
27206         * tests/uninorm/test-u16-normcoll.c: Likewise.
27207         * tests/uninorm/test-u32-nfc.c: Likewise.
27208         * tests/uninorm/test-u32-nfd.c: Likewise.
27209         * tests/uninorm/test-u32-nfkc.c: Likewise.
27210         * tests/uninorm/test-u32-nfkd.c: Likewise.
27211         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27212         * tests/uninorm/test-u32-normcmp.c: Likewise.
27213         * tests/uninorm/test-u32-normcoll.c: Likewise.
27214         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27215         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27216         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27217         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27218         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27219         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27220         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27221         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27222         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27223         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27224         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27225         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27226         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27227         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27228         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27229         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27230         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27231         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27232         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27233         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27234         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27235         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27236         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27237         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27238         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27239         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27240         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27241         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27242         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27243         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27244         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27245         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27246         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27247         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27248         * tests/uniwidth/test-u8-width.c: Likewise.
27249         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27250         * tests/uniwidth/test-u16-width.c: Likewise.
27251         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27252         * tests/uniwidth/test-u32-width.c: Likewise.
27253         * tests/uniwidth/test-uc_width.c: Likewise.
27254         * tests/uniwidth/test-uc_width2.c: Likewise.
27255         * modules/acl-tests (Files): Add tests/macros.h.
27256         * modules/areadlink-tests (Files): Likewise.
27257         * modules/areadlink-with-size-tests (Files): Likewise.
27258         * modules/areadlinkat-tests (Files): Likewise.
27259         * modules/areadlinkat-with-size-tests (Files): Likewise.
27260         * modules/argmatch-tests (Files): Likewise.
27261         * modules/argv-iter-tests (Files): Likewise.
27262         * modules/array-list-tests (Files): Likewise.
27263         * modules/array-mergesort-tests (Files): Likewise.
27264         * modules/array-oset-tests (Files): Likewise.
27265         * modules/avltree-list-tests (Files): Likewise.
27266         * modules/avltree-oset-tests (Files): Likewise.
27267         * modules/avltreehash-list-tests (Files): Likewise.
27268         * modules/base64-tests (Files): Likewise.
27269         * modules/binary-io-tests (Files): Likewise.
27270         * modules/bitrotate-tests (Files): Likewise.
27271         * modules/btowc-tests (Files): Likewise.
27272         * modules/byteswap-tests (Files): Likewise.
27273         * modules/c-ctype-tests (Files): Likewise.
27274         * modules/c-stack-tests (Files): Likewise.
27275         * modules/c-strcase-tests (Files): Likewise.
27276         * modules/c-strcasestr-tests (Files): Likewise.
27277         * modules/c-strstr-tests (Files): Likewise.
27278         * modules/canonicalize-lgpl-tests (Files): Likewise.
27279         * modules/canonicalize-tests (Files): Likewise.
27280         * modules/carray-list-tests (Files): Likewise.
27281         * modules/ceilf-tests (Files): Likewise.
27282         * modules/ceill-tests (Files): Likewise.
27283         * modules/chown-tests (Files): Likewise.
27284         * modules/cloexec-tests (Files): Likewise.
27285         * modules/copy-file-tests (Files): Likewise.
27286         * modules/count-one-bits-tests (Files): Likewise.
27287         * modules/dprintf-posix-tests (Files): Likewise.
27288         * modules/dup2-tests (Files): Likewise.
27289         * modules/dup3-tests (Files): Likewise.
27290         * modules/duplocale-tests (Files): Likewise.
27291         * modules/fbufmode-tests (Files): Likewise.
27292         * modules/fchdir-tests (Files): Likewise.
27293         * modules/fcntl-safer-tests (Files): Likewise.
27294         * modules/fcntl-tests (Files): Likewise.
27295         * modules/fdopendir-tests (Files): Likewise.
27296         * modules/fdutimensat-tests (Files): Likewise.
27297         * modules/fflush-tests (Files): Likewise.
27298         * modules/filevercmp-tests (Files): Likewise.
27299         * modules/flock-tests (Files): Likewise.
27300         * modules/floorf-tests (Files): Likewise.
27301         * modules/floorl-tests (Files): Likewise.
27302         * modules/fnmatch-tests (Files): Likewise.
27303         * modules/fopen-safer-tests (Files): Likewise.
27304         * modules/fopen-tests (Files): Likewise.
27305         * modules/fpending-tests (Files): Likewise.
27306         * modules/fprintf-posix-tests (Files): Likewise.
27307         * modules/fpurge-tests (Files): Likewise.
27308         * modules/freadable-tests (Files): Likewise.
27309         * modules/freadahead-tests (Files): Likewise.
27310         * modules/freading-tests (Files): Likewise.
27311         * modules/freadptr-tests (Files): Likewise.
27312         * modules/freadseek-tests (Files): Likewise.
27313         * modules/freopen-tests (Files): Likewise.
27314         * modules/frexp-nolibm-tests (Files): Likewise.
27315         * modules/frexp-tests (Files): Likewise.
27316         * modules/frexpl-nolibm-tests (Files): Likewise.
27317         * modules/frexpl-tests (Files): Likewise.
27318         * modules/fseek-tests (Files): Likewise.
27319         * modules/fseeko-tests (Files): Likewise.
27320         * modules/fstrcmp-tests (Files): Likewise.
27321         * modules/fsync-tests (Files): Likewise.
27322         * modules/ftell-tests (Files): Likewise.
27323         * modules/ftello-tests (Files): Likewise.
27324         * modules/func-tests (Files): Likewise.
27325         * modules/futimens-tests (Files): Likewise.
27326         * modules/fwritable-tests (Files): Likewise.
27327         * modules/fwriting-tests (Files): Likewise.
27328         * modules/getcwd-tests (Files): Likewise.
27329         * modules/getdate-tests (Files): Likewise.
27330         * modules/getdelim-tests (Files): Likewise.
27331         * modules/getdtablesize-tests (Files): Likewise.
27332         * modules/getgroups-tests (Files): Likewise.
27333         * modules/getline-tests (Files): Likewise.
27334         * modules/getndelim2-tests (Files): Likewise.
27335         * modules/glob-tests (Files): Likewise.
27336         * modules/hash-tests (Files): Likewise.
27337         * modules/i-ring-tests (Files): Likewise.
27338         * modules/iconv-tests (Files): Likewise.
27339         * modules/iconv_open-utf-tests (Files): Likewise.
27340         * modules/idpriv-drop-tests (Files): Likewise.
27341         * modules/idpriv-droptemp-tests (Files): Likewise.
27342         * modules/inet_ntop-tests (Files): Likewise.
27343         * modules/inet_pton-tests (Files): Likewise.
27344         * modules/isblank-tests (Files): Likewise.
27345         * modules/isfinite-tests (Files): Likewise.
27346         * modules/isinf-tests (Files): Likewise.
27347         * modules/isnan-tests (Files): Likewise.
27348         * modules/isnand-nolibm-tests (Files): Likewise.
27349         * modules/isnand-tests (Files): Likewise.
27350         * modules/isnanf-nolibm-tests (Files): Likewise.
27351         * modules/isnanf-tests (Files): Likewise.
27352         * modules/isnanl-nolibm-tests (Files): Likewise.
27353         * modules/isnanl-tests (Files): Likewise.
27354         * modules/lchown-tests (Files): Likewise.
27355         * modules/ldexpl-tests (Files): Likewise.
27356         * modules/link-tests (Files): Likewise.
27357         * modules/linkat-tests (Files): Likewise.
27358         * modules/linked-list-tests (Files): Likewise.
27359         * modules/linkedhash-list-tests (Files): Likewise.
27360         * modules/localename-tests (Files): Likewise.
27361         * modules/lseek-tests (Files): Likewise.
27362         * modules/lstat-tests (Files): Likewise.
27363         * modules/mbmemcasecmp-tests (Files): Likewise.
27364         * modules/mbmemcasecoll-tests (Files): Likewise.
27365         * modules/mbrtowc-tests (Files): Likewise.
27366         * modules/mbscasecmp-tests (Files): Likewise.
27367         * modules/mbscasestr-tests (Files): Likewise.
27368         * modules/mbschr-tests (Files): Likewise.
27369         * modules/mbscspn-tests (Files): Likewise.
27370         * modules/mbsinit-tests (Files): Likewise.
27371         * modules/mbsncasecmp-tests (Files): Likewise.
27372         * modules/mbsnrtowcs-tests (Files): Likewise.
27373         * modules/mbspbrk-tests (Files): Likewise.
27374         * modules/mbspcasecmp-tests (Files): Likewise.
27375         * modules/mbsrchr-tests (Files): Likewise.
27376         * modules/mbsrtowcs-tests (Files): Likewise.
27377         * modules/mbsspn-tests (Files): Likewise.
27378         * modules/mbsstr-tests (Files): Likewise.
27379         * modules/memchr-tests (Files): Likewise.
27380         * modules/memchr2-tests (Files): Likewise.
27381         * modules/memcmp-tests (Files): Likewise.
27382         * modules/memmem-tests (Files): Likewise.
27383         * modules/memrchr-tests (Files): Likewise.
27384         * modules/mkdir-tests (Files): Likewise.
27385         * modules/mkfifo-tests (Files): Likewise.
27386         * modules/mkfifoat-tests (Files): Likewise.
27387         * modules/mknod-tests (Files): Likewise.
27388         * modules/nanosleep-tests (Files): Likewise.
27389         * modules/nl_langinfo-tests (Files): Likewise.
27390         * modules/obstack-printf-tests (Files): Likewise.
27391         * modules/open-tests (Files): Likewise.
27392         * modules/openat-tests (Files): Likewise.
27393         * modules/pipe-filter-gi-tests (Files): Likewise.
27394         * modules/pipe-filter-ii-tests (Files): Likewise.
27395         * modules/pipe2-tests (Files): Likewise.
27396         * modules/popen-safer-tests (Files): Likewise.
27397         * modules/popen-tests (Files): Likewise.
27398         * modules/posixtm-tests (Files): Likewise.
27399         * modules/pread-tests (Files): Likewise.
27400         * modules/printf-frexp-tests (Files): Likewise.
27401         * modules/printf-frexpl-tests (Files): Likewise.
27402         * modules/printf-posix-tests (Files): Likewise.
27403         * modules/priv-set-tests (Files): Likewise.
27404         * modules/quotearg-tests (Files): Likewise.
27405         * modules/random_r-tests (Files): Likewise.
27406         * modules/rawmemchr-tests (Files): Likewise.
27407         * modules/rbtree-list-tests (Files): Likewise.
27408         * modules/rbtree-oset-tests (Files): Likewise.
27409         * modules/rbtreehash-list-tests (Files): Likewise.
27410         * modules/readlink-tests (Files): Likewise.
27411         * modules/remove-tests (Files): Likewise.
27412         * modules/rename-tests (Files): Likewise.
27413         * modules/renameat-tests (Files): Likewise.
27414         * modules/rmdir-tests (Files): Likewise.
27415         * modules/round-tests (Files): Likewise.
27416         * modules/roundf-tests (Files): Likewise.
27417         * modules/roundl-tests (Files): Likewise.
27418         * modules/safe-alloc-tests (Files): Likewise.
27419         * modules/setenv-tests (Files): Likewise.
27420         * modules/sigaction-tests (Files): Likewise.
27421         * modules/signbit-tests (Files): Likewise.
27422         * modules/sleep-tests (Files): Likewise.
27423         * modules/snprintf-posix-tests (Files): Likewise.
27424         * modules/snprintf-tests (Files): Likewise.
27425         * modules/sprintf-posix-tests (Files): Likewise.
27426         * modules/stat-tests (Files): Likewise.
27427         * modules/stat-time-tests (Files): Likewise.
27428         * modules/strcasestr-tests (Files): Likewise.
27429         * modules/strchrnul-tests (Files): Likewise.
27430         * modules/strerror-tests (Files): Likewise.
27431         * modules/striconv-tests (Files): Likewise.
27432         * modules/striconveh-tests (Files): Likewise.
27433         * modules/striconveha-tests (Files): Likewise.
27434         * modules/strsignal-tests (Files): Likewise.
27435         * modules/strstr-tests (Files): Likewise.
27436         * modules/strtod-tests (Files): Likewise.
27437         * modules/strverscmp-tests (Files): Likewise.
27438         * modules/symlink-tests (Files): Likewise.
27439         * modules/symlinkat-tests (Files): Likewise.
27440         * modules/trunc-tests (Files): Likewise.
27441         * modules/truncf-tests (Files): Likewise.
27442         * modules/truncl-tests (Files): Likewise.
27443         * modules/uname-tests (Files): Likewise.
27444         * modules/unicase/cased-tests (Files): Likewise.
27445         * modules/unicase/ignorable-tests (Files): Likewise.
27446         * modules/unicase/locale-language-tests (Files): Likewise.
27447         * modules/unicase/tolower-tests (Files): Likewise.
27448         * modules/unicase/totitle-tests (Files): Likewise.
27449         * modules/unicase/toupper-tests (Files): Likewise.
27450         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27451         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27452         * modules/unicase/u8-casefold-tests (Files): Likewise.
27453         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27454         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27455         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27456         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27457         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27458         * modules/unicase/u8-tolower-tests (Files): Likewise.
27459         * modules/unicase/u8-totitle-tests (Files): Likewise.
27460         * modules/unicase/u8-toupper-tests (Files): Likewise.
27461         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27462         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27463         * modules/unicase/u16-casefold-tests (Files): Likewise.
27464         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27465         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27466         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27467         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27468         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27469         * modules/unicase/u16-tolower-tests (Files): Likewise.
27470         * modules/unicase/u16-totitle-tests (Files): Likewise.
27471         * modules/unicase/u16-toupper-tests (Files): Likewise.
27472         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27473         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27474         * modules/unicase/u32-casefold-tests (Files): Likewise.
27475         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27476         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27477         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27478         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27479         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27480         * modules/unicase/u32-tolower-tests (Files): Likewise.
27481         * modules/unicase/u32-totitle-tests (Files): Likewise.
27482         * modules/unicase/u32-toupper-tests (Files): Likewise.
27483         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27484         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27485         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27486         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27487         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27488         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27489         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27490         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27491         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27492         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27493         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27494         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27495         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27496         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27497         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27498         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27499         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27500         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27501         * modules/unictype/block-list-tests (Files): Likewise.
27502         * modules/unictype/block-of-tests (Files): Likewise.
27503         * modules/unictype/block-test-tests (Files): Likewise.
27504         * modules/unictype/category-C-tests (Files): Likewise.
27505         * modules/unictype/category-Cc-tests (Files): Likewise.
27506         * modules/unictype/category-Cf-tests (Files): Likewise.
27507         * modules/unictype/category-Cn-tests (Files): Likewise.
27508         * modules/unictype/category-Co-tests (Files): Likewise.
27509         * modules/unictype/category-Cs-tests (Files): Likewise.
27510         * modules/unictype/category-L-tests (Files): Likewise.
27511         * modules/unictype/category-Ll-tests (Files): Likewise.
27512         * modules/unictype/category-Lm-tests (Files): Likewise.
27513         * modules/unictype/category-Lo-tests (Files): Likewise.
27514         * modules/unictype/category-Lt-tests (Files): Likewise.
27515         * modules/unictype/category-Lu-tests (Files): Likewise.
27516         * modules/unictype/category-M-tests (Files): Likewise.
27517         * modules/unictype/category-Mc-tests (Files): Likewise.
27518         * modules/unictype/category-Me-tests (Files): Likewise.
27519         * modules/unictype/category-Mn-tests (Files): Likewise.
27520         * modules/unictype/category-N-tests (Files): Likewise.
27521         * modules/unictype/category-Nd-tests (Files): Likewise.
27522         * modules/unictype/category-Nl-tests (Files): Likewise.
27523         * modules/unictype/category-No-tests (Files): Likewise.
27524         * modules/unictype/category-P-tests (Files): Likewise.
27525         * modules/unictype/category-Pc-tests (Files): Likewise.
27526         * modules/unictype/category-Pd-tests (Files): Likewise.
27527         * modules/unictype/category-Pe-tests (Files): Likewise.
27528         * modules/unictype/category-Pf-tests (Files): Likewise.
27529         * modules/unictype/category-Pi-tests (Files): Likewise.
27530         * modules/unictype/category-Po-tests (Files): Likewise.
27531         * modules/unictype/category-Ps-tests (Files): Likewise.
27532         * modules/unictype/category-S-tests (Files): Likewise.
27533         * modules/unictype/category-Sc-tests (Files): Likewise.
27534         * modules/unictype/category-Sk-tests (Files): Likewise.
27535         * modules/unictype/category-Sm-tests (Files): Likewise.
27536         * modules/unictype/category-So-tests (Files): Likewise.
27537         * modules/unictype/category-Z-tests (Files): Likewise.
27538         * modules/unictype/category-Zl-tests (Files): Likewise.
27539         * modules/unictype/category-Zp-tests (Files): Likewise.
27540         * modules/unictype/category-Zs-tests (Files): Likewise.
27541         * modules/unictype/category-and-not-tests (Files): Likewise.
27542         * modules/unictype/category-and-tests (Files): Likewise.
27543         * modules/unictype/category-byname-tests (Files): Likewise.
27544         * modules/unictype/category-name-tests (Files): Likewise.
27545         * modules/unictype/category-none-tests (Files): Likewise.
27546         * modules/unictype/category-of-tests (Files): Likewise.
27547         * modules/unictype/category-or-tests (Files): Likewise.
27548         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27549         * modules/unictype/combining-class-tests (Files): Likewise.
27550         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27551         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27552         * modules/unictype/ctype-blank-tests (Files): Likewise.
27553         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27554         * modules/unictype/ctype-digit-tests (Files): Likewise.
27555         * modules/unictype/ctype-graph-tests (Files): Likewise.
27556         * modules/unictype/ctype-lower-tests (Files): Likewise.
27557         * modules/unictype/ctype-print-tests (Files): Likewise.
27558         * modules/unictype/ctype-punct-tests (Files): Likewise.
27559         * modules/unictype/ctype-space-tests (Files): Likewise.
27560         * modules/unictype/ctype-upper-tests (Files): Likewise.
27561         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27562         * modules/unictype/decimal-digit-tests (Files): Likewise.
27563         * modules/unictype/digit-tests (Files): Likewise.
27564         * modules/unictype/mirror-tests (Files): Likewise.
27565         * modules/unictype/numeric-tests (Files): Likewise.
27566         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27567         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27568         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27569         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27570         Likewise.
27571         * modules/unictype/property-bidi-block-separator-tests (Files):
27572         Likewise.
27573         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27574         Likewise.
27575         * modules/unictype/property-bidi-common-separator-tests (Files):
27576         Likewise.
27577         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27578         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27579         Likewise.
27580         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27581         Likewise.
27582         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27583         Likewise.
27584         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27585         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27586         Likewise.
27587         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27588         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27589         Likewise.
27590         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27591         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27592         * modules/unictype/property-bidi-segment-separator-tests (Files):
27593         Likewise.
27594         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27595         * modules/unictype/property-byname-tests (Files): Likewise.
27596         * modules/unictype/property-combining-tests (Files): Likewise.
27597         * modules/unictype/property-composite-tests (Files): Likewise.
27598         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27599         * modules/unictype/property-dash-tests (Files): Likewise.
27600         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27601         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27602         Likewise.
27603         * modules/unictype/property-deprecated-tests (Files): Likewise.
27604         * modules/unictype/property-diacritic-tests (Files): Likewise.
27605         * modules/unictype/property-extender-tests (Files): Likewise.
27606         * modules/unictype/property-format-control-tests (Files): Likewise.
27607         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27608         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27609         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27610         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27611         * modules/unictype/property-hyphen-tests (Files): Likewise.
27612         * modules/unictype/property-id-continue-tests (Files): Likewise.
27613         * modules/unictype/property-id-start-tests (Files): Likewise.
27614         * modules/unictype/property-ideographic-tests (Files): Likewise.
27615         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27616         * modules/unictype/property-ids-trinary-operator-tests (Files):
27617         Likewise.
27618         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27619         * modules/unictype/property-iso-control-tests (Files): Likewise.
27620         * modules/unictype/property-join-control-tests (Files): Likewise.
27621         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27622         * modules/unictype/property-line-separator-tests (Files): Likewise.
27623         * modules/unictype/property-logical-order-exception-tests (Files):
27624         Likewise.
27625         * modules/unictype/property-lowercase-tests (Files): Likewise.
27626         * modules/unictype/property-math-tests (Files): Likewise.
27627         * modules/unictype/property-non-break-tests (Files): Likewise.
27628         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27629         * modules/unictype/property-numeric-tests (Files): Likewise.
27630         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27631         * modules/unictype/property-other-default-ignorable-code-point-tests
27632         (Files): Likewise.
27633         * modules/unictype/property-other-grapheme-extend-tests (Files):
27634         Likewise.
27635         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27636         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27637         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27638         * modules/unictype/property-other-math-tests (Files): Likewise.
27639         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27640         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27641         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27642         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27643         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27644         * modules/unictype/property-private-use-tests (Files): Likewise.
27645         * modules/unictype/property-punctuation-tests (Files): Likewise.
27646         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27647         * modules/unictype/property-radical-tests (Files): Likewise.
27648         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27649         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27650         * modules/unictype/property-space-tests (Files): Likewise.
27651         * modules/unictype/property-terminal-punctuation-tests (Files):
27652         Likewise.
27653         * modules/unictype/property-test-tests (Files): Likewise.
27654         * modules/unictype/property-titlecase-tests (Files): Likewise.
27655         * modules/unictype/property-unassigned-code-value-tests (Files):
27656         Likewise.
27657         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27658         * modules/unictype/property-uppercase-tests (Files): Likewise.
27659         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27660         * modules/unictype/property-white-space-tests (Files): Likewise.
27661         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27662         * modules/unictype/property-xid-start-tests (Files): Likewise.
27663         * modules/unictype/property-zero-width-tests (Files): Likewise.
27664         * modules/unictype/scripts-tests (Files): Likewise.
27665         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27666         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27667         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27668         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27669         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27670         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27671         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27672         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27673         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27674         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27675         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27676         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27677         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27678         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27679         * modules/uninorm/composition-tests (Files): Likewise.
27680         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27681         * modules/uninorm/decomposition-tests (Files): Likewise.
27682         * modules/uninorm/filter-tests (Files): Likewise.
27683         * modules/uninorm/nfc-tests (Files): Likewise.
27684         * modules/uninorm/nfd-tests (Files): Likewise.
27685         * modules/uninorm/nfkc-tests (Files): Likewise.
27686         * modules/uninorm/nfkd-tests (Files): Likewise.
27687         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27688         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27689         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27690         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27691         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27692         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27693         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27694         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27695         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27696         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27697         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27698         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27699         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27700         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27701         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27702         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27703         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27704         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27705         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27706         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27707         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27708         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27709         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27710         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27711         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27712         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27713         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27714         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27715         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27716         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27717         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27718         * modules/uniwidth/u8-width-tests (Files): Likewise.
27719         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27720         * modules/uniwidth/u16-width-tests (Files): Likewise.
27721         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27722         * modules/uniwidth/u32-width-tests (Files): Likewise.
27723         * modules/uniwidth/width-tests (Files): Likewise.
27724         * modules/unlink-tests (Files): Likewise.
27725         * modules/unsetenv-tests (Files): Likewise.
27726         * modules/usleep-tests (Files): Likewise.
27727         * modules/utimens-tests (Files): Likewise.
27728         * modules/utimensat-tests (Files): Likewise.
27729         * modules/vasnprintf-posix-tests (Files): Likewise.
27730         * modules/vasnprintf-tests (Files): Likewise.
27731         * modules/vasprintf-posix-tests (Files): Likewise.
27732         * modules/vasprintf-tests (Files): Likewise.
27733         * modules/vdprintf-posix-tests (Files): Likewise.
27734         * modules/vfprintf-posix-tests (Files): Likewise.
27735         * modules/vprintf-posix-tests (Files): Likewise.
27736         * modules/vsnprintf-posix-tests (Files): Likewise.
27737         * modules/vsnprintf-tests (Files): Likewise.
27738         * modules/vsprintf-posix-tests (Files): Likewise.
27739         * modules/wcrtomb-tests (Files): Likewise.
27740         * modules/wcsnrtombs-tests (Files): Likewise.
27741         * modules/wcsrtombs-tests (Files): Likewise.
27742         * modules/wctype-tests (Files): Likewise.
27743         * modules/wcwidth-tests (Files): Likewise.
27744         * modules/xmemdup0-tests (Files): Likewise.
27745         * modules/xprintf-posix-tests (Files): Likewise.
27746         * modules/xvasprintf-tests (Files): Likewise.
27747
27748 2009-12-24  Eric Blake  <ebb9@byu.net>
27749
27750         test-nanosleep: fix typo
27751         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27752         patch.
27753         Reported by Bruno Haible.
27754
27755 2009-12-24  Bruno Haible  <bruno@clisp.org>
27756
27757         Reduce namespace pollution on glibc systems.
27758         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27759         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27760         systems.
27761         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27762         <getopt.h> on glibc systems.
27763         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27764         systems.
27765         * lib/fcntl.c: Include <unistd.h> here instead.
27766
27767 2009-12-24  Bruno Haible  <bruno@clisp.org>
27768
27769         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27770
27771 2009-12-24  Eric Blake  <ebb9@byu.net>
27772
27773         tests: add signature checks
27774         * tests/signature.h (SIGNATURE_CHECK): New file.
27775         * modules/atexit-tests (Files): Use it.
27776         * modules/btowc-tests (Files): Likewise.
27777         * modules/canonicalize-lgpl-tests (Files): Likewise.
27778         * modules/ceilf-tests (Files): Likewise.
27779         * modules/ceill-tests (Files): Likewise.
27780         * modules/chown-tests (Files): Likewise.
27781         * modules/dprintf-posix-tests (Files): Likewise.
27782         * modules/dup2-tests (Files): Likewise.
27783         * modules/dup3-tests (Files): Likewise.
27784         * modules/duplocale-tests (Files): Likewise.
27785         * modules/fchdir-tests (Files): Likewise.
27786         * modules/fcntl-tests (Files): Likewise.
27787         * modules/fdopendir-tests (Files): Likewise.
27788         * modules/fflush-tests (Files): Likewise.
27789         * modules/flock-tests (Files): Likewise.
27790         * modules/floorf-tests (Files): Likewise.
27791         * modules/floorl-tests (Files): Likewise.
27792         * modules/fnmatch-tests (Files): Likewise.
27793         * modules/fopen-tests (Files): Likewise.
27794         * modules/fprintf-posix-tests (Files): Likewise.
27795         * modules/freopen-tests (Files): Likewise.
27796         * modules/frexp-nolibm-tests (Files): Likewise.
27797         * modules/frexp-tests (Files): Likewise.
27798         * modules/frexpl-nolibm-tests (Files): Likewise.
27799         * modules/frexpl-tests (Files): Likewise.
27800         * modules/fseek-tests (Files): Likewise.
27801         * modules/fseeko-tests (Files): Likewise.
27802         * modules/fsync-tests (Files): Likewise.
27803         * modules/ftell-tests (Files): Likewise.
27804         * modules/ftello-tests (Files): Likewise.
27805         * modules/futimens-tests (Files): Likewise.
27806         * modules/getaddrinfo-tests (Files): Likewise.
27807         * modules/getcwd-tests (Files): Likewise.
27808         * modules/getdelim-tests (Files): Likewise.
27809         * modules/getdtablesize-tests (Files): Likewise.
27810         * modules/getgroups-tests (Files): Likewise.
27811         * modules/gethostname-tests (Files): Likewise.
27812         * modules/getline-tests (Files): Likewise.
27813         * modules/getopt-posix-tests (Files): Likewise.
27814         * modules/gettimeofday-tests (Files): Likewise.
27815         * modules/glob-tests (Files): Likewise.
27816         * modules/iconv-tests (Files): Likewise.
27817         * modules/inet_ntop-tests (Files): Likewise.
27818         * modules/inet_pton-tests (Files): Likewise.
27819         * modules/isblank-tests (Files): Likewise.
27820         * modules/lchown-tests (Files): Likewise.
27821         * modules/ldexpl-tests (Files): Likewise.
27822         * modules/link-tests (Files): Likewise.
27823         * modules/linkat-tests (Files): Likewise.
27824         * modules/lseek-tests (Files): Likewise.
27825         * modules/lstat-tests (Files): Likewise.
27826         * modules/mbrtowc-tests (Files): Likewise.
27827         * modules/mbsinit-tests (Files): Likewise.
27828         * modules/mbsnrtowcs-tests (Files): Likewise.
27829         * modules/mbsrtowcs-tests (Files): Likewise.
27830         * modules/memchr-tests (Files): Likewise.
27831         * modules/memcmp-tests (Files): Likewise.
27832         * modules/memmem-tests (Files): Likewise.
27833         * modules/memrchr-tests (Files): Likewise.
27834         * modules/mkdir-tests (Files): Likewise.
27835         * modules/mkfifo-tests (Files): Likewise.
27836         * modules/mkfifoat-tests (Files): Likewise.
27837         * modules/mknod-tests (Files): Likewise.
27838         * modules/nanosleep-tests (Files): Likewise.
27839         * modules/nl_langinfo-tests (Files): Likewise.
27840         * modules/obstack-printf-tests (Files): Likewise.
27841         * modules/open-tests (Files): Likewise.
27842         * modules/openat-tests (Files): Likewise.
27843         * modules/perror-tests (Files): Likewise.
27844         * modules/pipe2-tests (Files): Likewise.
27845         * modules/poll-tests (Files): Likewise.
27846         * modules/popen-tests (Files): Likewise.
27847         * modules/posix_spawn-tests (Files): Likewise.
27848         * modules/posix_spawnp-tests (Files): Likewise.
27849         * modules/pread-tests (Files): Likewise.
27850         * modules/printf-posix-tests (Files): Likewise.
27851         * modules/pty-tests (Files): Likewise.
27852         * modules/random_r-tests (Files): Likewise.
27853         * modules/rawmemchr-tests (Files): Likewise.
27854         * modules/readlink-tests (Files): Likewise.
27855         * modules/remove-tests (Files): Likewise.
27856         * modules/rename-tests (Files): Likewise.
27857         * modules/renameat-tests (Files): Likewise.
27858         * modules/rmdir-tests (Files): Likewise.
27859         * modules/round-tests (Files): Likewise.
27860         * modules/roundf-tests (Files): Likewise.
27861         * modules/roundl-tests (Files): Likewise.
27862         * modules/select-tests (Files): Likewise.
27863         * modules/setenv-tests (Files): Likewise.
27864         * modules/sigaction-tests (Files): Likewise.
27865         * modules/sleep-tests (Files): Likewise.
27866         * modules/snprintf-posix-tests (Files): Likewise.
27867         * modules/snprintf-tests (Files): Likewise.
27868         * modules/sprintf-posix-tests (Files): Likewise.
27869         * modules/stat-tests (Files): Likewise.
27870         * modules/strcasestr-tests (Files): Likewise.
27871         * modules/strchrnul-tests (Files): Likewise.
27872         * modules/strerror-tests (Files): Likewise.
27873         * modules/strsignal-tests (Files): Likewise.
27874         * modules/strstr-tests (Files): Likewise.
27875         * modules/strtod-tests (Files): Likewise.
27876         * modules/strverscmp-tests (Files): Likewise.
27877         * modules/symlink-tests (Files): Likewise.
27878         * modules/symlinkat-tests (Files): Likewise.
27879         * modules/times-tests (Files): Likewise.
27880         * modules/trunc-tests (Files): Likewise.
27881         * modules/truncf-tests (Files): Likewise.
27882         * modules/truncl-tests (Files): Likewise.
27883         * modules/tsearch-tests (Files): Likewise.
27884         * modules/uname-tests (Files): Likewise.
27885         * modules/unlink-tests (Files): Likewise.
27886         * modules/unsetenv-tests (Files): Likewise.
27887         * modules/usleep-tests (Files): Likewise.
27888         * modules/utimensat-tests (Files): Likewise.
27889         * modules/vasprintf-tests (Files): Likewise.
27890         * modules/vdprintf-posix-tests (Files): Likewise.
27891         * modules/vfprintf-posix-tests (Files): Likewise.
27892         * modules/vprintf-posix-tests (Files): Likewise.
27893         * modules/vsnprintf-posix-tests (Files): Likewise.
27894         * modules/vsnprintf-tests (Files): Likewise.
27895         * modules/vsprintf-posix-tests (Files): Likewise.
27896         * modules/wcrtomb-tests (Files): Likewise.
27897         * modules/wcsnrtombs-tests (Files): Likewise.
27898         * modules/wcsrtombs-tests (Files): Likewise.
27899         * modules/wcwidth-tests (Files): Likewise.
27900         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27901         * tests/test-isinf.c (isinf): Likewise.
27902         * tests/test-isnan.c (isnan): Likewise.
27903         * tests/test-signbit.c (signbit): Likewise.
27904         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27905         declaration, either as macro or with correct signature.
27906         (select): Ensure function under test is declared with correct
27907         signature in correct header.
27908         * tests/test-atexit.c (atexit): Likewise.
27909         * tests/test-btowc.c (btowc): Likewise.
27910         * tests/test-canonicalize-lgpl.c (realpath)
27911         (canonicalize_file_name): Likewise.
27912         * tests/test-ceilf1.c (ceilf): Likewise.
27913         * tests/test-ceill.c (ceill): Likewise.
27914         * tests/test-chown.c (chown): Likewise.
27915         * tests/test-dprintf-posix.c (dprintf): Likewise.
27916         * tests/test-dup2.c (dup2): Likewise.
27917         * tests/test-dup3.c (dup3): Likewise.
27918         * tests/test-duplocale.c (duplocale): Likewise.
27919         * tests/test-fchdir.c (fchdir): Likewise.
27920         * tests/test-fchownat.c (fchownat): Likewise.
27921         * tests/test-fcntl.c (fcntl): Likewise.
27922         * tests/test-fdopendir.c (fdopendir): Likewise.
27923         * tests/test-fflush.c (fflush): Likewise.
27924         * tests/test-flock.c (flock): Likewise.
27925         * tests/test-floorf1.c (floorf): Likewise.
27926         * tests/test-floorl.c (floorl): Likewise.
27927         * tests/test-fnmatch.c (fnmatch): Likewise.
27928         * tests/test-fopen.c (fopen): Likewise.
27929         * tests/test-fprintf-posix.c (fprintf): Likewise.
27930         * tests/test-freopen.c (freopen): Likewise.
27931         * tests/test-frexp.c (frexp): Likewise.
27932         * tests/test-frexpl.c (frexpl): Likewise.
27933         * tests/test-fseek.c (fseek): Likewise.
27934         * tests/test-fseeko.c (fseeko): Likewise.
27935         * tests/test-fstatat.c (fstatat): Likewise.
27936         * tests/test-fsync.c (fsync): Likewise.
27937         * tests/test-ftell.c (ftell): Likewise.
27938         * tests/test-ftello.c (ftello): Likewise.
27939         * tests/test-futimens.c (futimens): Likewise.
27940         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27941         (gai_strerror): Likewise.
27942         * tests/test-getcwd.c (getcwd): Likewise.
27943         * tests/test-getdelim.c (getdelim): Likewise.
27944         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27945         * tests/test-getgroups.c (getgroups): Likewise.
27946         * tests/test-gethostname.c (gethostname): Likewise.
27947         * tests/test-getline.c (getline): Likewise.
27948         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27949         Likewise.
27950         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27951         * tests/test-glob.c (glob, globfree): Likewise.
27952         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27953         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27954         * tests/test-inet_pton.c (inet_pton): Likewise.
27955         * tests/test-isblank.c (isblank): Likewise.
27956         * tests/test-lchown.c (lchown): Likewise.
27957         * tests/test-ldexpl.c (ldexpl): Likewise.
27958         * tests/test-link.c (link): Likewise.
27959         * tests/test-linkat.c (linkat): Likewise.
27960         * tests/test-lseek.c (lseek): Likewise.
27961         * tests/test-lstat.c (lstat): Likewise.
27962         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27963         * tests/test-mbsinit.c (mbsinit): Likewise.
27964         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27965         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27966         * tests/test-memchr.c (memchr): Likewise.
27967         * tests/test-memcmp.c (memcmp): Likewise.
27968         * tests/test-memmem.c (memmem): Likewise.
27969         * tests/test-memrchr.c (memrchr): Likewise.
27970         * tests/test-mkdir.c (mkdir): Likewise.
27971         * tests/test-mkdirat.c (mkdirat): Likewise.
27972         * tests/test-mkfifo.c (mkfifo): Likewise.
27973         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27974         * tests/test-mknod.c (mknod): Likewise.
27975         * tests/test-nanosleep.c (nanosleep): Likewise.
27976         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27977         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27978         Likewise.
27979         * tests/test-open.c (open): Likewise.
27980         * tests/test-openat.c (openat): Likewise.
27981         * tests/test-perror.c (perror): Likewise.
27982         * tests/test-pipe2.c (pipe2): Likewise.
27983         * tests/test-poll.c (poll): Likewise.
27984         * tests/test-popen.c (popen, pclose): Likewise.
27985         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27986         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27987         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27988         (posix_spawn_file_actions_destroy)
27989         (posix_spawn_file_actions_addclose)
27990         (posix_spawn_file_actions_addopen)
27991         (posix_spawn_file_actions_adddup2): Likewise.
27992         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27993         * tests/test-pread.c (pread): Likewise.
27994         * tests/test-printf-posix.c (printf): Likewise.
27995         * tests/test-pty.c (openpty, forkpty): Likewise.
27996         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27997         (random_r): Likewise.
27998         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27999         * tests/test-readlink.c (readlink): Likewise.
28000         * tests/test-remove.c (remove): Likewise.
28001         * tests/test-rename.c (rename): Likewise.
28002         * tests/test-renameat.c (renameat): Likewise.
28003         * tests/test-rmdir.c (rmdir): Likewise.
28004         * tests/test-round1.c (round): Likewise.
28005         * tests/test-roundf1.c (roundf): Likewise.
28006         * tests/test-roundl.c (roundl): Likewise.
28007         * tests/test-setenv.c (setenv): Likewise.
28008         * tests/test-sigaction.c (sigaction): Likewise.
28009         * tests/test-sleep.c (sleep): Likewise.
28010         * tests/test-snprintf.c (snprintf): Likewise.
28011         * tests/test-sprintf-posix.c (sprintf): Likewise.
28012         * tests/test-stat.c (stat): Likewise.
28013         * tests/test-stpncpy.c (stpncpy): Likewise.
28014         * tests/test-strcasestr.c (strcasestr): Likewise.
28015         * tests/test-strchrnul.c (strchrnul): Likewise.
28016         * tests/test-strerror.c (strerror): Likewise.
28017         * tests/test-strsignal.c (strsignal): Likewise.
28018         * tests/test-strstr.c (strstr): Likewise.
28019         * tests/test-strtod.c (strtod): Likewise.
28020         * tests/test-strverscmp.c (strverscmp): Likewise.
28021         * tests/test-symlink.c (symlink): Likewise.
28022         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28023         * tests/test-times.c (times): Likewise.
28024         * tests/test-trunc1.c (trunc): Likewise.
28025         * tests/test-truncf1.c (truncf): Likewise.
28026         * tests/test-truncl.c (truncl): Likewise.
28027         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28028         Likewise.
28029         * tests/test-uname.c (uname): Likewise.
28030         * tests/test-unlink.c (unlink): Likewise.
28031         * tests/test-unlinkat.c (unlinkat): Likewise.
28032         * tests/test-unsetenv.c (unsetenv): Likewise.
28033         * tests/test-usleep.c (usleep): Likewise.
28034         * tests/test-utimensat.c (utimensat): Likewise.
28035         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28036         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28037         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28038         * tests/test-vprintf-posix.c (vprintf): Likewise.
28039         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28040         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28041         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28042         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28043         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28044         * tests/test-wcwidth.c (wcwidth): Likewise.
28045
28046         build: pull in conditional headers during GNULIB_POSIXCHECK
28047         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28048         definitions from any conditionally-included headers.
28049         * lib/stdlib.in.h (includes): Likewise.
28050         * lib/unistd.in.h (includes): Likewise.
28051
28052 2009-12-24  Bruno Haible  <bruno@clisp.org>
28053
28054         * tests/test-argv-iter.c: Include header file being tested immediately
28055         after config.h.
28056         * tests/test-base64.c: Likewise.
28057         * tests/test-flock.c: Likewise.
28058         * tests/test-fsync.c: Likewise.
28059         * tests/test-getdate.c: Likewise.
28060         * tests/test-getndelim2.c: Likewise.
28061         * tests/test-isfinite.c: Likewise.
28062         * tests/test-isinf.c: Likewise.
28063         * tests/test-strerror.c: Likewise.
28064         * tests/test-strsignal.c: Likewise.
28065
28066 2009-12-23  Eric Blake  <ebb9@byu.net>
28067
28068         unistd: work around cygwin bug
28069         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28070         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28071         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28072
28073 2009-12-23  Bruno Haible  <bruno@clisp.org>
28074
28075         localename: More tests.
28076         * tests/test-localename.c (SIZEOF): New macro.
28077         (categories): New variable.
28078         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28079         test_locale_name_default): Add test w.r.t. thread locale.
28080         (test_locale_name_thread): New function.
28081         (main): Invoke it.
28082
28083         localename: Make aware of thread locale.
28084         * lib/localename.h (gl_locale_name_thread): New declaration.
28085         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28086         behaviour with respect to thread locale.
28087         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28088         <langinfo.h>, glthread/lock.h.
28089         (SIZE_BITS): New macro.
28090         (string_hash): New function.
28091         (struct hash_node): New type.
28092         (HASH_TABLE_SIZE): New macro.
28093         (struniq_hash_table, struniq_lock): New variables.
28094         (struniq): New function.
28095         (gl_locale_name_thread): New function.
28096         (gl_locale_name): Invoke it.
28097         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28098         * modules/localename (Depends-on): Add lock.
28099         Reported by Mike Gran <spk121@yahoo.com>.
28100
28101 2009-12-23  Eric Blake  <ebb9@byu.net>
28102
28103         va-args: new module
28104         * modules/va-args: New file.
28105         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28106         * MODULES.html.sh (Core language properties): Mention it.
28107
28108         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28109         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28110         named alias for __attribute__((__unused__)).
28111         * lib/chown.c: Update client.
28112         * lib/fchmodat.c: Likewise.
28113         * lib/fts.c: Likewise.
28114         * lib/getdate.y: Likewise.
28115         * lib/getgroups.c: Likewise.
28116         * lib/getopt.c: Likewise.
28117         * lib/getugroups.c: Likewise.
28118         * lib/mkdir.c: Likewise.
28119         * lib/mkfifo.c: Likewise.
28120         * lib/mkfifoat.c: Likewise.
28121         * lib/mknod.c: Likewise.
28122         * lib/mknodat.c: Likewise.
28123         * lib/readlink.c: Likewise.
28124         * lib/se-context.in.h: Likewise.
28125         * lib/se-selinux.in.h: Likewise.
28126         * lib/sockets.c: Likewise.
28127         * lib/symlink.c: Likewise.
28128         * lib/symlinkat.c: Likewise.
28129         * lib/unicodeio.c: Likewise.
28130         * lib/unistr.h: Likewise.
28131         * tests/test-areadlink.c: Likewise.
28132         * tests/test-areadlinkat.c: Likewise.
28133         * tests/test-filenamecat.c: Likewise.
28134         * tests/test-fseeko.c: Likewise.
28135         * tests/test-ftello.c: Likewise.
28136         * tests/test-getdate.c: Likewise.
28137         * tests/test-getgroups.c: Likewise.
28138         * tests/test-gethostname.c: Likewise.
28139         * tests/test-quotearg.c: Likewise.
28140         * tests/test-version-etc.c: Likewise.
28141         * tests/test-xalloc-die.c: Likewise.
28142         * tests/test-xfprintf-posix.c: Likewise.
28143         * tests/test-xprintf-posix.c: Likewise.
28144         * tests/test-xvasprintf.c: Likewise.
28145
28146         tests: avoid compiler warnings
28147         * tests/test-fcntl.c (main): Delete unused parameters.
28148         * tests/test-freopen-safer.c (main): Likewise.
28149         * tests/test-xalloc-die.c (main): Mark unused parameters.
28150         * tests/test-fseeko.c (main): Likewise.
28151         * tests/test-ftello.c (main): Likewise.
28152         * tests/test-nanosleep.c (main): Avoid declaration warning.
28153         * tests/test-sleep.c (main): Likewise.
28154         * tests/test-unsetenv.c (main): Silence warning about string
28155         literal.
28156         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28157
28158 2009-12-23  Bruno Haible  <bruno@clisp.org>
28159
28160         * tests/test-localename.c (test_locale_name): New function, extracted
28161         from main. Also test mixed situations.
28162         (test_locale_name_posix, test_locale_name_environ,
28163         test_locale_name_default): New functions.
28164         (main): Invoke them all.
28165         * modules/localename-tests (configure.ac): Test for newlocale.
28166
28167 2009-12-23  Bruno Haible  <bruno@clisp.org>
28168
28169         unistd: Ensure getcwd gets declared before being overridden.
28170         * lib/unistd.in.h: Conditionally include <io.h>.
28171
28172 2009-12-22  Bruno Haible  <bruno@clisp.org>
28173
28174         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28175         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28176         (gl_WCHAR_H): Invoke it.
28177         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28178         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28179         Reported by Karl Berry <karl@freefriends.org>.
28180
28181 2009-12-22  Eric Blake  <ebb9@byu.net>
28182
28183         math, unistd: avoid redundant includes
28184         * lib/math.in.h (isnan): No need to re-include <math.h>.
28185         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28186
28187         getsubopt: work around cygwin bug
28188         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28189         avoid conflicting with system getsubopt.
28190         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28191         bug.
28192
28193         getopt: synchronize from glibc
28194         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28195         parameter order.  Adjust all callers.
28196         (_getopt_internal_r, main): Adjust quoting in error messages.
28197         Drop considerations for outdated POSIX 1003.2 error message.
28198         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28199         callers.
28200         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28201
28202         test-getopt: test stderr behavior
28203         * modules/getopt-posix-tests (Depends-on): Add dup2.
28204         * tests/test-getopt.c (ASSERT): Avoid stderr.
28205         (main): Move stderr to a temporary file.
28206         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28207         Instead, add parameter to inform caller if output occurred.
28208         (test_getopt): Adjust all existing tests to expect silence, and
28209         add new tests of leading ":".
28210         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28211         glibc shortcomings with leading "-:" or "+:" in optstring.
28212         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28213         Likewise.
28214         * doc/posix-functions/getopt.texi (getopt): Likewise.
28215
28216         test-getopt: enhance test
28217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28218         supports optind=0.
28219         * tests/test-getopt.c (OPTIND_MIN): Move...
28220         * tests/test-getopt.h (OPTIND_MIN): ...here.
28221         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28222         Require that optind=0 works, since modern BSD supports it in
28223         addition to optreset, and since coreutils expects it.
28224         (test_getopt_long_only): New test.
28225         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28226         glibc shortcomings with 'W;', and enforcement of optind=0.
28227         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28228         Likewise.
28229
28230 2009-12-21  Bruno Haible  <bruno@clisp.org>
28231
28232         localename: Improvements for MacOS X and Cygwin.
28233         * lib/localename.h (gl_locale_name_environ): New declaration.
28234         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28235         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28236         (gl_locale_name_posix): Invoke it.
28237         (gl_locale_name_default): Add comments. Use Windows native API also on
28238         Cygwin.
28239
28240 2009-12-21  Bruno Haible  <bruno@clisp.org>
28241
28242         Update list of Win32 locale ids.
28243         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28244         (LANG_SAMI): Renamed from LANG_SAAMI.
28245         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28246         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28247         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28248         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28249         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28250         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28251         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28252         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28253         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28254         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28255         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28256         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28257         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28258         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28259         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28260         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28261         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28262         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28263         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28264         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28265         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28266         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28267         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28268         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28269         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28270         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28271         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28272         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28273         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28274         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28275         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28276         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28277         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28278         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28279         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28280         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28281         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28282         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28283         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28284         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28285         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28286         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28287         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28288         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28289         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28290         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28291         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28292         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28293         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28294         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28295         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28296         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28297         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28298         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28299         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28300         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28301         Add more languages and countries for Sami, Sorbian. Add more countries
28302         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28303         for Pashto. Change country for Syriac, Tswana.
28304
28305 2009-12-21  Eric Blake  <ebb9@byu.net>
28306
28307         test-utimens: avoid spurious failure
28308         * tests/test-chown.h (nap): Factor...
28309         * tests/nap.h: ...into new file.
28310         * tests/test-lchown.h (nap): Avoid duplication.
28311         * tests/test-utimens-common.h (nap): Use shared implementation,
28312         necessary on file systems with 1-second resolution.
28313         * modules/chown-tests (Files): Include new file.
28314         * modules/fdutimensat-tests (Files): Likewise.
28315         * modules/futimens-tests (Files): Likewise.
28316         * modules/lchown-tests (Files): Likewise.
28317         * modules/openat-tests (Files): Likewise.
28318         * modules/utimens-tests (Files): Likewise.
28319         * modules/utimensat-tests (Files): Likewise.
28320
28321 2009-12-19  Eric Blake  <ebb9@byu.net>
28322
28323         futimens, utimensat: work around Linux bug
28324         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28325         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28326         * lib/utimensat.c (rpl_utimensat): Work around it.
28327         * lib/futimens.c (rpl_futimens): Adjust comment.
28328
28329         utimens: work around Linux ctime bug
28330         * lib/utimens.c (detect_ctime_bug): New helper function.
28331         (update_timespec): Differentiate between workaround needed for
28332         this bug vs. what is needed for systems that lack utimensat.
28333         (fdutimens, lutimens): Work around bug.
28334
28335         utimens: check for ctime update
28336         * tests/test-utimens-common.h (check_ctime): Define.
28337         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28338         * tests/test-futimens.h (test_futimens): Likewise.
28339         * tests/test-lutimens.h (test_lutimens): Likewise.
28340         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28341         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28342
28343 2009-12-19  Bruno Haible  <bruno@clisp.org>
28344
28345         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28346         * tests/test-dprintf-posix2.sh: New file.
28347         * tests/test-dprintf-posix2.c: New file.
28348         * modules/dprintf-posix-tests (Files): Add them.
28349         (configure.ac): Check for getrlimit and setrlimit.
28350         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28351
28352 2009-12-19  Bruno Haible  <bruno@clisp.org>
28353
28354         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28355         * tests/test-fprintf-posix3.sh: New file.
28356         * tests/test-fprintf-posix3.c: New file.
28357         * modules/fprintf-posix-tests (Files): Add them.
28358         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28359
28360 2009-12-19  Eric Blake  <ebb9@byu.net>
28361
28362         dirfd: fix prototype
28363         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28364         * lib/dirfd.c (dirfd): Likewise.
28365
28366         canonicalize: reduce memory usage
28367         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28368         allocation to size.
28369         Reported by Solar Designer <solar@openwall.com>.
28370
28371 2009-12-19  Bruno Haible  <bruno@clisp.org>
28372
28373         New module attribute 'Applicability'.
28374         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28375         * gnulib-tool: New option --extract-applicability.
28376         (func_usage): Document it.
28377         (sed_extract_prog): Recognize it.
28378         (func_get_applicability): New function.
28379         (func_import): Generalize handling of 'link-warning' module.
28380         * modules/link-warning (Applicability): New section.
28381         * modules/arg-nonnull (Applicability): New section.
28382         Repoted by Simon Josefsson <simon@josefsson.org>.
28383
28384 2009-12-19  Bruno Haible  <bruno@clisp.org>
28385
28386         fflush: tweak
28387         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28388         * lib/fseeko.c (rpl_fseeko): Likewise.
28389
28390 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28391
28392         * lib/gl_list.h: Fix typo in comment.
28393
28394 2009-12-16  Eric Blake  <ebb9@byu.net>
28395
28396         fcntl: use to simplify other modules
28397         * modules/cloexec (Depends-on): Add fcntl.
28398         * modules/fchdir (Depends-on): Likewise.
28399         * modules/fd-safer-flag (Depends-on): Likewise.
28400         * modules/unistd-safer (Depends-on): Likewise.
28401         * modules/dup3 (configure.ac): Set module indicator.
28402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28403         missing.
28404         * lib/fchdir.c (_gl_register_dup): Fix comment.
28405         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28406         * lib/dup-safer.c (dup_safer): Likewise.
28407         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28408         * lib/dup3.c (dup3): Likewise.
28409         * tests/test-fchdir.c (main): Enhance test.
28410         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28411
28412         fcntl: port portions of fcntl to mingw
28413         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28414         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28415         replacement for mingw.
28416         * modules/fcntl (Description): Update.
28417         (Depends-on): Add dup2.
28418         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28419         * modules/fcntl-h (Makefile.am): Substitute it.
28420         * lib/fcntl.in.h (fcntl): Update declaration.
28421         (F_DUPFD, F_GETFD): New macros, when needed.
28422         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28423         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28424         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28425         we now guarantee.
28426
28427         fcntl: work around cygwin bug in F_DUPFD
28428         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28429         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28430         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28431         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28432         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28433
28434         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28435         * modules/fcntl (Files): List new files.
28436         (configure.ac): Run a test.
28437         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28438         * lib/fcntl.c (rpl_fcntl): Likewise.
28439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28440         (gl_FCNTL_H): Always replace fcntl.h.
28441         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28442         * lib/fcntl.in.h (fcntl): Declare replacement.
28443         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28444         needed, plus a witness.
28445         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28446         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28447         * tests/test-fcntl.c: New file.
28448         * modules/fcntl-tests: Likewise.
28449
28450         binary-io: avoid potential compilation warning
28451         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28452         directives.
28453
28454         fflush: avoid compilation error on NetBSD
28455         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28456         between off_t and fpos_t, since the latter is sometimes a struct.
28457         * lib/fseeko.c (rpl_fseeko): Likewise.
28458         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28459
28460 2009-12-15  Eric Blake  <ebb9@byu.net>
28461
28462         fcntl-h, stdio, sys_ioctl: fix declarations
28463         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28464         function must not take arguments.
28465         * lib/sys_ioctl.in.h (ioctl): Likewise.
28466         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28467         (open): Add a link warning.
28468
28469 2009-12-15  Jim Meyering  <meyering@redhat.com>
28470
28471         areadlink, areadlink-with-size: relax license to LGPLv2+
28472         * modules/areadlink (License): Relax to LGPLv2+.
28473         * modules/areadlink-with-size (License): Likewise.
28474
28475 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28476             Bruno Haible  <bruno@clisp.org>
28477
28478         *printf: Fix memory leak.
28479         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28480         * lib/vfprintf.c (vfprintf): Likewise.
28481         * lib/dprintf.c (dprintf): Likewise.
28482         * lib/vdprintf.c (vdprintf): Likewise.
28483
28484 2009-12-14  Eric Blake  <ebb9@byu.net>
28485
28486         accept4: adjust module dependencies
28487         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28488
28489         utimens: one more try at avoiding compiler warning
28490         * lib/utimens.c (lutimens): Lower scope of result.
28491
28492 2009-12-13  Bruno Haible  <bruno@clisp.org>
28493
28494         Move the malloc checking from module 'list' to new module 'xlist'.
28495         * modules/xlist: New file.
28496         * lib/gl_xlist.h: New file.
28497         * lib/gl_xlist.c: New file.
28498         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28499         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28500         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28501         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28502         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28503         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28504         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28505         gl_sortedlist_nx_add): New declarations.
28506         (struct gl_list_implementation): Rename and change methods accordingly.
28507         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28508         (gl_list_nx_create): Renamed from gl_list_create.
28509         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28510         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28511         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28512         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28513         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28514         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28515         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28516         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28517         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28518         gl_list_create_empty.
28519         (gl_list_nx_create): Renamed from gl_list_create.
28520         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28521         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28522         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28523         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28524         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28525         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28526         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28527         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28528         * lib/gl_array_list.c: Don't include xalloc.h.
28529         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28530         NULL upon out-of-memory.
28531         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28532         out-of-memory.
28533         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28534         Change return type to 'int'.
28535         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28536         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28537         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28538         upon out-of-memory.
28539         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28540         upon out-of-memory.
28541         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28542         upon out-of-memory.
28543         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28544         upon out-of-memory.
28545         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28546         out-of-memory.
28547         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28548         Update.
28549         (gl_array_list_implementation): Update.
28550         * lib/gl_carray_list.c: Don't include xalloc.h.
28551         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28552         Return NULL upon out-of-memory.
28553         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28554         out-of-memory.
28555         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28556         Change return type to 'int'.
28557         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28558         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28559         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28560         upon out-of-memory.
28561         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28562         upon out-of-memory.
28563         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28564         out-of-memory.
28565         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28566         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28567         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28568         Update.
28569         (gl_carray_list_implementation): Update.
28570         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28571         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28572         gl_linked_create_empty. Return NULL upon out-of-memory.
28573         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28574         out-of-memory.
28575         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28576         Change return type to 'int'. Return -1 upon out-of-memory.
28577         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28578         out-of-memory.
28579         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28580         upon out-of-memory.
28581         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28582         upon out-of-memory.
28583         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28584         NULL upon out-of-memory.
28585         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28586         upon out-of-memory.
28587         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28588         out-of-memory.
28589         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28590         Update.
28591         * lib/gl_linked_list.c: Don't include xalloc.h.
28592         (gl_linked_list_implementation): Update.
28593         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28594         (add_to_bucket): Change return type to 'int'.
28595         (gl_linkedhash_list_implementation): Update.
28596         * lib/gl_anytree_list1.h (free_subtree): New function.
28597         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28598         gl_tree_create_empty. Return NULL upon out-of-memory.
28599         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28600         Change return type to 'int'. Return -1 upon out-of-memory.
28601         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28602         out-of-memory.
28603         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28604         (gl_tree_remove_node): New function, moved here from
28605         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28606         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28607         Update.
28608         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28609         malloc, not xmalloc. Return NULL upon out-of-memory.
28610         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28611         out-of-memory.
28612         (gl_tree_remove_node_from_tree): New function, extracted from
28613         gl_tree_remove_node.
28614         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28615         upon out-of-memory.
28616         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28617         out-of-memory.
28618         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28619         upon out-of-memory.
28620         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28621         upon out-of-memory.
28622         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28623         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28624         not xmalloc. Return NULL upon out-of-memory.
28625         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28626         out-of-memory.
28627         (gl_tree_remove_node_from_tree): New function, extracted from
28628         gl_tree_remove_node.
28629         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28630         upon out-of-memory.
28631         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28632         out-of-memory.
28633         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28634         upon out-of-memory.
28635         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28636         upon out-of-memory.
28637         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28638         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28639         gl_anytree_list1.h before gl_anyavltree_list2.h.
28640         (gl_avltree_list_implementation): Update.
28641         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28642         gl_anytree_list1.h before gl_anyavltree_list2.h.
28643         (gl_rbtree_list_implementation): Update.
28644         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28645         Change return type to 'int'. Return -1 upon out-of-memory. Use
28646         __builtin_expect.
28647         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28648         (gl_avltreehash_list_implementation): Update.
28649         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28650         (gl_rbtreehash_list_implementation): Update.
28651         * modules/array-list (Depends-on): Remove xalloc.
28652         * modules/carray-list (Depends-on): Likewise.
28653         * modules/linked-list (Depends-on): Likewise.
28654         * modules/linkedhash-list (Depends-on): Likewise.
28655         * modules/avltree-list (Depends-on): Likewise.
28656         * modules/rbtree-list (Depends-on): Likewise.
28657         * modules/avltreehash-list (Depends-on): Likewise.
28658         * modules/rbtreehash-list (Depends-on): Likewise.
28659
28660         * modules/xsublist: New file.
28661         * lib/gl_xsublist.h: New file.
28662         * lib/gl_xsublist.c: New file.
28663         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28664         (gl_sublist_nx_create): New declaration.
28665         * lib/gl_sublist.c: Don't include xalloc.h.
28666         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28667         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28668         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28669         Change return type to 'int'. Return -1 upon out-of-memory.
28670         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28671         upon out-of-memory.
28672         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28673         NULL upon out-of-memory.
28674         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28675         upon out-of-memory.
28676         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28677         NULL upon out-of-memory.
28678         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28679         NULL upon out-of-memory.
28680         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28681         upon out-of-memory.
28682         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28683         (gl_sublist_list_implementation): Update.
28684         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28685         upon out-of-memory.
28686         * modules/sublist (Depends-on): Remove xalloc.
28687
28688         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28689         * tests/test-carray_list.c: Likewise.
28690         * tests/test-linked_list.c: Likewise.
28691         * tests/test-linkedhash_list.c: Likewise.
28692         * tests/test-avltree_list.c: Likewise.
28693         * tests/test-rbtree_list.c: Likewise.
28694         * tests/test-avltreehash_list.c: Likewise.
28695         * tests/test-rbtreehash_list.c: Likewise.
28696         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28697         * modules/carray-list-tests (Makefile.am): Likewise.
28698         * modules/linked-list-tests (Makefile.am): Likewise.
28699         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28700         * modules/avltree-list-tests (Makefile.am): Likewise.
28701         * modules/rbtree-list-tests (Makefile.am): Likewise.
28702         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28703         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28704
28705         * NEWS: Mention the changes.
28706
28707         * lib/clean-temp.c: Include gl_xlist.h.
28708         * modules/clean-temp (Depends-on): Add xlist.
28709
28710         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28711         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28712
28713         * tests/test-array_oset.c: Include gl_xlist.h.
28714         * modules/array-oset-tests (Depends-on): Add xlist.
28715
28716         Reported by José E. Marchesi <jemarch@gnu.org>.
28717
28718 2009-12-13  Bruno Haible  <bruno@clisp.org>
28719
28720         Move the malloc checking from module 'oset' to new module 'xoset'.
28721         * modules/xoset: New file.
28722         * lib/gl_xoset.h: New file.
28723         * lib/gl_xoset.c: New file.
28724         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28725         declarations.
28726         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28727         (struct gl_oset_implementation): Rename and change methods accordingly.
28728         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28729         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28730         'int'. Mark as __warn_unused_result__.
28731         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28732         gl_oset_create_empty.
28733         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28734         'int'.
28735         * lib/gl_array_oset.c: Don't include xalloc.h.
28736         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28737         malloc, not xmalloc.
28738         (grow): Change return type to 'int'. Don't call xalloc_die.
28739         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28740         to 'int'.
28741         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28742         'int'.
28743         (gl_array_oset_implementation): Update.
28744         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28745         gl_tree_create_empty.
28746         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28747         'int'.
28748         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28749         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28750         xmalloc.
28751         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28752         not xmalloc.
28753         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28754         xmalloc.
28755         (gl_avltree_oset_implementation): Update.
28756         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28757         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28758         xmalloc.
28759         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28760         not xmalloc.
28761         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28762         xmalloc.
28763         (gl_rbtree_oset_implementation): Update.
28764         * modules/array-oset (Depends-on): Remove xalloc.
28765         * modules/avltree-oset (Depends-on): Likewise.
28766         * modules/rbtree-oset (Depends-on): Likewise.
28767         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28768         * tests/test-avltree_oset.c: Likewise.
28769         * tests/test-rbtree_oset.c: Likewise.
28770         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28771         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28772         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28773         * NEWS: Mention the change.
28774
28775 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28776
28777         maint.mk: allow a project to override release-prep commands
28778         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28779         commands into a new rule.
28780         (release-prep): New rule.
28781         (release-prep-hook): New overridable variable.
28782
28783 2009-12-13  Bruno Haible  <bruno@clisp.org>
28784
28785         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28786
28787 2009-12-13  Jim Meyering  <meyering@redhat.com>
28788
28789         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28790         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28791
28792 2009-12-12  Bruno Haible  <bruno@clisp.org>
28793
28794         duplocale: Tweak.
28795         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28796
28797 2009-12-12  Karl Berry  <karl@gnu.org>
28798
28799         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28800
28801 2009-12-12  Bruno Haible  <bruno@clisp.org>
28802
28803         * m4/po.m4: Undo incorrect untabification.
28804
28805 2009-12-12  Bruno Haible  <bruno@clisp.org>
28806
28807         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28808         * modules/c-strtod (Depends-on): Add locale.
28809         * modules/c-strtold (Depends-on): Likewise.
28810
28811 2009-12-12  Bruno Haible  <bruno@clisp.org>
28812
28813         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28814
28815 2009-12-11  Eric Blake  <ebb9@byu.net>
28816
28817         setenv: relax requirement in light of POSIX ruling
28818         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28819         not NULL.
28820         * tests/test-setenv.c (main): Relax test.
28821         * tests/test-unsetenv.c (main): Likewise.
28822         * doc/posix-functions/setenv.texi (setenv): Document this.
28823         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28824
28825 2009-12-11  Bruno Haible  <bruno@clisp.org>
28826
28827         New module 'fd-safer-flag'.
28828         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28829         * lib/dup-safer.c (dup_safer_flag): Remove function.
28830         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28831         * lib/fd-safer.c (fd_safer_flag): Remove function.
28832         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28833         * modules/cloexec (configure.ac): Drop indicator macro.
28834         * modules/fd-safer-flag: New file.
28835         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28836         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28837         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28838
28839 2009-12-11  Bruno Haible  <bruno@clisp.org>
28840
28841         Tests for module 'nl_langinfo'.
28842         * modules/nl_langinfo-tests: New file.
28843         * tests/test-nl_langinfo.sh: New file.
28844         * tests/test-nl_langinfo.c: New file.
28845
28846         New module 'nl_langinfo'.
28847         * lib/nl_langinfo.c: New file.
28848         * m4/nl_langinfo.m4: New file.
28849         * modules/nl_langinfo: New file.
28850         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28851
28852 2009-12-11  Bruno Haible  <bruno@clisp.org>
28853
28854         Tests for module 'langinfo'.
28855         * modules/langinfo-tests: New file.
28856         * tests/test-langinfo.c: New file.
28857
28858         New module 'langinfo'.
28859         * lib/langinfo.in.h: New file.
28860         * m4/langinfo_h.m4: New file.
28861         * modules/langinfo: New file.
28862         * doc/posix-headers/langinfo.texi: Mention the new module.
28863
28864 2009-12-11  Bruno Haible  <bruno@clisp.org>
28865
28866         * lib/config.charset: Untabify.
28867
28868 2009-12-11  Bruno Haible  <bruno@clisp.org>
28869
28870         * modules/unistd-safer (configure.ac): Drop indicator macro.
28871
28872 2009-12-11  Bruno Haible  <bruno@clisp.org>
28873
28874         Move pipe2-safer code to its own file.
28875         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28876         * lib/pipe-safer.c (pipe2_safer): Remove function.
28877         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28878         (Makefile.am): Add it to lib_SOURCES.
28879
28880 2009-12-10  Bruno Haible  <bruno@clisp.org>
28881
28882         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28883
28884 2009-12-10  Bruno Haible  <bruno@clisp.org>
28885
28886         Declare which arguments expect non-NULL values, for GCC and clang.
28887         * build-aux/arg-nonnull.h: New file.
28888         * modules/arg-nonnull: New file.
28889         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28890         (inet_ntop, inet_pton): Use it.
28891         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28892         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28893         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28894         (open, openat): Use it.
28895         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28896         (fnmatch): Use it.
28897         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28898         (getopt, getopt_long, getopt_long_only): Use it.
28899         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28900         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28901         Use it.
28902         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28903         (iconv_open): Use it.
28904         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28905         (strtoimax, strtoumax): Use it.
28906         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28907         (duplocale): Use it.
28908         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28909         (frexp, frexpl): Use it.
28910         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28911         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28912         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28913         (tsearch, tfind, tdelete, twalk): Use it.
28914         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28915         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28916         sigpending): Use it.
28917         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28918         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28919         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28920         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28921         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28922         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28923         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28924         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28925         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28926         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28927         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28928         Use it.
28929         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28930         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28931         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28932         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28933         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28934         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28935         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28936         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28937         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28938         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28939         strtoull, unsetenv): Use it.
28940         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28941         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28942         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28943         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28944         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28945         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28946         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28947         (strcasecmp, strncasecmp): Use it.
28948         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28949         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28950         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28951         rpl_setsockopt): Use it.
28952         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28953         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28954         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28955         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28956         (gettimeofday): Use it.
28957         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28958         (times): Use it.
28959         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28960         (uname): Use it.
28961         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28962         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28963         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28964         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28965         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28966         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28967         unlinkat, write): Use it.
28968         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28969         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28970         * lib/argv-iter.h: Include arg-nonnull.h.
28971         (_ATTRIBUTE_NONNULL_): Remove macro.
28972         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28973         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28974         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28975         optimization.
28976         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28977         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28978         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28979         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28980         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28981         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28982         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28983         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28984         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28985         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28986         * modules/dirent (Depends-on): Add arg-nonnull.
28987         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28988         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28989         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28990         * modules/fnmatch (Depends-on): Add arg-nonnull.
28991         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28992         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28993         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28994         * modules/glob (Depends-on): Add arg-nonnull.
28995         (Makefile.am): Insert arg-nonnull.h into glob.h.
28996         * modules/iconv_open (Depends-on): Add arg-nonnull.
28997         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28998         * modules/inttypes (Depends-on): Add arg-nonnull.
28999         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29000         * modules/locale (Depends-on): Add arg-nonnull.
29001         (Makefile.am): Insert arg-nonnull.h into locale.h.
29002         * modules/math (Depends-on): Add arg-nonnull.
29003         (Makefile.am): Insert arg-nonnull.h into math.h.
29004         * modules/netdb (Depends-on): Add arg-nonnull.
29005         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29006         * modules/search (Depends-on): Add arg-nonnull.
29007         (Makefile.am): Insert arg-nonnull.h into search.h.
29008         * modules/signal (Depends-on): Add arg-nonnull.
29009         (Makefile.am): Insert arg-nonnull.h into signal.h.
29010         * modules/spawn (Depends-on): Add arg-nonnull.
29011         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29012         * modules/stdio (Depends-on): Add arg-nonnull.
29013         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29014         * modules/stdlib (Depends-on): Add arg-nonnull.
29015         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29016         * modules/string (Depends-on): Add arg-nonnull.
29017         (Makefile.am): Insert arg-nonnull.h into string.h.
29018         * modules/strings (Depends-on): Add arg-nonnull.
29019         (Makefile.am): Insert arg-nonnull.h into strings.h.
29020         * modules/sys_socket (Depends-on): Add arg-nonnull.
29021         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29022         * modules/sys_stat (Depends-on): Add arg-nonnull.
29023         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29024         * modules/sys_time (Depends-on): Add arg-nonnull.
29025         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29026         * modules/sys_times (Depends-on): Add arg-nonnull.
29027         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29028         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29029         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29030         * modules/time (Depends-on): Add arg-nonnull.
29031         (Makefile.am): Insert arg-nonnull.h into time.h.
29032         * modules/unistd (Depends-on): Add arg-nonnull.
29033         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29034         * modules/wchar (Depends-on): Add arg-nonnull.
29035         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29036         * modules/argv-iter (Depends-on): Add arg-nonnull.
29037         * tests/test-canonicalize.c (null_ptr): New function.
29038         (main): Use it.
29039         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29040         (main): Use it.
29041         * tests/test-memmem.c (null_ptr): New function.
29042         (main): Use it.
29043         Reported by Jim Meyering.
29044
29045 2009-12-10  Bruno Haible  <bruno@clisp.org>
29046
29047         Use spaces for indentation, not tabs.
29048         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29049         * m4/*.m4: Untabify.
29050         * build-aux/*.h: Untabify.
29051         * tests/**/*.[hc]: Untabify.
29052         * README: New section "Indent with spaces, not TABs", based on
29053         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29054         * NEWS: Mention the change.
29055
29056 2009-12-10  Bruno Haible  <bruno@clisp.org>
29057
29058         pty test: Fix link error.
29059         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29060         test_pty_LDADD.
29061
29062 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29063
29064         * modules/pty: New file.
29065         * modules/pty-tests: New file.
29066         * m4/pty.m4: New file.
29067         * tests/test-pty.c: New file.
29068         * doc/glibc-headers/pty.texi: Modified.
29069         * doc/glibc-functions/forkpty.texi: Modified.
29070         * doc/glibc-functions/openpty.texi: Modified.
29071
29072 2009-12-10  Bruno Haible  <bruno@clisp.org>
29073
29074         Avoid syntax error in C++ mode.
29075         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29076
29077 2009-12-10  Bruno Haible  <bruno@clisp.org>
29078
29079         Use sed with option -e.
29080         * gnulib-tool (func_version, func_emit_copyright_notice,
29081         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29082         option -e to sed.
29083         * modules/link-warning (Makefile.am): Likewise.
29084
29085 2009-12-10  Jim Meyering  <meyering@redhat.com>
29086
29087         mgetgroups: do not write bytes beyond end of malloc'd buffer
29088         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29089         username, we call getgroups with a one-element-shorter buffer,
29090         but still told it the length was original, max_n_groups.
29091
29092 2009-12-09  Eric Blake  <ebb9@byu.net>
29093
29094         cloexec: relax license
29095         * modules/cloexec (Maintainer): Add myself.
29096         (License): Use LGPL, not GPL.
29097
29098         link-warning: optimize generation
29099         * modules/link-warning (Makefile.am): Reduce process usage.
29100
29101 2009-12-09  Bruno Haible  <bruno@clisp.org>
29102
29103         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29104         workaround was added on 2009-11-17.
29105
29106 2009-12-09  Jim Meyering  <meyering@redhat.com>
29107             Bruno Haible  <bruno@clisp.org>
29108
29109         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29110         * modules/link-warning (Makefile.am): Make the comment-removing sed
29111         command more robust in the face of bootstrap-prepended comment lines.
29112
29113 2009-12-09  Bruno Haible  <bruno@clisp.org>
29114
29115         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29116         most one group.
29117
29118 2009-12-09  Simon Josefsson <simon@josefsson.org>
29119             Bruno Haible  <bruno@clisp.org>
29120
29121         * build-aux/link-warning.h: Add copyright notice.
29122         * modules/link-warning (Makefile.am): Generate link-warning.h from
29123         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29124         * NEWS: Mention change in link-warning module.
29125         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29126         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29127         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29128         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29129         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29130         * modules/math (Makefile.am): Add dependency to math.h.
29131         * modules/search (Makefile.am): Add dependency to search.h.
29132         * modules/signal (Makefile.am): Add dependency to signal.h.
29133         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29134         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29135         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29136         * modules/string (Makefile.am): Add dependency to string.h.
29137         * modules/strings (Makefile.am): Add dependency to strings.h.
29138         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29139         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29140         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29141         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29142         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29143         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29144         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29145         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29146         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29147
29148 2009-12-09  Bruno Haible  <bruno@clisp.org>
29149
29150         fchdir: Optimize away rpl_fstat when possible.
29151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29152         REPLACE_OPEN_DIRECTORY.
29153         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29154
29155 2009-12-09  Bruno Haible  <bruno@clisp.org>
29156
29157         * lib/fchdir.c: Update comment.
29158
29159 2009-12-09  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29162
29163 2009-12-08  Eric Blake  <ebb9@byu.net>
29164
29165         fchdir: avoid memory leak on re-registration.
29166         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29167
29168 2009-12-08  Jim Meyering  <meyering@redhat.com>
29169
29170         init.sh: avoid Solaris 10 /bin/sh portability problem
29171         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29172         sourced script:
29173           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29174           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29175           bar
29176         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29177         and two tests used that idiom.
29178         * tests/init.sh: Update suggested usage comments.
29179         (path_prepend_): New function, to be used in place
29180         of the --src-path=DIR option.
29181         (setup_): Move PATH-prepending code into path_prepend_.
29182         * tests/test-pread.sh: Adapt to new usage.
29183         * tests/test-xalloc-die.sh: Likewise.
29184
29185 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29186
29187         * doc/gnulib.texi (Glibc pty.h): Add.
29188         * doc/glibc-functions/forkpty.texi: Add.
29189         * doc/glibc-functions/openpty.texi: Add.
29190         Suggested by Bruno Haible.
29191
29192 2009-12-08  Eric Blake  <ebb9@byu.net>
29193
29194         fchdir: fix logic bugs
29195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29196         * tests/test-fchdir.c (main): Enhance test.
29197         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29198         is in use.
29199
29200         dup2: fix logic bugs
29201         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29202         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29203         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29204         exists.
29205         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29206
29207 2009-12-07  Eric Blake  <ebb9@byu.net>
29208
29209         unlink: fix m4 detection
29210         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29211
29212         unistd-safer: add unit test
29213         * modules/unistd-safer-tests: New file.
29214         * tests/test-dup-safer.c: Likewise.
29215         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29216         * tests/test-dup2.c (setmode): Likewise.
29217         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29218
29219         cloexec: preserve text vs. binary across dup_cloexec
29220         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29221         mode.
29222         * modules/dup2-tests (Depends-on): Add binary-io.
29223         * modules/cloexec-tests (Depends-on): Likewise.
29224         * tests/test-dup2.c (setmode, is_mode): New helpers.
29225         (main): Add tests that translation mode is preserved.
29226         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29227         Reported by Bruno Haible.
29228
29229         mgetgroups: reduce duplicate listings
29230         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29231         resulting array.
29232         * tests/test-chown.h (test_chown): Simplify client.
29233         * tests/test-lchown.h (test_lchown): Likewise.
29234
29235 2009-12-06  Bruno Haible  <bruno@clisp.org>
29236
29237         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29238         value.
29239
29240 2009-12-06  Bruno Haible  <bruno@clisp.org>
29241
29242         * lib/progname.c: Include stdio.h, stdlib.h.
29243         (set_program_name): Reject a NULL argument.
29244
29245 2009-12-05  Eric Blake  <ebb9@byu.net>
29246
29247         pipe2-safer: new module
29248         * modules/pipe2-safer: New file.
29249         * lib/unistd-safer.h (pipe2_safer): New prototype.
29250         * lib/unistd--.h (pipe2): New wrapper.
29251         * lib/pipe-safer.c (pipe2_safer): New function.
29252         * modules/pipe (Depends-on): Add pipe2-safer.
29253         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29254
29255         stdlib-safer: preserve cloexec flag for mkostemp[s]
29256         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29257         fd_safer_flag.
29258
29259         unistd-safer: allow preservation of cloexec status via flag
29260         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29261         prototypes.
29262         * lib/dup-safer.c (dup_safer_flag): New function.
29263         * lib/fd-safer.c (fd_safer_flag): Likewise.
29264         * modules/cloexec (configure.ac): Set witness.
29265
29266         test-dup2: enhance test
29267         * modules/dup2-tests (Depends-on): Add cloexec.
29268         * tests/test-dup2.c (main): Enhance test.
29269
29270         cloexec: add dup_cloexec
29271         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29272         header and comments.
29273         * lib/cloexec.c (set_cloexec_flag): Add comments.
29274         (dup_cloexec): New function, with mingw implementation borrowed
29275         from...
29276         * lib/w32spawn.h (dup_noinherit): ...here.
29277         * modules/execute (Depends-on): Add cloexec.
29278         * modules/pipe (Depends-on): Likewise.
29279         * modules/cloexec (Depends-on): Add dup2.
29280         * modules/cloexec-tests (Files): New file.
29281         * tests/test-cloexec.c: Likewise.
29282
29283         test-xalloc-die: fix test for mingw
29284         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29285         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29286         directory and .exe suffix off argv[0] output.
29287
29288         test-fseeko: fix test for mingw
29289         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29290         than undefining fseek, so test will pass on mingw.
29291
29292 2009-12-05  Bruno Haible  <bruno@clisp.org>
29293
29294         * lib/progname.h (set_program_name): Clarify specification.
29295         * lib/progname.c (set_program_name): Likewise.
29296         Reported by Jim Meyering.
29297
29298 2009-12-05  Jim Meyering  <meyering@redhat.com>
29299
29300         maint.mk: backslash-escape parens in default regexp
29301         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29302         backslash-escape the literal parentheses.
29303
29304         maint.mk: news-date-check: use grep -E
29305         * top/maint.mk (today): Define a Make variable, not a...
29306         (news-date-check): ...shell variable.
29307         (news-date-regexp): Use the Make variable.
29308         Use grep's -E option.  Change the failing diagnostic to mention
29309         the variable, $(news-date-regexp).
29310
29311 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29312
29313         maintainer-makefile: allow customization of NEWS entry format
29314         * top/maint.mk (news-date-regexp): New overridable variable.
29315         (news-date-check): Use it.
29316
29317 2009-12-04  Eric Blake  <ebb9@byu.net>
29318
29319         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29320         * lib/mgetgroups.h (xgetgroups): New prototype.
29321         * lib/mgetgroups.c (xgetgroups): New wrapper.
29322         (mgetgroups): Handle ENOSYS.
29323         * modules/mgetgroups (Depends-on): Add realloc.
29324         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29325
29326         mgetgroups: avoid argument promotion issues with -1
29327         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29328         for invalid gid_t.
29329         * tests/test-chown.h (getegid, test_chown): Likewise.
29330         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29331
29332 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29333
29334         exclude: Fix header file problems.
29335         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29336
29337 2009-12-01  Jim Meyering  <meyering@redhat.com>
29338
29339         fts: fts_open: do not let an empty string cause immediate failure
29340         This is required in support of GNU rm, for which the command
29341         "rm A '' B" must process and remove both A and B, in spite of
29342         the empty string argument.
29343         * lib/fts.c (fts_open): Do not let the presence of an empty string
29344         cause fts_open to fail immediately.  Most fts-using tools must be
29345         able to process all arguments, in order, and can be expected to
29346         diagnose such arguments themselves.
29347
29348 2009-11-30  Eric Blake  <ebb9@byu.net>
29349
29350         utimens: fix compilation error
29351         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29352         Declare variable at right scope.
29353
29354 2009-11-29  Jim Meyering  <meyering@redhat.com>
29355
29356         bootstrap: handle perl-5.11's changed --version output
29357         * build-aux/bootstrap (get_version): Handle perl separately,
29358         since perl-5.11's --version output is different.
29359
29360 2009-11-28  Jim Meyering  <meyering@redhat.com>
29361
29362         userspec: depend on the inttostr module, too
29363         * modules/userspec (Depends-on): Add inttostr.
29364
29365         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29366         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29367         number of MAXUID when it evaluates to (uid_t) -1.
29368         Likewise for group ID.  Reported by Matt McCutchen in
29369         <http://savannah.gnu.org/bugs/?28113>
29370
29371         userspec: reformat to use spaces, not TABs
29372         * lib/userspec.c: Expand TABs to spaces.
29373         Add Emacs' "indent-tabs-mode: nil" hint.
29374
29375 2009-11-27  Eric Blake  <ebb9@byu.net>
29376
29377         getopt-gnu: flush out another BSD bug
29378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29379         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29380         flush out BSD bug.
29381         * tests/test-getopt.h (test_getopt): End lists with NULL.
29382         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29383         (test_getopt_long_posix): Enhance test.
29384         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29385         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29386         getopt-gnu.
29387         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29388         Likewise.
29389
29390 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29391
29392         * modules/idpriv-droptemp-tests (Notice): Fix text.
29393
29394 2009-11-27  Jim Meyering  <meyering@redhat.com>
29395
29396         test-xalloc-die: avoid spurious failure due to libtool argv difference
29397         In a libtool-enabled project, this test would fail due to a difference
29398         in the emitted program name, e.g.,
29399         -test-xalloc-die: memory exhausted
29400         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29401         Use program to avoid that.
29402         * modules/xalloc-die-tests (Depends-on): Add progname.
29403         * tests/test-xalloc-die.c: Include progname.h".
29404         (program_name): Remove decl.
29405         (main): Call set_program_name.
29406         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29407
29408 2009-11-26  Richard Jones  <rjones@redhat.com>
29409
29410         w32sock: leave win32 error in place.
29411         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29412
29413 2009-11-26  Eric Blake  <ebb9@byu.net>
29414
29415         init.sh: suggest to use skip_ and fail_ functions in comments
29416         * tests/init.sh: Add a sentence.
29417
29418 2009-11-25  Bruno Haible  <bruno@clisp.org>
29419
29420         init.sh: add documentation in comments
29421         * tests/init.sh: Add some developer and user documentation.
29422
29423 2009-11-26  Jim Meyering  <meyering@redhat.com>
29424
29425         init.sh: accommodate even those who specify bogus srcdir manually
29426         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29427         configure-time tests to be sanitized, so that there is no need to
29428         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29429         (with no double quotes) suffices.  However, since tests may be
29430         invoked manually, and since you may explicitly set srcdir to the
29431         name of a directory containing spaces, do quote its uses here.
29432         * tests/test-pread.sh: Likewise.
29433         Suggested by Bruno Haible.
29434
29435         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29436         * tests/test-pread.sh: Write no data into the pipe, because
29437         test-pread actually reads none.  This avoids a diagnostic,
29438         "bash: echo: write error: Broken pipe", that arises in the unusual
29439         event something is ignoring SIGPIPE, and might be interpreted
29440         as some sort of failure.  Reported by Bruno Haible.
29441
29442 2009-11-25  Jim Meyering  <meyering@redhat.com>
29443
29444         test-pread: cover failure with ESPIPE and EINVAL
29445         * tests/test-pread.c (main): Test for failure, too.
29446         * tests/test-pread.sh: Invoke with stdin on a pipe.
29447         Suggested by Eric Blake.
29448
29449         pread: improvement and fix
29450         * modules/pread (Depends-on): Depend on lseek, for portability to
29451         e.g., mingw.  Suggested by Eric Blake.
29452         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29453
29454         unistd.in.h: correct declaration of pread
29455         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29456         Reported by Richard W.M. Jones.
29457
29458         test-pread.sh: distribute the test script
29459         * modules/pread-tests (Files): Include test-pread.sh.
29460
29461         test-pread.sh: clean up
29462         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29463         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29464         That is unnecessary, since it's always ".".
29465         Suggestion from Eric Blake.
29466
29467         test-pread.sh: make executable
29468         * tests/test-pread.sh: Set executable bit.
29469         Reported by Eric Blake.
29470
29471         correct typo in test-pread.sh
29472         * tests/test-pread.sh: Add #! line.
29473
29474         test pread
29475         * tests/test-pread.c: New file.
29476         * tests/test-pread.sh: Likewise.
29477         * modules/pread-tests: Likewise.
29478
29479         pread: new module
29480         * modules/pread: New file.
29481         * lib/unistd.in.h (pread): Define/declare.
29482         * lib/pread.c (pread): New file.
29483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29484         * modules/unistd (Makefile.am): Substitute witnesses.
29485         * doc/posix-functions/pread.texi (pread): Update.
29486         * MODULES.html.sh: Add pread.
29487
29488 2009-11-25  Jim Meyering  <meyering@redhat.com>
29489
29490         tests/init.sh: new file to be used via most *.sh tests
29491         * tests/init.sh: New file.
29492
29493 2009-11-25  Eric Blake  <ebb9@byu.net>
29494
29495         utimens: work around older Linux failure with symlinks
29496         * lib/utimens.c (lutimensat_works_really): New variable.
29497         (fdutimens, lutimens): Use it to manage kernels that support
29498         nanosecond times on files, but not on symlinks.
29499         Reported by OndÅ™ej Vašík.
29500
29501         utimes: fix configure grammar
29502         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29503
29504 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29505
29506         regex: Fix fastmap for multibyte character ranges.
29507         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29508         characters when a multibyte character range is included.
29509
29510 2009-11-22  Andy Wingo  <wingo@pobox.com>
29511
29512         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29513         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29514
29515 2009-11-24  Bruno Haible  <bruno@clisp.org>
29516
29517         doc: Most *_l functions exist in MacOS X 10.5.
29518         * doc/posix-functions/duplocale.texi: Update platforms list.
29519         * doc/posix-functions/freelocale.texi: Likewise.
29520         * doc/posix-functions/newlocale.texi: Likewise.
29521         * doc/posix-functions/uselocale.texi: Likewise.
29522         * doc/posix-functions/isalnum_l.texi: Likewise.
29523         * doc/posix-functions/isalpha_l.texi: Likewise.
29524         * doc/posix-functions/isblank_l.texi: Likewise.
29525         * doc/posix-functions/iscntrl_l.texi: Likewise.
29526         * doc/posix-functions/isdigit_l.texi: Likewise.
29527         * doc/posix-functions/isgraph_l.texi: Likewise.
29528         * doc/posix-functions/islower_l.texi: Likewise.
29529         * doc/posix-functions/isprint_l.texi: Likewise.
29530         * doc/posix-functions/ispunct_l.texi: Likewise.
29531         * doc/posix-functions/isspace_l.texi: Likewise.
29532         * doc/posix-functions/isupper_l.texi: Likewise.
29533         * doc/posix-functions/iswalnum_l.texi: Likewise.
29534         * doc/posix-functions/iswalpha_l.texi: Likewise.
29535         * doc/posix-functions/iswblank_l.texi: Likewise.
29536         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29537         * doc/posix-functions/iswctype_l.texi: Likewise.
29538         * doc/posix-functions/iswdigit_l.texi: Likewise.
29539         * doc/posix-functions/iswgraph_l.texi: Likewise.
29540         * doc/posix-functions/iswlower_l.texi: Likewise.
29541         * doc/posix-functions/iswprint_l.texi: Likewise.
29542         * doc/posix-functions/iswpunct_l.texi: Likewise.
29543         * doc/posix-functions/iswspace_l.texi: Likewise.
29544         * doc/posix-functions/iswupper_l.texi: Likewise.
29545         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29546         * doc/posix-functions/isxdigit_l.texi: Likewise.
29547         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29548         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29549         * doc/posix-functions/strcoll_l.texi: Likewise.
29550         * doc/posix-functions/strfmon_l.texi: Likewise.
29551         * doc/posix-functions/strftime_l.texi: Likewise.
29552         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29553         * doc/posix-functions/strxfrm_l.texi: Likewise.
29554         * doc/posix-functions/tolower_l.texi: Likewise.
29555         * doc/posix-functions/toupper_l.texi: Likewise.
29556         * doc/posix-functions/towctrans_l.texi: Likewise.
29557         * doc/posix-functions/towlower_l.texi: Likewise.
29558         * doc/posix-functions/towupper_l.texi: Likewise.
29559         * doc/posix-functions/wcscoll_l.texi: Likewise.
29560         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29561         * doc/posix-functions/wctrans_l.texi: Likewise.
29562         * doc/posix-functions/wctype_l.texi: Likewise.
29563         * doc/glibc-functions/strptime_l.texi: Likewise.
29564         * doc/glibc-functions/strtod_l.texi: Likewise.
29565         * doc/glibc-functions/strtof_l.texi: Likewise.
29566         * doc/glibc-functions/strtol_l.texi: Likewise.
29567         * doc/glibc-functions/strtold_l.texi: Likewise.
29568         * doc/glibc-functions/strtoll_l.texi: Likewise.
29569         * doc/glibc-functions/strtoul_l.texi: Likewise.
29570         * doc/glibc-functions/strtoull_l.texi: Likewise.
29571         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29572         * doc/glibc-functions/wcstod_l.texi: Likewise.
29573         * doc/glibc-functions/wcstof_l.texi: Likewise.
29574         * doc/glibc-functions/wcstol_l.texi: Likewise.
29575         * doc/glibc-functions/wcstold_l.texi: Likewise.
29576         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29577         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29578         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29579
29580 2009-11-24  Bruno Haible  <bruno@clisp.org>
29581
29582         duplocale: Fix logic bug.
29583         * lib/duplocale.c: Don't include <langinfo.h>.
29584         (_NL_LOCALE_NAME): Remove macro.
29585         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29586         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29587
29588 2009-11-23  Jim Meyering  <meyering@redhat.com>
29589
29590         test-update-copyright: don't hard-code /usr/bin/perl
29591         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29592         perl to print the current year.  Gilles Espinasse reported that
29593         the replaced use of perl was hard-coded as /usr/bin/perl.
29594
29595 2009-11-23  Bruno Haible  <bruno@clisp.org>
29596
29597         duplocale: Add support for glibc 2.3.x.
29598         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29599
29600 2009-11-22  Bruno Haible  <bruno@clisp.org>
29601
29602         vasnprintf: Tiny optimization.
29603         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29604         MacOS X.
29605
29606 2009-11-22  Bruno Haible  <bruno@clisp.org>
29607
29608         Tests for module 'duplocale'.
29609         * modules/duplocale-tests: New file.
29610         * tests/test-duplocale.c: New file.
29611
29612         New module 'duplocale'.
29613         * m4/duplocale.m4: New file.
29614         * lib/locale.in.h (duplocale): New declaration.
29615         * lib/duplocale.c: New file.
29616         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29617         gl_LOCALE_H_DEFAULTS): New macros.
29618         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29619         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29620         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29621         REPLACE_DUPLOCALE.
29622         * modules/duplocale: New file.
29623         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29624
29625 2009-11-22  Bruno Haible  <bruno@clisp.org>
29626
29627         * modules/locale-tests (configure.ac): Test for newlocale function.
29628         * tests/test-locale.c: When the system has extended locale functions,
29629         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29630
29631         locale: Make locale_t available when possible.
29632         * lib/locale.in.h: Include <xlocale.h> when it exists.
29633         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29634         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29635         * modules/locale (Depends-on): Add extensions.
29636         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29637         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29638
29639 2009-11-22  Bruno Haible  <bruno@clisp.org>
29640
29641         Add comments.
29642         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29643         invocation.
29644         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29645         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29646         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29647
29648 2009-11-22  Bruno Haible  <bruno@clisp.org>
29649
29650         error: account for the possibility of freopen (stdout).
29651         * lib/error.c: Include <unistd.h>.
29652         (flush_stdout): New function, extracted from error and error_at_line.
29653         Determine stdout's fd dynamically.
29654         (error, error_at_line): Invoke flush_stdout.
29655         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29656         * modules/error (Depends-on): Add unistd.
29657
29658 2009-11-22  Bruno Haible  <bruno@clisp.org>
29659
29660         diffseq: Add comment.
29661         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29662
29663 2009-11-22  Jim Meyering  <meyering@redhat.com>
29664
29665         c-stack: avoid defining an unused static function
29666         * lib/c-stack.c (find_stack_direction): Do not define this function
29667         when it will not be used.
29668
29669         diffseq: avoid spurious gcc warnings
29670         * lib/diffseq.h (IF_LINT2): Define.
29671         (compareseq): Use it to initialize two members of "part".
29672         This avoids two used-uninitialized warnings.
29673
29674 2009-11-21  Jim Meyering  <meyering@redhat.com>
29675
29676         c-stack: avoid "ignoring return value of `write'" warning
29677         * lib/c-stack.c: Include "ignore-value.h".
29678         (die): Explicitly ignore each write return value.
29679         * modules/c-stack (Depends-on): Add ignore-value.
29680
29681 2009-11-21  Bruno Haible  <bruno@clisp.org>
29682
29683         diffseq: reduce scope of variable 'best'.
29684         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29685         variable, earlier used for two different purposes.
29686
29687 2009-11-21  Jim Meyering  <meyering@redhat.com>
29688
29689         diffseq: remove useless assignment to "best"
29690         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29691         assignment.  At that point "best" is already guaranteed to be zero.
29692
29693 2009-11-20  Eric Blake  <ebb9@byu.net>
29694
29695         build: mention ftp redirector in release announcements
29696         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29697         values that used to come from cfg.mk; mention FTP redirect URL.
29698         * build-aux/announce-gen: Mention the mirror list.
29699         Suggested by Karl Berry.
29700
29701         nanosleep: improve port to mingw
29702         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29704         LIB_NANOSLEEP, but only when needed.
29705         * modules/select (Link): Document LIBSOCKET.
29706         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29707         enough.
29708
29709         nanosleep: work around cygwin bug
29710         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29711         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29712         bug.
29713         (getnow): Delete, not needed.
29714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29715         LIB_CLOCK_GETTIME.
29716         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29717         clock-time, gettime.
29718         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29719         bug.
29720         * modules/nanosleep-tests: New test.
29721         * tests/test-nanosleep.c: New file.
29722
29723         sleep: work around cygwin bug
29724         * lib/sleep.c (rpl_sleep): Work around the bug.
29725         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29726         (gl_PREREQ_SLEEP): Delete unused macro.
29727         * modules/sleep (Depends-on): Add verify.
29728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29729         * modules/unistd (Makefile.am): Substitute witness.
29730         * lib/unistd.in.h (sleep): Update prototype.
29731         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29732         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29733         * modules/sleep-tests (Depends-on): Check for alarm.
29734
29735 2009-11-20  Jim Meyering  <meyering@redhat.com>
29736
29737         maint.mk: improve sc_prohibit_magic_number_exit
29738         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29739         so it does not match uses like System.exit(1).
29740         Add comments showing how to correct all offenders.
29741
29742 2009-11-19  Eric Blake  <ebb9@byu.net>
29743
29744         xalloc-die-tests: add missing library
29745         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29746
29747         test-xvasprintf: silence compiler warnings
29748         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29749         empty string from gcc.
29750
29751 2009-11-19  Jim Meyering  <meyering@redhat.com>
29752
29753         xfreopen: new module, from coreutils
29754         * modules/xfreopen: New module.
29755         * lib/xfreopen.c: New file.
29756         * lib/xfreopen.h: New file.
29757         * MODULES.html.sh (File stream based Input/Output"): Add it.
29758
29759 2009-11-19  Eric Blake  <ebb9@byu.net>
29760
29761         manywarnings: depend on warnings
29762         * modules/manywarnings (Depends-on): Add warnings.
29763
29764         build: avoid compiler warnings
29765         * lib/select.c (rpl_select): Delete unused variable.
29766         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29767
29768 2009-11-18  Eric Blake  <ebb9@byu.net>
29769
29770         tests: avoid false negative with --with-packager
29771         * tests/test-version-etc.sh: Discard packager information.
29772         * tests/test-argp-version-etc-1.sh: Likewise.
29773         Reported by Mike Frysinger.
29774
29775         utimens: fix regression on Solaris
29776         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29777         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29778         can only change fd timestamps via futimesat.  Instead, use an
29779         additional witness macro to avoid BSD bug.
29780         Reported by Jim Meyering.
29781
29782 2009-11-17  Eric Blake  <ebb9@byu.net>
29783
29784         usleep: use it to simplify tests
29785         * modules/stat-time-tests (Depends-on): Add usleep.
29786         (configure.ac): Drop usleep check.
29787         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29788         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29789         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29790         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29791         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29792         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29793         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29794         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29795         Likewise.
29796         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29797         * tests/test-lchown.h (nap): Likewise.
29798         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29799         * tests/test-stat-time.c (nap): Likewise.
29800         * tests/test-utimens-common.h (nap): Update comments.
29801
29802         usleep: new module
29803         * modules/usleep: New file.
29804         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29805         * lib/usleep.c (usleep): Likewise.
29806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29807         * modules/unistd (Makefile.am): Substitute witnesses.
29808         * lib/unistd.in.h (usleep): Add declaration.
29809         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29810         * MODULES.html.sh (Date and time): Likewise.
29811         * modules/usleep-tests (Depends-on): New test.
29812         * tests/test-usleep.c: New file.
29813
29814         chown: work around OpenBSD bug
29815         * lib/chown.c (rpl_chown): Work around the bug.
29816         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29817         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29818         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29819         * modules/chown (Depends-on): Add stdbool.
29820         * modules/lchown (Depends-on): Likewise.
29821         * doc/posix-functions/chown.texi (chown): Document the bug.
29822         * doc/posix-functions/lchown.texi (lchown): Likewise.
29823         * tests/test-lchown.h (test_chown): Relax test.
29824
29825         mkstemp: avoid conflict with C++ keyword template
29826         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29827         * lib/mkostemp.c (mkostemp): Likewise.
29828         * lib/mkostemps.c (mkostemps): Likewise.
29829         * lib/mkstemp.c (mkstemp): Likewise.
29830         * lib/mkstemps.c (mkstemps): Likewise.
29831
29832         xalloc-die-tests: optimize
29833         * tests/test-xalloc-die.sh: Reduce number of processes.
29834
29835 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29836
29837         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29838         patch from ludo@gnu.org (Ludovic Courtès).
29839
29840 2009-11-17  Jim Meyering  <meyering@redhat.com>
29841
29842         version-etc: use proper license string
29843         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29844         * modules/version-etc-fsf: Likewise.
29845
29846 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29847
29848         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29849         printed to stdout.  Deal with EOL differences.
29850
29851 2009-11-17  Eric Blake  <ebb9@byu.net>
29852
29853         unsetenv: work around Solaris bug
29854         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29855         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29856         Reported by Jim Meyering.
29857
29858         vasnprintf: avoid compiler warnings
29859         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29860         variables.
29861         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29862
29863 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29864
29865         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29866         settings since xalloc-die is no longer the self test,
29867         xalloc-die.sh is.
29868
29869 2009-11-17  Jim Meyering  <meyering@redhat.com>
29870
29871         test-xalloc-die.sh: make the code agree with the commit log
29872         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29873         at the end, just in case you happen to have a test-xalloc-die
29874         program in some other PATH directory.
29875
29876         test-xalloc-die.sh: fix a portability bug
29877         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29878         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29879         Otherwise, argv[0] (as often seen in diagnostics) would be too
29880         system-dependent, sometimes with, and sometimes without the leading "./".
29881
29882         version-etc-fsf: relax license to LGPLv3+
29883         * modules/version-etc-fsf (License): Relax license.
29884
29885 2009-11-16  Eric Blake  <ebb9@byu.net>
29886
29887         xalloc-die-tests: avoid printing null pointer
29888         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29889         shell script.
29890         * tests/test-xalloc-die.c (program_name): Declare.
29891         * tests/test-xalloc-die.sh (tmpfiles): New file.
29892
29893         setenv, unsetenv: work around various bugs
29894         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29895         (setenv) [HAVE_SETENV]: Work around bugs.
29896         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29897         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29898         for bugs.
29899         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29900         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29902         * modules/stdlib (Makefile.am): Update substitutions.
29903         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29904         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29905         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29906         * modules/setenv-tests: New test.
29907         * modules/unsetenv-tests: Likewise.
29908         * tests/test-setenv.c: New file.
29909         * tests/test-unsetenv.c: Likewise.
29910
29911 2009-11-16  Jim Meyering  <meyering@redhat.com>
29912
29913         version-etc: relax license to LGPLv3+
29914         * modules/version-etc (License): Relax license.
29915
29916         better AC_REQUIRE expanded-before-required-warning avoidance
29917         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29918         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29919         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29920         which is no longer needed.
29921
29922 2009-11-16  Eric Blake  <ebb9@byu.net>
29923
29924         test-freading: clean up temporary file
29925         * tests/test-freading.c (main): Remove file on success, and use
29926         ASSERT more liberally.
29927         Reported by Jim Meyering.
29928
29929 2009-11-16  Jim Meyering  <meyering@redhat.com>
29930
29931         avoid new AC_REQUIRE expanded-before-required warnings
29932         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29933         merely using it.
29934         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29935         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29936
29937 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29938
29939         * tests/test-xalloc-die.c: New file.
29940         * modules/xalloc-die-tests: New file.
29941         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29942         XFAIL_TESTS so it can be appended by modules.
29943
29944 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29945
29946         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29947         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29948
29949 2009-11-14  Eric Blake  <ebb9@byu.net>
29950
29951         fnmatch: avoid compiler warning
29952         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29953         to silence compiler warning about mismatch signedness in ?:.
29954         Reported by Robert Millan.
29955
29956         intprops: add double-inclusion guard
29957         * lib/intprops.h: Allow idempotent includes.
29958         Suggested by Bruce Korb.
29959
29960         openat: detect Solaris fchownat bug
29961         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29962         penalizing glibc chownat when only lchownat is broken.
29963         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29964         trailing slash bugs.
29965         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29966         * modules/openat-tests (Files): Include more files.
29967         (Depends-on): Add mgetgroups, sleep, stat-time.
29968         (configure.ac): Add additional checks.
29969         (Makefile.am): Build new test.
29970         * tests/test-fchownat.c: New file.
29971
29972         lchown: detect Solaris and FreeBSD bug
29973         * lib/lchown.c (rpl_lchown): Work around bug.
29974         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29976         * modules/unistd (Makefile.am): Populate it.
29977         * lib/unistd.in.h (lchown): Update declaration.
29978         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29979         * modules/lchown-tests: New file.
29980         * tests/test-lchown.h (test_lchown): Likewise.
29981         * tests/test-lchown.c (main): Likewise.
29982
29983         chown: detect Solaris and FreeBSD bug
29984         * lib/chown.c (rpl_chown): Work around bug.
29985         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29986         (gl_PREREQ_CHOWN): Delete.
29987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29988         * modules/unistd (Makefile.am): Populate it.
29989         * lib/unistd.in.h (chown): Update declaration.
29990         * lib/lchown.c (chown): Update client.
29991         * modules/lchown (Depends-on): Add lstat.
29992         * doc/posix-functions/chown.texi (chown): Document the bug.
29993         * doc/posix-functions/getgroups.texi (getgroups): Document
29994         getgroups pitfall.
29995         * modules/chown-tests: New file.
29996         * tests/test-chown.h (test_chown): Likewise.
29997         * tests/test-chown.c (main): Likewise.
29998
29999 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30000
30001         gnulib-tool: correctly detect absence of m4 directories
30002         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30003
30004 2009-11-14  Jim Meyering  <meyering@redhat.com>
30005
30006         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30007         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30008
30009 2009-11-14  John W. Eaton  <jwe@gnu.org>
30010
30011         strftime.h: wrap funtion declaration in extern "C" block
30012         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30013
30014 2009-11-13  Eric Blake  <ebb9@byu.net>
30015
30016         getgroups: avoid compiler warning
30017         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30018
30019         getgroups: work around FreeBSD bug
30020         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30021         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30022         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30023         * tests/test-getgroups.c (main): Fix buffer overrun.
30024
30025         getgroups: avoid compilation failure
30026         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30027         * modules/getgroups (Depends-on): Add stdint.
30028
30029 2009-11-13  Jim Meyering  <meyering@redhat.com>
30030
30031         test-getgroups: avoid compilation failure
30032         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30033
30034 2009-11-13  Eric Blake  <ebb9@byu.net>
30035
30036         mgetgroups: new module, taken from coreutils
30037         * modules/mgetgroups: New file.
30038         * lib/mgetgroups.h: Likewise.
30039         * lib/mgetgroups.c (mgetgroups): Likewise.
30040         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30041         * MODULES.html.sh (Users and groups): Mention it.
30042
30043         getgroups: don't expose GETGROUPS_T to user
30044         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30045         an element at a time if GETGROUPS_T is wrong size.
30046         * lib/getugroups.h (getugroups): Change signature.
30047         * lib/unistd.in.h (getgroups): Likewise.
30048         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30049         signature needs fixing.
30050         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30051         AC_TYPE_GETGROUPS.
30052         * modules/group-member (Depends-on): Add getgroups.
30053         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30054         (group_member): Rely on getgroups replacement.
30055         * lib/getugroups.c (getugroups): Use gid_t.
30056         * tests/test-getgroups.c (main): Likewise.
30057         * NEWS: Mention the signature change.
30058         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30059         problem with signature.
30060         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30061         GETGROUPS_T is still useful for setgroups.
30062
30063         getgroups, getugroups: provide stubs for mingw
30064         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30065         * lib/getugroups.c (getugroups): Likewise.
30066         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30067         function.  Modernize replacement scheme.
30068         (gl_PREREQ_GETGROUPS): Delete.
30069         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30070         * modules/getgroups (configure.ac): Declare witness.
30071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30072         * modules/unistd (Depends-on): Substitute witness.
30073         * lib/unistd.in.h (getgroups): Declare replacement.
30074
30075         getgroups: avoid calling exit
30076         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30077         drop xalloc.
30078         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30079         dependencies.
30080         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30081         exiting, in the rare case of malloc failure.
30082
30083         getgroups: fix logic error
30084         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30085         has more than 20 groups.
30086         * modules/getgroups-tests: New test.
30087         * tests/test-getgroups.c: New file.
30088
30089 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30090
30091         * tests/test-base64.c: Improve.
30092
30093 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30094
30095         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30096         Blake <ebb9@byu.net>.
30097
30098 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30099
30100         * tests/test-xvasprintf.c: Add %s%s related checks.
30101
30102 2009-11-12  Eric Blake  <ebb9@byu.net>
30103
30104         version-etc: match standards.texi style
30105         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30106         and use <> only for URLs.
30107
30108 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30109
30110         fts: do not fail on a submount during traversal
30111         * lib/fts.c (fts_build): Read the stat info again after opening
30112         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30113         Original report at http://bugzilla.redhat.com/501848.
30114
30115 2009-11-12  Jim Meyering  <meyering@redhat.com>
30116
30117         bootstrap: sync from coreutils
30118         * build-aux/bootstrap (bootstrap_epilogue): New function.
30119         Use git_modules_config in one more place.  This make bootstrap's
30120         --gnulib-srcdir option more useful for testing.
30121
30122         bootstrap: generalize autoheader check
30123         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30124         AC_CONFIG_HEADERS.
30125
30126 2009-11-11  Eric Blake  <ebb9@byu.net>
30127
30128         mkfifoat: use new modules for Solaris and BSD bugs
30129         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30130         * lib/mkfifoat.c (mknodat): Split...
30131         * lib/mknodat.c (mknodat): ...into new file.
30132         * modules/mkfifoat (Files): Ship new file.
30133         (Depends-on): Add mkfifo, mknod.
30134         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30135         (Depends-on): Add symlink.
30136         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30137         redundant with test_mkfifo.h.
30138         (do_mkfifoat, do_mknodat): New helpers.
30139
30140         mknod: new module
30141         * modules/mknod: New file.
30142         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30143         * lib/mknod.c (mknod): Likewise.
30144         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30145         defaults.
30146         * modules/sys_stat (Makefile.am): Substitute them.
30147         * lib/sys_stat.in.h (mknod): Declare replacement.
30148         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30149         Document it.
30150         * doc/posix-functions/mknod.texi (mknod): Likewise.
30151         * modules/mknod-tests: New test.
30152         * tests/test-mknod.c: Likewise.
30153
30154         mkfifo: new module
30155         * modules/mkfifo: New file.
30156         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30157         * lib/mkfifo.c (mkfifo): Likewise.
30158         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30159         defaults.
30160         * modules/sys_stat (Makefile.am): Substitute them.
30161         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30162         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30163         Document it.
30164         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30165         * modules/mkfifo-tests: New test.
30166         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30167         from test-mkfifoat.c.
30168         * tests/test-mkfifo.c: New file.
30169
30170         readlink: detect FreeBSD bug
30171         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30172         slash on symlink.
30173         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30174         * tests/test-readlink.h (test_readlink): Enhance test.
30175
30176         symlink: detect FreeBSD bug
30177         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30178         slash on symlink.
30179         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30180         * tests/test-symlink.h (test_symlink): Enhance test.
30181
30182 2009-11-10  Eric Blake  <ebb9@byu.net>
30183
30184         link: detect FreeBSD bug
30185         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30186         symlink.
30187         * doc/posix-functions/link.texi (link): Document the bug.
30188         * tests/test-link.h (test_link): Enhance test.
30189         * tests/test-linkat.c (main): Update caller.
30190
30191         unlink, remove: detect FreeBSD bug
30192         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30193         slash on symlink.
30194         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30195         * doc/posix-functions/remove.texi (remove): Likewise.
30196         * tests/test-unlink.h (test_unlink): Enhance test.
30197         * tests/test-remove.c (main): Likewise.
30198
30199 2009-11-09  Eric Blake  <ebb9@byu.net>
30200
30201         rename: detect FreeBSD bug
30202         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30203         slash on symlink.
30204         * modules/renameat-tests (Depends-on): Add filenamecat.
30205         * tests/test-rename.h (test_rename): Allow one more errno.
30206         * tests/test-renameat.c (main): Likewise.
30207         * doc/posix-functions/rename.texi (rename): Document the bug.
30208
30209         open: detect FreeBSD bug
30210         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30211         symlink.
30212         * doc/posix-functions/open.texi (open): Document the bug.
30213         * doc/posix-functions/utimes.texi (utimes): Likewise.
30214         * tests/test-open.h (test_open): Add parameters, and test symlink
30215         handling.
30216         * tests/test-open.c (main): Adjust caller.
30217         * tests/test-fcntl-safer.c (main): Likewise.
30218         * modules/open-tests (Depends-on): Add stdbool, symlink.
30219         * modules/fcntl-safer-tests (Depends-on): Likewise.
30220         * tests/test-openat.c (main): Add test-open tests.
30221
30222         stat: detect FreeBSD bug
30223         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30224         symlink.
30225         * doc/posix-functions/stat.texi (stat): Document the bug.
30226         * tests/test-stat.h (test_stat_func): Add argument.
30227         * tests/test-stat.c (main): Adjust caller.
30228         * tests/test-fstatat.c (main): Likewise.
30229         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30230         Reported by Jim Meyering.
30231
30232 2009-11-09  James Youngman  <jay@gnu.org>
30233
30234         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30235         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30236
30237 2009-11-08  Jim Meyering  <meyering@redhat.com>
30238
30239         utimens: remove invalid futimesat call
30240         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30241         It used the file descriptor of the target file as the DIR_FD
30242         parameter and NULL as the file name.  That caused failure with
30243         errno == EFAULT on FreeBSD-8.0-rc2
30244
30245 2009-11-07  Eric Blake  <ebb9@byu.net>
30246
30247         fflush, freadseek: use fseeko, not fseek
30248         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30249         (clear_ungetc_buffer): Avoid potential problems on large files.
30250         * lib/freadseek.c (freadseek): Likewise.
30251         * modules/freadseek (Depends-on): Add fseeko.
30252         * modules/fseek (configure.ac): Set a witness.
30253         * tests/test-fflush.c (main): Use fseeko.
30254         * tests/test-fpurge.c (fseek): Disable link warning.
30255         * tests/test-freadable.c (fseek): Likewise.
30256         * tests/test-freading.c (fseek): Likewise.
30257         * tests/test-fseeko.c (fseek): Likewise.
30258         * tests/test-ftell.c (fseek): Likewise.
30259         * tests/test-ftello.c (fseek): Likewise.
30260         * tests/test-fwritable.c (fseek): Likewise.
30261         * tests/test-fwriting.c (fseek): Likewise.
30262
30263 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30264
30265         * modules/memchr (Depends-on): Drop getpagesize dependency.
30266
30267 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30268
30269         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30270         Reported by Ludovic Courtès.
30271         * build-aux/pmccabe2html: Improve example usage.
30272         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30273
30274 2009-11-06  Jim Meyering  <meyering@redhat.com>
30275
30276         do-release-commit-and-tag: New module.
30277         Automate the release-commit and tag process.
30278         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30279         * modules/do-release-commit-and-tag: New file.
30280         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30281
30282 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30283
30284         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30285         because test-select.c uses inet_pton.
30286
30287 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30288
30289         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30290         GETADDRINFO_LIB.  Bump serial number.
30291         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30292         Suggested by Eric Blake <ebb9@byu.net>.
30293
30294 2009-11-05  Eric Blake  <ebb9@byu.net>
30295
30296         strtod: detect darwin bug
30297         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30298         Reported by Leo Davis.
30299
30300         freopen-safer: new module
30301         * modules/freopen-safer: New module.
30302         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30303         * lib/freopen-safer.c (freopen_safer): New file.
30304         * lib/stdio-safer.h (freopen_safer): New declaration.
30305         * lib/stdio--.h (freopen): New override.
30306         * MODULES.html.sh (File stream based Input/Output): Mention it.
30307         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30308         freopen-safer module.
30309         * doc/posix-functions/stderr.texi (stderr): Likewise.
30310         * doc/posix-functions/stdin.texi (stdin): Likewise.
30311         * doc/posix-functions/stdout.texi (stdout): Likewise.
30312         * modules/freopen-safer-tests: New test.
30313         * tests/test-reopen-safer.c: New file.
30314
30315 2009-11-05  Jim Meyering  <meyering@redhat.com>
30316
30317         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30318         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30319
30320 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30321
30322         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30323
30324 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30325
30326         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30327
30328 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30329
30330         Fix link error.
30331         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30332         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30333
30334 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30335
30336         * tests/test-func.c: Also test value of __func__.
30337
30338 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30339
30340         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30341         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30342
30343 2009-11-05  Bruno Haible  <bruno@clisp.org>
30344
30345         Fix link error.
30346         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30347         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30348         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30349
30350 2009-11-05  Bruno Haible  <bruno@clisp.org>
30351
30352         Tests for module 'inet_pton'.
30353         * modules/inet_pton-tests: New file.
30354         * tests/test-inet_pton.c: New file.
30355
30356 2009-11-05  Bruno Haible  <bruno@clisp.org>
30357
30358         Tests for module 'inet_ntop'.
30359         * modules/inet_ntop-tests: New file.
30360         * tests/test-inet_ntop.c: New file.
30361
30362 2009-11-04  Eric Blake  <ebb9@byu.net>
30363
30364         stdlib-safer: wrap all mkstemp variants
30365         * modules/mkostemp (configure.ac): Set witness.
30366         * modules/mkostemps (configure.ac): Likewise.
30367         * modules/mkstemps (configure.ac): Likewise.
30368         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30369         (mkstemps_safer): Wrap more functions.
30370         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30371         wrapping.
30372         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30373         (mkstemps_safer): Implement the wrappers.
30374
30375         mkstemps, mkostemps: new modules
30376         * modules/mkostemps: New module.
30377         * modules/mkstemps: Likewise.
30378         * lib/mkostemps.c (mkostemps): New file.
30379         * lib/mkstemps.c (mkstemps): Likewise.
30380         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30381         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30383         * modules/stdlib (Makefile.am): Substitute them.
30384         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30385         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30386         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30387         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30388         * MODULES.html.sh (File system functions): Mention them.
30389
30390         tempname: resync from glibc
30391         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30392         same values for __GT_FILE as glibc.  Abort even when assertions
30393         are disabled.
30394         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30395         match its value otherwise.  Allow idempotent inclusion.
30396         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30397         * lib/mkostemp.c (mkostemp): Likewise.
30398         * lib/mkstemp.c (mkstemp): Likewise.
30399         * lib/tmpfile.c (tmpfile): Likewise.
30400         * NEWS: Document this.
30401
30402         utimens: fix use of futimens on older Linux
30403         * lib/utimens.c (fdutimens): Use updated, rather than original,
30404         timespec to avoid bug in older Linux kernel.
30405         Reported by Simon Josefsson.
30406
30407 2009-11-04  Bruno Haible  <bruno@clisp.org>
30408
30409         Make num_processors more flexible and consistent.
30410         * lib/nproc.h (enum nproc_query): New type.
30411         (num_processors): Add a 'query' argument.
30412         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30413         (num_processors): Add a 'query' argument. Test the value of the
30414         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30415         mingw, count the number of CPUs available for the current process.
30416         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30417         Check for sched_getaffinity and sched_getaffinity_np.
30418         * modules/nproc (Depends-on): Add c-ctype, extensions.
30419         * NEWS: Mention the change.
30420
30421 2009-11-03  Bruno Haible  <bruno@clisp.org>
30422
30423         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30424
30425 2009-11-03  Jim Meyering  <meyering@redhat.com>
30426
30427         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30428         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30429         if it is defined.
30430
30431 2009-11-02  Eric Blake  <ebb9@byu.net>
30432
30433         mktime, timegm: share common declaration
30434         * lib/mktime-internal.h: New file.
30435         * lib/mktime.c: Use it rather than open-coding a declaration.
30436         * lib/timegm.c: Likewise.
30437         * modules/mktime (Files): Ship it.
30438         * modules/timegm (Files): Likewise.
30439         Suggested by Bruno Haible.
30440
30441         test-update-copyright: update test to match script changes
30442         * tests/test-update-copyright.sh: Avoid hard-coding perl
30443         location.  Don't update *.bak created by earlier runs.
30444
30445 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30446             Simon Josefsson  <simon@josefsson.org>
30447             Bruno Haible  <bruno@clisp.org>
30448
30449         Fix link error on Solaris 8.
30450         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30451         also in libnsl. Define also INET_PTON_LIB.
30452         * modules/inet_pton (Link): New section.
30453
30454 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30455             Bruno Haible  <bruno@clisp.org>
30456
30457         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30458         * modules/inet_ntop (Link): New section.
30459         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30460
30461 2009-11-02  Eric Blake  <ebb9@byu.net>
30462
30463         maint: avoid compiler warnings in m4 macros
30464         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30465         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30466
30467 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30468
30469         * m4/pmccabe2html.m4: Remove file.
30470         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30471         function.  Change maintainer.
30472         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30473         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30474         Courtès).
30475
30476 2009-10-31  Eric Blake  <ebb9@byu.net>
30477
30478         fseeko: fix m4 regression
30479         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30480         regression from 2009-10-27.
30481         Reported by Ralf Wildenhues.
30482
30483 2009-10-31  Jim Meyering  <meyering@redhat.com>
30484
30485         inttostr: aesthetics and improved (compile-time) safety
30486         Define inttype_is_signed rather than inttype_is_unsigned,
30487         since the sole use is via "#if inttype_is_signed".
30488         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30489         inttype_is_unsigned.
30490         * lib/offtostr.c (inttype_is_signed): Likewise.
30491         * lib/uinttostr.c (inttype_is_signed): Likewise.
30492         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30493         * lib/inttostr.c (inttostr): Use verify to cross-check the
30494         inttype_is_signed value and the signedness of the actual type.
30495         * modules/inttostr (Depends-on): Add verify.
30496
30497 2009-10-30  Eric Blake  <ebb9@byu.net>
30498
30499         build: avoid compiler warnings
30500         * lib/fchmodat.c (lchmod): Mark unused variables.
30501         * lib/getopt.c (_getopt_initialize): Likewise.
30502         * lib/mktime.c (__mktime_internal): Provide prototype.
30503         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30504         older gcc that do not understand #pragma GCC diagnostic.
30505         * lib/uinttostr.c (inttype_is_unsigned): Define.
30506         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30507
30508 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30509
30510         stat: fix compilation on AIX
30511         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30512         only see struct stat64.
30513
30514 2009-10-30  Eric Blake  <ebb9@byu.net>
30515
30516         exclude: make more robust
30517         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30518         rather than masking a coding bug.
30519         Suggested by Bruno Haible.
30520
30521 2009-10-30  Jim Meyering  <meyering@redhat.com>
30522
30523         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30524         Rather than putting #!/usr/bin/perl on the first line,
30525         start with a variant of what's recommended by "man perlrun" that
30526         invokes the first "perl" program from your shell's search path.
30527         * build-aux/gitlog-to-changelog: Replace #!... as above.
30528         Add a "Local Variables" perl mode setting.
30529         Prompted by a patch from Ludovic Courtès.
30530         Improved by Eric Blake.
30531         * build-aux/useless-if-before-free: Likewise.
30532         * build-aux/announce-gen: Likewise.
30533         * build-aux/update-copyright: Likewise.
30534
30535 2009-10-29  Eric Blake  <ebb9@byu.net>
30536
30537         filenamecat-lgpl: adjust clients
30538         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30539         filenamecat.
30540         * modules/renameat (Depends-on): Likewise.
30541
30542         filenamecat: split into filenamecat-lgpl
30543         * modules/filenamecat-lgpl: New module.
30544         * modules/filenamecat (Files): Move library-safe files into
30545         filenamecat-lgpl.
30546         (Depends-on): Add filenamecat-lgpl.
30547         (configure.ac): Declare witness.
30548         * lib/filenamecat.h (file_name_concat): Only declare when using
30549         GPL module.
30550         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30551         Move...
30552         * lib/filenamecat-lgpl.c: ...into new file.
30553         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30554         (gl_FILE_NAME_CONCAT): Use it.
30555         * MODULES.html.sh (File system functions): Mention new module.
30556
30557         argp: avoid memory leak
30558         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30559         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30560         base_name, since the latter malloc()s and can call exit().
30561         Leak introduced 2006-07-03.
30562
30563         dirname-lgpl: adjust clients that don't need full dirname
30564         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30565         * modules/filenamecat (Depends-on): Likewise.
30566         * modules/linkat (Depends-on): Likewise.
30567         * modules/mkancesdirs (Depends-on): Likewise.
30568         * modules/mkdir (Depends-on): Likewise.
30569         * modules/openat (Depends-on): Likewise.
30570         * modules/savewd (Depends-on): Likewise.
30571         * modules/rename (Depends-on): Likewise.
30572         (License): Relax license.
30573         * modules/mkdir-tests (Depends-on): Drop progname.
30574         (Makefile.am): Delete unneeded LDADD.
30575         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30576
30577         dirname: split into dirname-lgpl
30578         * modules/dirname-lgpl: New module.
30579         * modules/dirname (Files): Move library-safe files into
30580         dirname-lgpl.
30581         (Depends-on): Add dirname-lgpl.
30582         (configure.ac): Declare witness.
30583         * modules/double-slash-root (License): Relax license.
30584         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30585         module.
30586         * lib/dirname.c (dir_len, mdir_name): Move...
30587         * lib/dirname-lgpl.c: ...into new file.
30588         * lib/basename.c (last_component, base_len): Move...
30589         * lib/basename-lgpl.c: ...into new file.
30590         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30591         (gl_DIRNAME): Use it.
30592         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30593         Mention new module.
30594         * modules/dirname-tests (Depends-on): Add progname.
30595         * tests/test-dirname.c (program_name): Delete.
30596
30597         mkdir: make safe for libraries
30598         * modules/mkdir (Depends-on): Drop xalloc.
30599         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30600         exit.
30601
30602         tests: avoid some compiler warnings
30603         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30604         literals.
30605         * tests/test-memchr.c (main): Avoid type mismatch.
30606         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30607         * tests/test-base64.c (main): Likewise.
30608         * tests/test-getdelim.c (main): Likewise.
30609         * tests/test-gethostname.c (main): Likewise.
30610         * tests/test-getline.c (main): Likewise.
30611         * tests/test-netinet_in.c (main): Likewise.
30612         * tests/test-select.c (open_server_socket, main): Likewise.
30613         * tests/test-select-stdin.c (main): Likewise.
30614         * tests/test-sockets.c (main): Likewise.
30615         * tests/test-strsignal.c (main): Likewise.
30616         * tests/test-sys_select.c (main): Likewise.
30617         * tests/test-sys_socket.c (main): Likewise.
30618         * tests/test-u64.c (main): Likewise.
30619         * tests/test-xfprintf-posix.c (main): Likewise.
30620         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30621
30622         sockets: avoid compiler warning
30623         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30624
30625         maint: detect usage(1) and other suspicious exits
30626         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30627
30628 2009-10-29  Jim Meyering  <meyering@redhat.com>
30629
30630         timespec: long-to-int truncation could make timespec_cmp malfunction
30631         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30632         a multiple of 2^32 nanoseconds as no difference.
30633
30634 2009-10-28  Jim Meyering  <meyering@redhat.com>
30635
30636         fprintftime: wrap macro code argument in "do {...} while(0)"
30637         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30638         cpy macro must be a statement that can be followed by a semicolon.
30639         Now that the else clause contains a comment and is hence longer
30640         than one line, I require curly braces.  That in turn requires
30641         that we wrap this code block in the standard do...while(0).
30642
30643         fprintftime: remove stray semicolon from previous change
30644         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30645
30646         fprintftime: avoid a warning about ignored fwrite return value
30647         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30648         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30649         that is unsafe.
30650         * modules/fprintftime (Depends-on): Add ignore-value.
30651
30652         exclude: avoid an unwarranted warning
30653         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30654
30655 2009-10-27  Eric Blake  <ebb9@byu.net>
30656
30657         fseek: avoid compilation failure when fflush is replaced
30658         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30659         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30660         module is in use.
30661         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30662         module is not in use; since REPLACE_FSEEK worked otherwise.
30663         (GNULIB_FTELLO): Likewise for ftell.
30664         Reported by Ian Beckwith and others.
30665
30666 2009-10-27  Bruno Haible  <bruno@clisp.org>
30667
30668         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30669         Reported by Jim Meyering.
30670
30671 2009-10-27  Jim Meyering  <jim@meyering.net>
30672             Bruno Haible  <bruno@clisp.org>
30673
30674         Avoid warning despite dropping the return value of fwrite.
30675         * lib/unicodeio.c: Include ignore-value.h.
30676         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30677         * modules/unicodeio (Depends-on): Add ignore-value.
30678
30679 2009-10-26  Eric Blake  <ebb9@byu.net>
30680
30681         areadlinkat: fix fallback path
30682         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30683         pointer and zero.
30684
30685 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30686
30687         Use a better IO block size for modern systems
30688         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30689         * lib/md2.c: Likewise.
30690         * lib/md4.c: Likewise.
30691         * lib/md5.c: Likewise.
30692         * lib/sha1.c: Likewise.
30693         * lib/sha256.c: Likewise.
30694         * lib/sha512.c: Likewise.
30695
30696 2009-10-22  Eric Blake  <ebb9@byu.net>
30697
30698         tests: avoid several compiler warnings
30699         * tests/test-getcwd.c (main): Avoid buffer underflow.
30700         * tests/test-getdate.c (main): String literals are not safe with
30701         putenv, so use setenv.  Declare unused argument.
30702         * modules/getdate-tests (Depends-on): Add setenv.
30703         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30704         problems with string literals in char *.
30705         * tests/test-hash.c (main): Avoid shadowing declaration.
30706         (insert_new): Treat string literals as char const *.
30707         * tests/test-getopt.h (test_getopt): Likewise.
30708         (getopt_loop): Alter types to minimize casting elsewhere.
30709         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30710         (test_getopt_long_posix): Likewise.
30711         (do_getopt_long): Add wrapper to minimize casting.
30712         * tests/test-atexit.c (clear_temp_file): Use void.
30713         * tests/test-areadlink-with-size.c (main): Declare unused
30714         arguments.
30715         * tests/test-areadlink.c (main): Likewise.
30716         * tests/test-areadlinkat-with-size.c (main): Likewise.
30717         * tests/test-areadlinkat.c (main): Likewise.
30718         * tests/test-canonicalize-lgpl.c (main): Likewise.
30719         * tests/test-canonicalize.c (main): Likewise.
30720         * tests/test-dirent-safer.c (main): Likewise.
30721         * tests/test-dirname.c (main): Likewise.
30722         * tests/test-dup2.c (main): Likewise.
30723         * tests/test-fchdir.c (main): Likewise.
30724         * tests/test-fcntl-h.c (main): Likewise.
30725         * tests/test-fcntl-safer.c (main): Likewise.
30726         * tests/test-fdopendir.c (main): Likewise.
30727         * tests/test-fdutimensat.c (main): Likewise.
30728         * tests/test-fflush.c (main): Likewise.
30729         * tests/test-filenamecat.c (main): Likewise.
30730         * tests/test-filevercmp.c (main): Likewise.
30731         * tests/test-fopen-safer.c (main): Likewise.
30732         * tests/test-fopen.c (main): Likewise.
30733         * tests/test-fpending.c (main): Likewise.
30734         * tests/test-fpurge.c (main): Likewise.
30735         * tests/test-freading.c (main): Likewise.
30736         * tests/test-fstatat.c (main): Likewise.
30737         * tests/test-fsync.c (main): Likewise.
30738         * tests/test-futimens.c (main): Likewise.
30739         * tests/test-getndelim2.c (main): Likewise.
30740         * tests/test-gettimeofday.c (main): Likewise.
30741         * tests/test-getopt.c (main): Likewise.
30742         * tests/test-i-ring.c (main): Likewise.
30743         * tests/test-inttypes.c (main): Likewise.
30744         * tests/test-link.c (main): Likewise.
30745         * tests/test-lstat.c (main): Likewise.
30746         * tests/test-math.c (main): Likewise.
30747         * tests/test-md5.c (main): Likewise.
30748         * tests/test-memchr2.c (main): Likewise.
30749         * tests/test-memrchr.c (main): Likewise.
30750         * tests/test-mkdir.c (main): Likewise.
30751         * tests/test-mkdirat.c (main): Likewise.
30752         * tests/test-mkfifoat.c (main): Likewise.
30753         * tests/test-open.c (main): Likewise.
30754         * tests/test-openat-safer.c (main): Likewise.
30755         * tests/test-openat.c (main): Likewise.
30756         * tests/test-quotearg.c (main): Likewise.
30757         * tests/test-rawmemchr.c (main): Likewise.
30758         * tests/test-readlink.c (main): Likewise.
30759         * tests/test-remove.c (main): Likewise.
30760         * tests/test-rename.c (main): Likewise.
30761         * tests/test-renameat.c (main): Likewise.
30762         * tests/test-rmdir.c (main): Likewise.
30763         * tests/test-sha1.c (main): Likewise.
30764         * tests/test-signal.c (main): Likewise.
30765         * tests/test-sigaction.c (main): Likewise.
30766         * tests/test-stat.c (main): Likewise.
30767         * tests/test-stat-time.c (main): Likewise.
30768         * tests/test-stddef.c (main): Likewise.
30769         * tests/test-stdint.c (main): Likewise.
30770         * tests/test-stdio.c (main): Likewise.
30771         * tests/test-stdlib.c (main): Likewise.
30772         * tests/test-strchrnul.c (main): Likewise.
30773         * tests/test-strerror.c (main): Likewise.
30774         * tests/test-string.c (main): Likewise.
30775         * tests/test-strtod.c (main): Likewise.
30776         * tests/test-strverscmp.c (main): Likewise.
30777         * tests/test-symlink.c (main): Likewise.
30778         * tests/test-symlinkat.c (main): Likewise.
30779         * tests/test-sys_stat.c (main): Likewise.
30780         * tests/test-sys_time.c (main): Likewise.
30781         * tests/test-time.c (main): Likewise.
30782         * tests/test-unistd.c (main): Likewise.
30783         * tests/test-unlink.c (main): Likewise.
30784         * tests/test-unlinkat.c (main): Likewise.
30785         * tests/test-utimens.c (main): Likewise.
30786         * tests/test-utimensat.c (main): Likewise.
30787         * tests/test-version-etc.c (main): Likewise.
30788         * tests/test-wchar.c (main): Likewise.
30789         * tests/test-wctype.c (main): Likewise.
30790         * tests/test-xprintf-posix.c (main): Likewise.
30791         * tests/test-posixtm.c (main): Likewise.
30792         (STREQ): Delete unused macro.
30793         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30794         shadowed variables.
30795         * tests/test-memchr.c (main): Likewise.
30796
30797 2009-10-21  Eric Blake  <ebb9@byu.net>
30798
30799         areadlinkat: avoid failure on older glibc
30800         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30801         rather than mis-comparing 0 against FUNC_RESULT of char*.
30802
30803 2009-10-21  Bruno Haible  <bruno@clisp.org>
30804
30805         * modules/stpncpy (License): Relicense under LGPLv2+.
30806         Reported by David Lutterkort <lutter@redhat.com>.
30807
30808 2009-10-20  Eric Blake  <ebb9@byu.net>
30809
30810         utimensat: work around Solaris 9 bug
30811         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30812         has trailing slash bugs.
30813         * tests/test-lutimens.h (test_lutimens): Enhance test.
30814         * tests/test-utimens.h (test_utimens): Likewise.
30815         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30816         * doc/posix-functions/utimes.texi (utimes): Likewise.
30817         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30818         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30819         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30820         * doc/posix-functions/futimens.texi (futimens): Likewise.
30821
30822         fdutimensat: new module
30823         * modules/fdutimensat: New file.
30824         * lib/fdutimensat.c (fdutimensat): Likewise.
30825         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30826         * MODULES.html.sh (File system functions): Mention module.
30827         * modules/fdutimensat-tests: New test.
30828         * tests/test-fdutimensat.c: Likewise.
30829
30830         doc: regenerate INSTALL
30831         * doc/INSTALL: Reflect recent autoconf update.
30832         * doc/INSTALL.ISO: Likewise.
30833         * doc/INSTALL.UTF-8: Likewise.
30834
30835 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30836
30837         acl: warn if ACL support is not detected
30838         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30839
30840 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30841
30842         * lib/nproc.h: Add extern "C" block for C++.
30843
30844 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30845             Bruno Haible  <bruno@clisp.org>
30846
30847         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30848         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30849         * doc/posix-functions/isalpha.texi: Likewise.
30850         * doc/posix-functions/isblank.texi: Likewise.
30851         * doc/posix-functions/iscntrl.texi: Likewise.
30852         * doc/posix-functions/isdigit.texi: Likewise.
30853         * doc/posix-functions/isgraph.texi: Likewise.
30854         * doc/posix-functions/islower.texi: Likewise.
30855         * doc/posix-functions/isprint.texi: Likewise.
30856         * doc/posix-functions/ispunct.texi: Likewise.
30857         * doc/posix-functions/isspace.texi: Likewise.
30858         * doc/posix-functions/isupper.texi: Likewise.
30859         * doc/posix-functions/isxdigit.texi: Likewise.
30860
30861 2009-10-18  Bruno Haible  <bruno@clisp.org>
30862
30863         Tests for module 'isblank'.
30864         * modules/isblank-tests: New file.
30865         * tests/test-isblank.c: New file.
30866
30867         New module 'isblank'.
30868         * lib/isblank.c: New file.
30869         * m4/isblank.m4: New file.
30870         * modules/isblank: New file.
30871         * doc/posix-functions/isblank.texi: Mention the new module.
30872
30873 2009-10-18  Bruno Haible  <bruno@clisp.org>
30874
30875         New module 'ctype'.
30876         * lib/ctype.in.h: New file.
30877         * m4/ctype.m4: New file.
30878         * modules/ctype: New file.
30879         * doc/posix-headers/ctype.texi: Mention the new module.
30880
30881 2009-10-18  Jim Meyering  <meyering@redhat.com>
30882
30883         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30884         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30885         right after its initialization, rather than farther down.
30886         Keeping these in close proximity makes it easier to ensure
30887         that each such variable is initialized.  E.g.,
30888
30889             LIB_CLOCK_GETTIME=
30890             AC_SUBST([LIB_CLOCK_GETTIME])
30891
30892         This change also increments these serial numbers.
30893         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30894         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30896
30897 2009-10-18  Bruno Haible  <bruno@clisp.org>
30898
30899         Don't let environment variables perturb build.
30900         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30901         (gl_PREREQ_GETHRXTIME): ... not here.
30902
30903 2009-10-18  Bruno Haible  <bruno@clisp.org>
30904
30905         Avoid symlink attack in localcharset module.
30906         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30907         (O_NOFOLLOW): Define fallback.
30908         (get_charset_aliases): Don't open the file if it is a symbolic link.
30909         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30910         gl_FCNTL_H.
30911         (gl_FCNTL_H): Require it.
30912         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30913         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30914         Reported by Fergal Glynn <fglynn@veracode.com>.
30915
30916 2009-10-18  Bruno Haible  <bruno@clisp.org>
30917
30918         Implement nproc for mingw.
30919         * lib/nproc.c: Include <windows.h>
30920         (num_processors): On native Windows platforms, try GetSystemInfo.
30921
30922 2009-10-18  Bruno Haible  <bruno@clisp.org>
30923
30924         Implement nproc for IRIX.
30925         * lib/nproc.c: Include <sys/sysmp.h>.
30926         (num_processors): On IRIX systems, try sysmp.
30927         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30928
30929 2009-10-18  Bruno Haible  <bruno@clisp.org>
30930
30931         Implement nproc for HP-UX.
30932         * lib/nproc.c: Include <sys/pstat.h>
30933         (num_processors): On HP-UX systems, try pstat_getdynamic.
30934         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30935         pstat_getdynamic.
30936
30937 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30938             Bruno Haible  <bruno@clisp.org>
30939
30940         Implement nproc for NetBSD, OpenBSD.
30941         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30942         (ARRAY_SIZE): New macro.
30943         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30944         * m4/nproc.m4: New file.
30945         * modules/nproc (Files): Add m4/nproc.m4.
30946         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30947         (Makefile.am): Instead, augment lib_SOURCES.
30948
30949 2009-10-18  Bruno Haible  <bruno@clisp.org>
30950
30951         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30952         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30953         sys/param.h.
30954
30955 2009-10-16  Eric Blake  <ebb9@byu.net>
30956
30957         utimensat: new module
30958         * modules/utimensat: New file.
30959         * lib/utimensat.c (utimensat): Likewise.
30960         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30961         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30962         so we can work around Linux bugs.
30963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30964         * modules/sys_stat (Makefile.am): Substitute them.
30965         * lib/sys_stat.in.h (utimensat): Declare it.
30966         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30967         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30968         * modules/utimensat-tests: New test.
30969         * tests/test-utimensat.c: Likewise.
30970
30971         utimens: let lutimens work on non-symlinks
30972         * lib/utimens.c (lutimens): Fall back to utimens rather than
30973         failing with ENOSYS, when file is not a symlink.
30974         (utimens): Reduce redirection.
30975         * tests/test-lutimens.h (test_lutimens): Update test to cover
30976         non-symlinks.
30977         * tests/test-utimens.h (test_utimens): Update test to cover
30978         symlinks.
30979         * tests/test-utimens.c (main): Update caller.
30980
30981         utimens: cache whether utimensat syscall works
30982         * lib/utimens.c (utimensat_works_really): New cache variable.
30983         (fdutimens, lutimens): Use it to avoid failing syscall.
30984
30985         test-stat-time, test-utimens: improve portability
30986         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30987         ext4 on alpha, and for cygwin.
30988         * tests/test-utimens-common.h: New file.
30989         (nap): Factor delays into single function.
30990         * tests/test-lutimens.h (test_lutimens): Use new header.
30991         * tests/test-futimens.h (test_futimens): Likewise.
30992         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30993         timestamps to occur from same machine, as was done previously for
30994         test_utimens.
30995         * modules/utimens-tests (Files): Ship new file.
30996         * modules/futimens-tests (Files): Likewise.
30997         Reported in part by Jim Meyering.
30998
30999         sys_stat: sort replacement declarations
31000         * lib/sys_stat.in.h: Sort declarations.
31001         * lib/futimens.c (futimens): Fix typo.
31002
31003 2009-10-15  Jim Meyering  <meyering@redhat.com>
31004
31005         don't let environment settings perturb build
31006         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31007         could cause a configure-time and/or build-time malfunction.
31008         Typically, a configure-time function-in-library test is performed
31009         via code like this:
31010
31011           LIB_VAR=
31012           AC_SUBST([LIB_VAR])
31013           prefix_saved_LIBS=$LIBS
31014             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31015                        [test "$ac_cv_search_FUNC" = "none required" ||
31016                         LIB_VAR=$ac_cv_search_FUNC])
31017           LIBS=$prefix_saved_LIBS
31018
31019         However, in each of the files affected by this change, the LIB_VAR=
31020         initialization was omitted.  Thus, when set in the environment, its
31021         value would propagate into generated Makefiles when FUNC is not found
31022         in LIB_NAME.
31023         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31024         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31026
31027 2009-10-14  Eric Blake  <ebb9@byu.net>
31028
31029         fchdir: avoid infinite recursion in mingw
31030         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31031         recursing.
31032
31033         test-stat-time: port to mingw
31034         * tests/test-stat-time.c (force_unlink): Return a value.
31035         (test_ctime) [W32]: Fix compilation error.
31036         (nap): Don't call usleep with too large an argument.  Use
31037         force_unlink.
31038         * doc/pastposix-functions/usleep.texi (usleep): Document the
31039         portability issue.
31040
31041 2009-10-13  Jim Meyering  <meyering@redhat.com>
31042
31043         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31044         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31045         * modules/pipe-filter-ii: Likewise.
31046         * modules/sys_socket-tests: Likewise.
31047         * modules/tsearch-tests: Likewise.
31048         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31049         (check): Depend on it.
31050
31051 2009-10-12  Eric Blake  <ebb9@byu.net>
31052
31053         utimens-tests: port to NFS file systems
31054         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31055         comparisons to avoid spurious failures from timestamp drift
31056         between NFS machines.
31057
31058 2009-10-12  Eric Blake  <ebb9@byu.net>
31059
31060         stat-time-tests: minor cleanups
31061         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31062         * tests/test-stat-time.c (nap): Separate assignment from call.
31063         Suggested by Paolo Bonzini and Bruno Haible.
31064
31065         sys_stat: guarantee struct timespec
31066         * lib/sys_stat.in.h (includes): Always include <time.h>
31067         * modules/sys_stat (Depends-on): Add time.
31068         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31069         mode_t permission values.
31070         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31071         get at subsecond timestamps.
31072
31073 2009-10-10  Eric Blake  <ebb9@byu.net>
31074
31075         futimens: new module
31076         * modules/futimens: New file.
31077         * lib/futimens.c (futimens): Likewise.
31078         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31079         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31080         we can work around Linux bugs.
31081         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31082         * modules/sys_stat (Makefile.am): Substitute them.
31083         * lib/sys_stat.in.h (futimens): Declare it.
31084         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31085         * doc/posix-functions/futimens.texi (futimens): Likewise.
31086         * modules/futimens-tests: New test.
31087         * tests/test-futimens.c: Likewise.
31088
31089         utimens: introduce fdutimens
31090         * lib/utimens.h (fdutimens): New prototype.
31091         * lib/utimens.c (gl_futimens): Move guts...
31092         (fdutimens): ...to new interface.
31093         * tests/test-utimens.c (do_fdutimens): Use it.
31094
31095         utimens: add UTIME_NOW and UTIME_OMIT support
31096         * lib/utimens.c (validate_timespec, update_timespec): New helper
31097         functions.
31098         (gl_futimens, lutimens): Use them.
31099         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31100         stdbool, sys_stat.
31101         (Link): Mention resulting library dependency.
31102         * modules/utimecmp (Link): Likewise.
31103         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31104         (Makefile.am): Pick up library dependency.
31105         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31106         definition.
31107         * tests/test-sys_stat.c: Test the definitions.
31108         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31109         * NEWS: Document library dependency.
31110
31111         utimecmp: support symlink timestamps
31112         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31113         hashing when possible.  Use pathconf when available.
31114         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31115         * modules/utimecmp (Depends-on): Add lstat.
31116
31117         utimens: add lutimens interface
31118         * lib/utimens.c (lutimens): New function.
31119         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31120         * lib/utimens.h (lutimens): Declare new interface.
31121         * tests/test-utimens.c (main): Enhance test.
31122         * tests/test-lutimens.h (test_lutimens): New file.
31123         * modules/utimens-tests (Files): Distribute it.
31124         (Depends-on): Add symlink.
31125         (configure.ac): Check for usleep.
31126
31127         utimens: validate futimens usage
31128         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31129         fewer syscalls on failure later on.  Avoid compiler warning on
31130         mingw.
31131         * modules/utimens (Depends-on): Add dup2.
31132
31133         utimens: add test
31134         * modules/utimens-tests: New test.
31135         * tests/test-utimens.h: New file.
31136         * tests/test-futimens.h: Likewise.
31137         * tests/test-utimens.c: Likewise.
31138
31139         doc: mention timestamp portability issues
31140         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31141         instead.
31142         * doc/posix-functions/utime.texi (utime): Likewise.
31143         * doc/posix-functions/utimes.texi (utimes): Likewise.
31144         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31145         instead.
31146         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31147         module.
31148         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31149         Mention weakness with symlink timestamps.
31150         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31151         to utimensat/futimens instead.
31152         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31153
31154         test-dup2: enhance test
31155         * tests/test-dup2.c (main): Also check AT_FDCWD.
31156
31157         test-stat-time: avoid more spurious failures
31158         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31159         xfs; and avoid race if the two timestamps cross quantization edge.
31160
31161         relocatable: prefer 'file system' over 'filesystem'
31162         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31163         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31164         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31165         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31166         * lib/relocatable.c (compute_curr_prefix): Likewise.
31167
31168 2009-10-10  Jim Meyering  <meyering@redhat.com>
31169
31170         stat-time-tests: check for the usleep function
31171         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31172
31173 2009-10-10  Bruno Haible  <bruno@clisp.org>
31174
31175         * modules/xnanosleep: Put the Link section after the Include section.
31176
31177 2009-10-09  Eric Blake  <ebb9@byu.net>
31178
31179         dup2: work around FreeBSD 6.1 bug
31180         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31181         * doc/posix-functions/dup2.texi (dup2): Document it.
31182         Reported by Nelson H. F. Beebe and Jim Meyering.
31183
31184         test-stat-time: port to buggy NFS clients
31185         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31186         (test_ctime): Also skip test if mtime and ctime are skewed.
31187
31188         maint: prefer 'file system' over 'filesystem'
31189         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31190         * doc/posix-functions/lstat.texi (lstat): Likewise.
31191         * lib/file-has-acl.c (file_has_acl): Likewise.
31192         * lib/fwriteerror.c [TEST]: Likewise.
31193         * tests/test-areadlink.h (test_areadlink): Likewise.
31194         * tests/test-areadlinkat-with-size.c (main): Likewise.
31195         * tests/test-areadlinkat.c (main): Likewise.
31196         * tests/test-canonicalize-lgpl.c (main): Likewise.
31197         * tests/test-canonicalize.c (main): Likewise.
31198         * tests/test-fstatat.c (main): Likewise.
31199         * tests/test-linkat.c (main): Likewise.
31200         * tests/test-lstat.h (test_lstat_func): Likewise.
31201         * tests/test-mkdir.h (test_mkdir): Likewise.
31202         * tests/test-readlink.h (test_readlink): Likewise.
31203         * tests/test-remove.c (main): Likewise.
31204         * tests/test-rename.h (test_rename): Likewise.
31205         * tests/test-renameat.c (main): Likewise.
31206         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31207         * tests/test-symlink.h (test_symlink): Likewise.
31208         * tests/test-symlinkat.c (main): Likewise.
31209         * tests/test-unlink.h (test_unlink_func): Likewise.
31210         * tests/test-unlinkat.c (main): Likewise.
31211
31212         maint: make realtime library usage explicit
31213         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31214         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31215         * modules/settime (Link): Likewise.
31216         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31217
31218         test-stat-time: speed up execution
31219         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31220         warning on mingw.
31221         (nap): New helper function.
31222         (prepare_test): Use it to reduce sleep time.
31223         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31224         execution.
31225         * modules/stat-time-tests (configure.ac): Check for usleep.
31226
31227 2009-10-09  Jim Meyering  <meyering@redhat.com>
31228
31229         selinux-h: always use getfilecon wrappers
31230         * lib/getfilecon.c: New file.
31231         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31232         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31233         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31234         (fgetfilecon): Provide a stub.
31235         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31236         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31237         file unconditionally.
31238         When <selinux/selinux.h> is found, arrange to use wrappers.
31239         * modules/selinux-h (Files): Add getfilecon.c.
31240         (Makefile.am): Substitute include-next-related bits
31241         into the now-always-generated selinux/selinux.h file.
31242         * doc/glibc-functions/lgetfilecon.texi: New file.
31243         * doc/glibc-functions/fgetfilecon.texi: New file.
31244         * doc/glibc-functions/getfilecon.texi: New file.
31245         * doc/glibc-functions/getfilecon-desc.texi: New file.
31246         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31247         which to pull in the new files.
31248         * MODULES.html.sh (Misc): Add selinux-h.
31249
31250 2009-10-08  Jim Meyering  <meyering@redhat.com>
31251
31252         unistd: fix comment typo
31253         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31254
31255 2009-10-08  Eric Blake  <ebb9@byu.net>
31256
31257         areadlink: use SIZE_MAX consistently
31258         * modules/areadlink (Depends-on): Add stdint.
31259         * modules/areadlink-with-size (Depends-on): Likewise.
31260         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31261         gives NULL; drop sys/types, since unistd gives size_t; and add
31262         stdint for SIZE_MAX.
31263         (SIZE_MAX): Rely on headers.
31264         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31265         and add stdint.
31266         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31267         (SIZE_MAX): Likewise.
31268         (INITIAL_BUF_SIZE): Turn into enum.
31269         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31270
31271 2009-10-08  Jim Meyering  <meyering@redhat.com>
31272
31273         areadlinkat: avoid compilation failure
31274         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31275         Fix typo in comment.
31276
31277 2009-10-07  Eric Blake  <ebb9@byu.net>
31278
31279         areadlinkat-with-size: new module
31280         * modules/areadlinkat-with-size: New module.
31281         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31282         * lib/areadlink.h (areadlinkat): Declare it.
31283         * MODULES.html.sh (File system functions): Mention it.
31284         * modules/areadlinkat-with-size-tests: New test.
31285         * tests/test-areadlinkat-with-size.c: New file.
31286
31287         xreadlinkat: new module
31288         * modules/xreadlinkat: New module.
31289         * lib/xreadlinkat.c (xreadlinkat): New file.
31290         * lib/xreadlink.h (xreadlinkat): Declare it.
31291         * MODULES.html.sh (File system functions): Mention it.
31292
31293         areadlinkat: new module
31294         * lib/at-func.c (FUNC_FAIL): New define.
31295         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31296         * modules/areadlinkat: New module.
31297         * lib/linkat.c (areadlinkat): Move...
31298         * lib/areadlinkat.c (areadlinkat): ...to new file.
31299         * lib/areadlink.h (areadlinkat): Declare it.
31300         * modules/linkat (Depends-on): Add areadlinkat.
31301         * MODULES.html.sh (File system functions): Mention it.
31302         * modules/areadlinkat-tests: New test.
31303         * tests/test-areadlinkat.c: New file.
31304
31305         areadlink, areadlink-with-size: add tests
31306         * modules/areadlink-tests: New test.
31307         * modules/areadlink-with-size-tests: Likewise.
31308         * tests/test-areadlink.h: New file.
31309         * tests/test-areadlink.c: Likewise.
31310         * tests/test-areadlink-with-size.c: Likewise.
31311
31312         maint: minor cleanups
31313         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31314         _UNUSED_PARAMETER_ instead.
31315         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31316         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31317         * modules/linkat-tests (Files): Distribute test-link.h.
31318
31319         openat, utimens: whitespace cleanup
31320         * lib/openat.c: Prefer space throughout, rather than mix of 8
31321         spaces vs. tabs.
31322         * lib/at-func.c: Likewise.
31323         * lib/utimens.c: Likewise.
31324
31325         openat: avoid using wrong fd
31326         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31327         working directory chooses same fd.
31328         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31329
31330         mkdir, mkdirat: fix cygwin 1.5.x bug
31331         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31332         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31333         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31334         bug.
31335         (gl_PREREQ_MKDIR): Delete unused macro.
31336         * modules/mkdir (Files): Track file rename.
31337         (configure.ac): Update macro name.
31338         * modules/openat (Depends-on): Add mkdir.
31339         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31340
31341         mkdir, mkdirat: add tests
31342         * modules/mkdir-tests: New test.
31343         * tests/test-mkdir.h: New file.
31344         * tests/test-mkdir.c: Likewise.
31345         * tests/test-mkdirat.c: Likewise.
31346         * modules/openat-tests (Files): Add new files.
31347         (Makefile.am): Run new test.
31348
31349 2009-10-06  Eric Blake  <ebb9@byu.net>
31350
31351         doc: tweak *at function documentation
31352         * doc/posix-functions/faccessat.texi (faccessat): Mention
31353         known issue with replacement.
31354         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31355         * doc/posix-functions/linkat.texi (linkat): Likewise.
31356         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31357         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31358         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31359         * doc/posix-functions/renameat.texi (renameat): Likewise.
31360         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31361
31362         openat: fix GNU/Hurd bug in unlinkat
31363         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31364         broken.
31365         * doc/posix-functions/unlink.texi (unlink): Document this.
31366         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31367
31368         fdopendir: fix GNU/Hurd bug
31369         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31370         allowing non-directory fds.
31371         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31372         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31373         * modules/dirent (Makefile.am): Substitute it.
31374         * lib/dirent.in.h (fdopendir): Declare replacement.
31375         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31376         * tests/test-fdopendir.c (main): Test something other than
31377         /dev/null, since on Hurd that behaves like a directory.
31378
31379         test-symlink: port to GNU/Hurd
31380         * tests/test-symlink.h (test_symlink): Relax expected errno.
31381
31382         doc: tweak more cygwin information
31383         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31384         now compatible with glibc.
31385         * doc/posix-functions/getopt.texi (getopt): Likewise.
31386
31387         getopt-gnu: add another test
31388         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31389         guarantee behavior relied on by m4.
31390         * tests/test-getopt.c (main): Use it.
31391         * modules/getopt-posix-tests (Depends-on): Add setenv.
31392         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31393
31394         getopt: fix compilation on darwin
31395         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31396         include.
31397         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31398         Reported by Ludovic Courtès.
31399
31400 2009-10-06  Bruno Haible  <bruno@clisp.org>
31401
31402         * modules/size_max (Description): Discourage its use.
31403         Reported by Simon Josefsson.
31404
31405 2009-10-06  Jim Meyering  <meyering@redhat.com>
31406
31407         linkat: avoid compilation failure
31408         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31409
31410 2009-10-05  Eric Blake  <ebb9@byu.net>
31411
31412         linkat: support Linux 2.6.17
31413         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31414         linkat on Linux, but allow cache variable override.
31415         * lib/linkat.c (rpl_linkat): Define override.
31416         * modules/linkat (Depends-on): Add symlinkat.
31417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31418         * modules/unistd (Makefile.am): Substitute it.
31419         * lib/unistd.in.h (linkat): Declare replacement.
31420         Reported by Pádraig Brady.
31421
31422         quotearg: port test to systems with C.UTF-8 locale
31423         * tests/test-quotearg.c (struct result_strings): Add another
31424         member, differentiating between C.ASCII and C.UTF-8 handling.
31425         (compare_strings): Add parameter.
31426         (main): Adjust all callers.
31427
31428         getopt: avoid clash with FreeBSD _getopt_internal
31429         * lib/getopt.in.h (_getopt_internal): Override the name.
31430         * lib/getopt_int.h (includes): Pick up any overrides.
31431         Reported by Reuben Thomas.
31432
31433         hash: allow C89 compilation
31434         * lib/hash.c (check_tuning): Move declaration before statement.
31435         Reported by Reuben Thomas.
31436
31437 2009-10-05  Karl Berry  <karl@gnu.org>
31438
31439         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31440
31441 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31442             Bruno Haible  <bruno@clisp.org>
31443
31444         * lib/uname.c (uname): Use a table-driven algorithm to compute
31445         Windows NT versions.
31446
31447 2009-10-04  Bruno Haible  <bruno@clisp.org>
31448
31449         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31450         program_invocation_short_name.
31451         * modules/progname (configure.ac): Test for presence of
31452         program_invocation_short_name.
31453         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31454
31455 2009-10-04  Bruno Haible  <bruno@clisp.org>
31456
31457         * lib/progname.c (set_program_name): Fix comment.
31458         Reported by Jim Meyering.
31459
31460 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31461             Bruno Haible  <bruno@clisp.org>
31462
31463         * lib/uname.c: Include <string.h>.
31464         (uname): Do only one call to GetVersionEx in the common case.
31465
31466 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31467             Bruno Haible  <bruno@clisp.org>
31468
31469         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31470         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31471         (uname): Add support for Windows CE and various non-x86 CPU types.
31472
31473 2009-10-03  Bruno Haible  <bruno@clisp.org>
31474
31475         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31476         invocation to tests/configure.ac.
31477         Reported by Ian Beckwith <ianb@erislabs.net>.
31478
31479 2009-10-02  Eric Blake  <ebb9@byu.net>
31480
31481         fchdir: avoid compiler warning
31482         * lib/fchdir.c (canonicalize_file_name)
31483         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31484
31485         test-open: support mingw errno values
31486         * tests/test-open.h (test_open): Relax test.
31487         * tests/test-fopen.h (test_fopen): Likewise.
31488         * tests/test-openat-safer.c (main): Likewise.
31489
31490         open: fix opening directory on mingw
31491         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31492
31493         test-open: on GNU/Hurd, /dev/null is a directory
31494         * tests/test-fopen.h (main): Rename...
31495         (test_fopen): ...to this.  Use a guaranteed non-directory when
31496         confirming open behavior on trailing slash.
31497         * tests/test-openat-safer.c (main): Likewise.
31498         * tests/test-open.h (main): Likewise....
31499         (test_open): ...to this.
31500         * tests/test-fopen.c (main): Adjust caller.
31501         * tests/test-fopen-safer.c (main): Likewise.
31502         * tests/test-open.c (main): Likewise.
31503         * tests/test-fcntl-safer.c (main): Likewise.
31504         Reported by Samuel Thibault.
31505
31506         rename, fchdir: don't ignore chdir failure
31507         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31508         * lib/rename.c (rpl_rename) [W32]: Likewise.
31509         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31510         an empty destination directory if source cannot be renamed,
31511         although there is still possibility for failure.
31512         * doc/posix-functions/rename.texi (rename): Document the race.
31513         Reported by Jim Meyering.
31514
31515         maint: cleanup whitespace in recent commits
31516         * lib/rename.c (rpl_rename): Remove tabs.
31517         * tests/test-link.h (test_link): Likewise.
31518         * lib/fchdir.c (get_name): Likewise.
31519         Reported by Jim Meyering.
31520
31521 2009-10-02  Ben Pfaff  <blp@gnu.org>
31522
31523         relocatable-prog-wrapper: Add missing dependency on
31524         double-slash-root.
31525         * modules/relocatable-prog-wrapper: Add dependency.
31526         Reported by Ian Beckwith <ianb@erislabs.net>.
31527
31528 2009-10-02  Eric Blake  <ebb9@byu.net>
31529
31530         renameat: fix Solaris bugs
31531         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31532         needed fixing.
31533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31534         * modules/stdio (Makefile.am): Substitute it.
31535         * lib/stdio.in.h (renameat): Declare replacement.
31536         * lib/renameat.c (rpl_renameat): Implement fix.
31537
31538         renameat: new module
31539         * modules/renameat: New file.
31540         * lib/renameat.c (renameat): Likewise.
31541         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31543         * modules/stdio (Makefile.am): Substitute them.
31544         * lib/stdio.in.h (renameat): Declare it.
31545         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31546         * doc/posix-functions/renameat.texi (renameat): Likewise.
31547         * modules/renameat-tests: New test.
31548         * tests/test-renameat.c: Likewise.
31549
31550         rename: fix mingw bugs
31551         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31552         directory overwrite bugs.
31553
31554         rename: fix another cygwin 1.5 bug
31555         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31556         checks.
31557         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31558         unnecessary cygwin workarounds.  Also work around bug with moving
31559         full directory onto an empty one.
31560         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31561
31562         rename-dest-slash: merge into rename module
31563         * modules/rename-dest-slash (Status): Mark obsolete.
31564         (Depends-on): Add rename.
31565         (Files): Let rename do it all.
31566         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31567         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31568         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31569         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31570         * lib/rename.c (rpl_rename): Update comments.
31571
31572         rename: fix cygwin 1.5.x bugs
31573         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31574         * lib/rename.c (rpl_rename): Work around them.
31575         * modules/rename (Depends-on): Add same-inode.
31576
31577         rename: fix Solaris 10 bug
31578         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31579         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31580         was the only bug.
31581
31582         rename: fix Solaris 9 bug
31583         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31584         on non-directory.  Avoid calling exit.
31585         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31586         strdup.
31587         * modules/rename-tests (Depends-on): Drop lstat.
31588         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31589         (gl_PREREQ_RENAME): Delete unused macro.
31590
31591         rename-dest-slash: fix NetBSD bug
31592         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31593         links.
31594         * modules/rename-dest-slash (Depends-on): Add same-inode.
31595
31596         rename-tests: new test, exposes several platform bugs
31597         * modules/rename-tests: New file.
31598         * tests/test-rename.h: Likewise.
31599         * tests/test-rename.c: Likewise.
31600         * doc/posix-functions/rename.texi (rename): Improve documentation,
31601         including bugs that will eventually be fixed in gnulib.
31602
31603 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31604
31605         * lib/uname.c: Include <stdlib.h>
31606         (uname): Assume version info is available.
31607
31608 2009-10-02  Jim Meyering  <meyering@redhat.com>
31609
31610         gnu-web-doc-update: correct --help output
31611         * build-aux/gnu-web-doc-update: Make --help output relevant.
31612
31613         gnu-web-doc-update: add standard options
31614         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31615
31616         gnu-web-doc-update: New module.
31617         Use this script to automatically update the on-line web documentation
31618         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31619         * modules/gnu-web-doc-update: New file, from coreutils.
31620         * build-aux/gnu-web-doc-update: New script.
31621
31622 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31623
31624         link: LoadLibrary is not needed.
31625         * lib/link.c: Use GetModuleHandle.
31626
31627 2009-10-01  Eric Blake  <ebb9@byu.net>
31628
31629         getopt: bump serial number
31630         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31631         change.
31632
31633         tests: tighten link, rmdir, and remove tests
31634         * tests/test-link.h (includes): No need to use <config.h> here.
31635         Clean up if directory hard link was created, otherwise test for
31636         trailing '.'.
31637         * tests/test-linkat.c (main): Simplify.
31638         * tests/test-remove.c (main): Enhance test for trailing '.'.
31639         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31640
31641 2009-10-01  Jim Meyering  <meyering@redhat.com>
31642
31643         maint.mk: requiring "make major" was annoying, for a "minor" release.
31644         What is intended is "stable", to contrast with alpha and beta,
31645         so require "make stable", not "make major".
31646         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31647         (get_tool_versions): Likewise.
31648         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31649
31650 2009-09-30  Ben Pfaff  <blp@gnu.org>
31651
31652         Fix broken build of replacement for Windows tmpfile().
31653         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31654         flags argument added along with the 'mkostemp' module.
31655
31656 2009-09-28  Bruno Haible  <bruno@clisp.org>
31657
31658         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31659         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31660         to 'remove_elt'.
31661         (gl_list_remove): Update.
31662         * lib/gl_list.c (gl_list_remove): Update.
31663         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31664         to 'remove_elt'.
31665         (gl_oset_remove): Update.
31666         * lib/gl_list.c (gl_oset_remove): Update.
31667         Reported by Eric Blake.
31668
31669 2009-09-28  Eric Blake  <ebb9@byu.net>
31670
31671         doc: mention yet more cygwin 1.7 status
31672         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31673         cygwin.
31674         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31675         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31676
31677         argp: fix test failure
31678         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31679         that are not upper-case.  Pass correct range to tolower.
31680
31681 2009-09-27  Jim Meyering  <meyering@redhat.com>
31682
31683         test-yesno: work around sparc-dash here-document infelicity
31684         Without this change, the literal \177 byte in a here document
31685         would make dash 0.5.5.1-3 access uninitialized memory.
31686         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31687         Instead, use a marker, "@", and filter through tr to create the desired
31688         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31689
31690 2009-09-27  Bruno Haible  <bruno@clisp.org>
31691
31692         Disable untested support for new flavours of ACLs on AIX.
31693         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31694         progress.
31695         * lib/set-mode-acl.c (qset_acl): Likewise.
31696
31697 2008-12-07  Bruno Haible  <bruno@clisp.org>
31698
31699         Add support for new flavours of ACLs on AIX. (Untested.)
31700         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31701         (file_has_acl): Add support for newer AIX.
31702         * lib/set-mode-acl.c (qset_acl): Likewise.
31703         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31704         Rainer Tammer <tammer@tammer.net>.
31705
31706 2009-09-26  Eric Blake  <ebb9@byu.net>
31707
31708         argp: fix compilation of getopt
31709         * lib/getopt.in.h (includes): Use different guard than glibc.
31710         Reported by Sergey Poznyakoff.
31711
31712         doc: mention more cygwin 1.7 status
31713         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31714         bug.
31715         * doc/posix-functions/execl.texi (execl): Likewise.
31716         * doc/posix-functions/execle.texi (execle): Likewise.
31717         * doc/posix-functions/execlp.texi (execlp): Likewise.
31718         * doc/posix-functions/execv.texi (execv): Likewise.
31719         * doc/posix-functions/execve.texi (execve): Likewise.
31720         * doc/posix-functions/execvp.texi (execvp): Likewise.
31721         * doc/glibc-functions/canonicalize_file_name.texi
31722         (canonicalize_file_name): Cygwin 1.7 now provides this.
31723         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31724         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31725         on AT_SYMLINK_NOFOLLOW.
31726
31727 2009-09-24  Eric Blake  <ebb9@byu.net>
31728
31729         test-linkat: make test more robust
31730         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31731
31732         getopt: fix inclusion guards for cygwin
31733         * modules/getopt-posix (Depends-on): Add include-next.
31734         (Makefile.am): Substitute more items in replacement header.
31735         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31736         <getopt.h>.
31737         * lib/getopt.in.h (includes): Use split inclusion guard, and
31738         prefer <getopt.h> over include <unistd.h> when one is present.
31739         (option): Also override name of 'struct option'.
31740
31741         same-inode: revert prior change; it is not yet ready
31742         * NEWS: Undo mention of this change.
31743         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31744         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31745         * lib/cycle-check.c (cycle_check): Likewise.
31746         * lib/same.c (same_name): Likewise.
31747         * lib/at-func2.c (at_func2): Likewise.
31748
31749 2009-09-23  Eric Blake  <ebb9@byu.net>
31750
31751         linkat: new module
31752         * modules/linkat: New file.
31753         * lib/at-func2.c (at_func2): Likewise.
31754         * lib/linkat.c (linkat): Likewise.
31755         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31756         * lib/openat-priv.h (at_func2): Add declaration.
31757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31758         * modules/unistd (Makefile.am): Substitute them.
31759         * lib/unistd.in.h (linkat): Declare it.
31760         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31761         * doc/posix-functions/linkat.texi (linkat): Likewise.
31762         * doc/posix-functions/link.texi (link): Tweak wording.
31763         * tests/test-link.c (main): Move guts...
31764         * tests/test-link.h (test_link): ...into new file.
31765         * modules/linkat-tests: New test.
31766         * tests/test-linkat.c: Likewise.
31767         * modules/link-tests (Files): Ship new file.
31768         (Depends-on): Add stdbool.
31769
31770         dirname: add library-safe mdir_name
31771         * lib/dirname.h (mdir_name): New prototype.
31772         * lib/dirname.c (dir_name): Move guts...
31773         (mdir_name): ...to new function that avoids xalloc_die.
31774
31775         fchdir: another mingw fix
31776         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31777         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31778         on mingw (where it has not yet been ported), and make it optional
31779         elsewhere.
31780         (_gl_register_fd): Use it.
31781
31782         same-inode: make SAME_INODE tri-state, to port to mingw
31783         * NEWS: Mention this change.
31784         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31785         st_ino always being 0.
31786         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31787         * lib/cycle-check.c (cycle_check): Likewise.
31788         * lib/same.c (same_name): Likewise.
31789
31790         lstat: avoid mingw compilation error
31791         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31792         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31793         lstat ourselves.
31794         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31795         was adequate.
31796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31797         the checks for lstat.
31798         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31799
31800         link: fix test failure on Solaris 9
31801         * lib/link.c (rpl_link): Don't assume link will catch bogus
31802         trailing slash on source.
31803
31804         test-symlinkat: enhance test
31805         * tests/test-readlink.c (main): Move guts...
31806         * tests/test-readlink.h (test_readlink): ...into new file.
31807         * tests/test-symlink.c (main): Move guts...
31808         * tests/test-symlink.h (test_symlink): ...into new file.
31809         * tests/test-symlinkat.c (main): Use new files for further
31810         coverage.
31811         (do_symlink, do_readlink): New helper functions.
31812         * modules/symlink-tests (Files): Ship new file.
31813         (Depends-on): Add stdbool.
31814         * modules/readlink-tests (Files): Ship new file.
31815         (Depends-on): Add stdbool.
31816         * modules/symlinkat-tests (Files): Use new files.
31817
31818 2009-09-23  Eric Blake  <ebb9@byu.net>
31819
31820         readlink: document portability issue with symlink length
31821         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31822         systems have bogus st_size on symlinks, and mention the
31823         areadlink-with-size module.
31824         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31825         * doc/posix-functions/readlink.texi (readlink): Mention the
31826         areadlink module, and ERANGE failure.
31827         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31828         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31829
31830         readlink: fix Solaris 9 bug with trailing slash
31831         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31832         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31833         * doc/posix-functions/readlink.texi (readlink): Document this.
31834         * modules/readlink-tests: New test.
31835         * tests/test-readlink.c: Likewise.
31836
31837         readlink: fix cygwin 1.5.x bug with return type
31838         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31839         * lib/unistd.in.h (readlink): Use ssize_t.
31840         * lib/readlink.c (readlink): Likewise.
31841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31842         * modules/unistd (Makefile.am): Substitute it.
31843         * lib/unistd.in.h (readlink): Declare replacement.
31844         * doc/posix-functions/readlink.texi (readlink): Document this.
31845
31846         symlink: use throughout gnulib
31847         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31848         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31849         symlink is not used.
31850         * modules/symlinkat (Depends-on): Add symlink.
31851         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31852         * modules/canonicalize-tests (Depends-on): Likewise.
31853         * modules/lstat-tests (Depends-on): Likewise.
31854         * modules/openat-tests (Depends-on): Likewise.
31855         * modules/remove-tests (Depends-on): Likewise.
31856         * modules/rmdir-tests (Depends-on): Likewise.
31857         * modules/unlink-tests (Depends-on): Likewise.
31858         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31859         * tests/test-canonicalize.c (symlink): Likewise.
31860         * tests/test-fstatat.c (symlink): Likewise.
31861         * tests/test-lstat.c (symlink): Likewise.
31862         * tests/test-remove.c (symlink): Likewise.
31863         * tests/test-rmdir.c (symlink): Likewise.
31864         * tests/test-unlink.c (symlink): Likewise.
31865         * tests/test-unlinkat.c (symlink): Likewise.
31866
31867         symlink: new module, for Solaris 9 bug
31868         * modules/symlink: New file.
31869         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31870         * lib/symlink.c: Likewise.
31871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31872         * modules/unistd (Makefile.am): Substitute them.
31873         * lib/unistd.in.h (symlink): Declare replacement.
31874         * MODULES.html.sh (File system functions): Mention it.
31875         * doc/posix-functions/symlink.texi (symlink): Likewise.
31876         * modules/symlink-tests: New test.
31877         * tests/test-symlink.c: Likewise.
31878
31879 2009-09-23  Bruno Haible  <bruno@clisp.org>
31880
31881         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31882         when needed.
31883         Test case: gnulib-tool --import --with-tests atexit inttypes.
31884         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31885
31886 2009-09-23  Bruno Haible  <bruno@clisp.org>
31887
31888         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31889         subcommand, not in a subshell.
31890
31891 2009-09-22  Eric Blake  <ebb9@byu.net>
31892
31893         unistd: sort replacement declarations
31894         * lib/unistd.in.h: Sort declarations.
31895
31896         open, openat: minor optimization
31897         * lib/open.c (open): If open succeeded, len is non-zero.
31898         * lib/openat.c (rpl_openat): Likewise.
31899
31900         link-follow: ensure correct result
31901         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31902         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31903         distinguish between possible failures.
31904
31905 2009-09-21  Eric Blake  <ebb9@byu.net>
31906
31907         fts: avoid compiler warning
31908         * lib/fts.c (dirent_inode_sort_may_be_useful)
31909         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31910
31911 2009-09-19  Bruno Haible  <bruno@clisp.org>
31912
31913         * lib/progreloc.c (canonicalize_file_name): New declaration.
31914
31915 2009-09-19  Eric Blake  <ebb9@byu.net>
31916
31917         link: fix quoting
31918         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31919
31920         openat: fix openat bugs on Solaris 9
31921         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31922         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31923         * modules/openat (Depends-on): Add open.
31924         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31925         * modules/fcntl-h (Makefile.am): Substitute it.
31926         * lib/fcntl.in.h (openat): Declare replacement.
31927         * doc/posix-functions/openat.texi (openat): Document this.
31928
31929         openat: move fstatat and unlinkat into correct files
31930         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31931         compiled.
31932         * lib/openat.c (fstatat, unlinkat): Move...
31933         * lib/fstatat.c (fstatat): ...into correct files.
31934         * lib/unlinkat.c (unlinkat): Likewise.
31935
31936         openat: fix unlinkat bugs on Solaris 9
31937         * lib/unlinkat.c (unlinkat): New file.
31938         * modules/openat (Depends-on): Add unlink.
31939         (Files): Distribute it.
31940         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31941         trailing slash behavior is broken.
31942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31943         * modules/unistd (Makefile.am): Substitute it.
31944         * lib/unistd.in.h (unlinkat): Declare replacement.
31945         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31946
31947         openat: fix fstatat bugs on Solaris 9
31948         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31949         stat.
31950         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31951
31952         test-unlinkat: enhance test, to expose Solaris 9 bug
31953         * tests/test-unlink.c (main): Factor guts...
31954         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31955         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31956         * tests/test-rmdir.c (main): Adjust caller.
31957         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31958         (unlinker): New helper function.
31959         (rmdirat): Enhance check.
31960         * modules/rmdir-tests (Depends-on): Add stdbool.
31961         * modules/unlink-tests (Depends-on): Likewise.
31962         (Files): Add test-unlink.h.
31963         * modules/openat-tests (Files): Likewise.
31964         (Depends-on): Add unlinkdir.
31965
31966         test-fstatat: new test, to expose Solaris 9 bugs
31967         * tests/test-stat.c (main): Factor guts...
31968         * tests/test-stat.h (test_stat_func): ...into new file.
31969         * tests/test-lstat.c (main): Factor guts...
31970         * tests/test-lstat.h (test_lstat_func): ...into new file.
31971         * tests/test-fstatat.c: New file.
31972         * modules/stat-tests (Files): Add test-stat.h.
31973         * modules/lstat-tests (Files): Add test-lstat.h.
31974         (Depends-on): Add stdbool.
31975         * modules/openat-tests (Depends-on): Add pathmax.
31976         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31977         (Makefile.am): Run new test.
31978
31979         remove: new module, for mingw and Solaris 9 bugs
31980         * modules/remove: New file.
31981         * lib/remove.c: Likewise.
31982         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31984         * modules/stdio (Makefile.am): Use them.
31985         * lib/stdio.in.h (remove): Declare replacement.
31986         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31987         * doc/posix-functions/remove.texi (remove): Likewise.
31988         * modules/remove-tests: New test.
31989         * tests/test-remove.c: Likewise.
31990
31991         unlink: new module, for Solaris 9 bug
31992         * modules/unlink: New file.
31993         * lib/unlink.c: Likewise.
31994         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31996         * modules/unistd (Makefile.am): Use them.
31997         * lib/unistd.in.h (stat): Declare replacement.
31998         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31999         * doc/posix-functions/unlink.texi (unlink): Likewise.
32000         * modules/unlink-tests: New test.
32001         * tests/test-unlink.c: Likewise.
32002
32003         lstat: fix Solaris 9 bug
32004         * lib/lstat.c (lstat): Also check for trailing slash on
32005         non-symlink, non-directories.  Use stat module to simplify logic.
32006         * doc/posix-functions/lstat.texi (lstat): Document it.
32007         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32008         (configure.ac): Check for symlink.
32009         * tests/test-lstat.c (main): Add more tests.
32010
32011         stat: add as dependency to other modules
32012         * modules/chown (Depends-on): Add stat.
32013         * modules/euidaccess (Depends-on): Likewise.
32014         * modules/fchdir (Depends-on): Likewise.
32015         * modules/isdir (Depends-on): Likewise.
32016         * modules/link (Depends-on): Likewise.
32017         * modules/lstat (Depends-on): Likewise.
32018         * modules/mkdir-p (Depends-on): Likewise.
32019         * modules/modechange (Depends-on): Likewise.
32020         * modules/open (Depends-on): Likewise.
32021         * modules/readlink (Depends-on): Likewise.
32022         * modules/same (Depends-on): Likewise.
32023
32024         stat: fix Solaris 9 bug
32025         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32026         slash.
32027         * lib/stat.c (rpl_stat): Work around it.
32028         * doc/posix-functions/stat.texi (stat): Update documentation.
32029
32030         stat: new module, for mingw bug
32031         * modules/stat: New file.
32032         * lib/stat.c: Likewise.
32033         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32035         * modules/sys_stat (Makefile.am): Use them.
32036         * lib/sys_stat.in.h (stat): Declare replacement.
32037         * lib/openat.c (fstatat): Deal with lstat and stat being function
32038         macros.
32039         * modules/openat (Depends-on): Add inline.
32040         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32041         * doc/posix-functions/stat.texi (stat): Likewise.
32042         * modules/stat-tests: New test.
32043         * tests/test-stat.c: Likewise.
32044
32045 2009-09-19  Jim Meyering  <meyering@redhat.com>
32046
32047         syntax-check: detect unnecessary inclusion of canonicalize.h
32048         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32049
32050 2009-09-19  Eric Blake  <ebb9@byu.net>
32051
32052         canonicalize-lgpl: adjust clients to use correct header
32053         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32054         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32055         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32056         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32057         * lib/progreloc.c (includes): Likewise.
32058
32059 2009-09-19  Jim Meyering  <meyering@redhat.com>
32060
32061         test-posixtm.c: correct a comment
32062         * tests/test-posixtm.c: Correct first-line comment.
32063         Spotted by Eric Blake.
32064
32065 2009-09-16  Jim Meyering  <meyering@redhat.com>
32066
32067         posixtm-tests: make T const-correct; add a test case
32068         * tests/test-posixtm.c (T): Declare const.
32069         Add a test for -(2^31+1).
32070         Remove useless can-succeed-only-in-2002 test.
32071
32072         posixtm-tests: adjust the sole failing test
32073         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32074         expected output matches what mktime now produces.  Cross-checked via
32075         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32076
32077         posixtm: move #ifdef'd tests into a new module
32078         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32079         * tests/test-posixtm.c: ... this new file.
32080         * modules/posixtm-tests: New module.
32081
32082 2009-09-19  Eric Blake  <ebb9@byu.net>
32083
32084         openat: simplify use of at-func.c
32085         * lib/at-func.c (includes): Include prerequisites here, to
32086         simplify requirements on client files.
32087         * lib/openat-priv.h: Add double-inclusion guard.
32088         * lib/faccessat.c (includes): Simplify.
32089         * lib/fchmodat.c (includes): Likewise.
32090         * lib/fchownat.c (includes): Likewise.
32091         * lib/mkdirat.c (includes): Likewise.
32092         * lib/mkfifoat.c (includes): Likewise.
32093         * lib/symlinkat.c (includes): Likewise.
32094
32095         openat: allow return of fd 0
32096         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32097         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32098         unistd-safer.
32099         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32100         <fcntl.h>; this module does not leak fds.
32101         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32102         must be allowed to return 0, leaving openat_safer to add the
32103         safety.
32104         (openat_permissive): Avoid writing to just-opened fd 2 if
32105         restoring the current directory fails.
32106         * lib/openat-die.c (openat_restore_fail): Add comment.
32107         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32108         (save_cwd): Guarantee safe fd, but without use of open_safer.
32109         * tests/test-openat.c: New test.
32110         * modules/openat-tests (Files, Makefile.am): Distribute and build
32111         new file.
32112
32113         relocatable-prog-wrapper: fix build
32114         * modules/relocatable-prog-wrapper (Files): Update name of
32115         canonicalize m4 file, broken on 2009-09-17.
32116         Reported by emad hajjar <aleppos@hotmail.com>.
32117
32118 2009-09-19  Bruno Haible  <bruno@clisp.org>
32119
32120         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32121         * lib/safe-alloc.c: Likewise.
32122         Reported by Ian Beckwith <ianb@erislabs.net>.
32123
32124 2009-09-18  Bruno Haible  <bruno@clisp.org>
32125
32126         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32127         Reported by <erobles@sensacd.com.mx>.
32128
32129 2009-09-17  Eric Blake  <ebb9@byu.net>
32130
32131         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32132         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32133         slashes when checking if last component is missing.
32134         * tests/test-canonicalize.c (main): Test this.
32135
32136         canonicalize, canonicalize-lgpl: honor // if distinct from /
32137         * modules/canonicalize (Files): Add double-slash-root.m4.
32138         * modules/canonicalize-lgpl (Files): Likewise.
32139         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32140         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32141         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32142         fallback definition.
32143         (canonicalize_filename_mode): Use it to protect //.
32144         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32145         (__realpath): Likewise.
32146         * tests/test-canonicalize.c (main): Test this.
32147         * tests/test-canonicalize-lgpl.c (main): Likewise.
32148         * modules/canonicalize-tests (Depends-on): Add same-inode.
32149         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32150
32151         canonicalize-lgpl: fix glibc bug with trailing slash
32152         * m4/canonicalize-lgpl.m4: Move contents...
32153         * m4/canonicalize.m4: ...here.
32154         (gl_CANONICALIZE_LGPL): Factor realpath check...
32155         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32156         glibc 2.3.5 bug, fixed 2005-04-27.
32157         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32158         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32159         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32160         * modules/canonicalize-lgpl (Files): Manage file rename.
32161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32162         * modules/stdlib (Makefile.am): Substitute witness.
32163         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32164         is needed.
32165         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32166         replacement is required.
32167         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32168         * doc/glibc-functions/canonicalize_file_name.texi
32169         (canonicalize_file_name): Document this.
32170         * doc/posix-functions/realpath.texi (realpath): Likewise.
32171
32172         canonicalize-lgpl: reject non-directory with trailing slash
32173         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32174         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32175         catches failures in glibc 2.3.5.
32176         * tests/test-canonicalize.c (main): Likewise.
32177
32178         canonicalize-lgpl: use native realpath if it works
32179         * lib/canonicalize-lgpl.c (realpath): Guard with
32180         FUNC_REALPATH_WORKS.
32181         * lib/stdlib.in.h (realpath): Make declaration optional based on
32182         HAVE_REALPATH.
32183         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32184         native realpath works.
32185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32186         * modules/stdlib (Makefile.am): Substitute witness.
32187
32188         canonicalize, canonicalize-lgpl: use <stdlib.h>
32189         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32190         (Include): Mention <stdlib.h>.
32191         (configure.ac): Mention functions we provide.
32192         * modules/canonicalize (configure.ac): Likewise.
32193         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32194         realpath if canonicalize_file_name is missing.
32195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32196         * modules/stdlib (Makefile.am): Substitute witnesses.
32197         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32198         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32199         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32200         * NEWS: Document this.
32201         * doc/glibc-functions/canonicalize_file_name.texi
32202         (canonicalize_file_name): Likewise.
32203         * doc/posix-functions/realpath.texi (realpath): Likewise.
32204         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32205
32206         test-canonicalize: consolidate into single C program
32207         * tests/test-canonicalize.sh: Delete; move setup into...
32208         * tests/test-canonicalize.c (main): ...the program, making it
32209         easier to run in debugger.  Add some tests.
32210         * modules/canonicalize-tests (Files): Remove unused file.
32211         (Depends-on): Add progname.
32212         (configure.ac, Makefile.am): Simplify.
32213
32214         test-canonicalize-lgpl: consolidate into single C program
32215         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32216         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32217         easier to run in debugger.  Add some tests.
32218         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32219         (configure.ac, Makefile.am): Simplify.
32220
32221         canonicalize: avoid resolvepath
32222         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32223         unnecessary checks.
32224         * lib/canonicalize.c (includes): Simplify.
32225         (canonicalize_file_name): Drop resolvepath implementation.
32226         * modules/canonicalize (Depends-on): Drop filenamecat.
32227
32228         canonicalize: don't lose errno
32229         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32230         over calls to free.
32231
32232         canonicalize: simplify errno handling
32233         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32234         assignment.
32235
32236         canonicalize, canonicalize-lgpl: update module dependencies
32237         * modules/canonicalize (Depends-on): Add extensions, lstat,
32238         pathmax, stdlib.
32239         (Files): Drop pathmax.h.
32240         (configure.ac): Adjust macro name.
32241         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32242         lstat, stdlib, sys_stat.
32243         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32244         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32245         extensions.
32246         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32247         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32248         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32249         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32250         declaration, if available.
32251         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32252         we can rely on the readlink module.
32253         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32254         (includes): Use <unistd.h> unconditionally.
32255
32256 2009-09-17  Eric Blake  <ebb9@byu.net>
32257
32258         maint: make Include sections of modules consistent
32259         * modules/alloca: Use only header name; no need to list #include.
32260         * modules/alloca-opt: Likewise.
32261         * modules/arpa_inet: Likewise.
32262         * modules/canon-host: Likewise.
32263         * modules/configmake: Likewise.
32264         * modules/dirent: Likewise.
32265         * modules/eealloc: Likewise.
32266         * modules/environ: Likewise.
32267         * modules/fchdir: Likewise.
32268         * modules/fcntl: Likewise.
32269         * modules/fcntl-h: Likewise.
32270         * modules/gethrxtime: Likewise.
32271         * modules/gettime: Likewise.
32272         * modules/ignore-value: Likewise.
32273         * modules/inet_ntop: Likewise.
32274         * modules/inet_pton: Likewise.
32275         * modules/inttypes: Likewise.
32276         * modules/isnand-nolibm: Likewise.
32277         * modules/isnanf-nolibm: Likewise.
32278         * modules/mbchar: Likewise.
32279         * modules/mbfile: Likewise.
32280         * modules/mbiter: Likewise.
32281         * modules/mbuiter: Likewise.
32282         * modules/netdb: Likewise.
32283         * modules/netinet_in: Likewise.
32284         * modules/nproc: Likewise.
32285         * modules/pagealign_alloc: Likewise.
32286         * modules/poll: Likewise.
32287         * modules/printf-frexp: Likewise.
32288         * modules/pthread: Likewise.
32289         * modules/putenv: Likewise.
32290         * modules/random_r: Likewise.
32291         * modules/relocatable-prog: Likewise.
32292         * modules/search: Likewise.
32293         * modules/select: Likewise.
32294         * modules/selinux-h: Likewise.
32295         * modules/settime: Likewise.
32296         * modules/signal: Likewise.
32297         * modules/size_max: Likewise.
32298         * modules/socklen: Likewise.
32299         * modules/ssize_t: Likewise.
32300         * modules/stdarg: Likewise.
32301         * modules/stdbool: Likewise.
32302         * modules/stddef: Likewise.
32303         * modules/stdint: Likewise.
32304         * modules/stdio: Likewise.
32305         * modules/stdlib: Likewise.
32306         * modules/string: Likewise.
32307         * modules/strings: Likewise.
32308         * modules/sys_file: Likewise.
32309         * modules/sys_ioctl: Likewise.
32310         * modules/sys_select: Likewise.
32311         * modules/sys_socket: Likewise.
32312         * modules/sys_stat: Likewise.
32313         * modules/sys_time: Likewise.
32314         * modules/sys_times: Likewise.
32315         * modules/sys_utsname: Likewise.
32316         * modules/sys_wait: Likewise.
32317         * modules/sysexits: Likewise.
32318         * modules/time: Likewise.
32319         * modules/times: Likewise.
32320         * modules/tmpfile: Likewise.
32321         * modules/trim: Likewise.
32322         * modules/unistd: Likewise.
32323         * modules/wchar: Likewise.
32324         * modules/wctype: Likewise.
32325
32326 2009-09-17  Bruno Haible  <bruno@clisp.org>
32327
32328         Make getdate.y compile on QNX and NetBSD 5 / i386.
32329         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32330         TIME_T_FITS_IN_LONG_INT.
32331         * lib/getdate.y (long_time_t): New type.
32332         (relative_time): Change type of 'seconds' field to long_time_t.
32333         (get_date): Update types of local variables. Check against overflow
32334         during conversion from long_time_t to time_t.
32335         Reported by Matt Kraai <kraai@ftbfs.org>
32336         and Hasso Tepper <hasso@netbsd.org>.
32337
32338 2009-09-17  Bruno Haible  <bruno@clisp.org>
32339
32340         * modules/COPYING: Update copyright years.
32341         * modules/README: Likeiwse.
32342         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32343         Reported by Ian Beckwith <ianb@erislabs.net>.
32344
32345 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32346
32347         * users.txt: Update references for gnuit package.
32348
32349 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32350
32351         * m4/getdelim.m4: Fix typo in copyright line.
32352
32353 2009-09-17  Bruno Haible  <bruno@clisp.org>
32354
32355         * lib/atoll.c: Use the standard header with GPL copyright.
32356         * lib/argz.in.h: Likewise.
32357         * lib/glob.c: Likewise.
32358         * lib/glob-libc.h: Likewise.
32359         * lib/random_r.c: Likewise.
32360         * lib/siglist.h: Likewise.
32361         * lib/strsignal.c: Likewise.
32362         Reported by Ian Beckwith <ianb@erislabs.net>.
32363
32364 2009-09-17  Eric Blake  <ebb9@byu.net>
32365
32366         rmdir: ensure correct dependency order
32367         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32368
32369 2009-09-17  Bruno Haible  <bruno@clisp.org>
32370
32371         Disable assertion that fails on NetBSD 5 / i386.
32372         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32373         Reported by Sam Steingold <sds@gnu.org>
32374         and Hasso Tepper <hasso@netbsd.org>.
32375
32376 2009-09-16  Eric Blake  <ebb9@byu.net>
32377
32378         unlinkdir: port to mingw
32379         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32380         on which no one can unlink a directory.
32381
32382         stdlib: sort witness names
32383         * modules/stdlib (Makefile.am): Sort replacements.
32384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32385         * lib/stdlib.in.h: Likewise.
32386
32387         parse-duration-tests: avoid link failure
32388         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32389         LIBINTL.
32390         Reported by Tom G. Christensen.
32391
32392         openat-tests: ensure unlinkat behaves like rmdir
32393         * tests/test-rmdir.c (main): Factor guts...
32394         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32395         * modules/rmdir-tests (Files): Ship new file.
32396         * modules/openat-tests: New test.
32397         * tests/test-unlinkat.c: Likewise.
32398
32399         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32400         * modules/rmdir-errno (Status, Notice): Now obsolete.
32401
32402         rmdir: work around cygwin 1.5.x and mingw bugs
32403         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32404         * lib/rmdir.c (rmdir): Work around it.
32405         * modules/rmdir (Status, Notice): No longer obsolete.
32406         (Files): Add dos.m4.
32407         (Depends-on): Add unistd.
32408         (configure.ac): Set witnesses.
32409         (License): Relax to LGPLv2+.
32410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32411         * modules/unistd (Makefile.am): Substitute witnesses.
32412         * lib/unistd.in.h (rmdir): Declare replacement.
32413         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32414         * modules/rmdir-tests: New tests.
32415         * tests/test-rmdir.c: Likewise.
32416
32417 2009-09-15  Eric Blake  <ebb9@byu.net>
32418
32419         fchdir: improve use of replacement functions
32420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32421         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32423         REPLACE_CLOSEDIR.
32424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32425         * modules/sys_stat (Makefile.am): Substitute correct witness.
32426         * modules/dirent (Makefile.am): Likewise.
32427         * modules/unistd (Makefile.am): Likewise.
32428         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32429         * lib/unistd.in.h (dup): Likewise.
32430         * lib/sys_stat.in.h (fstat): Likewise.
32431
32432         maint: ignore gnulib-tool temp files
32433         * .gitignore: Ignore files created during gnulib-tool --test.
32434
32435 2009-09-13  Jim Meyering  <meyering@redhat.com>
32436
32437         posixtm: don't reject a time that specify "60" as the number of seconds
32438         * lib/posixtm.c (posixtime): The code to reject invalid dates
32439         would also reject a time specified with the .60 suffix.
32440         But POSIX allows that, in order to accommodate leap seconds.
32441         So don't reject it.
32442         (main): Adjust tests accordingly.
32443         * modules/posixtm (Depends-on): Add stpcpy.
32444
32445 2009-09-11  Jim Meyering  <meyering@redhat.com>
32446
32447         announce-gen: include [$release_type] in emitted Subject:
32448         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32449         e.g., [stable] in the emitted Subject: line.
32450
32451 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32452
32453         Remove obsolete macros from several modules.
32454         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32455         obsolete Autoconf macros with their modern counterparts.
32456         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32457         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32459         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32460         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32461         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32462         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32463         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32464         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32465         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32466         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32467         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32468         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32469         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32470         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32471         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32472         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32473         * m4/time_r.m4 (gl_TIME_R): Likewise.
32474         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32475         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32476         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32477
32478         Fix copyright header in build-aux scripts.
32479         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32480         recommendation.
32481         * build-aux/ncftpput-ftp: Likewise.
32482         * build-aux/update-copyright: Likewise.
32483
32484 2009-09-09  Eric Blake  <ebb9@byu.net>
32485
32486         test-link: allow Linux choice of errno
32487         * tests/test-link.c (main): Relax test for alternate error.
32488
32489         strndup: fix improper m4 caching
32490         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32491         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32492         (gl_PREREQ_STRNDUP): Delete.
32493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32494         * modules/string (Makefile.am): Substitute it.
32495         * lib/string.in.h (strndup): Modernize prototype.
32496
32497         getcwd: port to mingw
32498         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32499         different from the POSIX assumptions made throughout the getcwd
32500         module; fortunately, the mingw getcwd does not need replacement.
32501         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32502         * modules/getcwd-tests: New test.
32503         * tests/test-getcwd.c: Likewise.
32504
32505         link: fix platform bugs
32506         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32507         * lib/link.c (link): Work around them.  Fix related mingw bug.
32508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32509         * modules/unistd (Makefile.am): Substitute it.
32510         * lib/unistd.in.h (link): Declare replacement.
32511         * doc/posix-functions/link.texi (link): Document this.
32512         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32513
32514         test-link: consolidate into single C program, test more cases
32515         * tests/test-link.sh: Delete.
32516         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32517         at least Cygwin and Solaris.
32518         * modules/link-tests (Files): Remove unused file.
32519         (Depends-on): Add errno, sys_stat.
32520         (Makefile.am): Simplify.
32521
32522 2009-09-08  Bruno Haible  <bruno@clisp.org>
32523
32524         Work around towlower, towupper bug on mingw.
32525         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32526         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32527         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32528         * doc/posix-functions/towupper.texi: Likewise.
32529         Reported by Eric Blake.
32530
32531 2009-09-08  Jim Meyering  <meyering@redhat.com>
32532
32533         build: don't try to run autoheader if we don't use it
32534         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32535         is not used in configure.ac.
32536
32537 2009-09-08  Eric Blake  <ebb9@byu.net>
32538
32539         euidaccess: fix compilation error
32540         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32541
32542         rawmemchr: relax license
32543         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32544         okay.
32545         Reported by Jim Meyering.
32546
32547         mkfifoat: new module
32548         * modules/mkfifoat: New file.
32549         * lib/mkfifoat.c: Likewise.
32550         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32551         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32552         * modules/sys_stat (Makefile.am): Use them.
32553         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32554         * MODULES.html.sh (File system functions): Mention module.
32555         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32556         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32557         * modules/mkfifoat-tests: New test.
32558         * tests/test-mkfifoat.c: Likewise.
32559
32560         strchrnul: relax license
32561         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32562         okay.
32563         Reported by Jim Meyering.
32564
32565 2009-09-08  Eric Blake  <ebb9@byu.net>
32566
32567         fstatat: fix compilation on Solaris
32568         * lib/fstatat.c (includes): Add fcntl.h.
32569         Reported by Pádraig Brady.
32570
32571 2009-09-07  Eric Blake  <ebb9@byu.net>
32572
32573         rename: modernize replacement
32574         * modules/rename (Depends-on): Add stdio.
32575         (configure.ac): Declare witness.
32576         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32577         stdio take care of replacement.
32578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32579         * modules/stdio (Makefile.am): Substitute them.
32580         * lib/stdio.in.h (rename): Declare replacement.
32581         * lib/rename.c (includes): Allow cross-compilation to non-windows
32582         machines.
32583         * doc/posix-functions/rename.texi (rename): Improve
32584         documentation.
32585
32586         stdio: sort witness names
32587         * modules/stdio (Makefile.am): Sort replacements.
32588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32589         * lib/stdio.in.h: Likewise.
32590
32591         getcwd: minor cleanups
32592         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32593         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32594
32595         openat: provide more convenience names
32596         * modules/faccessat (configure.ac): Add C witness.
32597         * lib/unistd.in.h (readlinkat): Fix typo.
32598         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32599         convenience wrappers.
32600         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32601         wrappers in syntax checks.
32602
32603 2009-09-06  Eric Blake  <ebb9@byu.net>
32604
32605         doc: fix comments in recent patches
32606         * lib/faccessat.c: Mention correct function.
32607         * lib/fchmodat.c: Likewise.
32608         * lib/fchownat.c: Likewise.
32609         * lib/symlinkat.c: Likewise.
32610         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32611         constants.
32612
32613         faccessat, symlinkat: continue cleanup of previous patch
32614         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32615         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32616         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32618         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32619         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32620         set.
32621
32622 2009-09-06  Bruno Haible  <bruno@clisp.org>
32623
32624         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32625         (fstatat): Declare if GNULIB_FSTATAT is set.
32626         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32627         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32628         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32629         * modules/fcntl-h (Files): Remove m4/openat.m4.
32630         * modules/sys_stat (Files): Remove m4/openat.m4.
32631         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32632         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32633         * modules/unistd (Files): Remove m4/openat.m4.
32634         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32635         GNULIB_OPENAT.
32636         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32637         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32638         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32639         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32640         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32641         gl_OPENAT_DEFAULTS.
32642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32643         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32644         Don't require gl_OPENAT_DEFAULTS.
32645         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32646         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32647         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32648         (gl_OPENAT_DEFAULTS): Remove macro.
32649
32650 2009-09-06  Bruno Haible  <bruno@clisp.org>
32651
32652         * modules/openat (configure.ac): Remove unneeded witness.
32653
32654 2009-09-06  Bruno Haible  <bruno@clisp.org>
32655
32656         Set errno to ENOSYS when a function is entirely unsupported.
32657         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32658         EOPNOTSUPP.
32659         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32660         * modules/chown (Depends-on): Remove errno.
32661
32662 2009-09-06  Bruno Haible  <bruno@clisp.org>
32663
32664         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32665
32666 2009-09-06  Bruno Haible  <bruno@clisp.org>
32667
32668         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32669
32670 2009-09-06  Ben Pfaff  <blp@gnu.org>
32671             Bruno Haible  <bruno@clisp.org>
32672
32673         Work around a glibc bug in strtok_r.
32674         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32675         Undefine if UNDEFINE_STRTOK_R is set.
32676         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32678         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32679         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32680         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32681         UNDEFINE_STRTOK_R.
32682         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32683
32684 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32685
32686         exclude: minor fix
32687         * lib/exclude.c: Include wctype.h
32688
32689 2009-09-06  Akim Demaille  <demaille@gostai.com>
32690
32691         bootstrap: improve error message
32692         * build-aux/bootstrap (find_tool): Upon failure, report the list
32693         of candidates.
32694         Honor the initial value of the envvar.
32695
32696 2009-09-05  Eric Blake  <ebb9@byu.net>
32697
32698         symlinkat: new module
32699         * modules/symlinkat: New file.
32700         * lib/symlinkat.c: Likewise.
32701         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32703         * modules/unistd (Makefile.am): Use them.
32704         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32705         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32706         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32707         * MODULES.html.sh (File system functions): Mention module.
32708         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32709         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32710         * modules/symlinkat-tests: New test.
32711         * tests/test-symlinkat.c: Likewise.
32712
32713         test-openat-safer: add more checks
32714         * tests/test-openat-safer.c (main): Check more code paths.
32715
32716 2009-09-05  Jim Meyering  <meyering@redhat.com>
32717
32718         syntax-check: detect unnecessary inclusion of openat.h
32719         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32720
32721 2009-09-05  Bruno Haible  <bruno@clisp.org>
32722
32723         Support towlower, towupper.
32724         * doc/posix-functions/towlower.texi: Mention module wctype.
32725         * doc/posix-functions/towupper.texi: Likewise.
32726         * lib/wctype.in.h (towlower, towupper): New functions.
32727         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32728         (ASSERT): New macro.
32729         (e): New variable.
32730         (main): Test also towlower, towupper. Test WEOF argument.
32731         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32732
32733 2009-09-05  Bruno Haible  <bruno@clisp.org>
32734
32735         Fix conversion behaviour when the input is invalid.
32736         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32737         mark occurring in first pass of indirect conversion.
32738         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32739         input.
32740         Found by clang's static analyzer.
32741
32742 2009-09-05  Bruno Haible  <bruno@clisp.org>
32743
32744         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32745         where direct conversion is possible.
32746
32747 2009-09-04  Eric Blake  <ebb9@byu.net>
32748
32749         openat: fail with ENOENT on empty name
32750         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32751         buffer.
32752
32753         link-follow: fix logic bug in prior patch
32754         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32755         reversed sense of yes and no in prior patch.  Avoid confusing
32756         compilation failure with desired semantics.
32757
32758         link-follow: accomodate mingw and cross-compilation
32759         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32760         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32761         cross-compilation results to -1, to make linkat easier to
32762         implement when cross-compiling.  Trivially support mingw.
32763         * modules/link-follow (configure.ac): Call new name.
32764         * NEWS: Mention this.
32765
32766 2009-09-03  Eric Blake  <ebb9@byu.net>
32767
32768         faccessat: compile replacement
32769         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32770         needed.
32771
32772         fts: fix compilation error
32773         * lib/fts.c (includes): Re-add "openat.h", for
32774         openat_needs_fchdir.
32775
32776         faccessat: new module
32777         * modules/faccessat: New file.
32778         * lib/faccessat.c: Likewise.
32779         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32781         * modules/unistd (Makefile.am): Use it.
32782         * lib/unistd.in.h (faccessat): Declare it.
32783         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32784         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32785         * MODULES.html.sh (File system functions): Mention it.
32786         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32787         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32788
32789         euidaccess: prefer POSIX over non-standard implementation
32790         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32791         * lib/euidaccess.c (euidaccess): Use it if available.
32792
32793         openat: make template easier to use
32794         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32795         AT_FUNC_F2 to be undefined.
32796         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32797         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32798         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32799         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32800         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32801         Likewise.
32802         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32803         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32804         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32805         Likewise.
32806
32807         openat: declare in POSIX headers
32808         * NEWS: Mention this.
32809         * modules/openat (configure.ac): Declare witnesses.
32810         (Depends-on): Add fcntl-h, sys_stat, unistd.
32811         (Include): Mention correct headers.
32812         * modules/fcntl-h (Depends-on): Add link-warning.
32813         (Files): Add openat.m4.
32814         (Makefile.am): Substitute witnesses.
32815         * modules/sys_stat (Files, Makefile.am): Likewise.
32816         * modules/unistd (Files, Makefile.am): Likewise.
32817         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32818         (gl_OPENAT_DEFAULTS): New macro.
32819         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32821         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32822         (SYS_STAT_H): Remove unused variable.
32823         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32824         * lib/fcntl--.h (includes): Remove unneeded header.
32825         * lib/openat-safer.c (includes): Likewise.
32826         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32827         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32828         appropriate headers.
32829         (__OPENAT_PREFIX): Delete.
32830         * lib/fcntl.in.h (openat): Provide declaration.
32831         (AT_FDCWD): Fix Solaris bug.
32832         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32833         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32834         * lib/fchmodat.c (includes):  Adjust to find declaration.
32835         * lib/fchownat.c (includes): Likewise.
32836         * lib/mkdirat.c (includes): Likewise.
32837         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32838         still visible.
32839
32840 2009-09-02  Eric Blake  <ebb9@byu.net>
32841
32842         errno: use consistently
32843         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32844         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32845         * lib/canonicalize.c (ELOOP): Likewise.
32846         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32847         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32848         * lib/lchown.c (EOPNOTSUPP): Likewise.
32849         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32850         * lib/savewd.c (ESTALE): Likewise.
32851         * lib/settime.c (ENOSYS): Likewise.
32852         * lib/utimens.c (ENOSYS): Likewise.
32853         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32854         * lib/chdir-safer.c (ELOOP): Likewise.
32855         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32856         * modules/c-stack (Depends-on): Add errno.
32857         * modules/canonicalize (Depends-on): Likewise.
32858         * modules/chdir-safer (Depends-on): Likewise.
32859         * modules/fdopendir (Depends-on): Likewise.
32860         * modules/inet_ntop (Depends-on): Likewise.
32861         * modules/inet_pton (Depends-on): Likewise.
32862         * modules/lchown (Depends-on): Likewise.
32863         * modules/openat (Depends-on): Likewise.
32864         * modules/savewd (Depends-on): Likewise.
32865         * modules/settime (Depends-on): Likewise.
32866         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32867
32868         fts: avoid leaking fds
32869         * modules/fts (Depends-on): Add cloexec.
32870         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32871         flag.
32872
32873         fts: make directory fds more robust
32874         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32875         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32876
32877         backupfile, chdir-long, fts, savedir: make safer
32878         * lib/backupfile.c (includes): Use "dirent--.h", since
32879         numbered_backup can write to stderr during readdir.
32880         * lib/savedir.c (includes): Likewise.
32881         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32882         emulation can write to stderr on failure.
32883         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32884         * lib/getcwd.c: Document why opendir_safer is unused.
32885         * lib/glob.c: Likewise.
32886         * lib/scandir.c: Likewise.
32887         * lib/openat-proc.c: Likewise, for open_safer.
32888         * modules/backupfile (Depends-on): Add dirent-safer.
32889         * modules/savedir (Depends-on): Likewise.
32890         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32891         * modules/chdir-long (Depends-on): Add openat-safer.
32892
32893         openat-safer: new module
32894         * modules/openat-safer: New file.
32895         * lib/openat-safer.c: Likewise.
32896         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32897         * lib/fcntl-safer.h (openat_safer): Declare.
32898         * lib/fcntl--.h (openat): Override.
32899         * MODULES.html.sh (File descriptor based I/O): Mention it.
32900         * lib/openat.h: Add double-inclusion guards.
32901         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32902         "fcntl--.h", so we can implement openat.
32903         * modules/openat-safer-tests: New test.
32904         * tests/test-openat-safer.c: New file.
32905
32906         dirent-safer: new module
32907         * modules/dirent-safer: New file.
32908         * lib/dirent--.h: Likewise.
32909         * lib/dirent-safer.h: Likewise.
32910         * lib/opendir-safer.c: Likewise.
32911         * m4/dirent-safer.m4: Likewise.
32912         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32913         * modules/dirent-safer-tests: New test.
32914         * tests/test-dirent-safer.c: New file.
32915         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32916
32917         fdopendir: optimize on mingw
32918         * lib/unistd.in.h (_gl_directory_name): New prototype.
32919         * lib/fchdir.c (_gl_directory_name): Implement it.
32920         (fchdir): Use it to simplify implementation.
32921         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32922         fchdir, when available, to avoid calling [f]chdir().
32923
32924         fdopendir: split into its own module
32925         * lib/openat.c (fdopendir): Move...
32926         * lib/fdopendir.c: ...into new file.
32927         * modules/fdopendir: New module.
32928         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32929         * modules/openat (Depends-on): Add fdopendir.
32930         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32931         fdopendir here.
32932         * modules/savedir (Depends-on): Only need fdopendir, not full
32933         openat.
32934         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32935         * lib/openat.h (fdopendir): Drop prototype.
32936         * lib/dirent.in.h (fdopendir): Provide prototype.
32937         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32938         * modules/dirent (Makefile.am): Substitute them.
32939         * MODULES.html.sh (File system functions): Mention it.
32940         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32941         * modules/fdopendir-tests: New file.
32942         * tests/test-fdopendir.c: Likewise.
32943
32944         fchdir: use more consistent macro convention
32945         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32946         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32947         REPLACE_FCHDIR, rather than relying on config.h macros.
32948         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32949         inside a single make-time REPLACE_FCHDIR block, rather than using
32950         the config.h FCHDIR_REPLACEMENT.
32951         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32952         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32953         Manage fstat replacement.
32954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32955         REPLACE_FCHDIR.
32956         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32957         (Makefile.am): Substitute REPLACE_FCHDIR.
32958         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32959         FCHDIR_REPLACEMENT.
32960         * lib/dup-safer.c (dup_safer): Likewise.
32961         * lib/dup2.c (rpl_dup2): Likewise.
32962         * lib/dup3.c (rpl_dup3): Likewise.
32963         * lib/open.c (rpl_open): Likewise.
32964
32965         fchdir: simplify error handling, and support dup3
32966         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32967         stdbool, malloc-posix, realloc-posix.
32968         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32969         (ensure_dirs_slot): Return false on allocation failure.
32970         (rpl_dup2): Delete.
32971         (_gl_register_dup): New function.
32972         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32973         (_gl_register_fd): Close fd on allocation failure.
32974         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32975         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32976         prototype.
32977         (rpl_dup2_fchdir): Delete prototype.
32978         * lib/open.c (open): Update caller.
32979         * lib/dup2.c (dup2): Track fchdir metadata.
32980         * lib/dup3.c (dup3): Likewise.
32981         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32983
32984 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32985
32986         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32987         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32988         don't pass arguments to AC_OUTPUT.
32989
32990 2009-09-02  Bruno Haible  <bruno@clisp.org>
32991
32992         * modules/mkdtemp (License): Relicense under LGPLv2+.
32993         Reported by Paolo Bonzini.
32994
32995 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32996
32997         Replace uses of obsolete autoconf macros in Jim's modules.
32998         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32999         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33000         can evoke a warning from autoconf when run with -Wobsolete
33001         enabled.  They were declared obsolete for good reasons (see
33002         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33003         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33004         should not continue using the deprecated macros.
33005         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33006         obsolete Autoconf macros with modern counterparts.
33007         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33008         * m4/dos.m4 (gl_AC_DOS): Likewise.
33009         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33010         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33011         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33012         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33013         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33014         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33015         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33016         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33017         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33018         Likewise.
33019         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33020         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33021         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33022         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33023         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33024         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33025
33026 2009-09-01  Eric Blake  <ebb9@byu.net>
33027
33028         fchdir: fix off-by-one bug in previous patch
33029         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33030         (_gl_unregister_fd): Delete useless if.
33031
33032 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33033
33034         maint.mk: sort the list of syntax-check rules
33035         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33036         easier to get a sense of progress when the rules are run sequentially
33037         and take a long time.
33038
33039 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33040
33041         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33042         * modules/netinet_in: Likewise.
33043         * modules/sys_file: Likewise.
33044         * modules/sys_ioctl: Likewise.
33045         * modules/sys_select: Likewise.
33046         * modules/sys_socket: Likewise.
33047         * modules/sys_stat: Likewise.
33048         * modules/sys_time: Likewise.
33049         * modules/sys_times: Likewise.
33050         * modules/sys_utsname: Likewise.
33051         * modules/sys_wait: Likewise.
33052
33053 2009-09-01  Jim Meyering  <meyering@redhat.com>
33054
33055         fts: help ensure that return values are not ignored
33056         * lib/fts_.h (__GNUC_PREREQ): Define.
33057         (__attribute_warn_unused_result__): Define.
33058         (fts_children, fts_close, fts_open, fts_read): Declare with
33059         __attribute_warn_unused_result__.
33060
33061         fts: fts_close now fails also when closing a dir file descriptor fails
33062         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33063         and propagate to caller, along with errno.
33064
33065         announce-gen: correct formatting in --help output
33066         * build-aux/announce-gen (usage): Move the one-line description in
33067         --help output "up", to where it belongs, just after Usage:.
33068
33069 2009-08-31  Eric Blake  <ebb9@byu.net>
33070
33071         fchdir: port to mingw
33072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33073         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33074         opened, then use a substitute.
33075         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33076         replacement.
33077         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33078         (_gl_register_fd): No need to check stat if open already filters
33079         all directories.
33080         (fchdir): Fix error condition to match POSIX.
33081         * modules/fchdir (Depends-on): Add sys_stat.
33082         * doc/posix-functions/open.texi (open): Document the limitation.
33083         * modules/fchdir-tests: New file.
33084         * tests/test-fchdir.c: Likewise.
33085
33086         canonicalize: allow cross-testing from cygwin to mingw
33087         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33088         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33089         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33090         Likewise.
33091         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33092         target does not support symlinks.
33093         * tests/test-canonicalize-lgpl.sh: Likewise.
33094
33095         chown: avoid compilation warning on mingw
33096         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33097         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33098         mingw.
33099         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33100         * modules/chown (Depends-on): Add errno.
33101
33102 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33103
33104         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33105         command.
33106
33107 2009-08-31  Jim Meyering  <meyering@redhat.com>
33108
33109         canonicalize: remove useless initialization
33110         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33111         initialization of local, "end".
33112
33113 2009-08-30  Bruno Haible  <bruno@clisp.org>
33114
33115         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33116         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33117         ENOSYS.
33118
33119 2009-08-30  Bruno Haible  <bruno@clisp.org>
33120
33121         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33122         /usr/xpg4/bin/tr when it exists.
33123         * tests/test-pipe-filter-gi1.sh: Likewise.
33124
33125 2009-08-30  Bruno Haible  <bruno@clisp.org>
33126
33127         Work around deficient /usr/bin/id program on Solaris.
33128         * tests/test-file-has-acl.sh (ID): New variable.
33129         * tests/test-set-mode-acl.sh (ID): Likewise.
33130         * tests/test-copy-acl.sh (ID): Likewise.
33131         * tests/test-copy-file.sh (ID): Likewise.
33132
33133 2009-08-30  Bruno Haible  <bruno@clisp.org>
33134
33135         New module 'xstriconveh'.
33136         * lib/xstriconveh.h: New file.
33137         * lib/xstriconveh.c: New file.
33138         * modules/xstriconveh: New file.
33139
33140 2009-08-30  Bruno Haible  <bruno@clisp.org>
33141
33142         Make it easier to use mem_cd_iconveh.
33143         * lib/striconveh.h (iconveh_t): New type.
33144         (iconveh_open, iconveh_close): New declarations.
33145         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33146         with a single 'const iconveh_t *' argument.
33147         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33148         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33149         with a single 'const iconveh_t *' argument.
33150         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33151         * tests/test-striconveh.c (main): Update.
33152         * NEWS: Mention the change.
33153
33154 2009-08-30  Bruno Haible  <bruno@clisp.org>
33155
33156         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33157         problem.
33158
33159 2009-08-30  Bruno Haible  <bruno@clisp.org>
33160
33161         Work around iconv_open problem on Solaris.
33162         * lib/iconv_open-solaris.gperf: New file.
33163         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33164         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33165         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33166         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33167         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33168         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33169
33170 2009-08-29  Jim Meyering  <meyering@redhat.com>
33171
33172         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33173         * top/maint.mk (cvs-check): Remove target; it was just an alias
33174         to the better-named vc-diff-check.
33175         (maintainer-distcheck): Remove rule.  It was used only from
33176         the (alpha/beta/major) target, and all of its commands but one
33177         were coreutils-specific.
33178         (vc-dist): Remove rule.
33179         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33180         Run vc-diff-check, not vc-dist.
33181         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33182
33183 2009-08-27  Bruno Haible  <bruno@clisp.org>
33184
33185         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33186         of 0.
33187
33188 2009-08-27  Bruno Haible  <bruno@clisp.org>
33189
33190         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33191         compilers.
33192         * doc/func.texi: Document the SunPRO C bug.
33193
33194 2009-08-27  Bruno Haible  <bruno@clisp.org>
33195
33196         Fix link error on Solaris.
33197         * tests/test-parse-duration.c (xstrdup): Remove function.
33198
33199 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33200
33201         ignore-value: handle pointer types, too
33202         * lib/ignore-value.h (__attribute__): Remove definition.
33203         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33204         of a more concise and more-often effective "(void) i" statement.
33205         (ignore_ptr): New function to suppress warnings from functions that
33206         return pointers, and to make it explicit that one function doesn't
33207         handle all cases.
33208
33209 2009-08-25  Bruno Haible  <bruno@clisp.org>
33210
33211         dup2: work around a Linux bug.
33212         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33213         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33214         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33215         Reported by Simon Josefsson.
33216
33217 2009-08-25  Jim Meyering  <meyering@redhat.com>
33218
33219         libguestfs uses gnulib
33220         * users.txt: Add libguestfs.
33221
33222 2009-08-24  Eric Blake  <ebb9@byu.net>
33223
33224         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33225         * lib/pipe2.c (includes): Add binary-io.h.
33226         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33227
33228 2009-08-24  Bruno Haible  <bruno@clisp.org>
33229
33230         Tolerate declared but missing accept4 syscall.
33231         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33232         available.
33233         * lib/sys_socket.in.h (accept4): If the function is already present,
33234         override it.
33235         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33236         * modules/accept4 (Makefile.am): Compile accept4.c always.
33237         Reported by Paolo Bonzini and Eric Blake.
33238
33239 2009-08-23  Bruno Haible  <bruno@clisp.org>
33240
33241         New module 'accept4'.
33242         * lib/sys_socket.in.h (accept4): New declaration.
33243         * lib/accept4.c: New file.
33244         * m4/accept4.m4: New file.
33245         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33246         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33247         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33248         HAVE_ACCEPT4.
33249         * modules/accept4: New file.
33250         * doc/glibc-functions/accept4.texi: Mention the new module.
33251
33252 2009-08-24  Jim Meyering  <meyering@redhat.com>
33253
33254         progname: also set global program_invocation_name, when possible
33255         Before this change, a libtool-enabled program that calls glibc's
33256         error function would report the program name as
33257         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33258         * modules/progname (configure.ac): Check for a declaration of
33259         program_invocation_name.
33260         * lib/progname.c:  Include <errno.h>.
33261         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33262         Set program_invocation_name.
33263
33264 2009-08-23  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/dup3.c: Include <string.h>.
33267
33268 2009-08-23  Bruno Haible  <bruno@clisp.org>
33269
33270         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33271         * lib/pipe2.c (pipe2): Likewise.
33272         Suggested by Eric Blake.
33273
33274 2009-08-23  Bruno Haible  <bruno@clisp.org>
33275
33276         Tolerate declared but missing dup3 syscall.
33277         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33278         * lib/unistd.in.h (dup3): If the function is already present,
33279         override it.
33280         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33281         * modules/dup3 (Makefile.am): Compile dup3.c always.
33282         Reported by Paolo Bonzini.
33283
33284 2009-08-23  Bruno Haible  <bruno@clisp.org>
33285
33286         Tolerate declared but missing pipe2 syscall.
33287         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33288         available.
33289         * lib/unistd.in.h (pipe2): If the function is already present,
33290         override it.
33291         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33292         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33293         Reported by Paolo Bonzini.
33294
33295 2009-08-23  Bruno Haible  <bruno@clisp.org>
33296
33297         * lib/pipe2.c (pipe2): Move #ifs inside function.
33298
33299 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33300
33301         quotearg: document limitations of quote_these_too
33302         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33303         those limitations are created.
33304         * lib/quotearg.h (set_char_quoting): Document that digits and
33305         letters that are special after backslash are not permitted.
33306         (quotearg_char): Cross-reference set_char_quoting documentation.
33307
33308 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33309
33310         quotearg: implement custom_quoting_style
33311         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33312         right_quote fields.
33313         (set_custom_quoting): New public function.
33314         (quotearg_buffer_restyled): Add left_quote and right_quote
33315         arguments, handle them very much like locale quoting, and update
33316         all uses.
33317         (quotearg_n_custom): New public function.
33318         (quotearg_n_custom_mem): New public function.
33319         (quotearg_custom): New public function.
33320         (quotearg_custom_mem): New public function.
33321         * lib/quotearg.h: Prototype and document new public functions.
33322         (enum quoting_style): For escape_quoting_style and
33323         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33324         ignored even though they're otherwise like c_quoting_style.
33325         Add custom_quoting_style member and document with comparison to
33326         clocale_quoting_style.
33327         * tests/test-quotearg.c (custom_quotes): New array.
33328         (custom_results): New array.
33329         (main): Extend to test custom quoting.
33330
33331 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33332
33333         quotearg: fix right quote escaping when it's in quote_these_too
33334         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33335         quote, be sure to prepend only one backslash.
33336         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33337         (main): Test it.
33338
33339 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33340
33341         quotearg-tests: test escaping of embedded locale quotes
33342         * tests/test-quotearg.c (struct result_strings): Add member for
33343         new input.
33344         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33345         (inputs): Add new input.
33346         (results_g): Add expected results.
33347         (flag_results): Likewise.
33348         (locale_results): Likewise.
33349         (compare_strings): Check those.
33350
33351 2009-08-23  Bruno Haible  <bruno@clisp.org>
33352
33353         Tests for module 'dup3'.
33354         * modules/dup3-tests: New file.
33355         * tests/test-dup3.c: New file.
33356
33357         New module 'dup3'.
33358         * lib/unistd.in.h (dup3): New declaration.
33359         * lib/dup3.c: New file.
33360         * m4/dup3.m4: New file.
33361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33362         HAVE_DUP3.
33363         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33364         * modules/dup3: New file.
33365         * doc/glibc-functions/dup3.texi: Mention the new module.
33366
33367 2009-08-23  Bruno Haible  <bruno@clisp.org>
33368
33369         Tweak the dup2 test.
33370         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33371         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33372         the test file is still empty. Fix argument order of lseek.
33373
33374 2009-08-23  Bruno Haible  <bruno@clisp.org>
33375
33376         Avoid test link errors when the modules getopt-gnu, gettext are used.
33377         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33379
33380 2009-08-23  Bruno Haible  <bruno@clisp.org>
33381
33382         Fix getdtablesize() on mingw.
33383         * lib/getdtablesize.c (getdtablesize): Implement differently.
33384         * lib/unistd.in.h (getdtablesize): Improve comment.
33385
33386 2009-08-23  Bruno Haible  <bruno@clisp.org>
33387
33388         New module 'mkostemp'.
33389         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33390         * lib/stdlib.in.h (mksotemp): New declaration.
33391         * lib/mkostemp.c: New file, from glibc with modifications.
33392         * lib/tempname.h (GT_FILE): Remove outdated comment.
33393         (gen_tempname): Add flags argument.
33394         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33395         (__GT_FILE): Map to 1.
33396         (small_open, large_open): Remove macros.
33397         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33398         * lib/mkstemp.c (mkstemp): Update.
33399         * lib/mkdtemp.c (mkdtemp): Likewise.
33400         * m4/mkostemp.m4: New file.
33401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33402         HAVE_MKOSTEMP.
33403         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33404         HAVE_MKOSTEMP.
33405         * modules/mkostemp: New file, based on modules/mkstemp.
33406         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33407         * NEWS: Mention the change.
33408
33409 2009-08-23  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33412         Reported by Eric Blake.
33413
33414 2009-08-23  Bruno Haible  <bruno@clisp.org>
33415
33416         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33417         Reported by Eric Blake.
33418
33419 2009-08-23  Bruno Haible  <bruno@clisp.org>
33420
33421         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33422         * modules/pipe2 (Depends-on): Likewise.
33423
33424 2009-08-23  Eric Blake  <ebb9@byu.net>
33425
33426         fcntl-h: add O_TTY_INIT support
33427         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33428         * tests/test-fcntl-h.c (o): Test it.
33429         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33430
33431         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33432         * modules/fcntl: Move <fcntl.h> header replacement...
33433         * modules/fcntl-h: ...to new name, so as not to collide with
33434         like-named function.
33435         * tests/test-fcntl.c: Rename...
33436         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33437         * modules/fcntl-tests: Rename...
33438         * modules/fcntl-h-tests: ...to this.  Update test file name.
33439         * modules/chdir-long (Depends-on): Update clients.
33440         * modules/chdir-safer (Depends-on): Likewise.
33441         * modules/fcntl-safer (Depends-on): Likewise.
33442         * modules/fts (Depends-on): Likewise.
33443         * modules/mkancesdirs (Depends-on): Likewise.
33444         * modules/mkdir-p (Depends-on): Likewise.
33445         * modules/open (Depends-on): Likewise.
33446         * modules/savewd (Depends-on): Likewise.
33447         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33448         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33449
33450 2009-08-22  Bruno Haible  <bruno@clisp.org>
33451
33452         * modules/binary-io (License): Relicense under LGPL.
33453         * modules/pipe2 (License): Likewise.
33454
33455 2009-08-22  Bruno Haible  <bruno@clisp.org>
33456
33457         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33458         return value.
33459         * lib/pipe-filter-gi.c (filter_init): Likewise.
33460         Reported by Eric Blake.
33461
33462 2009-08-22  Bruno Haible  <bruno@clisp.org>
33463
33464         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33465         * modules/pipe (Depends-on): Add pipe2.
33466
33467 2009-08-22  Bruno Haible  <bruno@clisp.org>
33468
33469         Tests for module 'pipe2'.
33470         * modules/pipe2-tests: New file.
33471         * tests/test-pipe2.c: New file.
33472
33473         New module 'pipe2'.
33474         * lib/unistd.in.h (pipe2): New declaration.
33475         * lib/pipe2.c: New file.
33476         * m4/pipe2.m4: New file.
33477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33478         HAVE_PIPE2.
33479         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33480         * modules/pipe2: New file.
33481         * doc/glibc-functions/pipe2.texi: Mention the new module.
33482
33483 2009-08-22  Bruno Haible  <bruno@clisp.org>
33484
33485         Reference some new glibc functions.
33486         * doc/glibc-functions/accept4.texi: New file.
33487         * doc/glibc-functions/dup3.texi: New file.
33488         * doc/glibc-functions/mkostemp.texi: New file.
33489         * doc/glibc-functions/pipe2.texi: New file.
33490         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33491         (Glibc sys/socket.h): Refer to accept4.
33492         (Glibc unistd.h): Refer to dup3, pipe2.
33493         Reported by Eric Blake.
33494
33495 2009-08-22  Jim Meyering  <meyering@redhat.com>
33496             Bruno Haible  <bruno@clisp.org>
33497
33498         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33499         This makes it so packages using automake-1.11's silent-rules option
33500         can print e.g., a single "GEN    configmake.h" line, rather than
33501         the 30+ statements that perform the job.  If you want to see the
33502         actual commands, you can still run "make V=1".
33503         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33504         so that make output is abbreviated when those variables are defined
33505         appropriately.
33506         * modules/argz: Likewise.
33507         * modules/arpa_inet: Likewise.
33508         * modules/byteswap: Likewise.
33509         * modules/configmake: Likewise.
33510         * modules/dirent: Likewise.
33511         * modules/errno: Likewise.
33512         * modules/fcntl: Likewise.
33513         * modules/float: Likewise.
33514         * modules/fnmatch: Likewise.
33515         * modules/getopt-posix: Likewise.
33516         * modules/glob: Likewise.
33517         * modules/iconv_open: Likewise.
33518         * modules/inttypes: Likewise.
33519         * modules/localcharset: Likewise.
33520         * modules/locale: Likewise.
33521         * modules/math: Likewise.
33522         * modules/netdb: Likewise.
33523         * modules/netinet_in: Likewise.
33524         * modules/poll: Likewise.
33525         * modules/posix_spawnp-tests: Likewise.
33526         * modules/sched: Likewise.
33527         * modules/search: Likewise.
33528         * modules/selinux-h: Likewise.
33529         * modules/signal: Likewise.
33530         * modules/spawn: Likewise.
33531         * modules/stdarg: Likewise.
33532         * modules/stdbool: Likewise.
33533         * modules/stddef: Likewise.
33534         * modules/stdint: Likewise.
33535         * modules/stdio: Likewise.
33536         * modules/stdlib: Likewise.
33537         * modules/string: Likewise.
33538         * modules/strings: Likewise.
33539         * modules/sys_file: Likewise.
33540         * modules/sys_ioctl: Likewise.
33541         * modules/sys_select: Likewise.
33542         * modules/sys_socket: Likewise.
33543         * modules/sys_stat: Likewise.
33544         * modules/sys_time: Likewise.
33545         * modules/sys_times: Likewise.
33546         * modules/sys_utsname: Likewise.
33547         * modules/sys_wait: Likewise.
33548         * modules/sysexits: Likewise.
33549         * modules/time: Likewise.
33550         * modules/unistd: Likewise.
33551         * modules/wchar: Likewise.
33552         * modules/wctype: Likewise.
33553
33554 2009-08-22  Jim Meyering  <meyering@redhat.com>
33555
33556         announce-gen: detect write failure
33557         * build-aux/announce-gen: Add Coda at end.
33558         Remove equivalent-but-more-verbose block at top.
33559
33560 2009-08-19  Akim Demaille  <demaille@gostai.com>
33561
33562         bootstrap: --help to stdout.
33563         * bootstrap (usage): Don't send --help to stderr.
33564         Use a here doc instead of a long string.
33565
33566 2009-08-21  Eric Blake  <ebb9@byu.net>
33567
33568         test-popen-safer: split from test-popen
33569         * tests/test-popen.c (main): Move...
33570         * tests/test-popen.h: ...into new file.
33571         * tests/test-popen-safer2.c: New file.
33572         * modules/popen-tests (Files): Add test-popen.h.
33573         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33574         Suggested by Bruno Haible.
33575
33576         test-fcntl-safer: split from test-open
33577         * tests/test-open.c (main): Move...
33578         * tests/test-open.h: ...into new file.
33579         * tests/test-fcntl-safer.c: New file.
33580         * modules/open-tests (Files): Add test-open.h.
33581         * modules/fcntl-safer-tests: New file.
33582         Suggested by Bruno Haible.
33583
33584         test-fopen-safer: split from test-fopen
33585         * tests/test-fopen.c (main): Move...
33586         * tests/test-fopen.h: ...into new file.
33587         * tests/test-fopen-safer.c: New file.
33588         * modules/fopen-tests (Files): Add test-fopen.h.
33589         * modules/fopen-safer-tests: New file.
33590         Suggested by Bruno Haible.
33591
33592 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33593
33594         popen-safer: test O_CLOEXEC at run-time.
33595         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33596
33597 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33598
33599         fcntl: move more flags to the header
33600         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33601         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33602         * lib/fcntl.in.h: Do both things here.
33603
33604 2009-08-21  Jim Meyering  <meyering@redhat.com>
33605
33606         consistently remove $@-t before redirecting to it
33607         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33608         * modules/alloca-opt: Likewise.
33609         * modules/byteswap: Likewise.
33610         * modules/fnmatch: Likewise.
33611         * modules/getopt-posix: Likewise.
33612         * modules/glob: Likewise.
33613         * modules/poll: Likewise.
33614         * modules/posix_spawnp-tests: Likewise.
33615         * modules/sys_socket: Likewise.
33616         * modules/sysexits: Likewise.
33617
33618 2009-08-21  Eric Blake  <ebb9@byu.net>
33619
33620         popen: simplify access to original popen
33621         * lib/popen.c (rpl_popen): No need to worry about popen being a
33622         macro.
33623         Reported by Bruno Haible.
33624
33625 2009-08-20  Eric Blake  <ebb9@byu.net>
33626
33627         build: avoid some compiler warnings
33628         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33629         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33630         type.
33631         (new_exclude_segment, excluded_file_pattern_p)
33632         (excluded_file_name_p): Reduce scope.
33633         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33634         old-style declaration.
33635
33636 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33637
33638         * tests/test-exclude1.sh: Handle Windows EOL.
33639         * tests/test-exclude2.sh: Likewise.
33640         * tests/test-exclude3.sh: Likewise.
33641         * tests/test-exclude4.sh: Likewise.
33642         * tests/test-exclude5.sh: Likewise.
33643         * tests/test-exclude6.sh: Likewise.
33644         * tests/test-exclude7.sh: Likewise.
33645
33646 2009-08-19  Akim Demaille  <demaille@gostai.com>
33647
33648         bootstrap: find sha1sum when named gsha1sum.
33649         * bootstrap (find_tool): New.
33650         ($SHA1SUM): New.
33651         Use it.
33652
33653 2009-08-20  Jim Meyering  <meyering@redhat.com>
33654
33655         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33656         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33657         expression that converts "." in a file name to "\." in the resulting
33658         regexp.  Start with a dummy statement, so that prior shell variable
33659         definitions are expanded portably.  Reported by Simon Josefsson.
33660
33661 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33662
33663         Fix polling for writeability of a screen buffer.
33664         * lib/poll.c: Distinguish input and screen buffers for the
33665         Win32 implementation.
33666         * lib/select.c: Likewise.
33667
33668 2009-08-19  Eric Blake  <ebb9@byu.net>
33669
33670         popen-safer: prevent popen from clobbering std descriptors
33671         * modules/popen-safer: New file.
33672         * lib/popen-safer.c: Likewise.
33673         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33674         * lib/stdio--.h (popen): Provide override.
33675         * lib/stdio-safer.h (popen_safer): Provide declaration.
33676         * tests/test-popen.c (includes): Partially test this.
33677         * modules/popen-safer-tests: New file, for more tests.
33678         * tests/test-popen-safer.c: Likewise.
33679         * MODULES.html.sh (file stream based Input/Output): Mention it.
33680
33681         tests: test some of the *-safer modules
33682         * modules/fopen-safer (Depends-on): Add fopen.
33683         * modules/fcntl-safer (Depends-on): Add fcntl.
33684         * modules/stdlib-safer (Depends-on): Add stdlib.
33685         (configure.ac): Set indicator.
33686         * modules/unistd-safer (configure.ac): Likewise.
33687         * modules/tmpfile-safer (configure.ac): Likewise.
33688         (Depends-on): Add tmpfile.
33689         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33690         active.
33691         * tests/test-fopen.c (includes): Test safer versions when they are
33692         in use.
33693         * tests/test-open.c (includes): Likewise.
33694
33695         popen: fix cygwin 1.5 bug when stdin closed
33696         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33697         * modules/popen: New file.
33698         * modules/popen-tests: Likewise.
33699         * tests/test-popen.c: Likewise.
33700         * m4/popen.m4: Likewise.
33701         * lib/popen.c: Likewise.
33702         * lib/stdio.in.h (popen): New declaration.
33703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33704         * modules/stdio (Makefile.am): Likewise.
33705         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33706
33707 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33708
33709         maint.mk: give full control over update-copyright exclusions
33710         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33711         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33712         (update-copyright): Don't force inclusion of top-level
33713         ChangeLog.  Don't force exclusion of all COPYING files, but make
33714         them the default exclusion instead.
33715
33716 2009-08-16  Bruno Haible  <bruno@clisp.org>
33717
33718         Fix test failures on Solaris 10.
33719         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33720         tests when Solaris iconv() is used.
33721         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33722         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33723         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33724         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33725         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33726
33727 2009-08-16  Bruno Haible  <bruno@clisp.org>
33728
33729         Fix test failures on Solaris 10.
33730         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33731         'tr' program and pass it as first argument.
33732         * tests/test-pipe-filter-gi1.sh: Likewise.
33733         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33734         program as first argument.
33735         * tests/test-pipe-filter-gi1.c (main): Likewise.
33736
33737 2009-08-16  Eric Blake  <ebb9@byu.net>
33738
33739         fpurge: fix previous commits
33740         * modules/fpurge (Makefile.am): Make replacement conditional,
33741         partially reverting 2007-04-29 change; missed in previous
33742         attempt.
33743         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33744         is missing.
33745
33746 2009-08-16  Bruno Haible  <bruno@clisp.org>
33747
33748         Clarify fpurge's effect on the file position.
33749         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33750         * tests/test-fpurge.c (main): Make a second pass for checking the file
33751         position.
33752
33753 2009-08-16  Bruno Haible  <bruno@clisp.org>
33754
33755         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33756         declaration of fpurge is missing.
33757         * tests/test-fpurge.c (main): Check that the file has not more contents
33758         than expected. Close the file before removing it.
33759
33760 2009-08-15  Eric Blake  <ebb9@byu.net>
33761
33762         fpurge: don't wrap working cygwin implementation
33763         * lib/fpurge.c (fpurge): Fix comment typo.
33764         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33765         1.7 to avoid replacement.
33766         * tests/test-fpurge.c (main): Enhance test.
33767
33768 2009-08-15  Eric Blake  <ebb9@byu.net>
33769         and Jim Meyering  <meyering@redhat.com>
33770
33771         test-update-copyright: skip if perl is insufficient
33772         * tests/test-update-copyright.sh: Failure to run maintainer tool
33773         should not cause testsuite failure on cygwin 1.5.
33774
33775 2009-08-14  Eric Blake  <ebb9@byu.net>
33776
33777         doc: mention more functions added in cygwin 1.7.0
33778         * doc/posix-headers/limits.texi (limits.h): Update for recent
33779         cygwin additions.
33780         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33781         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33782         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33783         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33784         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33785
33786 2009-08-14  Eric Blake  <ebb9@byu.net>
33787
33788         maint.mk: simplify update-copyright rule
33789         * top/maint.mk (update-copyright-local): Delete, and document how
33790         to do it in cfg.mk instead.
33791         (update-copyright-exclude-regexp): Delete, and document how to do
33792         it in .x-update-copyright instead.
33793         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33794         exclude ChangeLog.
33795
33796 2009-08-14  Bruno Haible  <bruno@clisp.org>
33797
33798         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33799
33800 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33801
33802         maint.mk: support update-copyright-env
33803         * top/maint.mk (update-copyright-env): Define place-holder.
33804         (update-copyright): Expand $(update-copyright-env) before
33805         invoking update-copyright.
33806
33807 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33808
33809         update-copyright: implement forced reformatting
33810         * build-aux/update-copyright: Implement and document
33811         UPDATE_COPYRIGHT_FORCE.
33812         * tests/test-update-copyright.sh: Test it.
33813
33814 2009-08-14  Eric Blake  <ebb9@byu.net>
33815         and Bruno Haible  <bruno@clisp.org>
33816
33817         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33818         * tests/test-locale.c: Revert previous patch related to NULL.
33819         * tests/test-stdio.c: Likewise.
33820         * tests/test-stdlib.c: Likewise.
33821         * tests/test-string.c: Likewise.
33822         * tests/test-unistd.c: Likewise.
33823         * modules/time-tests (Depends-on): Add verify.
33824         * modules/wchar-tests (Depends-on): Likewise.
33825         * tests/test-time.c: Test for NULL compliance.
33826         * tests/test-wchar.c: Likewise.
33827         * modules/locale (Depends-on): Add stddef.
33828         * modules/stdio (Depends-on): Likewise.
33829         * modules/stdlib (Depends-on): Likewise.
33830         * modules/string (Depends-on): Likewise.
33831         * modules/time (Depends-on): Likewise.
33832         * modules/unistd (Depends-on): Likewise.
33833         * modules/wchar (Depends-on): Likewise.
33834         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33835         * lib/stdlib.in.h (includes): Likewise.
33836         * lib/string.in.h (includes): Likewise.
33837         * lib/time.in.h (includes): Likewise.
33838         * lib/unistd.in.h (includes): Likewise.
33839         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33840         replaced.
33841         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33842         * m4/stddef_h.m4: New file.
33843         * modules/stddef: Likewise.
33844         * lib/stddef.in.h: Likewise.
33845         * modules/stddef-tests: Likewise.
33846         * tests/test-stddef.c: Likewise.
33847         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33848         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33849         * doc/posix-headers/locale.texi (locale.h): Likewise.
33850         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33851         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33852         * doc/posix-headers/string.texi (string.h): Likewise.
33853         * doc/posix-headers/time.texi (time.h): Likewise.
33854         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33855         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33856
33857 2009-08-14  Eric Blake  <ebb9@byu.net>
33858
33859         doc: improve git diff of texinfo files
33860         * .gitattributes: Add rule for *.texi files, with hint on how to
33861         use it.
33862         Copied from m4, and based on a report by Bruno Haible.
33863
33864 2009-08-14  Bruno Haible  <bruno@clisp.org>
33865
33866         Disable multithread support by default on Cygwin 1.5.x for real.
33867         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33868
33869 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33870
33871         update-copyright: much ado about intervals
33872         * build-aux/update-copyright: Implement and document
33873         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33874         of copyright year intervals.
33875         Also, document UPDATE_COPYRIGHT_YEAR.
33876         * tests/test-update-copyright.sh: Test it.
33877
33878         update-copyright: convert 2-digit to 4-digit years
33879         * build-aux/update-copyright: Implement and document.
33880         * tests/test-update-copyright.sh: Update.
33881
33882 2009-08-14  Jim Meyering  <meyering@redhat.com>
33883
33884         test-exclude: avoid coreutils "make check" failure
33885         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33886         just as in test-argmatch.c.
33887
33888 2009-08-13  Eric Blake  <ebb9@byu.net>
33889
33890         test-dup2: fix bad assumption
33891         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33892         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33893
33894         test-version-etc: fix CRLF portability issue
33895         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33896         recognize \r.
33897         * tests/test-argp-version-etc-1.sh: Likewise.
33898
33899         getopt: update client modules
33900         * modules/argp (Depends-on): Use getopt-gnu.
33901         * modules/git-merge-changelog (Depends-on): Likewise.
33902         * modules/long-options (Depends-on): Likewise.
33903         * modules/xstrtol (Depends-on): Likewise.
33904
33905 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33906
33907         * tests/test-version-etc.sh: Don't fail on different
33908         project/version.  Don't fail on CRLF differences.  Rewrite to use
33909         multiple -e instead of multiple sed forks, suggested by Eric Blake
33910         <ebb9@byu.net>.
33911         * tests/test-argp-version-etc-1.sh: Likewise.
33912
33913 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33914
33915         * tests/test-version-etc.sh: Don't fail on different
33916         project/version.
33917
33918 2009-08-12  Bruno Haible  <bruno@clisp.org>
33919
33920         Tests for modules 'getopt-posix', 'getopt-gnu'.
33921         * modules/getopt-posix-tests: New file.
33922         * tests/test-getopt.c: New file.
33923         * tests/test-getopt.h: New file.
33924         * tests/test-getopt_long.h: New file.
33925
33926         New modules 'getopt-posix', 'getopt-gnu'.
33927         * modules/getopt-gnu: New file, renamed from modules/getopt.
33928         * modules/getopt-posix: New file.
33929         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33930         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33931         (gl_GETOPT): Remove macro.
33932         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33933         Disable the test against BSD systems that declare optreset. Test
33934         against mingw bug. Test against lack of support of optional arguments
33935         on many platforms.
33936         * doc/glibc-headers/getopt.texi: Update module name and list of
33937         relevant platforms.
33938         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33939         'getopt-gnu' and more portability problems.
33940         * NEWS: Mention the changes.
33941
33942 2009-08-12  Bruno Haible  <bruno@clisp.org>
33943
33944         Ensure that optarg etc. get declared by <unistd.h>.
33945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33946         AC_USE_SYSTEM_EXTENSIONS.
33947         * modules/getopt (Depends-on): Add 'extensions'.
33948
33949 2009-08-12  Bruno Haible  <bruno@clisp.org>
33950
33951         Avoid test link errors.
33952         * modules/pipe-filter-ii-tests (Makefile.am): Define
33953         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33954         * modules/pipe-filter-gi-tests (Makefile.am): Define
33955         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33957
33958 2009-08-12  Bruno Haible  <bruno@clisp.org>
33959
33960         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33961         gl_GETOPT_SUBSTITUTE before.
33962         (gl_GETOPT): Use it.
33963         * m4/argp.m4 (gl_ARGP): Update.
33964         Reported by Sergey Poznyakoff.
33965
33966         * m4/getopt.m4: Reorder macros.
33967         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33968         (gl_GETOPT_SUBSTITUTE): Remove macro.
33969
33970 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33971
33972         Minor improvement in gitlog-to-changelog
33973
33974         * build-aux/gitlog-to-changelog: New option `--format' makes
33975         output format string configurable.
33976
33977 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33978
33979         Optimize exclude: use hash tables for non-wildcard patterns.
33980
33981         * lib/exclude.c: Include hash.h and mbuiter.h
33982         (struct exclude_pattern, exclude_segment): New data types.
33983         (struct exclude): Rewrite.
33984         (fnmatch_pattern_has_wildcards): New function.
33985         (new_exclude_segment, free_exclude_segment): New functions.
33986         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33987         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33988         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33989         * modules/exclude: Depend on hash and mbuiter.
33990
33991         * modules/exclude-tests: New file.
33992         * tests/test-exclude.c: New file.
33993         * tests/test-exclude1.sh: New file.
33994         * tests/test-exclude2.sh: New file.
33995         * tests/test-exclude3.sh: New file.
33996         * tests/test-exclude4.sh: New file.
33997         * tests/test-exclude5.sh: New file.
33998         * tests/test-exclude6.sh: New file.
33999         * tests/test-exclude7.sh: New file.
34000
34001 2009-08-12  Bruno Haible  <bruno@clisp.org>
34002
34003         Ensure that getopt() gets declared by <unistd.h>.
34004         * lib/unistd.in.h: Conditionally include getopt.h.
34005         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34006         Set GNULIB_UNISTD_H_GETOPT.
34007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34008         GNULIB_UNISTD_H_GETOPT.
34009         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34010
34011 2009-08-12  Bruno Haible  <bruno@clisp.org>
34012
34013         Clarify logic.
34014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34015         gl_replace_getopt instead of GETOPT_H.
34016
34017 2009-08-12  Bruno Haible  <bruno@clisp.org>
34018
34019         * m4/getopt.m4: Add comments.
34020
34021 2009-08-12  Bruno Haible  <bruno@clisp.org>
34022
34023         Disable multithread support by default on Cygwin 1.5.x.
34024         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34025         set gl_use_threads=no if not specified otherwise.
34026
34027 2009-08-11  Bruno Haible  <bruno@clisp.org>
34028
34029         Avoid compilation error on NetBSD 5.0.
34030         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34031         * tests/test-stdio.c: Likewise.
34032         * tests/test-stdlib.c: Likewise.
34033         * tests/test-string.c: Likewise.
34034         * tests/test-unistd.c: Likewise.
34035         Reported by Greg Troxel <gdt@ir.bbn.com>
34036         at <https://savannah.gnu.org/support/?106973>.
34037
34038 2009-08-11  Bruno Haible  <bruno@clisp.org>
34039
34040         * modules/dup2-tests (Depends-on): Remove close.
34041
34042         Undo 2009-07-19 commit.
34043         * modules/acl-tests (Depends-on): Remove close.
34044         * modules/binary-io-tests (Depends-on): Likewise.
34045         * modules/closein-tests (Depends-on): Likewise.
34046         * modules/flock-tests (Depends-on): Likewise.
34047         * modules/fsync-tests (Depends-on): Likewise.
34048         * modules/lseek-tests (Depends-on): Likewise.
34049         * modules/pipe-tests (Depends-on): Likewise.
34050         * modules/posix_spawn-tests (Depends-on): Likewise.
34051         * modules/posix_spawnp-tests (Depends-on): Likewise.
34052         * modules/stat-time-tests (Depends-on): Likewise.
34053         * modules/yesno-tests (Depends-on): Likewise.
34054
34055 2009-08-10  Bruno Haible  <bruno@clisp.org>
34056
34057         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34058
34059 2009-08-10  Bruno Haible  <bruno@clisp.org>
34060
34061         Fix a gcc warning.
34062         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34063
34064 2009-08-10  Bruno Haible  <bruno@clisp.org>
34065
34066         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34067         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34068         not only the first time.
34069         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34070         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34071         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34072         is 1, not only the the first time.
34073
34074 2009-08-10  Bruno Haible  <bruno@clisp.org>
34075
34076         Make it possible to use module 'gethostname' without module 'close'.
34077         * lib/unistd.in.h (close): Evoke a link error only if
34078         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34080         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34081         * modules/unistd (Makefile.am): Substitute
34082         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34083         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34084         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34085         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34086         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34087         * modules/sys_ioctl (Makefile.am): Substitute
34088         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34089         * modules/socket (configure.ac): On native Windows, set
34090         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34091         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34092         Reported by Sam Steingold <sds@gnu.org>.
34093
34094 2009-08-10  Bruno Haible  <bruno@clisp.org>
34095
34096         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34097         * modules/ioctl (configure.ac): Likewise.
34098
34099 2009-08-10  Bruno Haible  <bruno@clisp.org>
34100
34101         Avoid collision between gnulib wrapper and libintl wrapper.
34102         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34103         already defined in intl/printf.c.
34104         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34105         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34106
34107 2009-08-09  Bruno Haible  <bruno@clisp.org>
34108
34109         Make <sys/select.h> really self-contained, also on Solaris 10.
34110         * lib/sys_select.in.h: Include <string.h>.
34111         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34112         Solaris 10 problem.
34113         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34114         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34115         Reported by Jim Meyering.
34116
34117 2009-08-09  Bruno Haible  <bruno@clisp.org>
34118
34119         Avoid warnings from 'aclocal' that are due to a use of macro name
34120         AM_XGETTEXT_OPTION that is not defined in automake.
34121         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34122         automake.
34123         * modules/error (configure.ac): Likewise.
34124         * modules/propername (configure.ac): Likewise.
34125         * modules/vasprintf (configure.ac): Likewise.
34126         * modules/verror (configure.ac): Likewise.
34127         * modules/xprintf (configure.ac): Likewise.
34128         * modules/xvasprintf (configure.ac): Likewise.
34129
34130 2009-08-08  Bruno Haible  <bruno@clisp.org>
34131
34132         Avoid compilation error in C++ mode.
34133         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34134         Reported by Sam Steingold <sds@gnu.org>.
34135
34136 2009-08-08  Bruno Haible  <bruno@clisp.org>
34137
34138         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34139         for the various Unix platforms.
34140         * doc/posix-headers/limits.texi: Update platforms list regarding
34141         HOST_NAME_MAX.
34142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34143
34144 2009-08-07  Jim Meyering  <meyering@redhat.com>
34145
34146         selinux-at: fix typo in a comment
34147         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34148         Spotted by Paolo Bonzini.
34149
34150         selinux-at: remove redundant m4 code, add documentation
34151         * modules/selinux-at (configure.ac): Remove redundant code.
34152         LIB_SELINUX is already set via the dependent module, selinux-h.
34153         (Include): Add quotes around selinux-at.h.
34154         * lib/selinux-at.h: Add documentation.
34155         Reported by Bruno Haible in
34156         http://marc.info/?l=gnulib-bug&m=124958988300749
34157
34158 2009-08-07  Bruno Haible  <bruno@clisp.org>
34159
34160         Avoid link error on MacOS X 10.3 and 10.4.
34161         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34162         on non-ELF systems.
34163         * lib/argp-pv.c (argp_program_version): Likewise.
34164         Reported by Simon Josefsson.
34165
34166 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34167
34168         * tests/test-version-etc.sh: Use $EXEEXT.
34169
34170 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34171
34172         update-copyright: update documentation to point to maint.mk
34173         * build-aux/update-copyright: Here.
34174
34175 2009-08-06  Jim Meyering  <meyering@redhat.com>
34176
34177         maint.mk: support update-copyright-local
34178         * top/maint.mk (update-copyright-local): Define place-holder.
34179         (update-copyright): Depend on $(update-copyright-local).
34180
34181 2009-08-06  Jim Meyering  <meyering@redhat.com>
34182
34183         selinux-at: new module
34184         Initially written for coreutils, this module will soon be
34185         used by findutils, too.
34186         * MODULES.html.sh [Misc]: Add selinux-at.
34187         * lib/selinux-at.h: New file, from coreutils.
34188         * lib/selinux-at.c: Likewise.
34189         * modules/selinux-at: Likewise.
34190         (License): Change from LGPL to GPL, since it depends
34191         on the GPL'd openat module.
34192
34193         doc: update README
34194         * README: Remove references to cogito.
34195         Remove cvs-repo-updating instructions from 2007.
34196         Don't imply that CVS is better if you have limited disk space.
34197
34198 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34199
34200         update-copyright: support C-style comments
34201         * build-aux/update-copyright: Implement and document.
34202         * tests/test-update-copyright.sh: Test.
34203
34204 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34205
34206         update-copyright: support omitted "(C)"
34207         * build-aux/update-copyright: Implement and document.  Also,
34208         allow variable whitespace before "(C)".
34209         * tests/test-update-copyright.sh: Test.
34210
34211 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34212
34213         update-copyright: don't trip on non-FSF copyright statements
34214         * build-aux/update-copyright: Fix so that the first correctly
34215         formatted FSF copyright statement is recognized no matter what
34216         appears before it.  Update documentation.
34217         * tests/test-update-copyright.sh: Test that.
34218
34219 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34220
34221         update-copyright: clean up code a little
34222         * build-aux/update-copyright: Append "_re" to the name of any
34223         variable holding a regular expression.
34224         Replace "old" and "new" with "stmt" in variable names.
34225         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34226         handled correctly.
34227         Format code more consistently.
34228
34229 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34230
34231         update-copyright-tests: improve portability
34232         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34233         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34234
34235 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34236
34237         update-copyright: support @copyright{} and &copy;
34238         * build-aux/update-copyright: Implement and document.
34239         * tests/test-update-copyright.sh: Test.
34240
34241 2009-08-04  Jim Meyering  <meyering@redhat.com>
34242
34243         update-copyright-tests: correctly test EOL=\r\n handling
34244         * tests/test-update-copyright.sh: Put \r at the end of some lines
34245         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34246
34247         maint.mk: make update-copyright exclusion list more configurable
34248         * top/maint.mk (update-copyright): Default to excluding COPYING,
34249         but allow an override, in case someone does want to update that file.
34250
34251         maint.mk: don't update copyright date in COPYING
34252         * top/maint.mk (update-copyright): Exclude COPYING.
34253
34254         maint.mk: add a copyright-updating rule
34255         * top/maint.mk (update-copyright): New rule.
34256         Derived from coreutils/Makefile.am.
34257
34258         update-copyright: rename some variables
34259         * build-aux/update-copyright: Rename a few variables for clarity.
34260         Tweak syntax.  List Joel E. Denny as coauthor.
34261
34262 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34263
34264         update-copyright: fix bug for 2-digit last year and add tests
34265         * build-aux/update-copyright: Fix bug.
34266         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34267         specified.
34268         * modules/update-copyright-tests: New
34269         * tests/test-update-copyright.sh: New.
34270
34271 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34272
34273         update-copyright: handle leading tabs in line prefix
34274         * build-aux/update-copyright: Count leading tabs as 8 spaces
34275         when computing margin.  This helps with the formatting of
34276         ChangeLogs, for example.
34277         Fix documentation a little.
34278
34279 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34280
34281         update-copyright: support EOL=\r\n
34282         * build-aux/update-copyright: Implement that.
34283
34284 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34285
34286         update-copyright: automatically format copyright statements
34287         * build-aux/update-copyright: Implement that.
34288         Also, be a little more predictable and safer by always failing
34289         when the full copyright format is not perfectly recognized as an
34290         unbroken whole.  Discussed at
34291         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34292         Rewrite documentation.
34293
34294 2009-08-03  Bruno Haible  <bruno@clisp.org>
34295
34296         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34297
34298 2009-08-02  Bruno Haible  <bruno@clisp.org>
34299
34300         Tests for module 'uname'.
34301         * modules/uname-tests: New file.
34302         * tests/test-uname.c: New file.
34303
34304         New module 'uname'.
34305         * lib/uname.c: New file.
34306         * m4/uname.m4: New file.
34307         * modules/uname: New file.
34308         * doc/posix-functions/uname.texi: Mention the new module.
34309
34310 2009-08-02  Bruno Haible  <bruno@clisp.org>
34311
34312         Tests for module 'sys_utsname'.
34313         * modules/sys_utsname-tests: New file.
34314         * tests/test-sys_utsname.c: New file.
34315
34316         New module 'sys_utsname'.
34317         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34318         * m4/sys_utsname_h.m4: New file.
34319         * modules/sys_utsname: New file.
34320         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34321
34322 2009-08-02  Bruno Haible  <bruno@clisp.org>
34323
34324         Implicitly initialize the sockets library.
34325         * lib/gethostname.c: Include sockets.h.
34326         (rpl_gethostname): Invoke gl_sockets_startup.
34327         * lib/socket.c: Include sockets.h.
34328         (rpl_socket): Invoke gl_sockets_startup.
34329         * modules/gethostname (Depends-on): Add sockets.
34330         * modules/socket (Depends-on): Likewise.
34331         * tests/test-poll.c: Don't include sockets.h.
34332         (main): Don't invoke gl_sockets_startup.
34333         * tests/test-select.c: Don't include sockets.h.
34334         (main): Don't invoke gl_sockets_startup.
34335
34336 2009-08-02  Bruno Haible  <bruno@clisp.org>
34337
34338         Allow multiple calls to gl_sockets_startup.
34339         * lib/sockets.c (initialized_sockets_version): New variable.
34340         (gl_sockets_startup): Do nothing if already called for this or a higher
34341         version.
34342         (gl_sockets_cleanup): Reset initialized_sockets_version.
34343
34344 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34345
34346         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34347         different project/version.
34348
34349 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34350             Bruno Haible  <bruno@clisp.org>
34351
34352         Tests for module 'pipe-filter-gi'.
34353         * modules/pipe-filter-gi-tests: New file.
34354         * tests/test-pipe-filter-gi1.sh: New file.
34355         * tests/test-pipe-filter-gi1.c: New file.
34356         * tests/test-pipe-filter-gi2.sh: New file.
34357         * tests/test-pipe-filter-gi2-main.c: New file.
34358         * tests/test-pipe-filter-gi2-child.c: New file.
34359
34360         New module 'pipe-filter-gi'.
34361         * lib/pipe-filter-gi.c: New file.
34362         * modules/pipe-filter-gi: New file.
34363
34364 2009-08-02  Bruno Haible  <bruno@clisp.org>
34365             Paolo Bonzini  <bonzini@gnu.org>
34366
34367         Tests for module 'pipe-filter-ii'.
34368         * modules/pipe-filter-ii-tests: New file.
34369         * tests/test-pipe-filter-ii1.sh: New file.
34370         * tests/test-pipe-filter-ii1.c: New file.
34371         * tests/test-pipe-filter-ii2.sh: New file.
34372         * tests/test-pipe-filter-ii2-main.c: New file.
34373         * tests/test-pipe-filter-ii2-child.c: New file.
34374
34375         New module 'pipe-filter-ii'.
34376         * lib/pipe-filter.h: New file.
34377         * lib/pipe-filter-ii.c: New file.
34378         * lib/pipe-filter-aux.h: New file.
34379         * modules/pipe-filter-ii: New file.
34380
34381 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34382
34383         * lib/gc-libgcrypt.c: Change copyright to FSF.
34384         * lib/gc-gnulib.c: Likewise.
34385
34386 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34387
34388         * lib/gethostname.c: Include limits.h.
34389
34390 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34391             Bruno Haible  <bruno@clisp.org>
34392
34393         Ensure HOST_NAME_MAX as part of the gethostname module.
34394         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34395         define also HOST_NAME_MAX.
34396         * tests/test-gethostname.c: Include <limits.h>.
34397         (main): Check also HOST_NAME_MAX.
34398         * doc/posix-headers/limits.texi: Document the mingw problem.
34399
34400 2009-08-02  Bruno Haible  <bruno@clisp.org>
34401
34402         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34403         Add comments.
34404
34405 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34406
34407         * lib/gethostname.c: Add Windows wrapper.
34408         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34409         * modules/gethostname: Depend on sys_socket & errno, for also
34410         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34411         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34412
34413 2009-07-31  Jim Meyering  <meyering@redhat.com>
34414
34415         getloadavg: fix symbol name in comment
34416         * lib/getloadavg.c: Correct a typo I introduced when adding
34417         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34418         Matt Kraai spotted the problem.
34419
34420 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34421
34422         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34423         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34424         code also if ! defined N_NAME_POINTER.
34425         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34426         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34427         but the n_name member is a 12-byte array.
34428
34429 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34430
34431         update-copyright: generalize comment handling
34432         * build-aux/update-copyright: Handle copyright statements
34433         within more comment styles.
34434         Document usage.
34435         Report any file with an external copyright holder or parse failure.
34436
34437 2009-07-29  Jim Meyering  <meyering@redhat.com>
34438
34439         mktime: correct setting of REPLACE_MKTIME
34440         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34441
34442         update-copyright: new module
34443         * modules/update-copyright: New file.
34444         * build-aux/update-copyright: New file.
34445         * MODULES.html.sh (maint+release support): Add update-copyright.
34446
34447 2009-07-27  Bruno Haible  <bruno@clisp.org>
34448
34449         Fix compilation error when <ctime> is used and mktime is replaced.
34450         * lib/time.in.h (mktime): New declaration.
34451         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34452         REPLACE_MKTIME instead of defining mktime in config.h.
34453         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34454         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34455         Reported by Ross McFarland <rwmcfa1@neces.com>.
34456
34457 2009-07-27  Bruno Haible  <bruno@clisp.org>
34458
34459         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34460         Reported by Matt Kraai <mkraai@beckman.com>.
34461
34462 2009-07-25  Jim Meyering  <meyering@redhat.com>
34463
34464         maint.mk: avoid warnings about missing files
34465         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34466         diagnostic when .prev-version does not exist.
34467         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34468         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34469         nonexistent cfg.mk.
34470         Suggestions from Simon Josefsson.
34471
34472 2009-07-25  Bruno Haible  <bruno@clisp.org>
34473
34474         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34475         defined as macros. Needed on QNX 6.4.1.
34476         Reported by Matt Kraai <mkraai@beckman.com>.
34477
34478 2009-07-23  Jim Meyering  <meyering@redhat.com>
34479
34480         maint.mk: invoke "make dist" with a working value of XZ_OPT
34481         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34482
34483 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34484
34485         Make fseeko.c compile on QNX.
34486         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34487
34488 2009-07-22  Peter Simons  <simons@cryp.to>
34489
34490         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34491         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34492         * lib/md4.h: Likewise.
34493         * lib/md5.h: Likewise.
34494         * lib/sha1.h: Likewise.
34495         * lib/sha256.h: Likewise.
34496         * lib/sha512.h: Likewise.
34497
34498         tests-sha1: don't assign literal string to 'char *' variable
34499         * tests/test-sha1.c (main): Declare locals with "const" to match
34500         attributes of the right hand side.
34501
34502 2009-07-21  Eric Blake  <ebb9@byu.net>
34503
34504         dup2: fix more mingw problems
34505         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34506         fd to itself.
34507         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34508         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34509         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34510         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34511         care of mingw bugs.
34512
34513 2009-07-21  Jim Meyering  <meyering@redhat.com>
34514
34515         vc-list-files: avoid failure when /bin/sh is dash
34516         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34517         On some Debian based systems, /bin/sh is a symlink to dash, and running
34518         this command would omit the "/" following each 'tests' prefix:
34519           dash -x build-aux/vc-list-files -C . tests
34520         That is because bash and dash work differently:
34521           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34522           bash ok
34523           dash odd
34524
34525 2009-07-21  Eric Blake  <ebb9@byu.net>
34526
34527         dup2-tests: test previous patch
34528         * modules/dup2-tests: New file.
34529         * tests/test-dup2.c: Likewise.
34530         * tests/test-open.c (main): Avoid unspecified behavior.
34531         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34532         test.
34533
34534         dup2: work around mingw and cygwin 1.5 bug
34535         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34537         * modules/unistd (Makefile.am): Substitute it.
34538         * lib/unistd.in.h (dup2): Declare the replacement.
34539         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34540         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34541         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34542         * modules/execute (Depends-on): Add dup2.
34543         * modules/fseterr (Depends-on): Likewise.
34544         * modules/pipe (Depends-on): Likewise.
34545         * modules/posix_spawn-internal (Depends-on): Likewise.
34546
34547 2009-07-21  Bruno Haible  <bruno@clisp.org>
34548
34549         * modules/.gitattributes: New file.
34550
34551 2009-07-20  Bruno Haible  <bruno@clisp.org>
34552
34553         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34554         (main): Use it.
34555
34556 2009-07-20  Eric Blake  <ebb9@byu.net>
34557
34558         test-pipe: make a bit more robust.
34559         * tests/test-pipe.c (myerr): Allow error messages regardless of
34560         what we do to stderr.
34561         (test_pipe): Rearrange to avoid deadlock.
34562         (child_main): Try a larger read, to ensure we avoided deadlock.
34563         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34564         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34565         if misused.
34566
34567 2009-07-19  Jim Meyering  <meyering@redhat.com>
34568
34569         fts: avoid false-positive cycle-detection
34570         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34571         for each new command line argument.
34572
34573 2009-07-19  Bruno Haible  <bruno@clisp.org>
34574
34575         Fix build error on mingw with the modules sys_select and unistd.
34576         * modules/acl-tests (Depends-on): Add close.
34577         * modules/binary-io-tests (Depends-on): Likewise.
34578         * modules/closein-tests (Depends-on): Likewise.
34579         * modules/flock-tests (Depends-on): Likewise.
34580         * modules/fsync-tests (Depends-on): Likewise.
34581         * modules/lseek-tests (Depends-on): Likewise.
34582         * modules/pipe-tests (Depends-on): Likewise.
34583         * modules/posix_spawn-tests (Depends-on): Likewise.
34584         * modules/posix_spawnp-tests (Depends-on): Likewise.
34585         * modules/stat-time-tests (Depends-on): Likewise.
34586         * modules/yesno-tests (Depends-on): Likewise.
34587
34588 2009-07-19  Bruno Haible  <bruno@clisp.org>
34589
34590         Unify conditionals.
34591         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34592         macros, not at the compiler macros.
34593         * lib/pipe.c: Likewise.
34594         * lib/execute.c: Likewise.
34595         * lib/spawni.c: Likewise.
34596
34597 2009-07-19  Bruno Haible  <bruno@clisp.org>
34598
34599         Fix handling of closed stdin/stdout/stderr on mingw.
34600         * lib/w32spawn.h: Include unistd.h.
34601         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34602         file descriptor with O_NOINHERIT flag.
34603         (fd_safer_noinherit): New function, based on fd-safer.c.
34604         (dup_safer_noinherit): New function, based on dup-safer.c.
34605         (undup_safer_noinherit): New function.
34606         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34607         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34608         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34609         instead of fd_safer.
34610         * tests/test-pipe.c: Include <windows.h>.
34611         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34612         result.
34613
34614         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34615         from main.
34616         (test_pipe): Pass an extra argument for disambiguation.
34617         (main): Invoke parent_main or child_main.
34618
34619         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34620         consistently.
34621
34622 2009-07-18  Eric Blake  <ebb9@byu.net>
34623
34624         test-pipe: fix mingw build
34625         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34626
34627 2009-07-18  Bruno Haible  <bruno@clisp.org>
34628
34629         * modules/pipe-tests (Makefile.am): Fix typo.
34630
34631 2009-07-18  Eric Blake  <ebb9@byu.net>
34632
34633         error: fix mingw build
34634         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34635         Reported by Bruno Haible.
34636
34637         error: avoid undefined use of stdout
34638         * lib/error.c (error, error_at_line): Check that fd 1 is open
34639         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34640         is handling faults and the close_stdout module wants to report the
34641         detection of closed stdout as an error.
34642
34643 2009-07-17  Eric Blake  <ebb9@byu.net>
34644
34645         pipe: be robust in face of closed fds
34646         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34647         should cause child to misbehave.
34648         * modules/pipe-tests: New module.
34649         * tests/test-pipe.c: New file.
34650         * tests/test-pipe.sh: New file.
34651         Reported by Akim Demaille.
34652
34653 2009-07-14  Bruno Haible  <bruno@clisp.org>
34654
34655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34656         Reported by anonymous kc.
34657
34658 2009-07-07  Jim Meyering  <meyering@redhat.com>
34659
34660         maint.mk: don't look for translatable strings in *.m4 or *.mk
34661         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34662         when searching for translatable strings.
34663
34664 2009-07-05  Jim Meyering  <meyering@redhat.com>
34665
34666         remove superfluous parentheses in STREQ definition
34667         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34668         * lib/getugroups.c (STREQ): Likewise.
34669         * lib/fnmatch.c (STREQ): Likewise.
34670         Spotted by Bruno Haible.
34671
34672 2009-07-04  Jim Meyering  <meyering@redhat.com>
34673
34674         argv-iter: new module
34675         * MODULES.html.sh: Add argv-iter.
34676         * lib/argv-iter.c, lib/argv-iter.h: New files.
34677         * modules/argv-iter: New file.
34678         * modules/argv-iter-tests: New file.
34679         * tests/test-argv-iter.c: Test it.
34680
34681 2009-07-04  Bruno Haible  <bruno@clisp.org>
34682
34683         Fix assertion.
34684         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34685         contains more exact copies of a given entry than file2, leave the extra
34686         copies unpaired rather than aborting.
34687         Reported by Eric Blake.
34688
34689 2009-07-02  Bruno Haible  <bruno@clisp.org>
34690
34691         Speedup git-merge-changelog for git cherry-pick.
34692         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34693         (entries_mapping_get): New function, extracted from compute_mapping.
34694         (entries_mapping_reverse_get): New function.
34695         (compute_mapping): Add a 'full' argument. Return the result in a
34696         'struct entries_mapping'.
34697         (main): Update. Access the mappings through entries_mapping_get.
34698         Reported by Eric Blake.
34699
34700 2009-07-02  Bruno Haible  <bruno@clisp.org>
34701
34702         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34703         best_i.
34704
34705 2009-07-02  Bruno Haible  <bruno@clisp.org>
34706
34707         Speed up approximate search for matching ChangeLog entries.
34708         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34709         argument. Call fstrcmp_bounded instead of fstrcmp.
34710         (compute_mapping, try_split_merged_entry, main): Update callers.
34711
34712 2009-07-02  Bruno Haible  <bruno@clisp.org>
34713
34714         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34715
34716 2009-06-30  Bruno Haible  <bruno@clisp.org>
34717
34718         Reduce the number of uc_is_cased calls.
34719         * lib/unicase.h (casing_suffix_context_t): Add
34720         'first_char_except_ignorable' field.
34721         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34722         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34723         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34724         Update initializer.
34725         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34726         case-ignorable characters.
34727         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34728         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34729         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34730         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34731         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34732
34733 2009-06-30  Bruno Haible  <bruno@clisp.org>
34734
34735         Tests for module 'unicase/ignorable'.
34736         * modules/unicase/ignorable-tests: New file.
34737         * tests/unicase/test-ignorable.c: New file, generated by
34738         gen-uni-tables.
34739
34740         Tests for module 'unicase/cased'.
34741         * modules/unicase/cased-tests: New file.
34742         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34743         * tests/unicase/test-predicate-part1.h: New file, derived from
34744         tests/unictype/test-predicate-part1.h.
34745         * tests/unicase/test-predicate-part2.h: New file, same as
34746         tests/unictype/test-predicate-part2.h.
34747
34748         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34749         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34750         (output_casing_properties): New function.
34751         (main): Call it.
34752         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34753         * lib/unicase/cased.c: Include unictype/bitmap.h.
34754         (uc_is_cased): Define through a bitmap lookup.
34755         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34756         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34757         (uc_is_case_ignorable): Define through a bitmap lookup.
34758         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34759         lib/unictype/bitmap.h.
34760         (Depends-on): Add inline. Clean up.
34761         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34762         lib/unictype/bitmap.h.
34763         (Depends-on): Add inline. Clean up.
34764         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34765         recognition.
34766         * tests/unicase/test-u16-tolower.c (main): Likewise.
34767         * tests/unicase/test-u32-tolower.c (main): Likewise.
34768
34769 2009-06-30  Bruno Haible  <bruno@clisp.org>
34770
34771         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34772         * lib/unicase/u16-casemap.c: Likewise.
34773         * lib/unicase/u32-casemap.c: Likewise.
34774
34775 2009-06-29  Bruno Haible  <bruno@clisp.org>
34776
34777         Define u32_casefold as a wrapper around u32_ct_casefold.
34778         * lib/unicase/u32-casefold.c: Update.
34779         * modules/unicase/u32-casefold (Depends-on): Add
34780         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34781         unicase/empty-suffix-context. Clean up.
34782
34783         Define u16_casefold as a wrapper around u16_ct_casefold.
34784         * lib/unicase/u16-casefold.c: Update.
34785         * modules/unicase/u16-casefold (Depends-on): Add
34786         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34787         unicase/empty-suffix-context. Clean up.
34788
34789         Define u8_casefold as a wrapper around u8_ct_casefold.
34790         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34791         * lib/unicase/u8-casefold.c: Update.
34792         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34793         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34794
34795         Define u32_totitle as a wrapper around u32_ct_totitle.
34796         * lib/unicase/u32-totitle.c: Update.
34797         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34798         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34799
34800         Define u16_totitle as a wrapper around u16_ct_totitle.
34801         * lib/unicase/u16-totitle.c: Update.
34802         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34803         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34804
34805         Define u8_totitle as a wrapper around u8_ct_totitle.
34806         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34807         functions.
34808         (FUNC): Delegate to U_CT_TOTITLE.
34809         * lib/unicase/u8-totitle.c: Update.
34810         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34811         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34812
34813         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34814         invocation.
34815         * modules/unicase/u32-tolower (Depends-on): Add
34816         unicase/empty-prefix-context, unicase/empty-suffix-context.
34817
34818         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34819         invocation.
34820         * modules/unicase/u16-tolower (Depends-on): Add
34821         unicase/empty-prefix-context, unicase/empty-suffix-context.
34822
34823         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34824         * modules/unicase/u8-tolower (Depends-on): Add
34825         unicase/empty-prefix-context, unicase/empty-suffix-context.
34826
34827         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34828         invocation.
34829         * modules/unicase/u32-toupper (Depends-on): Add
34830         unicase/empty-prefix-context, unicase/empty-suffix-context.
34831
34832         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34833         invocation.
34834         * modules/unicase/u16-toupper (Depends-on): Add
34835         unicase/empty-prefix-context, unicase/empty-suffix-context.
34836
34837         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34838         * modules/unicase/u8-toupper (Depends-on): Add
34839         unicase/empty-prefix-context, unicase/empty-suffix-context.
34840
34841         New module 'unicase/u32-ct-casefold'.
34842         * lib/unicase/u32-ct-casefold.c: New file.
34843         * modules/unicase/u32-ct-casefold: New file.
34844
34845         New module 'unicase/u16-ct-casefold'.
34846         * lib/unicase/u16-ct-casefold.c: New file.
34847         * modules/unicase/u16-ct-casefold: New file.
34848
34849         New module 'unicase/u8-ct-casefold'.
34850         * lib/unicase/u8-ct-casefold.c: New file.
34851         * lib/unicase/u-ct-casefold.h: New file, derived from
34852         lib/unicase/u-casefold.h.
34853         * modules/unicase/u8-ct-casefold: New file.
34854
34855         New module 'unicase/u32-ct-totitle'.
34856         * lib/unicase/u32-ct-totitle.c: New file.
34857         * modules/unicase/u32-ct-totitle: New file.
34858
34859         New module 'unicase/u16-ct-totitle'.
34860         * lib/unicase/u16-ct-totitle.c: New file.
34861         * modules/unicase/u16-ct-totitle: New file.
34862
34863         New module 'unicase/u8-ct-totitle'.
34864         * lib/unicase/u8-ct-totitle.c: New file.
34865         * lib/unicase/u-ct-totitle.h: New file, derived from
34866         lib/unicase/u-totitle.h.
34867         * modules/unicase/u8-ct-totitle: New file.
34868
34869         New module 'unicase/u32-ct-tolower'.
34870         * lib/unicase/u32-ct-tolower.c: New file.
34871         * modules/unicase/u32-ct-tolower: New file.
34872
34873         New module 'unicase/u16-ct-tolower'.
34874         * lib/unicase/u16-ct-tolower.c: New file.
34875         * modules/unicase/u16-ct-tolower: New file.
34876
34877         New module 'unicase/u8-ct-tolower'.
34878         * lib/unicase/u8-ct-tolower.c: New file.
34879         * modules/unicase/u8-ct-tolower: New file.
34880
34881         New module 'unicase/u32-ct-toupper'.
34882         * lib/unicase/u32-ct-toupper.c: New file.
34883         * modules/unicase/u32-ct-toupper: New file.
34884
34885         New module 'unicase/u16-ct-toupper'.
34886         * lib/unicase/u16-ct-toupper.c: New file.
34887         * modules/unicase/u16-ct-toupper: New file.
34888
34889         New module 'unicase/u8-ct-toupper'.
34890         * lib/unicase/u8-ct-toupper.c: New file.
34891         * modules/unicase/u8-ct-toupper: New file.
34892
34893         Add context arguments to u*_casemap functions.
34894         * lib/unicase/unicasemap.h: Include unicase.h.
34895         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34896         suffix_context arguments.
34897         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34898         functions.
34899         (FUNC): Add prefix_context and suffix_context arguments. Use
34900         uc_is_cased and uc_is_case_ignorable.
34901         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34902         * lib/unicase/u16-casemap.c: Likewise.
34903         * lib/unicase/u32-casemap.c: Likewise.
34904         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34905         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34906         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34907         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34908         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34909         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34910
34911         New module 'unicase/u32-suffix-context'.
34912         * lib/unicase/u32-suffix-context.c: New file.
34913         * modules/unicase/u32-suffix-context: New file.
34914
34915         New module 'unicase/u16-suffix-context'.
34916         * lib/unicase/u16-suffix-context.c: New file.
34917         * modules/unicase/u16-suffix-context: New file.
34918
34919         New module 'unicase/u8-suffix-context'.
34920         * lib/unicase/u8-suffix-context.c: New file.
34921         * lib/unicase/u-suffix-context.h: New file.
34922         * modules/unicase/u8-suffix-context: New file.
34923
34924         New module 'unicase/empty-suffix-context'.
34925         * lib/unicase/empty-suffix-context.c: New file.
34926         * modules/unicase/empty-suffix-context: New file.
34927
34928         New module 'unicase/u32-prefix-context'.
34929         * lib/unicase/u32-prefix-context.c: New file.
34930         * modules/unicase/u32-prefix-context: New file.
34931
34932         New module 'unicase/u16-prefix-context'.
34933         * lib/unicase/u16-prefix-context.c: New file.
34934         * modules/unicase/u16-prefix-context: New file.
34935
34936         New module 'unicase/u8-prefix-context'.
34937         * lib/unicase/u8-prefix-context.c: New file.
34938         * lib/unicase/u-prefix-context.h: New file.
34939         * lib/unicase/context.h: New file.
34940         * modules/unicase/u8-prefix-context: New file.
34941
34942         New module 'unicase/empty-prefix-context'.
34943         * lib/unicase/empty-prefix-context.c: New file.
34944         * modules/unicase/empty-prefix-context: New file.
34945
34946         New module 'unicase/ignorable'.
34947         * lib/unicase/ignorable.c: New file.
34948         * modules/unicase/ignorable: New file.
34949
34950         New module 'unicase/cased'.
34951         * lib/unicase/caseprop.h: New file.
34952         * lib/unicase/cased.c: New file.
34953         * modules/unicase/cased: New file.
34954
34955         New functions for case mapping of substrings.
34956         * lib/unicase.h (casing_prefix_context_t): New type.
34957         (unicase_empty_prefix_context): New variable.
34958         (u8_casing_prefix_context, u16_casing_prefix_context,
34959         u32_casing_prefix_context, u8_casing_prefixes_context,
34960         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34961         declarations.
34962         (casing_suffix_context_t): New type.
34963         (unicase_empty_suffix_context): New variable.
34964         (u8_casing_suffix_context, u16_casing_suffix_context,
34965         u32_casing_suffix_context, u8_casing_suffixes_context,
34966         u16_casing_suffixes_context, u32_casing_suffixes_context,
34967         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34968         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34969         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34970         declarations.
34971
34972 2009-06-28  Jim Meyering  <meyering@redhat.com>
34973
34974         boostrap: indent only with spaces
34975         * build-aux/bootstrap: Indent only with spaces, never TABs.
34976
34977         bootstrap: split long lines
34978         * build-aux/bootstrap: Keep line length < 80.
34979
34980         bootstrap: sync from coreutils
34981         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34982         just as autoreconf does.  Verify a list of prerequisite
34983         package-name,version-number pairs if defined in bootstrap.conf.
34984         Refer to README-prereq, if prerequisites are not satisfied.
34985
34986 2009-06-27  Eric Blake  <ebb9@byu.net>
34987
34988         tests: add test for bogus NULL definition
34989         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34990         * tests/test-stdlib.c: Likewise.
34991         * tests/test-string.c: Likewise.
34992         * tests/test-locale.c: Likewise.
34993         * tests/test-unistd.c: Likewise.
34994         * modules/stdio-tests (Depends-on): Add verify.
34995         * modules/stdlib-tests (Depends-on): Likewise.
34996         * modules/string-tests (Depends-on): Likewise.
34997         * modules/locale-tests (Depends-on): Likewise.
34998         * modules/unistd-tests (Depends-on): Likewise.
34999
35000 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35001
35002         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35003         self-explaining comment.
35004         * m4/selinux-selinux-h: Update serial.
35005         (gl_LIBSELINUX): New macro, adding a warning for missing development
35006         packages to code extracted from...
35007         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35008         Add warning for missing development packages here, too.
35009
35010 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35011
35012         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35013
35014 2009-06-25  Eric Blake  <ebb9@byu.net>
35015
35016         version-etc: fix regression
35017         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35018         gcc.
35019         (version_etc): Use it, to catch bugs with trailing NULL.
35020         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35021         (version_etc_va): Fix logic bug.
35022         * modules/version-etc-tests: Add test.
35023         * tests/test-version-etc.c: New file.
35024         * tests/test-version-etc.sh: Likewise.
35025
35026 2009-06-25  Sam Steingold  <sds@gnu.org>
35027
35028         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35029         mbtowc declaration.
35030
35031 2009-06-25  Eric Blake  <ebb9@byu.net>
35032
35033         fpurge: migrate into <stdio.h>
35034         * lib/fpurge.h: Delete...
35035         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35036         * lib/fpurge.c (fpurge): Change declaring header.
35037         * modules/fpurge (Files): Drop deleted file.
35038         (Depends-on): Add stdio.
35039         (configure.ac): Set witness.
35040         * modules/stdio (Makefile.am): Support fpurge macros.
35041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35042         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35043         * lib/fflush.c: Update client.
35044         * tests/test-fpurge.c: Likewise.
35045         * NEWS: Mention the change.
35046
35047 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35048
35049         * lib/argp-version-etc.c (program_authors): Add const
35050         qualifier.
35051         * lib/version-etc.c: Fix typos in the comments.
35052         * modules/argp-version-etc: Depends on version-etc.
35053
35054 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35055
35056         argp-version-etc: new module.
35057
35058         * lib/argp-version-etc.c: New file.
35059         * lib/argp-version-etc.h: New file.
35060         * modules/argp-version-etc: New file.
35061         * modules/argp-version-etc-tests: New file.
35062         * tests/test-argp-version-etc.c: New test.
35063         * tests/test-argp-version-etc-1.sh: New test.
35064
35065 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35066
35067         Provide additional interfaces and documentation for version-etc
35068         module.
35069
35070         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35071         interfaces.
35072         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35073         prototypes.
35074
35075 2009-06-24  Bruno Haible  <bruno@clisp.org>
35076
35077         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35078         HAVE_LIB${NAME} macro.
35079         Reported by Sam Steingold <sds@gnu.org>.
35080
35081 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35082
35083         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35084         needed.
35085
35086 2009-06-21  Bruno Haible  <bruno@clisp.org>
35087
35088         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35089         work.
35090         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35091         together with LIB${NAME}, LTLIB${NAME}.
35092         Reported by Sam Steingold <sds@gnu.org>.
35093
35094 2009-06-20  Jim Meyering  <meyering@redhat.com>
35095
35096         tests: make sc_require_test_exit_idiom more generic
35097         * top/maint.mk (Exit_witness_file): New overridable variable.
35098         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35099         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35100
35101 2009-06-19  Jim Meyering  <meyering@redhat.com>
35102
35103         hash: reverse order of src/dst parameters in an internal interface
35104         * lib/hash.c (transfer_entries): Reverse order of parameters to
35105         put DST before SRC.  Adjust callers.
35106
35107         tests: test-hash: avoid wholesale duplication
35108         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35109         Instead, use a loop and add a single conditional.
35110
35111         tests: test-hash: allow seed selection via a command line argument
35112         * tests/test-hash.c (get_seed): New function.
35113         (main): Use it.
35114
35115 2009-06-19  Eric Blake  <ebb9@byu.net>
35116
35117         hash: avoid memory leak on allocation failure
35118         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35119         failure.  Factor repeated algorithm...
35120         (transfer_entries): ...into new helper routine.
35121         (hash_delete): React to hash_rehash return value.
35122
35123         hash: reduce memory pressure in hash_rehash no-op case
35124         * lib/hash.c (next_prime): Avoid overflow.
35125         (hash_initialize): Factor bucket size computation...
35126         (compute_bucket_size): ...into new helper function.
35127         (hash_rehash): Use new function and open coding to reduce memory
35128         pressure, and avoid a memory leak in USE_OBSTACK code.
35129         Reported by Jim Meyering.
35130
35131 2009-06-18  Eric Blake  <ebb9@byu.net>
35132
35133         hash: make rotation more obvious
35134         * modules/hash (Depends-on): Add bitrotate and stdint.
35135         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35136         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35137         (SIZE_MAX): Rely on headers for definition.
35138         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35139         (raw_hasher): Use rotr_sz.
35140         Suggested by Jim Meyering.
35141
35142         hash: fix memory leak in last patch
35143         * lib/hash.c (hash_rehash): Avoid memory leak.
35144
35145         hash: avoid no-op rehashing
35146         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35147
35148         hash: provide default callback functions
35149         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35150         (hash_initialize): Use them as defaults.
35151         * tests/test-hash.c (main): Test this.
35152
35153         hash: minor optimization
35154         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35155         when possible.
35156         (hash_initialize): Document this promise.
35157         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35158         * tests/test-hash.c (hash_compare_strings): Test this.
35159
35160 2009-06-18  Bruno Haible  <bruno@clisp.org>
35161
35162         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35163         going to be replaced anyway.
35164
35165 2009-06-18  Bruno Haible  <bruno@clisp.org>
35166
35167         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35168         in one place.
35169         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35170         be replaced anyway.
35171
35172 2009-06-18  Eric Blake  <ebb9@byu.net>
35173
35174         hash: check for resize before insertion
35175         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35176         threshold before insertion, so that a pathological hash_rehash
35177         that fills every bucket can still trigger another rehash.
35178
35179 2009-06-18  Jim Meyering  <meyering@redhat.com>
35180
35181         hash-tests: add a loop around the small tests
35182         * tests/test-hash.c (main): Repeat small tests with selected
35183         small initial table sizes.
35184
35185 2009-06-17  Eric Blake  <ebb9@byu.net>
35186
35187         hash: minor cleanups
35188         * lib/hash.h (hash_entry): Make opaque, by moving...
35189         * lib/hash.c (hash_entry): ...here.
35190         (hash_insert): Clarify restrictions on what can be inserted.
35191         (hash_get_next): Clarify when it is safe to remove an element
35192         during traversal.
35193         (check_tuning): Skip verification when tuning is known safe.
35194         (hash_initialize): Clarify restrictions on tuning.
35195
35196 2009-06-17  Jim Meyering  <jim@meyering.net>
35197         and Eric Blake  <ebb9@byu.net>
35198
35199         hash-tests: new module
35200         * modules/hash-tests: New file.
35201         * tests/test-hash.c: New file.
35202
35203 2009-06-17  Eric Blake  <ebb9@byu.net>
35204
35205         strstr-simple: document new module
35206         * MODULES.html.sh: Document new module.
35207
35208         strstr, strcasestr: replace on platforms with broken memchr
35209         * modules/strstr: Split into...
35210         * modules/strstr-simple: ...new module that does not care about
35211         performance, but does care about glibc bug.
35212         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35213         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35214         if platform memchr is broken, per Debian bug 521737.
35215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35216         memchr.
35217         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35218         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35219         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35220         * modules/mountlist (Depends-on): Add strstr-simple.
35221         * modules/gen-uni-tables (Depends-on): Likewise.
35222         * modules/argz (Depends-on): Add strstr.
35223
35224 2009-06-17  Bruno Haible  <bruno@clisp.org>
35225
35226         * modules/posix_spawn-internal (Depends-on): Add errno.
35227
35228 2009-06-17  Bruno Haible  <bruno@clisp.org>
35229
35230         Define missing ESTALE on Interix 3.5.
35231         * lib/errno.in.h (ESTALE): Assign a value if missing.
35232         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35233         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35234         missing.
35235         * doc/posix-headers/errno.texi: Mention the Interix bug.
35236         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35237
35238 2009-06-15  Eric Blake  <ebb9@byu.net>
35239
35240         memchr, memchr2: add valgrind exception
35241         * lib/memchr.valgrind: New file.
35242         * lib/memchr2.valgrind: New file.
35243         * modules/memchr (Files): Distribute valgrind file.
35244         * modules/memchr2 (Files): Likewise.
35245
35246         docs: memchr is no longer obsolete
35247         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35248         * lib/string.in.h (memchr): Simplify logic.
35249
35250 2009-06-14  Jim Meyering  <meyering@redhat.com>
35251
35252         link-follow: fix the "checking..." message to not mention trailing slash
35253         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35254         never considered trailing slashes.
35255
35256 2009-06-14  Bruno Haible  <bruno@clisp.org>
35257
35258         * m4/memchr.m4: Mention also the bug on IA-64.
35259         * doc/posix-functions/memchr.texi: Likewise.
35260
35261 2009-06-12  Eric Blake  <ebb9@byu.net>
35262
35263         memchr: detect broken x86_64 and alpha implementations
35264         * modules/memchr-tests (Depends-on): Move mmap detection...
35265         * modules/memchr (Depends-on): ...here.
35266         (configure.ac): Set indicator.
35267         * lib/string.in.h (memchr): Declare replacement.
35268         * modules/string (Makefile.am): Trigger replacement.
35269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35270         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35271         bugs.
35272         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35273         * modules/getpagesize (License): Relax license.
35274
35275 2009-06-11  Bruno Haible  <bruno@clisp.org>
35276
35277         * lib/idpriv.h: Add more references.
35278
35279 2009-06-08  Bruno Haible  <bruno@clisp.org>
35280
35281         Tests for module 'idpriv-droptemp'.
35282         * modules/idpriv-droptemp-tests: New file.
35283         * tests/test-idpriv-droptemp.sh: New file.
35284         * tests/test-idpriv-droptemp.su.sh: New file.
35285         * tests/test-idpriv-droptemp.c: New file.
35286
35287         New module 'idpriv-droptemp'.
35288         * lib/idpriv-droptemp.c: New file.
35289         * modules/idpriv-droptemp: New file.
35290
35291 2009-06-08  Bruno Haible  <bruno@clisp.org>
35292
35293         Tests for module 'idpriv-drop'.
35294         * modules/idpriv-drop-tests: New file.
35295         * tests/test-idpriv-drop.sh: New file.
35296         * tests/test-idpriv-drop.su.sh: New file.
35297         * tests/test-idpriv-drop.c: New file.
35298
35299         New module 'idpriv-drop'.
35300         * lib/idpriv.h: New file.
35301         * lib-idpriv-drop.c: New file.
35302         * m4/idpriv.m4: New file.
35303         * modules/idpriv-drop: New file.
35304
35305 2009-06-08  Bruno Haible  <bruno@clisp.org>
35306
35307         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35308         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35309         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35310         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35311         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35312         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35313         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35314
35315 2009-06-08  Eric Blake  <ebb9@byu.net>
35316
35317         test-strstr: use memory fence, when possible
35318         * tests/test-strstr.c (main): Use memory fence, in order to be
35319         more likely to trigger Debian bug 521737.
35320         * modules/strstr-tests (Files): Pull in additional files.
35321
35322         memchr: no longer obsolete, for wider field testing
35323         * modules/memchr (Status, Notice): Delete, this module is no
35324         longer obsolete.
35325         * modules/vasnprintf (Depends-on): Add memchr.
35326
35327 2009-06-07  Jim Meyering  <meyering@redhat.com>
35328
35329         hash: declare some functions with the warn_unused_result attribute
35330         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35331
35332 2009-06-07  Bruno Haible  <bruno@clisp.org>
35333
35334         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35335         Reported by Eric Blake.
35336
35337 2009-06-06  Eric Blake  <ebb9@byu.net>
35338
35339         test-alignof: fix typo with long double
35340         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35341         compiler error.
35342
35343 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35344
35345         Escape non-texinfo { and }s.
35346         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35347         markup error.
35348
35349 2009-06-04  Jim Meyering  <meyering@redhat.com>
35350
35351         gitlog-to-changelog: don't infloop on an empty commit log
35352         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35353         Reported by Boris Petersen <transacid@centerim.org>.
35354
35355 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35356
35357         version-etc: extend for packagers
35358         Add three new configure options, intended for packagers:
35359           --with-packager="packager name"
35360           --with-packager-version="packager-specific version"
35361           --with-packager-bug-reports="packager bug reporting"
35362         An example with coreutils:
35363           $ ./configure \
35364             --with-packager=Gentoo \
35365             --with-packager-bug-report=http://bugs.gentoo.org/ \
35366             --with-packager-version="patchset 1.6"
35367           $ ./src/ls --version | head -n2
35368           ls (GNU coreutils) 7.1-dirty
35369           Packaged by Gentoo (patchset 1.6)
35370         Note that the bug reporting info via --help doesn't show up because
35371         coreutils uses its own custom emit_bug_reporting_address() implementation
35372         in src/system.h.  If it didn't, it'd look like:
35373           $ ./src/ls --help | tail -n4
35374           Report bugs to <bug-coreutils@gnu.org>.
35375           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35376           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35377           General help using GNU software: <http://www.gnu.org/gethelp/>.
35378         * lib/version-etc.c: Print new information, if provided.
35379         * m4/version-etc.m4: New file.
35380         * modules/version-etc (Files): Add m4/version-etc.m4.
35381         (configure.ac): Add gl_VERSION_ETC.
35382
35383 2009-05-31  Bruno Haible  <bruno@clisp.org>
35384
35385         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35386         and 'int64_t'.
35387         * modules/alignof-tests (Dependencies): Add stdint.
35388         Reported by Eric Blake.
35389
35390 2009-05-31  Bruno Haible  <bruno@clisp.org>
35391
35392         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35393         restriction due to compiler bugs.
35394         Reported by Eric Blake.
35395
35396 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35397             Bruno Haible  <bruno@clisp.org>
35398
35399         Fix test-alignof failure.
35400         * lib/alignof.h (alignof_slot): New macro.
35401         (alignof_type): New macro, with the same semantics as the previous
35402         'alignof'.
35403         (alignof): Alias to alignof_slot.
35404         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35405         check that the results are usable as constant expressions.
35406
35407 2009-05-31  Bruno Haible  <bruno@clisp.org>
35408
35409         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35410         * tests/test-memchr.c (main): Check that memchr does not read past the
35411         first occurrence of the byte.
35412         * tests/test-strstr.c (main): Update comment.
35413         Suggested by Eric Blake.
35414
35415 2009-05-30  Bruno Haible  <bruno@clisp.org>
35416
35417         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35418         detail how to use dumpbin.
35419         Reported by David Byron <dbyron@dbyron.com>.
35420
35421 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35422
35423         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35424
35425 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35426
35427         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35428
35429 2009-05-28  Bruno Haible  <bruno@clisp.org>
35430
35431         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35432         build-aux/ files.
35433
35434 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35435
35436         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35437
35438 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35439
35440         * gnulib-tool (sed_transform_main_lib_file)
35441         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35442         regexps.
35443
35444 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35445
35446         * tests/test-strstr.c: Add another self-test.
35447         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35448         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35449
35450 2009-05-23  Bruno Haible  <bruno@clisp.org>
35451
35452         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35453         change.
35454
35455 2009-05-21  Bruno Haible  <bruno@clisp.org>
35456
35457         Simplify use of mode_t varargs.
35458         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35459         uses 'mode_t' or 'int'.
35460         * lib/openat.c (openat): Likewise.
35461         * lib/open-safer.c (open_safer): Likewise.
35462         * m4/mode_t.m4: New file.
35463         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35464         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35465         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35466         * modules/open (Files): Add m4/mode_t.m4.
35467         * modules/openat (Files): Likewise.
35468         * modules/fcntl-safer (Files): Likewise.
35469         Suggested by Eric Blake.
35470
35471 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35472
35473         * doc/glibc-functions/fallocate.texi: New file.
35474         * doc/gnulib.texi: Include it.
35475
35476 2009-05-21  Eric Blake  <ebb9@byu.net>
35477             Bruno Haible  <bruno@clisp.org>
35478
35479         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35480         invocations.
35481         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35482
35483 2009-05-21  Eric Blake  <ebb9@byu.net>
35484             Bruno Haible  <bruno@clisp.org>
35485
35486         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35487         include_next. Fix of 2008-11-20 commit.
35488         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35489         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35490         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35491         NEXT_MATH_H.
35492         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35493         instead of NEXT_MATH_H.
35494
35495 2009-05-21  Bruno Haible  <bruno@clisp.org>
35496
35497         Avoid redefinition warnings for SIZE_MAX.
35498         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35499         Reported by Simon Josefsson.
35500
35501 2009-05-21  Bruno Haible  <bruno@clisp.org>
35502
35503         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35504         AC_CACHE_VAL.
35505
35506 2009-05-20  Bruno Haible  <bruno@clisp.org>
35507
35508         Make zeroptr.h work on mingw.
35509         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35510         mprotect.
35511         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35512         * modules/memchr2-tests (configure.ac): Likewise.
35513         * modules/memcmp-tests (configure.ac): Likewise.
35514         * modules/memmem-tests (configure.ac): Likewise.
35515         * modules/memrchr-tests (configure.ac): Likewise.
35516         Reported by Simon Josefsson.
35517
35518 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35519
35520         * tests/test-glob.c: Include string.h for strcmp prototype.
35521
35522 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35523
35524         * modules/getdelim (Depends-on): Add explicit stdint, although it
35525         was implicitly already pulled in via realloc-posix.
35526         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35527
35528 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35529
35530         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35531         G. Christensen" <tgc@jupiterrise.com>.
35532         * m4/sys_socket_h.m4: Check for sa_family_t.
35533         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35534         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35535         * tests/test-sys_socket.c: Check that sa_family_t works.
35536
35537 2009-05-18  Eric Blake  <ebb9@byu.net>
35538
35539         maint.mk: allow gnulib_dir in VPATH build
35540         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35541
35542 2009-05-15  Jim Meyering  <meyering@redhat.com>
35543
35544         maint.mk: Give gnulib_dir a default definition.
35545         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35546         Thus, most packages no longer need to specify this variable in cfg.mk
35547
35548 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35549
35550         rename.m4: fix typos that would make non-mingw cross-configure fail
35551         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35552
35553 2009-05-13  Eric Blake  <ebb9@byu.net>
35554
35555         mmap-anon: avoid out-of-order autoconf expansion
35556         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35557         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35558         * modules/memchr-tests (Depends-on): Add extensions.
35559         * modules/memchr2-tests (Depends-on): Add extensions.
35560         * modules/memcmp-tests (Depends-on): Add extensions.
35561         * modules/memmem-tests (Depends-on): Add extensions.
35562         * modules/memrchr-tests (Depends-on): Add extensions.
35563
35564 2009-05-13  Bruno Haible  <bruno@clisp.org>
35565
35566         Make some tests ISO C 99 compliant.
35567         * tests/zerosize-ptr.h: New file.
35568         * tests/test-memchr.c: Include zerosize-ptr.h.
35569         (main): Use a zero-size object pointer instead of NULL.
35570         * tests/test-memchr2.c: Include zerosize-ptr.h.
35571         (main): Use a zero-size object pointer instead of NULL.
35572         * tests/test-memcmp.c: Include zerosize-ptr.h.
35573         (main): Use a zero-size object pointer instead of NULL.
35574         * tests/test-memmem.c: Include zerosize-ptr.h.
35575         (main): Use a zero-size object pointer instead of NULL.
35576         * tests/test-memrchr.c: Include zerosize-ptr.h.
35577         (main): Use a zero-size object pointer instead of NULL.
35578         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35579         m4/mmap-anon.m4.
35580         (Depends-on): Add getpagesize.
35581         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35582         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35583         m4/mmap-anon.m4.
35584         (Depends-on): Add getpagesize.
35585         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35586         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35587         m4/mmap-anon.m4.
35588         (Depends-on): Add getpagesize.
35589         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35590         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35591         m4/mmap-anon.m4.
35592         (Depends-on): Add getpagesize.
35593         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35594         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35595         m4/mmap-anon.m4.
35596         (Depends-on): Add getpagesize.
35597         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35598
35599 2009-05-12  Bruno Haible  <bruno@clisp.org>
35600
35601         Tests for module 'alignof'.
35602         * modules/alignof-tests: New file.
35603         * tests/test-alignof.c: New file.
35604
35605 2009-05-12  Bruno Haible  <bruno@clisp.org>
35606
35607         Fix alignof macro.
35608         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35609         vendor compilers that are always correct.
35610
35611 2009-05-12  Bruno Haible  <bruno@clisp.org>
35612
35613         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35614         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35615         not whether its fully works.
35616
35617 2009-05-12  Bruno Haible  <bruno@clisp.org>
35618
35619         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35620
35621 2009-05-12  Jim Meyering  <meyering@redhat.com>
35622
35623         * top/maint.mk: Adjust backslash alignment.
35624
35625 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35626
35627         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35628
35629 2009-05-11  Eric Blake  <ebb9@byu.net>
35630
35631         argp: avoid undefined behavior
35632         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35633         macros.
35634
35635 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35636
35637         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35638         user.name to prevent git commit from complaining.
35639
35640 2009-05-10  Bruno Haible  <bruno@clisp.org>
35641
35642         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35643         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35644         it rewrites every file name only once.
35645         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35646
35647 2009-05-08  Bruno Haible  <bruno@clisp.org>
35648
35649         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35650         instead of 'max'.
35651
35652 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35653
35654         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35655         sockaddr_storage test.
35656
35657 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35658
35659         * modules/sys_socket (Makefile.am): Substitute
35660         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35661         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35662         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35663         * tests/test-sys_socket.c: Check sockaddr_storage.
35664
35665 2009-05-08  Bruno Haible  <bruno@clisp.org>
35666
35667         New module 'alignof'.
35668         * lib/alignof.h: New file.
35669         * modules/alignof: New file.
35670
35671 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35672             Bruno Haible  <bruno@clisp.org>
35673
35674         Fix test-file-has-acl on FreeBSD.
35675         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35676         mask is implicitly added.
35677         * tests/test-file-has-acl.c: Include <signal.h>.
35678         (main): Terminate the test after 5 seconds.
35679         * modules/acl-tests (configure.ac): Check for alarm function.
35680
35681 2009-05-04  Bruno Haible  <bruno@clisp.org>
35682
35683         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35684         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35685         * modules/errno (configure.ac): Drop AC_REQUIRE.
35686         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35687         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35688
35689 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35690
35691         * modules/glob-tests: New module.
35692         * tests/test-glob.c: Add.
35693
35694 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35695
35696         * modules/fnmatch-tests: New module.
35697         * tests/test-fnmatch.c: Add.
35698
35699 2009-05-04  Eric Blake  <ebb9@byu.net>
35700
35701         maint: make the new no-submodule-changes rule VPATH-safe
35702         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35703
35704 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35705             Bruno Haible  <bruno@clisp.org>
35706
35707         acl: Fix infinite loop on FreeBSD.
35708         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35709         of return value from acl_get_entry.
35710         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35711         Likewise.
35712
35713 2009-05-03  Bruno Haible  <bruno@clisp.org>
35714
35715         * lib/acl-internal.h (acl_entries): Clarify return value.
35716         * lib/acl_entries.c (acl_entries): Likewise.
35717
35718 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35719
35720         Bug fix in acl module.
35721         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35722
35723 2009-05-03  Bruno Haible  <bruno@clisp.org>
35724
35725         Create gperf-generated file in the source dir, not in the build dir.
35726         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35727         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35728         * modules/unicase/locale-language (unicase/locale-languages.h):
35729         Likewise.
35730         * modules/unicase/special-casing (unicase/special-casing-table.h):
35731         Likewise.
35732         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35733         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35734         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35735         Reported by Ralf Wildenhues.
35736
35737 2009-05-03  Bruno Haible  <bruno@clisp.org>
35738
35739         * modules/fnmatch (Description, configure.ac): Taken from
35740         fnmatch-posix.
35741         * modules/fnmatch-posix: Turn into a symbolic reference to the
35742         'fnmatch' module, and deprecate.
35743         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35744
35745 2009-05-03  Bruno Haible  <bruno@clisp.org>
35746
35747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35748         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35749         Reported by Ralf Wildenhues.
35750
35751 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35752
35753         * m4/fnmatch.m4: Fix fnmatch re-define.
35754
35755 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35756
35757         priv-set: new module and tests; adapt write-any-file
35758         * lib/priv-set.c: New file.
35759         * lib/priv-set.h: New file.
35760         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35761         * lib/write-any-file.c: Simplify by using priv-set module.
35762         * m4/priv-set.m4: New file.
35763         * modules/priv-set: New file.
35764         * modules/unlinkdir: Add dependency on priv-set module.
35765         * modules/write-any-file: Likewise.
35766
35767         Tests for module 'priv-set'.
35768         * modules/priv-set-tests: New file.
35769         * tests/test-priv-set.c: New file.
35770
35771 2009-05-03  Jim Meyering  <meyering@redhat.com>
35772             Bruno Haible  <bruno@clisp.org>
35773
35774         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35775         use the converted UTF-8 variant of the name instead.
35776
35777 2009-05-03  Jim Meyering  <meyering@redhat.com>
35778
35779         tests: tighten some getdate tests
35780         * tests/test-getdate.c (main): Tighten tests: require equality,
35781         not just greater than.  Set TZ envvar to UTC0.
35782
35783 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35784
35785         getdate: correctly interpret "next monday" when run on a Monday
35786         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35787         that e.g., "next tues" (when run on a tuesday) results in a date
35788         that is one week in the future, and not today's date.
35789         I.e., add a week when the wday is the same as the current one.
35790         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35791         and earlier by Martin Bernreuther and Jan Minář.
35792         * tests/test-getdate.c (main): Check that "next DAY" is always in
35793         the future and that "last DAY" is always in the past.
35794
35795 2009-05-02  Jim Meyering  <meyering@redhat.com>
35796
35797         build: ensure that a release build fails when a submodule is unclean
35798         * top/maint.mk (no-submodule-changes): New rule.
35799         (alpha beta major): Depend on it.
35800
35801 2009-05-02  Bruno Haible  <bruno@clisp.org>
35802
35803         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35804         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35805         shell variable gl_fnmatch_required to detect which variant is
35806         requested.
35807         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35808         gl_FUNC_FNMATCH_POSIX.
35809         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35810         exclude fnmatch-posix.
35811
35812 2009-05-02  Bruno Haible  <bruno@clisp.org>
35813
35814         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35815         * modules/mbsrtowcs (License): Change to LGPLv2+.
35816         * modules/strnlen1 (License): Likewise.
35817         Reported by Simon Josefsson.
35818
35819 2009-05-02  Bruno Haible  <bruno@clisp.org>
35820
35821         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35822         "cross".
35823         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35824         gnulib-tool was called with option --source-base=lib.
35825
35826 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35827
35828         Use automake *-local hooks without commands, for extensibility.
35829         * modules/localcharset (Makefile.am): Rename install-exec-local
35830         rule to install-exec-localcharset, and make it a prerequisite of
35831         install-exec-local.  Likewise, rename the uninstall-local rule to
35832         uninstall-localcharset, and make it a prerequisite of the former.
35833
35834 2009-05-01  Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35837         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35838         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35839         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35840         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35841         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35842         m4/locale-zh.m4, m4/codeset.m4.
35843
35844         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35845         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35846         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35847         m4/locale-zh.m4.
35848
35849         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35850         REPLACE_WCRTOMB if mbstate_t must be replaced.
35851         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35852         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35853
35854 2009-05-01  Bruno Haible  <bruno@clisp.org>
35855
35856         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35857         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35858         dngettext, dcngettext, textdomain, bindtextdomain,
35859         bind_textdomain_codeset): Undefine before redefining.
35860
35861 2009-04-30  Bruno Haible  <bruno@clisp.org>
35862
35863         Fix bug introduced on 2009-04-25.
35864         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35865         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35866         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35867         is defined.
35868         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35869         is defined.
35870         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35871         is defined.
35872         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35873
35874 2009-04-28  Bruno Haible  <bruno@clisp.org>
35875
35876         Comment tweaks.
35877         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35878         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35879         * lib/unicase.h (u*_casexfrm): Likewise.
35880         Reported by Paolo Bonzini.
35881
35882 2009-04-28  Bruno Haible  <bruno@clisp.org>
35883
35884         Fix a compilation error.
35885         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35886         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35887         Reported by Jim Meyering.
35888
35889 2009-04-27  Bruno Haible  <bruno@clisp.org>
35890
35891         New module 'libunistring'.
35892         * modules/libunistring: New file.
35893         * m4/libunistring.m4: New file.
35894         * MODULES.html.sh (Unicode string functions): Add it.
35895
35896 2009-04-27  Eric Blake  <ebb9@byu.net>
35897
35898         maint.mk: allow package-specific header to provide <config.h>
35899         * top/maint.mk (sc_require_config_h): New variable.
35900         (sc_require_config_h, sc_require_config_h_first): Use it.
35901
35902 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35903
35904         * top/maint.mk (sc_avoid_if_before_free): Except
35905         useless-if-before-free script.
35906
35907 2009-04-27  Eric Blake  <ebb9@byu.net>
35908
35909         maintainer-makefile: depend on all required helper scripts
35910         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35911         useless-if-before-free.
35912         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35913         version, rather than assuming gnulib checkout is available.
35914         Reported by Simen Josefsson.
35915
35916 2009-04-26  Bruno Haible  <bruno@clisp.org>
35917
35918         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35919         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35920         "../" or "..".
35921
35922 2009-04-26  Bruno Haible  <bruno@clisp.org>
35923
35924         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35925         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35926         AC_LIB_HAVE_LINKFLAGS.
35927
35928 2009-04-26  Bruno Haible  <bruno@clisp.org>
35929
35930         Simplify calling convention of u*_conv_from_encoding.
35931         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35932         u32_conv_from_encoding): Expect a resultbuf argument and return the
35933         result directly as a pointer.
35934         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35935         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35936         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35937         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35938         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35939         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35940         Update.
35941         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35942         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35943         * lib/vasnprintf.c (VASNPRINTF): Update.
35944         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35945         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35946         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35947         * NEWS: Mention the change.
35948
35949 2009-04-26  Bruno Haible  <bruno@clisp.org>
35950
35951         Simplify calling convention of u*_conv_to_encoding.
35952         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35953         u32_conv_to_encoding): Expect a resultbuf argument and return the
35954         result directly as a pointer.
35955         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35956         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35957         freeing scaled_offsets if mem_iconveha failed.
35958         * lib/unicase/u-casexfrm.h (FUNC): Update.
35959         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35960         * lib/vasnprintf.c (VASNPRINTF): Update.
35961         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35962         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35963         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35964         * NEWS: Mention the change.
35965
35966 2009-04-26  Bruno Haible  <bruno@clisp.org>
35967
35968         Avoid test failures on AIX and OSF/1.
35969         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35970         malloc(0).
35971         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35972         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35973         Likewise.
35974         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35975         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35976         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35977         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35978         * doc/posix-functions/malloc.texi: Document the portability problem
35979         related to malloc(0).
35980
35981 2009-04-26  Bruno Haible  <bruno@clisp.org>
35982
35983         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35984         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35985         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35986
35987 2009-04-25  Bruno Haible  <bruno@clisp.org>
35988
35989         Avoid link error when creating a namespace clean library.
35990         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35991         as macro with arguments if already defined as an alias.
35992         * lib/signbitf.c (gl_signbitf): Don't undefine.
35993         * lib/signbitd.c (gl_signbitd): Don't undefine.
35994         * lib/signbitl.c (gl_signbitl): Don't undefine.
35995
35996 2009-04-25  Jim Meyering  <meyering@redhat.com>
35997
35998         vc-list-files: fix another quoting bug
35999         * build-aux/vc-list-files: Avoid sed backslash expansion
36000         of pathological directory names.
36001
36002 2009-04-25  Eric Blake  <ebb9@byu.net>
36003
36004         vc-list-files: fix shell quoting error
36005         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36006         timestamp.
36007
36008 2009-04-25  Jim Meyering  <meyering@redhat.com>
36009
36010         vc-list-files: restore lost functionality with subdir argument
36011         * build-aux/vc-list-files: When given a non-"." sub-directory
36012         argument, substitute the $dir/ prefix back onto each resulting name.
36013         Otherwise, coreutils' root_tests check would fail.
36014
36015 2009-04-24  Eric Blake  <ebb9@byu.net>
36016
36017         vc-list-files: ignore git symlinks
36018         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36019         than ls-files, to ignore git symlinks.
36020
36021         maint.mk: import improvements from m4
36022         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36023         (move_if_change): Delete unused macro.
36024         (news-date-check, vc-diff-check): Support VPATH builds.
36025         (announcement): Likewise.  Split --bootstrap-tools list...
36026         (boostrap-tools): ...into separate list, which can be overridden
36027         in cfg.mk.
36028         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36029         requiring dependency on useless-if-before-free module.
36030         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36031         Support VPATH builds.
36032
36033 2009-04-24  Jim Meyering  <meyering@redhat.com>
36034
36035         maint.mk: remove coreutils-specific rules and variables
36036         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36037         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36038         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36039
36040         maint.mk: remove obsolete rule
36041         * top/maint.mk (rel-check): Remove rule.
36042         (WGET, WGETFLAGS): Remove now-unused variables.
36043
36044 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36045
36046         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36047         consistency.
36048
36049         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36050         '$(PATH_SEPARATOR)' instead of ':'.
36051
36052 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36053
36054         * lib/getopt1.c (main): Use 'const' for static array.
36055
36056 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36057
36058         * top/maint.mk: Sync with coreutils.
36059         * NEWS: Explain incompatibilities.
36060
36061 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36062             Bruno Haible  <bruno@clisp.org>
36063
36064         Fix cross-compilation results.
36065         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36066         statement, as third argument of AC_TRY_RUN.
36067         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36068         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36069         Likewise.
36070         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36071         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36072         Likewise.
36073         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36074         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36075         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36076
36077 2009-04-20  Bruno Haible  <bruno@clisp.org>
36078
36079         Avoid test failure on mingw.
36080         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36081
36082 2009-04-20  Bruno Haible  <bruno@clisp.org>
36083
36084         Avoid compilation error on mingw.
36085         * modules/localename-tests (Depends-on): Add locale.
36086
36087 2009-04-19  Bruno Haible  <bruno@clisp.org>
36088
36089         Support for building a shared library on Windows platforms.
36090         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36091         (main): Test the presence of UNINORM_NFC here.
36092         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36093         (main): Test the presence of UNINORM_NFD here.
36094         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36095         (main): Test the presence of UNINORM_NFKC here.
36096         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36097         (main): Test the presence of UNINORM_NFKD here.
36098
36099 2009-04-19  Bruno Haible  <bruno@clisp.org>
36100
36101         Avoid a compiler warning.
36102         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36103         Change type of variable 'sequence'.
36104
36105 2009-04-19  Bruno Haible  <bruno@clisp.org>
36106
36107         * modules/configmake (Makefile.am): When the contents of configmake.h
36108         does not change, arrange to preserve its modification time.
36109
36110 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36111
36112         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36113         gettext domain.
36114
36115 2009-04-16  Jim Meyering  <meyering@redhat.com>
36116
36117         useless-if-before-free: improve conversion code
36118         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36119         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36120
36121 2009-04-14  Bruno Haible  <bruno@clisp.org>
36122
36123         * modules/fcntl (Depends-on): Add extensions.
36124         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36125
36126 2009-04-12  Ben Pfaff  <blp@gnu.org>
36127
36128         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36129         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36130
36131 2009-03-20  Ben Pfaff  <blp@gnu.org>
36132
36133         Make rename replace existing destinations on Windows.
36134         * m4/rename.m4: Add test for Mingw.
36135         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36136         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36137         * doc/posix-functions/rename.texi: Document.
36138
36139 2009-04-10  Bruno Haible  <bruno@clisp.org>
36140
36141         New include file "iconveh.h".
36142         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36143         * lib/striconveh.h: Include it.
36144         (enum iconv_ilseq_handler): Remove definition.
36145         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36146         striconveh.h.
36147         * lib/striconveha.c: Include striconveh.h.
36148         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36149         * modules/striconveh (Files): Add lib/iconveh.h.
36150         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36151         lib/striconveh.h.
36152
36153 2009-04-10  Bruno Haible  <bruno@clisp.org>
36154
36155         * lib/uniconv.h: Update comment.
36156
36157 2009-04-10  Bruno Haible  <bruno@clisp.org>
36158
36159         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36160         always.
36161         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36162         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36163         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36164         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36165         "unistring-notinline.h", so that the function gets defined always.
36166         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36167         * lib/unistr/u8-uctomb.c: Likewise.
36168         * lib/unistr/u16-mbtouc.c: Likewise.
36169         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36170         * lib/unistr/u16-uctomb.c: Likewise.
36171         * lib/unistr/u32-mbtouc.c: Likewise.
36172         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36173         * lib/unistr/u32-uctomb.c: Likewise.
36174
36175 2009-04-10  Bruno Haible  <bruno@clisp.org>
36176
36177         Mark 'utime' obsolete.
36178         * modules/utime (Status, Notice): New sections.
36179         Suggested by Jim Meyering.
36180
36181         Fix cross-compile guess for utime test.
36182         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36183         autoconf.
36184         * doc/posix-functions/utime.texi: Give more precisions.
36185         Reported by Jan <ipif@ymail.com>.
36186
36187 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36188
36189         filevercmp: correct today's change
36190         * lib/filevercmp.c: Also handle coreutils' test inputs.
36191         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36192
36193         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36194         for reporting it.
36195         * lib/filevercmp.c: Special handle for "", "." and "..".
36196         * tests/test-filevercmp.c: Enlarge the set suite.
36197
36198 2009-04-07  Jim Meyering  <meyering@redhat.com>
36199
36200         useless-if-before-free: show how to remove braced useless free, too
36201         * build-aux/useless-if-before-free: still only in a comment, though.
36202
36203 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36204
36205         maint.mk: import changes to syntax-check macros from coreutils
36206         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36207         Use them in the relevant macros.
36208
36209 2009-04-06  Bruno Haible  <bruno@clisp.org>
36210
36211         Fix unportable use of bit-fields.
36212         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36213         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36214         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36215
36216 2009-04-06  Bruno Haible  <bruno@clisp.org>
36217
36218         Avoid test failures on AIX and OSF/1.
36219         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36220         that malloc(0) = NULL.
36221         * tests/unicase/test-u8-tolower.c (check): Likewise.
36222         * tests/unicase/test-u8-totitle.c (check): Likewise.
36223         * tests/unicase/test-u8-toupper.c (check): Likewise.
36224         * tests/unicase/test-u16-casefold.c (check): Likewise.
36225         * tests/unicase/test-u16-tolower.c (check): Likewise.
36226         * tests/unicase/test-u16-totitle.c (check): Likewise.
36227         * tests/unicase/test-u16-toupper.c (check): Likewise.
36228         * tests/unicase/test-u32-casefold.c (check): Likewise.
36229         * tests/unicase/test-u32-tolower.c (check): Likewise.
36230         * tests/unicase/test-u32-totitle.c (check): Likewise.
36231         * tests/unicase/test-u32-toupper.c (check): Likewise.
36232         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36233         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36234         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36235         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36236         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36237         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36238         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36239         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36240         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36241         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36242         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36243         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36244
36245 2009-04-05  Bruno Haible  <bruno@clisp.org>
36246
36247         Work around an autoconf limitation.
36248         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36249         comment line if it would be longer than 3 KB.
36250
36251 2009-04-05  Bruno Haible  <bruno@clisp.org>
36252
36253         Avoid test failure with libiconv-1.13.
36254         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36255         of the expected test results.
36256
36257 2009-04-05  Bruno Haible  <bruno@clisp.org>
36258
36259         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36260         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36261         that it should be installed.
36262
36263 2009-04-05  Bruno Haible  <bruno@clisp.org>
36264
36265         * gnulib-tool: New option --copy-file.
36266         (func_usage): Document it.
36267         (func_dest_tmpfilename): Moved out of func_import.
36268         (func_add_file, func_update_file): New functions, extracted from
36269         func_import.
36270         (func_import): Update.
36271
36272 2009-04-05  Karl Berry  <karl@gnu.org>
36273
36274         * README: prominently mention gnulib-tool.
36275         Rearrange sections so getting the code is near the top.
36276
36277 2009-04-05  Bruno Haible  <bruno@clisp.org>
36278
36279         * lib/unicase.h: Mention u*_cmp2.
36280         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36281         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36282         * lib/unicase/ulc-casecmp.c: Likewise.
36283         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36284         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36285         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36286         unistr/u8-cmp.
36287         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36288         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36289         unistr/u16-cmp.
36290         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36291         unistr/u32-cmp.
36292
36293         * lib/uninorm.h: Mention u*_cmp2.
36294         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36295         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36296         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36297         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36298         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36299         unistr/u8-cmp.
36300         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36301         unistr/u16-cmp.
36302         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36303         unistr/u32-cmp.
36304
36305         New module 'unistr/u32-cmp2'.
36306         * lib/unistr/u32-cmp2.c: New file.
36307         * modules/unistr/u32-cmp2: New file.
36308
36309         New module 'unistr/u16-cmp2'.
36310         * lib/unistr/u16-cmp2.c: New file.
36311         * modules/unistr/u16-cmp2: New file.
36312
36313         New module 'unistr/u8-cmp2'.
36314         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36315         * lib/unistr/u8-cmp2.c: New file.
36316         * lib/unistr/u-cmp2.h: New file.
36317         * modules/unistr/u8-cmp2: New file.
36318
36319 2009-04-05  Bruno Haible  <bruno@clisp.org>
36320
36321         * lib/unictype.h (uc_property_is_valid): New macro.
36322         * tests/unictype/test-pr_byname.c (main): Use it.
36323
36324         * lib/unistr.h: Doc fixes.
36325         * lib/uniconv.h: Doc fixes.
36326         * lib/unictype.h: Doc fixes.
36327
36328 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36329
36330         Port coreutils 7.2 to Solaris 8.
36331
36332         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36333         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36334         for Solaris 8.  This is a bit of a hack, as it means it's the
36335         caller's responsibility to add -lnsl if needed, but most likely it
36336         won't be needed since only getaddrinfo uses this and getaddrinfo
36337         isn't needed on Solaris 8.
36338
36339         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36340         problem to Solaris 8 encountered with coreutils 7.2, which
36341         resulted in a message "fnmatch.c:292: warning: passing argument 4
36342         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36343         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36344
36345 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36346
36347         * m4/ld-version-script.m4: Add FIXME comment.
36348
36349 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36350
36351         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36352         SOVERSION variable.
36353
36354 2009-04-02  Bruno Haible  <bruno@clisp.org>
36355
36356         * Makefile (info, html, dvi, pdf): Combine the rules.
36357         Suggested by Jim Meyering.
36358
36359 2009-04-01  Bruno Haible  <bruno@clisp.org>
36360
36361         * Makefile (info, html, dvi, pdf): New targets.
36362         Reported by Reuben Thomas <rrt@sc3d.org>.
36363
36364 2009-04-01  Bruno Haible  <bruno@clisp.org>
36365
36366         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36367         can be put into PATH.
36368         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36369
36370 2009-04-01  Bruno Haible  <bruno@clisp.org>
36371
36372         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36373
36374 2009-04-01  Bruno Haible  <bruno@clisp.org>
36375
36376         Rename module 'visibility'.
36377         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36378         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36379         * doc/gnulib.texi: Update.
36380         * MODULES.html.sh (Misc): Update.
36381         * NEWS: Mention the change.
36382
36383 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36384
36385         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36386         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36387         Eric Blake <ebb9@byu.net> for review.
36388         * MODULES.html.sh: Add lib-msvc-compat.
36389         * doc/gnulib.texi: Link to new section.
36390         * m4/ld-output-def.m4: New file.
36391         * doc/ld-output-def.texi: New file.
36392
36393 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36394
36395         Rename ld-version-script to lib-symbol-versions.  Suggested by
36396         Bruno Haible <bruno@clisp.org>.
36397         * modules/ld-version-script: Renamed to lib-symbol-versions.
36398         * doc/ld-version-script.texi: Fix module name.
36399         * MODULES.html.sh: Add lib-symbol-versions.
36400
36401 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36402
36403         * modules/u64-tests: New file.
36404         * tests/test-u64.c: New file.
36405
36406 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36407
36408         * MODULES.html.sh: Mention u64.
36409         * modules/u64: New module.
36410         * modules/crypto/sha512: Depend on u64 module instead of providing
36411         u64.h.
36412
36413 2009-03-27  Eric Blake  <ebb9@byu.net>
36414
36415         test-strerror: make debugging EAI_SYSTEM easier
36416         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36417         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36418         failure was EAI_SYSTEM.
36419
36420 2009-03-25  Bruno Haible  <bruno@clisp.org>
36421
36422         Fix a problem with --enable-relocatable on Solaris 7.
36423         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36424         since 2008-02-24.
36425
36426 2009-03-25  Eric Blake  <ebb9@byu.net>
36427
36428         test-sockets: avoid gcc warning
36429         * tests/test-sockets.c (main): Silence compiler warning.
36430
36431 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36432
36433         New modules nproc, pthread, contributed by Glen Lenker.
36434
36435         * MODULES.html.sh: Add pthread, nproc.
36436         * lib/nproc.c: New file.
36437         * lib/nproc.h: New file.
36438         * lib/pthread.in.h: New file.
36439         * m4/pthread.m4: New file.
36440         * modules/nproc: New file.
36441         * modules/pthread: New file.
36442
36443 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36444
36445         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36446         New variable.
36447
36448 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36449
36450         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36451         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36452         * tests/test-filevercmp.c: Add tests for backup suffixes.
36453
36454 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36455
36456         * modules/stdlib (Depends-on): Add stdint, needed when defining
36457         struct random_data on, for example, HP-UX 10.20.  Reported by
36458         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36459
36460 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36461
36462         * lib/readline.c (readline): Call fflush on stdout after printing
36463         prompt.
36464
36465 2009-03-20  Bruno Haible  <bruno@clisp.org>
36466
36467         Remove dependency from 'close' module to -lws2_32 on native Windows.
36468         * lib/close-hook.h: New file.
36469         * lib/close-hook.c: New file.
36470         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36471         w32sock.h.
36472         (_gl_close_fd_maybe_socket): Remove function.
36473         (rpl_close): Invoke execute_all_close_hooks instead of
36474         _gl_close_fd_maybe_socket.
36475         * lib/sockets.c: Include close-hook.h, w32sock.h.
36476         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36477         (close_sockets_hook): New variable.
36478         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36479         (gl_sockets_cleanup): Unregister it.
36480         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36481         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36482         * modules/close-hook: New file.
36483         * modules/close (Files): Remove lib/w32sock.h.
36484         (Depends-on): Add close-hook.
36485         (Link): Remove section.
36486         * modules/sockets (Files): Add lib/w32sock.h.
36487         (Depends-on): Add close-hook.
36488         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36489         invocation.
36490         * NEWS: Mention that LIB_CLOSE is gone.
36491
36492 2009-03-23  Eric Blake  <ebb9@byu.net>
36493
36494         signal-tests: test previous patch
36495         * tests/test-signal.c: New file.
36496         * modules/signal-tests: Likewise.
36497
36498         signal.h: always support 'volatile sig_atomic_t'
36499         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36500         (gl_SIGNAL_H_DEFAULTS): Add a default.
36501         * modules/signal (Makefile.am): Substitute if needed.
36502         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36503         users can blindly add volatile.
36504         * doc/posix-headers/signal.texi (signal.h): Document it.
36505         Reported by Matthew Woehlke.
36506
36507 2009-03-23  Jim Meyering  <meyering@redhat.com>
36508
36509         pathmax: PATH_MAX: use pathconf only when available
36510         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36511         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36512         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36513         This avoids a link failure in a PSP cross-compilation environment
36514         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36515
36516         * lib/vasnprintf.c (divide): Fix typo in comment.
36517
36518 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36519
36520         * gnulib-tool (func_filter_filelist): Fix comment.
36521
36522 2009-03-20  Bruno Haible  <bruno@clisp.org>
36523
36524         Make sockets.h self-contained.
36525         * lib/sockets.c: Include sockets.h first.
36526         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36527
36528 2009-03-19  Eric Blake  <ebb9@byu.net>
36529
36530         doc: mention more functions added in cygwin 1.7.0
36531         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36532         addition.
36533         * doc/posix-functions/log2f.texi: Likewise.
36534
36535 2009-03-19  Jim Meyering  <meyering@redhat.com>
36536
36537         fsusage: avoid syntax error due to statement-before-declaration
36538         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36539         after all declarations.  Reported by Matthew Woehlke in
36540         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36541
36542 2009-03-18  Eric Blake  <ebb9@byu.net>
36543
36544         build-aux/compile: sync from automake
36545         * build-aux/compile: New file, from automake.
36546         * config/srclist.txt: Mention build-aux/compile.
36547
36548 2009-03-17  Bruno Haible  <bruno@clisp.org>
36549
36550         * lib/git-merge-changelog.c: Fix typo in comment.
36551         Reported by Reuben Thomas <rrt@sc3d.org>.
36552
36553 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36554
36555         * m4/regex.m4: update and improve help for
36556         --without-included-regex.
36557
36558 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36559
36560         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36561         failure on missing include files.
36562
36563 2009-03-17  Eric Blake  <ebb9@byu.net>
36564
36565         doc: mention more functions added in cygwin 1.7.0
36566         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36567         addition.
36568         * doc/posix-functions/fwscanf.texi: Likewise.
36569         * doc/posix-functions/swprintf.texi: Likewise.
36570         * doc/posix-functions/swscanf.texi: Likewise.
36571         * doc/posix-functions/vfwprintf.texi: Likewise.
36572         * doc/posix-functions/vfwscanf.texi: Likewise.
36573         * doc/posix-functions/vswprintf.texi: Likewise.
36574         * doc/posix-functions/vswscanf.texi: Likewise.
36575         * doc/posix-functions/vwprintf.texi: Likewise.
36576         * doc/posix-functions/vwscanf.texi: Likewise.
36577         * doc/posix-functions/wcscasecmp.texi: Likewise.
36578         * doc/posix-functions/wcsdup.texi: Likewise.
36579         * doc/posix-functions/wcsftime.texi: Likewise.
36580         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36581         * doc/posix-functions/wprintf.texi: Likewise.
36582         * doc/posix-functions/wscanf.texi: Likewise.
36583         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36584
36585 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36586
36587         maint.mk: really add $(AM_MAKEFLAGS)
36588         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36589         was inadvertently omitted in the last commit.
36590         Spotted by Bruno Haible.
36591
36592         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36593         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36594         $(AM_MAKEFLAGS)' rather than plain `make'.
36595
36596         gnulib-tool: execute $MAKE not make
36597         * gnulib-tool: Default $MAKE to 'make'.
36598         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36599         than make.  Initialize $MAKE in the do-autobuild script.
36600
36601         gnulib-tool: use $MAKE not make in generated files
36602         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36603         make, in generated files.  Initialize $MAKE in the do-autobuild
36604         script.
36605
36606         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36607
36608         GNUmakefile: disable parallelism only for multiple, recursive targets
36609         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36610         additions in the Makefile.
36611         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36612         by Automake.
36613         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36614         are listed on the command line and at least one of them is
36615         listed in $(ALL_RECURSIVE_TARGETS).
36616
36617 2009-03-14  Bruno Haible  <bruno@clisp.org>
36618
36619         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36620         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36621         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36622         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36623         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36624         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36625         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36626         unistr/u8-uctomb.
36627         * modules/unistr/u8-strchr (Depends-on): Likewise.
36628         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36629         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36630         unistr/u16-uctomb.
36631         * modules/unistr/u16-strchr (Depends-on): Likewise.
36632         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36633
36634 2009-03-12  Bruno Haible  <bruno@clisp.org>
36635
36636         Work around select() bug on Interix 3.5.
36637         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36638         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36639         * m4/select.m4: New file.
36640         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36641         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36642         * modules/select (Files): Add m4/select.m4.
36643         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36644         * modules/nanosleep (Depends-on): Add select.
36645         * modules/poll (Depends-on): Likewise.
36646         * doc/posix-functions/select.texi: Mention the Interix bug.
36647         Reported by Markus Duft <mduft@gentoo.org>.
36648
36649         * lib/select.c: Renamed from lib/winsock-select.c.
36650         * modules/select (Files): Add lib/select.c, remove
36651         lib/winsock-select.c.
36652         (configure.ac): Update.
36653
36654 2009-03-12  Jim Meyering  <meyering@redhat.com>
36655
36656         avoid gcc warnings about unused macro definitions
36657         * lib/readtokens.c (STREQ): Remove unused definition.
36658         * lib/xmalloc.c (SIZE_MAX): Likewise.
36659         * lib/openat-die.c (N_): Likewise.
36660         * lib/mountlist.c (SIZE_MAX): Remove definition.
36661         Instead, include <stdint.h>.
36662         * lib/readutmp.c: Likewise.
36663         * modules/readutmp (Depends-on): Add stdint.
36664         * modules/mountlist (Depends-on): Add stdint.
36665         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36666
36667 2009-03-10  Bruno Haible  <bruno@clisp.org>
36668
36669         Tests for module 'mbmemcasecoll'.
36670         * modules/mbmemcasecoll-tests: New file.
36671         * tests/test-mbmemcasecoll1.sh: New file.
36672         * tests/test-mbmemcasecoll2.sh: New file.
36673         * tests/test-mbmemcasecoll3.sh: New file.
36674         * tests/test-mbmemcasecoll.c: New file.
36675
36676         New module 'mbmemcasecoll'.
36677         * lib/mbmemcasecoll.h: New file.
36678         * lib/mbmemcasecoll.c: New file.
36679         * modules/mbmemcasecoll: New file.
36680
36681         * tests/test-mbmemcasecmp.h: New file, extracted from
36682         tests/test-mbmemcasecmp.c.
36683         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36684         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36685         (main): Update.
36686         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36687
36688 2009-03-09  Bruno Haible  <bruno@clisp.org>
36689
36690         Tests for module 'mbmemcasecmp'.
36691         * modules/mbmemcasecmp-tests: New file.
36692         * tests/test-mbmemcasecmp1.sh: New file.
36693         * tests/test-mbmemcasecmp2.sh: New file.
36694         * tests/test-mbmemcasecmp3.sh: New file.
36695         * tests/test-mbmemcasecmp.c: New file.
36696
36697         New module 'mbmemcasecmp'.
36698         * lib/mbmemcasecmp.h: New file.
36699         * lib/mbmemcasecmp.c: New file.
36700         * modules/mbmemcasecmp: New file.
36701
36702 2009-03-09  Bruno Haible  <bruno@clisp.org>
36703
36704         Tests for module 'unicase/ulc-casecoll'.
36705         * modules/unicase/ulc-casecoll-tests: New file.
36706         * tests/unicase/test-ulc-casecoll1.sh: New file.
36707         * tests/unicase/test-ulc-casecoll2.sh: New file.
36708         * tests/unicase/test-ulc-casecoll.c: New file.
36709
36710         New module 'unicase/ulc-casecoll'.
36711         * lib/unicase.h (ulc_casecoll): New declaration.
36712         * lib/unicase/ulc-casecoll.c: New file.
36713         * modules/unicase/ulc-casecoll: New file.
36714
36715         New module 'unicase/ulc-casexfrm'.
36716         * lib/unicase.h (ulc_casexfrm): New declaration.
36717         * lib/unicase/ulc-casexfrm.c: New file.
36718         * modules/unicase/ulc-casexfrm: New file.
36719
36720 2009-03-09  Bruno Haible  <bruno@clisp.org>
36721
36722         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36723         invocations.
36724
36725         * m4/mbscasecmp.m4: Remove file.
36726         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36727         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36728
36729         * m4/mbscasestr.m4: Remove file.
36730         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36731         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36732
36733         * m4/mbschr.m4: Remove file.
36734         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36735         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36736
36737         * m4/mbscspn.m4: Remove file.
36738         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36739         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36740
36741         * m4/mbslen.m4: Remove file.
36742         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36743         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36744
36745         * m4/mbsncasecmp.m4: Remove file.
36746         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36747         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36748
36749         * m4/mbsnlen.m4: Remove file.
36750         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36751         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36752
36753         * m4/mbspbrk.m4: Remove file.
36754         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36755         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36756
36757         * m4/mbspcasecmp.m4: Remove file.
36758         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36759         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36760
36761         * m4/mbsrchr.m4: Remove file.
36762         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36763         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36764
36765         * m4/mbssep.m4: Remove file.
36766         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36767         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36768
36769         * m4/mbsspn.m4: Remove file.
36770         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36771         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36772
36773         * m4/mbsstr.m4: Remove file.
36774         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36775         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36776
36777         * m4/mbstok_r.m4: Remove file.
36778         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36779         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36780
36781         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36782
36783         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36784         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36785
36786         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36787
36788 2009-03-08  Bruno Haible  <bruno@clisp.org>
36789
36790         Tests for module 'unicase/ulc-casecmp'.
36791         * modules/unicase/ulc-casecmp-tests: New file.
36792         * tests/unicase/test-ulc-casecmp1.sh: New file.
36793         * tests/unicase/test-ulc-casecmp2.sh: New file.
36794         * tests/unicase/test-ulc-casecmp.c: New file.
36795
36796         New module 'unicase/ulc-casecmp'.
36797         * lib/unicase.h (ulc_casecmp): New declaration.
36798         * lib/unicase/ulc-casecmp.c: New file.
36799         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36800         'const SRC_UNIT *'.
36801         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36802         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36803         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36804         * modules/unicase/ulc-casecmp: New file.
36805
36806         Tests for module 'unicase/u32-is-cased'.
36807         * modules/unicase/u32-is-cased-tests: New file.
36808         * tests/unicase/test-u32-is-cased.c: New file.
36809
36810         Tests for module 'unicase/u16-is-cased'.
36811         * modules/unicase/u16-is-cased-tests: New file.
36812         * tests/unicase/test-u16-is-cased.c: New file.
36813
36814         Tests for module 'unicase/u8-is-cased'.
36815         * modules/unicase/u8-is-cased-tests: New file.
36816         * tests/unicase/test-u8-is-cased.c: New file.
36817         * tests/unicase/test-is-cased.h: New file.
36818
36819         New module 'unicase/u32-is-cased'.
36820         * lib/unicase/u32-is-cased.c: New file.
36821         * modules/unicase/u32-is-cased: New file.
36822
36823         New module 'unicase/u16-is-cased'.
36824         * lib/unicase/u16-is-cased.c: New file.
36825         * modules/unicase/u16-is-cased: New file.
36826
36827         New module 'unicase/u8-is-cased'.
36828         * lib/unicase/u8-is-cased.c: New file.
36829         * lib/unicase/u-is-cased.h: New file.
36830         * modules/unicase/u8-is-cased: New file.
36831
36832         Tests for module 'unicase/u32-is-casefolded'.
36833         * modules/unicase/u32-is-casefolded-tests: New file.
36834         * tests/unicase/test-u32-is-casefolded.c: New file.
36835
36836         Tests for module 'unicase/u16-is-casefolded'.
36837         * modules/unicase/u16-is-casefolded-tests: New file.
36838         * tests/unicase/test-u16-is-casefolded.c: New file.
36839
36840         Tests for module 'unicase/u8-is-casefolded'.
36841         * modules/unicase/u8-is-casefolded-tests: New file.
36842         * tests/unicase/test-u8-is-casefolded.c: New file.
36843         * tests/unicase/test-is-casefolded.h: New file.
36844
36845         New module 'unicase/u32-is-casefolded'.
36846         * lib/unicase/u32-is-casefolded.c: New file.
36847         * modules/unicase/u32-is-casefolded: New file.
36848
36849         New module 'unicase/u16-is-casefolded'.
36850         * lib/unicase/u16-is-casefolded.c: New file.
36851         * modules/unicase/u16-is-casefolded: New file.
36852
36853         New module 'unicase/u8-is-casefolded'.
36854         * lib/unicase/u8-is-casefolded.c: New file.
36855         * modules/unicase/u8-is-casefolded: New file.
36856
36857         Tests for module 'unicase/u32-is-titlecase'.
36858         * modules/unicase/u32-is-titlecase-tests: New file.
36859         * tests/unicase/test-u32-is-titlecase.c: New file.
36860
36861         Tests for module 'unicase/u16-is-titlecase'.
36862         * modules/unicase/u16-is-titlecase-tests: New file.
36863         * tests/unicase/test-u16-is-titlecase.c: New file.
36864
36865         Tests for module 'unicase/u8-is-titlecase'.
36866         * modules/unicase/u8-is-titlecase-tests: New file.
36867         * tests/unicase/test-u8-is-titlecase.c: New file.
36868         * tests/unicase/test-is-titlecase.h: New file.
36869
36870         New module 'unicase/u32-is-titlecase'.
36871         * lib/unicase/u32-is-titlecase.c: New file.
36872         * modules/unicase/u32-is-titlecase: New file.
36873
36874         New module 'unicase/u16-is-titlecase'.
36875         * lib/unicase/u16-is-titlecase.c: New file.
36876         * modules/unicase/u16-is-titlecase: New file.
36877
36878         New module 'unicase/u8-is-titlecase'.
36879         * lib/unicase/u8-is-titlecase.c: New file.
36880         * modules/unicase/u8-is-titlecase: New file.
36881
36882         Tests for module 'unicase/u32-is-lowercase'.
36883         * modules/unicase/u32-is-lowercase-tests: New file.
36884         * tests/unicase/test-u32-is-lowercase.c: New file.
36885
36886         Tests for module 'unicase/u16-is-lowercase'.
36887         * modules/unicase/u16-is-lowercase-tests: New file.
36888         * tests/unicase/test-u16-is-lowercase.c: New file.
36889
36890         Tests for module 'unicase/u8-is-lowercase'.
36891         * modules/unicase/u8-is-lowercase-tests: New file.
36892         * tests/unicase/test-u8-is-lowercase.c: New file.
36893         * tests/unicase/test-is-lowercase.h: New file.
36894
36895         New module 'unicase/u32-is-lowercase'.
36896         * lib/unicase/u32-is-lowercase.c: New file.
36897         * modules/unicase/u32-is-lowercase: New file.
36898
36899         New module 'unicase/u16-is-lowercase'.
36900         * lib/unicase/u16-is-lowercase.c: New file.
36901         * modules/unicase/u16-is-lowercase: New file.
36902
36903         New module 'unicase/u8-is-lowercase'.
36904         * lib/unicase/u8-is-lowercase.c: New file.
36905         * modules/unicase/u8-is-lowercase: New file.
36906
36907         Tests for module 'unicase/u32-is-uppercase'.
36908         * modules/unicase/u32-is-uppercase-tests: New file.
36909         * tests/unicase/test-u32-is-uppercase.c: New file.
36910
36911         Tests for module 'unicase/u16-is-uppercase'.
36912         * modules/unicase/u16-is-uppercase-tests: New file.
36913         * tests/unicase/test-u16-is-uppercase.c: New file.
36914
36915         Tests for module 'unicase/u8-is-uppercase'.
36916         * modules/unicase/u8-is-uppercase-tests: New file.
36917         * tests/unicase/test-u8-is-uppercase.c: New file.
36918         * tests/unicase/test-is-uppercase.h: New file.
36919
36920         New module 'unicase/u32-is-uppercase'.
36921         * lib/unicase/u32-is-uppercase.c: New file.
36922         * modules/unicase/u32-is-uppercase: New file.
36923
36924         New module 'unicase/u16-is-uppercase'.
36925         * lib/unicase/u16-is-uppercase.c: New file.
36926         * modules/unicase/u16-is-uppercase: New file.
36927
36928         New module 'unicase/u8-is-uppercase'.
36929         * lib/unicase/u8-is-uppercase.c: New file.
36930         * modules/unicase/u8-is-uppercase: New file.
36931
36932         New module 'unicase/u32-is-invariant'.
36933         * lib/unicase/u32-is-invariant.c: New file.
36934         * modules/unicase/u32-is-invariant: New file.
36935
36936         New module 'unicase/u16-is-invariant'.
36937         * lib/unicase/u16-is-invariant.c: New file.
36938         * modules/unicase/u16-is-invariant: New file.
36939
36940         New module 'unicase/u8-is-invariant'.
36941         * lib/unicase/u8-is-invariant.c: New file.
36942         * lib/unicase/invariant.h: New file.
36943         * lib/unicase/u-is-invariant.h: New file.
36944         * modules/unicase/u8-is-invariant: New file.
36945
36946         Tests for module 'unicase/u32-casecoll'.
36947         * modules/unicase/u32-casecoll-tests: New file.
36948         * tests/unicase/test-u32-casecoll.c: New file.
36949
36950         Tests for module 'unicase/u16-casecoll'.
36951         * modules/unicase/u16-casecoll-tests: New file.
36952         * tests/unicase/test-u16-casecoll.c: New file.
36953
36954         Tests for module 'unicase/u8-casecoll'.
36955         * modules/unicase/u8-casecoll-tests: New file.
36956         * tests/unicase/test-u8-casecoll.c: New file.
36957
36958         New module 'unicase/u32-casecoll'.
36959         * lib/unicase/u32-casecoll.c: New file.
36960         * modules/unicase/u32-casecoll: New file.
36961
36962         New module 'unicase/u16-casecoll'.
36963         * lib/unicase/u16-casecoll.c: New file.
36964         * modules/unicase/u16-casecoll: New file.
36965
36966         New module 'unicase/u8-casecoll'.
36967         * lib/unicase/u8-casecoll.c: New file.
36968         * lib/unicase/u-casecoll.h: New file.
36969         * modules/unicase/u8-casecoll: New file.
36970
36971         New module 'unicase/u32-casexfrm'.
36972         * lib/unicase/u32-casexfrm.c: New file.
36973         * modules/unicase/u32-casexfrm: New file.
36974
36975         New module 'unicase/u16-casexfrm'.
36976         * lib/unicase/u16-casexfrm.c: New file.
36977         * modules/unicase/u16-casexfrm: New file.
36978
36979         New module 'unicase/u8-casexfrm'.
36980         * lib/unicase/u8-casexfrm.c: New file.
36981         * lib/unicase/u-casexfrm.h: New file.
36982         * modules/unicase/u8-casexfrm: New file.
36983
36984         Tests for module 'unicase/u32-casecmp'.
36985         * modules/unicase/u32-casecmp-tests: New file.
36986         * tests/unicase/test-u32-casecmp.c: New file.
36987
36988         Tests for module 'unicase/u16-casecmp'.
36989         * modules/unicase/u16-casecmp-tests: New file.
36990         * tests/unicase/test-u16-casecmp.c: New file.
36991
36992         Tests for module 'unicase/u8-casecmp'.
36993         * modules/unicase/u8-casecmp-tests: New file.
36994         * tests/unicase/test-u8-casecmp.c: New file.
36995         * tests/unicase/test-casecmp.h: New file.
36996
36997         New module 'unicase/u32-casecmp'.
36998         * lib/unicase/u32-casecmp.c: New file.
36999         * modules/unicase/u32-casecmp: New file.
37000
37001         New module 'unicase/u16-casecmp'.
37002         * lib/unicase/u16-casecmp.c: New file.
37003         * modules/unicase/u16-casecmp: New file.
37004
37005         New module 'unicase/u8-casecmp'.
37006         * lib/unicase/u8-casecmp.c: New file.
37007         * lib/unicase/u-casecmp.h: New file.
37008         * modules/unicase/u8-casecmp: New file.
37009
37010         Tests for module 'unicase/u32-casefold'.
37011         * modules/unicase/u32-casefold-tests: New file.
37012         * tests/unicase/test-u32-casefold.c: New file.
37013
37014         Tests for module 'unicase/u16-casefold'.
37015         * modules/unicase/u16-casefold-tests: New file.
37016         * tests/unicase/test-u16-casefold.c: New file.
37017
37018         Tests for module 'unicase/u8-casefold'.
37019         * modules/unicase/u8-casefold-tests: New file.
37020         * tests/unicase/test-u8-casefold.c: New file.
37021
37022         New module 'unicase/u32-casefold'.
37023         * lib/unicase/u32-casefold.c: New file.
37024         * modules/unicase/u32-casefold: New file.
37025
37026         New module 'unicase/u16-casefold'.
37027         * lib/unicase/u16-casefold.c: New file.
37028         * modules/unicase/u16-casefold: New file.
37029
37030         New module 'unicase/u8-casefold'.
37031         * lib/unicase/u8-casefold.c: New file.
37032         * lib/unicase/u-casefold.h: New file.
37033         * modules/unicase/u8-casefold: New file.
37034
37035         New module 'unicase/tocasefold'.
37036         * lib/unicase/casefold.h: New file.
37037         * lib/unicase/tocasefold.c: New file.
37038         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37039         * modules/unicase/tocasefold: New file.
37040
37041         Tests for module 'unicase/u32-totitle'.
37042         * modules/unicase/u32-totitle-tests: New file.
37043         * tests/unicase/test-u32-totitle.c: New file.
37044
37045         Tests for module 'unicase/u16-totitle'.
37046         * modules/unicase/u16-totitle-tests: New file.
37047         * tests/unicase/test-u16-totitle.c: New file.
37048
37049         Tests for module 'unicase/u8-totitle'.
37050         * modules/unicase/u8-totitle-tests: New file.
37051         * tests/unicase/test-u8-totitle.c: New file.
37052
37053         New module 'unicase/u32-totitle'.
37054         * lib/unicase/u32-totitle.c: New file.
37055         * modules/unicase/u32-totitle: New file.
37056
37057         New module 'unicase/u16-totitle'.
37058         * lib/unicase/u16-totitle.c: New file.
37059         * modules/unicase/u16-totitle: New file.
37060
37061         New module 'unicase/u8-totitle'.
37062         * lib/unicase/u8-totitle.c: New file.
37063         * lib/unicase/u-totitle.h: New file.
37064         * modules/unicase/u8-totitle: New file.
37065
37066         Tests for module 'unicase/u32-tolower'.
37067         * modules/unicase/u32-tolower-tests: New file.
37068         * tests/unicase/test-u32-tolower.c: New file.
37069
37070         Tests for module 'unicase/u16-tolower'.
37071         * modules/unicase/u16-tolower-tests: New file.
37072         * tests/unicase/test-u16-tolower.c: New file.
37073
37074         Tests for module 'unicase/u8-tolower'.
37075         * modules/unicase/u8-tolower-tests: New file.
37076         * tests/unicase/test-u8-tolower.c: New file.
37077
37078         New module 'unicase/u32-tolower'.
37079         * lib/unicase/u32-tolower.c: New file.
37080         * modules/unicase/u32-tolower: New file.
37081
37082         New module 'unicase/u16-tolower'.
37083         * lib/unicase/u16-tolower.c: New file.
37084         * modules/unicase/u16-tolower: New file.
37085
37086         New module 'unicase/u8-tolower'.
37087         * lib/unicase/u8-tolower.c: New file.
37088         * modules/unicase/u8-tolower: New file.
37089
37090         Tests for module 'unicase/u32-toupper'.
37091         * modules/unicase/u32-toupper-tests: New file.
37092         * tests/unicase/test-u32-toupper.c: New file.
37093
37094         Tests for module 'unicase/u16-toupper'.
37095         * modules/unicase/u16-toupper-tests: New file.
37096         * tests/unicase/test-u16-toupper.c: New file.
37097
37098         Tests for module 'unicase/u8-toupper'.
37099         * modules/unicase/u8-toupper-tests: New file.
37100         * tests/unicase/test-u8-toupper.c: New file.
37101
37102         New module 'unicase/u32-toupper'.
37103         * lib/unicase/u32-toupper.c: New file.
37104         * modules/unicase/u32-toupper: New file.
37105
37106         New module 'unicase/u16-toupper'.
37107         * lib/unicase/u16-toupper.c: New file.
37108         * modules/unicase/u16-toupper: New file.
37109
37110         New module 'unicase/u8-toupper'.
37111         * lib/unicase/u8-toupper.c: New file.
37112         * modules/unicase/u8-toupper: New file.
37113
37114         New module 'unicase/u32-casemap'.
37115         * lib/unicase/u32-casemap.c: New file.
37116         * modules/unicase/u32-casemap: New file.
37117
37118         New module 'unicase/u16-casemap'.
37119         * lib/unicase/u16-casemap.c: New file.
37120         * modules/unicase/u16-casemap: New file.
37121
37122         New module 'unicase/u8-casemap'.
37123         * lib/unicase/unicasemap.h: New file.
37124         * lib/unicase/u8-casemap.c: New file.
37125         * lib/unicase/u-casemap.h: New file.
37126         * modules/unicase/u8-casemap: New file.
37127
37128         New module 'unicase/special-casing'.
37129         * lib/unicase/special-casing.h: New file.
37130         * lib/unicase/special-casing.c: New file.
37131         * lib/unicase/special-casing-table.gperf: New file, generated by
37132         gen-uni-tables.c.
37133         * modules/unicase/special-casing: New file.
37134
37135         Tests for module 'unicase/locale-language'.
37136         * modules/unicase/locale-language-tests: New file.
37137         * tests/unicase/test-locale-language.sh: New file.
37138         * tests/unicase/test-locale-language.c: New file.
37139
37140         New module 'unicase/locale-language'.
37141         * lib/unicase/locale-language.c: New file.
37142         * lib/unicase/locale-languages.gperf: New file.
37143         * modules/unicase/locale-language: New file.
37144
37145         Generate more tables for case conversion and case folding.
37146         * lib/gen-uni-tables.c (SCC_*): New enum items.
37147         (struct special_casing_rule): New type.
37148         (casing_rules, num_casing_rules, allocated_casing_rules): New
37149         variables.
37150         (add_casing_rule, fill_casing_rules): New functions.
37151         (struct casefold_rule): New type.
37152         (casefolding_rules, num_casefolding_rules,
37153         allocated_casefolding_rules): New variables.
37154         (fill_casefolding_rules): New function.
37155         (unicode_casefold): New variable.
37156         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37157         sort_casing_rules, output_casing_rules): New functions.
37158         (main): Accept to more arguments: SpecialCasing.txt and
37159         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37160         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37161         Output mapping for casefolding.
37162
37163         * lib/unicase.h: Include stdbool.h, uninorm.h.
37164         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37165         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37166         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37167         arguments.
37168         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37169         resultp arguments.
37170         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37171         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37172         resultp arguments.
37173         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37174         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37175         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37176         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37177         declarations.
37178         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37179
37180 2009-03-08  Bruno Haible  <bruno@clisp.org>
37181
37182         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37183         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37184         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37185         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37186
37187 2009-03-07  Bruno Haible  <bruno@clisp.org>
37188
37189         Adjust u*_normcmp, u*_normcoll API.
37190         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37191         u16_normcoll, u32_normcoll): Change failure conventions.
37192         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37193         errno and return -1.
37194         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37195
37196 2009-03-07  Bruno Haible  <bruno@clisp.org>
37197
37198         Tests for module 'uninorm/u32-normcoll'.
37199         * modules/uninorm/u32-normcoll-tests: New file.
37200         * tests/uninorm/test-u32-normcoll.c: New file.
37201
37202         Tests for module 'uninorm/u16-normcoll'.
37203         * modules/uninorm/u16-normcoll-tests: New file.
37204         * tests/uninorm/test-u16-normcoll.c: New file.
37205
37206         Tests for module 'uninorm/u8-normcoll'.
37207         * modules/uninorm/u8-normcoll-tests: New file.
37208         * tests/uninorm/test-u8-normcoll.c: New file.
37209
37210 2009-03-07  Bruno Haible  <bruno@clisp.org>
37211
37212         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37213         tests/uninorm/test-u32-normcmp.c.
37214         * tests/uninorm/test-u32-normcmp.c: Include it.
37215         (test_nonascii): New function, extracted from main. Add some more
37216         tests.
37217         (main): Invoke test_ascii and test_nonascii.
37218         * modules/uninorm/u32-normcmp-tests (Files): Add
37219         tests/uninorm/test-u32-normcmp.h.
37220         (Depends-on): Remove uninorm/u32-normcmp.
37221
37222         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37223         tests/uninorm/test-u16-normcmp.c.
37224         * tests/uninorm/test-u16-normcmp.c: Include it.
37225         (test_nonascii): New function, extracted from main. Add some more
37226         tests.
37227         (main): Invoke test_ascii and test_nonascii.
37228         * modules/uninorm/u16-normcmp-tests (Files): Add
37229         tests/uninorm/test-u16-normcmp.h.
37230         (Depends-on): Remove uninorm/u16-normcmp.
37231
37232         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37233         tests/uninorm/test-u8-normcmp.c.
37234         * tests/uninorm/test-u8-normcmp.c: Include it.
37235         (test_nonascii): New function, extracted from main. Add some more
37236         tests.
37237         (main): Invoke test_ascii and test_nonascii.
37238         * modules/uninorm/u8-normcmp-tests (Files): Add
37239         tests/uninorm/test-u8-normcmp.h.
37240         (Depends-on): Remove uninorm/u8-normcmp.
37241
37242 2009-03-07  Bruno Haible  <bruno@clisp.org>
37243
37244         New module 'uninorm/u32-normcoll'.
37245         * lib/uninorm/u32-normcoll.c: New file.
37246         * modules/uninorm/u32-normcoll: New file.
37247
37248         New module 'uninorm/u16-normcoll'.
37249         * lib/uninorm/u16-normcoll.c: New file.
37250         * modules/uninorm/u16-normcoll: New file.
37251
37252         New module 'uninorm/u8-normcoll'.
37253         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37254         declarations.
37255         * lib/uninorm/u8-normcoll.c: New file.
37256         * lib/uninorm/u-normcoll.h: New file.
37257         * modules/uninorm/u8-normcoll: New file.
37258
37259         New module 'uninorm/u32-normxfrm'.
37260         * lib/uninorm/u32-normxfrm.c: New file.
37261         * modules/uninorm/u32-normxfrm: New file.
37262
37263         New module 'uninorm/u16-normxfrm'.
37264         * lib/uninorm/u16-normxfrm.c: New file.
37265         * modules/uninorm/u16-normxfrm: New file.
37266
37267         New module 'uninorm/u8-normxfrm'.
37268         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37269         declarations.
37270         * lib/uninorm/u8-normxfrm.c: New file.
37271         * lib/uninorm/u-normxfrm.h: New file.
37272         * modules/uninorm/u8-normxfrm: New file.
37273
37274 2009-03-07  Bruno Haible  <bruno@clisp.org>
37275
37276         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37277         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37278         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37279
37280 2009-03-07  Bruno Haible  <bruno@clisp.org>
37281
37282         New module 'memxfrm'.
37283         * lib/memxfrm.h: New file.
37284         * lib/memxfrm.c: New file.
37285         * modules/memxfrm: New file.
37286
37287 2009-03-07  Bruno Haible  <bruno@clisp.org>
37288
37289         New module 'memcmp2'.
37290         * lib/memcmp2.h: New file.
37291         * lib/memcmp2.c: New file.
37292         * modules/memcmp2: New file.
37293
37294 2009-03-07  Bruno Haible  <bruno@clisp.org>
37295
37296         Tests for module 'uninorm/decomposing-form'.
37297         * modules/uninorm/decomposing-form-tests: New file.
37298         * tests/uninorm/test-decomposing-form.c: New file.
37299
37300         New module 'uninorm/decomposing-form'.
37301         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37302         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37303         Add 'decomposing_variant' field.
37304         * lib/uninorm/decomposing-form.c: New file.
37305         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37306         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37307         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37308         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37309         * modules/uninorm/decomposing-form: New file.
37310         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37311         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37312
37313 2009-03-07  Bruno Haible  <bruno@clisp.org>
37314
37315         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37316         strings.
37317
37318 2009-03-06  Bruno Haible  <bruno@clisp.org>
37319
37320         Tests for module 'uninorm/u32-normcmp'.
37321         * tests/uninorm/test-u32-normcmp.c: New file.
37322         * modules/uninorm/u32-normcmp-tests: New file.
37323
37324         Tests for module 'uninorm/u16-normcmp'.
37325         * tests/uninorm/test-u16-normcmp.c: New file.
37326         * modules/uninorm/u16-normcmp-tests: New file.
37327
37328         Tests for module 'uninorm/u8-normcmp'.
37329         * tests/uninorm/test-u8-normcmp.c: New file.
37330         * modules/uninorm/u8-normcmp-tests: New file.
37331
37332         New module 'uninorm/u32-normcmp'.
37333         * lib/uninorm/u32-normcmp.c: New file.
37334         * modules/uninorm/u32-normcmp: New file.
37335
37336         New module 'uninorm/u16-normcmp'.
37337         * lib/uninorm/u16-normcmp.c: New file.
37338         * modules/uninorm/u16-normcmp: New file.
37339
37340         New module 'uninorm/u8-normcmp'.
37341         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37342         declarations.
37343         * lib/uninorm/u8-normcmp.c: New file.
37344         * lib/uninorm/u-normcmp.h: New file.
37345         * modules/uninorm/u8-normcmp: New file.
37346
37347 2009-03-06  Bruno Haible  <bruno@clisp.org>
37348
37349         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37350         Reported by Eric Blake.
37351
37352 2009-03-06  Eric Blake  <ebb9@byu.net>
37353             Bruno Haible  <bruno@clisp.org>
37354
37355         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37356         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37357         condition.
37358         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37359         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37360         condition.
37361         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37362
37363 2009-03-06  Eric Blake  <ebb9@byu.net>
37364
37365         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37366         to avoid compiler warnings.
37367         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37368
37369 2009-03-05  Bruno Haible  <bruno@clisp.org>
37370
37371         * tests/test-ftell.c (main): Disable test beyond end of file on
37372         FreeMiNT.
37373         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37374
37375 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37376
37377         * lib/filevercmp.c: Move hidden files up in ordering.
37378         * tests/test-filevercmp.c: Add tests for hidden files.
37379
37380 2009-03-04  Bruno Haible  <bruno@clisp.org>
37381
37382         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37383         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37384         AM_CFLAGS.
37385         Reported by Simon Josefsson.
37386
37387 2009-03-03  Bruno Haible  <bruno@clisp.org>
37388
37389         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37390         Reported by Simon Josefsson.
37391
37392         * doc/ld-version-script.texi: Update node reference.
37393
37394 2009-03-03  Bruno Haible  <bruno@clisp.org>
37395
37396         * modules/visibility (License): Change to 'unlimited'.
37397         Suggested by Simon Josefsson.
37398
37399 2009-03-03  Jim Meyering  <meyering@redhat.com>
37400
37401         unlinkdir: cannot_unlink_dir may modify process state
37402         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37403         it's neither thread-safe nor appropriate for use in a library.
37404
37405 2009-03-03  Eric Blake  <ebb9@byu.net>
37406
37407         test-closein: silence test under Darwin
37408         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37409         care if it dies from EPIPE or EBADF.
37410
37411 2009-03-03  Bruno Haible  <bruno@clisp.org>
37412
37413         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37414         earlier.
37415         * doc/visibility.texi: Fix @node and @section.
37416
37417 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37418
37419         * doc/gnulib.texi: Link to sections for ld version script and
37420         visibility.
37421         * doc/visibility.texi: Add @node and @section.
37422         * modules/ld-version-script: New module.
37423         * m4/ld-version-script.m4: New file.
37424         * doc/ld-version-script.texi: New file.
37425
37426 2009-03-02  David Lutterkort  <lutter@redhat.com>
37427
37428         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37429         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37430
37431 2009-03-02  Bruno Haible  <bruno@clisp.org>
37432
37433         * doc/visibility.texi: Mention libtool's -export-symbols option.
37434
37435 2009-03-02  Jim Meyering  <meyering@redhat.com>
37436
37437         announce-gen: new option: --no-print-checksums
37438         * build-aux/announce-gen (usage): Describe it.
37439         (print_checksums): Print a newline here, not in the [*] footnote.
37440         (main): Honor it.
37441
37442 2009-03-01  Bruno Haible  <bruno@clisp.org>
37443
37444         Use socklen_t in the native Windows replacements prototypes.
37445         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37446         instead of 'int'.
37447         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37448         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37449         * modules/getsockopt (Depends-on): Add socklen.
37450         * modules/setsockopt (Depends-on): Add socklen.
37451
37452 2009-03-01  Bruno Haible  <bruno@clisp.org>
37453
37454         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37455         least 4.2.
37456
37457 2009-03-01  Eric Blake  <ebb9@byu.net>
37458             Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37461         error messages.
37462         * lib/wait-process.c (wait_subprocess): Omit error message about
37463         deadly signal sent to the child of termsigp != NULL.
37464
37465 2009-03-01  Eric Blake  <ebb9@byu.net>
37466
37467         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37468
37469 2009-03-01  Bruno Haible  <bruno@clisp.org>
37470
37471         Avoid a gcc warning.
37472         * tests/test-sched.c (b): Make global.
37473         Reported by Eric Blake.
37474
37475 2009-01-19  Martin Lambers  <marlam@marlam.de>
37476
37477         Provide POSIX semantics for socket timeout options on W32.
37478         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37479         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37480         * modules/setsockopt: Depend on sys_time module for struct timeval.
37481         * modules/getsockopt: Depend on sys_time module for struct timeval.
37482
37483 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37484
37485         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37486         __USE_GNU, for consistency with netdb.in.h.
37487         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37488
37489 2009-03-01  Bruno Haible  <bruno@clisp.org>
37490
37491         More support for FreeMiNT.
37492         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37493         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37494
37495 2009-03-01  Bruno Haible  <bruno@clisp.org>
37496
37497         More support for FreeMiNT.
37498         * lib/fpurge.c (fpurge): Correct last commit.
37499         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37500
37501 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37502
37503         Fix unportable awk script in vc-list-files.
37504         * build-aux/vc-list-files: In the replacement awk script, use
37505         substr with a second argument of 1, not zero.
37506         Report by Simon Josefsson.
37507
37508 2009-02-28  Bruno Haible  <bruno@clisp.org>
37509
37510         More support for FreeMiNT.
37511         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37512         to FreeMiNT today.
37513         * lib/fwriting.c (fwriting): Likewise.
37514         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37515
37516 2009-02-28  Bruno Haible  <bruno@clisp.org>
37517
37518         * tests/test-freadseek.c (main): Disable test beyond end of file on
37519         FreeMiNT.
37520         * tests/test-ftello.c (main): Likewise.
37521         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37522
37523 2009-02-28  Bruno Haible  <bruno@clisp.org>
37524
37525         Add tentative support for FreeMiNT.
37526         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37527         * lib/fpurge.c (fpurge): Likewise.
37528         * lib/freadable.c (freadable): Likewise.
37529         * lib/freading.c (freading): Likewise.
37530         * lib/freadptr.c (freadptr): Likewise.
37531         * lib/freadseek.c (freadptrinc): Likewise.
37532         * lib/fseeko.c (rpl_fseeko): Likewise.
37533         * lib/fseterr.c (fseterr): Likewise.
37534         * lib/fwritable.c (fwritable): Likewise.
37535         * lib/fwriting.c (fwriting): Likewise.
37536         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37537         Hourihane.
37538         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37539
37540 2009-02-28  Bruno Haible  <bruno@clisp.org>
37541
37542         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37543         SIGCHLD.
37544         Reported by Jim Meyering.
37545
37546 2009-02-28  Bruno Haible  <bruno@clisp.org>
37547
37548         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37549         Mention the results of these tests on various platforms.
37550         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37551         order.
37552         * doc/posix-functions/printf.texi: Likewise.
37553         * doc/posix-functions/snprintf.texi: Likewise.
37554         * doc/posix-functions/sprintf.texi: Likewise.
37555         * doc/posix-functions/vfprintf.texi: Likewise.
37556         * doc/posix-functions/vprintf.texi: Likewise.
37557         * doc/posix-functions/vsnprintf.texi: Likewise.
37558         * doc/posix-functions/vsprintf.texi: Likewise.
37559         * doc/glibc-functions/obstack_printf.texi: Likewise.
37560         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37561
37562 2009-02-28  Bruno Haible  <bruno@clisp.org>
37563
37564         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37565         Reported by Loïc Minier <lool@dooz.org>.
37566
37567 2009-02-27  Bruno Haible  <bruno@clisp.org>
37568
37569         * gnulib-tool (func_import): Make the sed expression used to create the
37570         sed script for updating the .gitignore file POSIX compliant.
37571         Reported by Eric Blake.
37572
37573 2009-02-27  Bruno Haible  <bruno@clisp.org>
37574
37575         * gnulib-tool (sed): Don't alias as "sed --posix".
37576         Reported by Eric Blake.
37577
37578 2009-02-27  Bruno Haible  <bruno@clisp.org>
37579
37580         Avoid test link errors.
37581         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37582         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37583         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37584         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37586
37587 2009-02-27  Bruno Haible  <bruno@clisp.org>
37588
37589         Avoid spurious "(cached)" in configure output.
37590         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37591         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37592         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37593         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37594         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37595         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37596         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37597         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37598         Reported by Eric Blake.
37599
37600 2009-02-27  Eric Blake  <ebb9@byu.net>
37601
37602         printf: fix regression in previous patch
37603         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37604
37605 2009-02-27  Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37608         value.
37609         * lib/stdint.in.h: Likewise.
37610         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37611
37612 2009-02-27  Eric Blake  <ebb9@byu.net>
37613
37614         doc: mention more functions added in cygwin 1.7.0
37615         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37616         addition.
37617         * doc/posix-functions/open_wmemstream.texi: Likewise.
37618         * doc/posix-functions/wcsnlen.texi: Likewise.
37619         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37620         * doc/posix-functions/wcstod.texi: Likewise.
37621         * doc/posix-functions/wcstof.texi: Likewise.
37622         * doc/posix-functions/wcstoimax.texi: Likewise.
37623         * doc/posix-functions/wcstok.texi: Likewise.
37624         * doc/posix-functions/wcstoumax.texi: Likewise.
37625
37626         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37627         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37628         * doc/posix-functions/fprintf.texi: Update.
37629         * doc/posix-functions/printf.texi: Update.
37630         * doc/posix-functions/snprintf.texi: Update.
37631         * doc/posix-functions/sprintf.texi: Update.
37632         * doc/posix-functions/vfprintf.texi: Update.
37633         * doc/posix-functions/vprintf.texi: Update.
37634         * doc/posix-functions/vsnprintf.texi: Update.
37635         * doc/posix-functions/vsprintf.texi: Update.
37636         * doc/glibc-functions/obstack_printf.texi: Update.
37637         * doc/glibc-functions/obstack_vprintf.texi: Update.
37638
37639 2009-02-26  Eric Blake  <ebb9@byu.net>
37640
37641         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37642         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37643         compilation bug by using runtime conversion.
37644         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37645         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37646         * modules/ceill-tests (Files): Use nan.h.
37647         * modules/floorl-tests (Files): Likewise.
37648         * modules/frexpl-tests (Files): Likewise.
37649         * modules/isnanl-tests (Files): Likewise.
37650         * modules/ldexpl-tests (Files): Likewise.
37651         * modules/roundl-tests (Files): Likewise.
37652         * modules/truncl-tests (Files): Likewise.
37653         * tests/test-ceill.c (main): Use a working NaN.
37654         * tests/test-floorl.c (main): Likewise.
37655         * tests/test-frexpl.c (main): Likewise.
37656         * tests/test-isnan.c (test_long_double): Likewise.
37657         * tests/test-isnanl.h (main): Likewise.
37658         * tests/test-ldexpl.h (main): Likewise.
37659         * tests/test-roundl.h (main): Likewise.
37660         * tests/test-truncl.h (main): Likewise.
37661         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37662
37663 2009-02-26  Eric Blake  <ebb9@byu.net>
37664             Bruno Haible  <bruno@clisp.org>
37665
37666         Work around a *printf bug with %ls on Solaris.
37667         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37668         precision is specified, sprintf stops converting the wide string
37669         argument when the number of bytes that have been produced by this
37670         conversion equals or exceeds the precision.
37671         * doc/posix-functions/fprintf.texi: Update.
37672         * doc/posix-functions/printf.texi: Update.
37673         * doc/posix-functions/snprintf.texi: Update.
37674         * doc/posix-functions/sprintf.texi: Update.
37675         * doc/posix-functions/vfprintf.texi: Update.
37676         * doc/posix-functions/vprintf.texi: Update.
37677         * doc/posix-functions/vsnprintf.texi: Update.
37678         * doc/posix-functions/vsprintf.texi: Update.
37679         * doc/glibc-functions/obstack_printf.texi: Update.
37680         * doc/glibc-functions/obstack_vprintf.texi: Update.
37681
37682 2009-02-26  Eric Blake  <ebb9@byu.net>
37683
37684         stdlib: favor compiler check of random.h
37685         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37686         to avoid an ObjC random.h installed by Swarm.
37687
37688 2009-02-26  Bruno Haible  <bruno@clisp.org>
37689
37690         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37691         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37692         Reported by Gary V. Vaughan <gary@gnu.org>.
37693
37694 2009-02-26  Bruno Haible  <bruno@clisp.org>
37695
37696         Fix *printf behaviour regarding the %ls directive.
37697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37698         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37699         NEED_PRINTF_DIRECTIVE_LS.
37700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37701         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37702         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37703         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37704         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37705         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37706         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37709         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37710         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37711         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37712         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37714         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37715         * doc/posix-functions/fprintf.texi: Update.
37716         * doc/posix-functions/printf.texi: Update.
37717         * doc/posix-functions/snprintf.texi: Update.
37718         * doc/posix-functions/sprintf.texi: Update.
37719         * doc/posix-functions/vfprintf.texi: Update.
37720         * doc/posix-functions/vprintf.texi: Update.
37721         * doc/posix-functions/vsnprintf.texi: Update.
37722         * doc/posix-functions/vsprintf.texi: Update.
37723         * doc/glibc-functions/obstack_printf.texi: Update.
37724         * doc/glibc-functions/obstack_vprintf.texi: Update.
37725         Reported by Eric Blake.
37726
37727 2009-02-25  Bruno Haible  <bruno@clisp.org>
37728
37729         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37730         with known value.
37731         Reported by Gary V. Vaughan <gary@gnu.org>.
37732
37733 2009-02-25  Bruno Haible  <bruno@clisp.org>
37734
37735         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37736         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37737         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37738         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37739         Reported by Gary V. Vaughan <gary@gnu.org>.
37740
37741 2009-02-25  Bruno Haible  <bruno@clisp.org>
37742
37743         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37744         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37745         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37746         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37747         Reported by Gary V. Vaughan <gary@gnu.org>.
37748
37749 2009-02-25  Eric Blake  <ebb9@byu.net>
37750
37751         tests: skip fseek/ftell tests if ungetc is broken
37752         * m4/ungetc.m4: New file.
37753         * modules/fseek-tests: Split test, so ungetc dependency is
37754         separate from rest of test.
37755         * modules/fseeko-tests: Likewise.
37756         * modules/ftell-tests: Likewise.
37757         * modules/ftello-tests: Likewise.
37758         * tests/test-fseek.c (main): Isolate ungetc dependency.
37759         * tests/test-fseeko.c (main): Likewise.
37760         * tests/test-ftell.c (main): Likewise.
37761         * tests/test-ftello.c (main): Likewise.
37762         * tests/test-fseek2.sh: New file.
37763         * tests/test-fseeko2.sh: Likewise.
37764         * tests/test-ftell2.sh: Likewise.
37765         * tests/test-ftello2.sh: Likewise.
37766
37767 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37768
37769         test-getaddrinfo: fix usage of skip return code 77
37770         * tests/test-gettaddrinfo.c: Return skip code 77 only
37771         for first occurance of skip (4x77 is not 77)
37772
37773 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37774
37775         strtod: avoid C99 decl-after-statement
37776         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37777
37778 2009-02-24  Eric Blake  <ebb9@byu.net>
37779
37780         strtod: detect HP-UX 11.31 bug
37781         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37782         Reported by Gary V. Vaughan.
37783
37784 2009-02-23  Bruno Haible  <bruno@clisp.org>
37785
37786         Fix invalid read past end of memory block.
37787         * lib/vasnprintf.c (DCHAR_SET): Define.
37788         (local_wcslen): Define only when needed.
37789         (local_strnlen, local_wcsnlen): New functions.
37790         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37791         directives that involve a conversion ourselves.
37792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37793         wcsnlen, mbrtowc, wcrtomb.
37794         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37795         * tests/test-vasprintf-posix.c (test_function): Likewise.
37796         * tests/test-snprintf-posix.h (test_function): Likewise.
37797         * tests/test-sprintf-posix.h (test_function): Likewise.
37798         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37799
37800 2009-02-22  Bruno Haible  <bruno@clisp.org>
37801
37802         Implement new clarified decomposition of Hangul syllables.
37803         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37804         of type LTV, return only a pairwise decomposition.
37805         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37806         Likewise.
37807         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37808         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37809         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37810
37811 2009-02-22  Bruno Haible  <bruno@clisp.org>
37812
37813         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37814         zero-length results and shrink excess allocated memory.
37815         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37816         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37817         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37818         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37819         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37820         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37821         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37822         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37823         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37824         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37825         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37826         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37827
37828 2009-02-21  Bruno Haible  <bruno@clisp.org>
37829
37830         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37831         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37832         spaces after a period. Put a space between a macro name and its
37833         argument list. Trivial rewordings.
37834         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37835         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37836         (main): Return 0 explicitly.
37837
37838 2009-02-21  Bruno Haible  <bruno@clisp.org>
37839
37840         Tests for module 'uninorm/filter'.
37841         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37842         * modules/uninorm/filter-tests: New file.
37843
37844         New module 'uninorm/filter'.
37845         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37846         uninorm_filter_flush, uninorm_filter_free): New declarations.
37847         * lib/uninorm/uninorm-filter.c: New file.
37848         * modules/uninorm/filter: New file.
37849
37850 2009-02-21  Bruno Haible  <bruno@clisp.org>
37851
37852         Tests for module 'uninorm/nfkc'.
37853         * tests/uninorm/test-nfkc.c: New file.
37854         * tests/uninorm/test-u8-nfkc.c: New file.
37855         * tests/uninorm/test-u16-nfkc.c: New file.
37856         * tests/uninorm/test-u32-nfkc.c: New file.
37857         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37858         * tests/uninorm/test-u32-nfkc-big.c: New file.
37859         * modules/uninorm/nfkc-tests: New file.
37860
37861         New module 'uninorm/nfkc'.
37862         * lib/uninorm/nfkc.c: New file.
37863         * modules/uninorm/nfkc: New file.
37864
37865         Tests for module 'uninorm/nfkd'.
37866         * tests/uninorm/test-nfkd.c: New file.
37867         * tests/uninorm/test-u8-nfkd.c: New file.
37868         * tests/uninorm/test-u16-nfkd.c: New file.
37869         * tests/uninorm/test-u32-nfkd.c: New file.
37870         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37871         * tests/uninorm/test-u32-nfkd-big.c: New file.
37872         * modules/uninorm/nfkd-tests: New file.
37873
37874         New module 'uninorm/nfkd'.
37875         * lib/uninorm/nfkd.c: New file.
37876         * modules/uninorm/nfkd: New file.
37877
37878         Tests for module 'uninorm/nfc'.
37879         * tests/uninorm/test-nfc.c: New file.
37880         * tests/uninorm/test-u8-nfc.c: New file.
37881         * tests/uninorm/test-u16-nfc.c: New file.
37882         * tests/uninorm/test-u32-nfc.c: New file.
37883         * tests/uninorm/test-u32-nfc-big.sh: New file.
37884         * tests/uninorm/test-u32-nfc-big.c: New file.
37885         * modules/uninorm/nfc-tests: New file.
37886
37887         New module 'uninorm/nfc'.
37888         * lib/uninorm/nfc.c: New file.
37889         * modules/uninorm/nfc: New file.
37890
37891         Tests for module 'uninorm/nfd'.
37892         * tests/uninorm/test-nfd.c: New file.
37893         * tests/uninorm/test-u8-nfd.c: New file.
37894         * tests/uninorm/test-u16-nfd.c: New file.
37895         * tests/uninorm/test-u32-nfd.c: New file.
37896         * tests/uninorm/test-u32-nfd-big.sh: New file.
37897         * tests/uninorm/test-u32-nfd-big.c: New file.
37898         * tests/uninorm/test-u32-normalize-big.h: New file.
37899         * tests/uninorm/test-u32-normalize-big.c: New file.
37900         * tests/uninorm/NormalizationTest.txt: New file, created from
37901         Unicode 5.1.0 NormalizationTest.txt.
37902         * modules/uninorm/nfd-tests: New file.
37903
37904         New module 'uninorm/nfd'.
37905         * lib/uninorm/nfd.c: New file.
37906         * modules/uninorm/nfd: New file.
37907
37908         New module 'uninorm/u32-normalize'.
37909         * lib/uninorm/u32-normalize.c: New file.
37910         * modules/uninorm/u32-normalize: New file.
37911
37912         New module 'uninorm/u16-normalize'.
37913         * lib/uninorm/u16-normalize.c: New file.
37914         * modules/uninorm/u16-normalize: New file.
37915
37916         New module 'uninorm/u8-normalize'.
37917         * lib/uninorm/u8-normalize.c: New file.
37918         * lib/uninorm/normalize-internal.h: New file.
37919         * lib/uninorm/u-normalize-internal.h: New file.
37920         * modules/uninorm/u8-normalize: New file.
37921
37922         New module 'uninorm/decompose-internal'.
37923         * lib/uninorm/decompose-internal.c: New file.
37924         * modules/uninorm/decompose-internal: New file.
37925
37926         Tests for module 'uninorm/composition'.
37927         * tests/uninorm/test-composition.c: New file.
37928         * modules/uninorm/composition-tests: New file.
37929
37930         New module 'uninorm/composition'.
37931         * lib/uninorm/composition.c: New file.
37932         * lib/uninorm/composition-table.gperf: New file, generated by
37933         gen-uni-tables.
37934         * modules/uninorm/composition: New file.
37935
37936         Tests for module 'uninorm/compat-decomposition'.
37937         * tests/uninorm/test-compat-decomposition.c: New file.
37938         * modules/uninorm/compat-decomposition-tests: New file.
37939
37940         New module 'uninorm/compat-decomposition'.
37941         * lib/uninorm/decompose-internal.h: New file.
37942         * lib/uninorm/compat-decomposition.c: New file.
37943         * modules/uninorm/compat-decomposition: New file.
37944
37945         Tests for module 'uninorm/canonical-decomposition'.
37946         * tests/uninorm/test-canonical-decomposition.c: New file.
37947         * modules/uninorm/canonical-decomposition-tests: New file.
37948
37949         New module 'uninorm/canonical-decomposition'.
37950         * lib/uninorm/canonical-decomposition.c: New file.
37951         * modules/uninorm/canonical-decomposition: New file.
37952
37953         Tests for module 'uninorm/decomposition'.
37954         * tests/uninorm/test-decomposition.c: New file.
37955         * modules/uninorm/decomposition-tests: New file.
37956
37957         New module 'uninorm/decomposition'.
37958         * lib/uninorm/decomposition.c: New file.
37959         * modules/uninorm/decomposition: New file.
37960
37961         New module 'uninorm/decomposition-table'.
37962         * lib/uninorm/decomposition-table.h: New file.
37963         * lib/uninorm/decomposition-table.c: New file.
37964         * lib/uninorm/decomposition-table1.h: New file, generated by
37965         gen-uni-tables.
37966         * lib/uninorm/decomposition-table2.h: New file, generated by
37967         gen-uni-tables.
37968         * modules/uninorm/decomposition-table: New file.
37969
37970         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37971         (UC_DECOMP_*): New enumeration items.
37972         (get_decomposition): New function.
37973         (struct decomp_table): New type.
37974         (output_decomposition, output_decomposition_tables): New functions.
37975         (unicode_composition_exclusions): New variable.
37976         (fill_composition_exclusions, debug_output_composition_tables): New
37977         functions.
37978         (main): Accept one more argument. Invoke fill_composition_exclusions.
37979         Output decomposition and composition tables.
37980
37981         New module 'uninorm/base'.
37982         * lib/uninorm.h: New file.
37983         * lib/unictype.h: Update comment.
37984         * modules/uninorm/base: New file.
37985
37986 2009-02-21  David Lutterkort  <lutter@redhat.com>
37987
37988         Tests for module 'safe-alloc'.
37989         * tests/test-safe-alloc.c: New file.
37990         * modules/safe-alloc-tests: New file.
37991
37992         New module 'safe-alloc'.
37993         * lib/safe-alloc.h: New file.
37994         * lib/safe-alloc.c: New file.
37995         * m4/safe-alloc.m4: New file.
37996         * modules/safe-alloc: New file.
37997         * doc/safe-alloc.texi: New file.
37998         * doc/gnulib.texi: Include it.
37999         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38000         safe-alloc.
38001
38002 2009-02-18  Bruno Haible  <bruno@clisp.org>
38003
38004         Fix link error on non-glibc systems.
38005         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38006         variable.
38007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38008
38009 2009-02-18  Jim Meyering  <meyering@redhat.com>
38010
38011         fts: avoid used-uninitialized error due to recent change
38012         * lib/fts.c (fts_read): Guard uses of the new member,
38013         parent->fts_n_dirs_remaining, since it's not relevant for
38014         the parent of a directory specified on the command-line.
38015
38016 2009-02-17  James Youngman  <jay@gnu.org>
38017             Bruno Haible  <bruno@clisp.org>
38018
38019         * m4/include_next.m4: Reformulate comment.
38020
38021 2009-02-16  Jim Meyering  <meyering@redhat.com>
38022
38023         fts: add #if guards so that the fts_lgpl module still builds
38024         * lib/fts.c: Guard just-added hash-table-using parts with
38025         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38026         Reported by Simon Josefsson.
38027
38028 2009-02-15  Bruno Haible  <bruno@clisp.org>
38029
38030         * modules/array-mergesort-tests: New file.
38031         * tests/test-array-mergesort.c: New file.
38032
38033         New module 'array-mergesort'.
38034         * modules/array-mergesort: New file.
38035         * lib/array-mergesort.h: New file.
38036
38037 2009-02-15  Bruno Haible  <bruno@clisp.org>
38038
38039         Fix 2009-02-07 commit.
38040         * lib/gen-uni-tables.c (output_predicate, output_category,
38041         output_combclass, output_bidi_category, output_decimal_digit,
38042         output_digit, output_numeric, output_mirror, output_scripts,
38043         output_ident_category, output_simple_mapping): Fix format directives.
38044         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38045
38046 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38047
38048         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38049         fixes are available from IBM.
38050
38051 2009-02-13  Jim Meyering  <meyering@redhat.com>
38052
38053         fts: arrange not to stat non-directories in more cases
38054         This makes GNU find (when it doesn't need to stat each file)
38055         *much* more efficient at traversing reiserfs file systems.
38056         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38057         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38058         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38059         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38060         (leaf_optimization_applies): New function.
38061         (LCO_hash, LCO_compare): New helper functions.
38062         (link_count_optimize_ok): New function.
38063         (fts_stat): Initialize new member (if dir).
38064         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38065         we've just stat'ed a directory.  Skip the stat call when possible.
38066         ---
38067         Note this AFS-related exchange:
38068         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38069         and note find's pioctl call in find/fstype.c.
38070         But that is necessary only if you want to enable the
38071         optimization for AFS, and for now, I don't.
38072
38073         fts: move a function definition "up" (no semantic change)
38074         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38075         "up" to precede upcoming use of a related function.
38076
38077 2009-02-11  Jim Meyering  <meyering@redhat.com>
38078
38079         fts: correct internal computation of nlinks (optimization-related)
38080         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38081         whether the current entry is a directory, so don't test it.
38082
38083 2009-02-10  Bruno Haible  <bruno@clisp.org>
38084
38085         Tests for module 'uniwbrk/ulc-wordbreaks'.
38086         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38087         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38088         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38089
38090         Tests for module 'uniwbrk/u32-wordbreaks'.
38091         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38092         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38093
38094         Tests for module 'uniwbrk/u16-wordbreaks'.
38095         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38096         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38097
38098         Tests for module 'uniwbrk/u8-wordbreaks'.
38099         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38100         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38101
38102 2009-02-10  Bruno Haible  <bruno@clisp.org>
38103
38104         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38105         property.
38106         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38107         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38108         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38109
38110 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38111
38112         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38113         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38114
38115 2009-02-10  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38118         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38119         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38120         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38121         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38122         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38123
38124 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38125
38126         * lib/sockets.h (gl_fd_to_handle): New function.
38127
38128         * tests/test-sockets.c: Call gl_fd_to_handle.
38129
38130 2009-02-09  Bruno Haible  <bruno@clisp.org>
38131
38132         * doc/havelib.texi: Document the conventions on bi-arch systems.
38133
38134 2009-02-08  Bruno Haible  <bruno@clisp.org>
38135
38136         Document the AC_LIB_LINKFLAGS macro.
38137         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38138         * doc/gnulib.texi: Include it.
38139
38140 2009-02-08  Bruno Haible  <bruno@clisp.org>
38141
38142         Fix wrong order of sections, compared to TOC.
38143         * doc/gnulib.texi: Include relocatable-maint.texi after the
38144         "Regular expressions" node, not before.
38145
38146 2009-02-08  Bruno Haible  <bruno@clisp.org>
38147
38148         Tests for module 'unicase/totitle'.
38149         * modules/unicase/totitle-tests: New file.
38150
38151         Tests for module 'unicase/tolower'.
38152         * modules/unicase/tolower-tests: New file.
38153
38154         Tests for module 'unicase/toupper'.
38155         * modules/unicase/toupper-tests: New file.
38156         * tests/unicase/test-mapping-part1.h: New file.
38157         * tests/unicase/test-mapping-part2.h: New file.
38158
38159         New module 'unicase/totitle'.
38160         * modules/unicase/totitle: New file.
38161         * lib/unicase/totitle.c: New file.
38162
38163         New module 'unicase/tolower'.
38164         * modules/unicase/tolower: New file.
38165         * lib/unicase/tolower.c: New file.
38166
38167         New module 'unicase/toupper'.
38168         * modules/unicase/toupper: New file.
38169         * lib/unicase/toupper.c: New file.
38170         * lib/unicase/simple-mapping.h: New file.
38171
38172         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38173         (mapping_table): New structure.
38174         (output_simple_mapping): New function.
38175         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38176         * modules/gen-uni-tables (Description): Update.
38177         * lib/unicase/toupper.h: New file, automatically generated by
38178         gen-uni-tables.
38179         * lib/unicase/tolower.h: New file, automatically generated by
38180         gen-uni-tables.
38181         * lib/unicase/totitle.h: New file, automatically generated by
38182         gen-uni-tables.
38183         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38184         gen-uni-tables.
38185         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38186         gen-uni-tables.
38187         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38188         gen-uni-tables.
38189
38190         New module 'unicase/base'.
38191         * modules/unicase/base: New file.
38192         * lib/unicase.h: New file.
38193
38194 2009-02-08  Bruno Haible  <bruno@clisp.org>
38195
38196         New module 'uniwbrk/ulc-wordbreaks'.
38197         * modules/uniwbrk/ulc-wordbreaks: New file.
38198         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38199
38200         New module 'uniwbrk/u32-wordbreaks'.
38201         * modules/uniwbrk/u32-wordbreaks: New file.
38202         * lib/uniwbrk/u32-wordbreaks.c: New file.
38203
38204         New module 'uniwbrk/u16-wordbreaks'.
38205         * modules/uniwbrk/u16-wordbreaks: New file.
38206         * lib/uniwbrk/u16-wordbreaks.c: New file.
38207
38208         New module 'uniwbrk/u8-wordbreaks'.
38209         * modules/uniwbrk/u8-wordbreaks: New file.
38210         * lib/uniwbrk/u8-wordbreaks.c: New file.
38211         * lib/uniwbrk/u-wordbreaks.h: New file.
38212
38213         New module 'uniwbrk/table'.
38214         * modules/uniwbrk/table: New file.
38215         * lib/uniwbrk/wbrktable.h: New file.
38216         * lib/uniwbrk/wbrktable.c: New file.
38217
38218         New module 'uniwbrk/wordbreak-property'.
38219         * modules/uniwbrk/wordbreak-property: New file.
38220         * lib/uniwbrk/wordbreak-property.c: New file.
38221
38222         * lib/gen-uni-tables.c (WBP_*): New enum items.
38223         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38224         (unicode_org_wbp): New variable.
38225         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38226         New functions.
38227         (wbp_table): New structure.
38228         (output_wbp, output_wbrk_tables): New functions.
38229         (main): Accept additional argument. Invoke fill_org_wbp,
38230         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38231         output_wbrk_tables.
38232         * modules/gen-uni-tables (Description): Update.
38233         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38234         gen-uni-tables.
38235
38236         New module 'uniwbrk/base'.
38237         * modules/uniwbrk/base: New file.
38238         * lib/uniwbrk.h: New file.
38239
38240 2009-02-08  Bruno Haible  <bruno@clisp.org>
38241
38242         Update to Unicode 5.1.0.
38243         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38244         U+2185..U+2188.
38245         (is_property_default_ignorable_code_point): Don't include characters
38246         of category Cc or Cs and not-a-characters.
38247         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38248         U+0D79, U+109E, U+109F, U+A60C.
38249         * lib/unictype/bidi_of.h: Regenerated.
38250         * lib/unictype/blocks.h: Regenerated.
38251         * lib/unictype/categ_C.h: Regenerated.
38252         * lib/unictype/categ_Cf.h: Regenerated.
38253         * lib/unictype/categ_Cn.h: Regenerated.
38254         * lib/unictype/categ_L.h: Regenerated.
38255         * lib/unictype/categ_Ll.h: Regenerated.
38256         * lib/unictype/categ_Lm.h: Regenerated.
38257         * lib/unictype/categ_Lo.h: Regenerated.
38258         * lib/unictype/categ_Lu.h: Regenerated.
38259         * lib/unictype/categ_M.h: Regenerated.
38260         * lib/unictype/categ_Mc.h: Regenerated.
38261         * lib/unictype/categ_Me.h: Regenerated.
38262         * lib/unictype/categ_Mn.h: Regenerated.
38263         * lib/unictype/categ_N.h: Regenerated.
38264         * lib/unictype/categ_Nd.h: Regenerated.
38265         * lib/unictype/categ_Nl.h: Regenerated.
38266         * lib/unictype/categ_No.h: Regenerated.
38267         * lib/unictype/categ_P.h: Regenerated.
38268         * lib/unictype/categ_Pd.h: Regenerated.
38269         * lib/unictype/categ_Pe.h: Regenerated.
38270         * lib/unictype/categ_Pf.h: Regenerated.
38271         * lib/unictype/categ_Pi.h: Regenerated.
38272         * lib/unictype/categ_Po.h: Regenerated.
38273         * lib/unictype/categ_Ps.h: Regenerated.
38274         * lib/unictype/categ_S.h: Regenerated.
38275         * lib/unictype/categ_Sk.h: Regenerated.
38276         * lib/unictype/categ_Sm.h: Regenerated.
38277         * lib/unictype/categ_So.h: Regenerated.
38278         * lib/unictype/categ_of.h: Regenerated.
38279         * lib/unictype/combining.h: Regenerated.
38280         * lib/unictype/ctype_alnum.h: Regenerated.
38281         * lib/unictype/ctype_alpha.h: Regenerated.
38282         * lib/unictype/ctype_graph.h: Regenerated.
38283         * lib/unictype/ctype_lower.h: Regenerated.
38284         * lib/unictype/ctype_print.h: Regenerated.
38285         * lib/unictype/ctype_punct.h: Regenerated.
38286         * lib/unictype/ctype_upper.h: Regenerated.
38287         * lib/unictype/decdigit.h: Regenerated.
38288         * lib/unictype/digit.h: Regenerated.
38289         * lib/unictype/mirror.h: Regenerated.
38290         * lib/unictype/numeric.h: Regenerated.
38291         * lib/unictype/pr_alphabetic.h: Regenerated.
38292         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38293         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38294         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38295         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38296         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38297         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38298         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38299         * lib/unictype/pr_combining.h: Regenerated.
38300         * lib/unictype/pr_dash.h: Regenerated.
38301         * lib/unictype/pr_decimal_digit.h: Regenerated.
38302         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38303         * lib/unictype/pr_deprecated.h: Regenerated.
38304         * lib/unictype/pr_diacritic.h: Regenerated.
38305         * lib/unictype/pr_extender.h: Regenerated.
38306         * lib/unictype/pr_format_control.h: Regenerated.
38307         * lib/unictype/pr_grapheme_base.h: Regenerated.
38308         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38309         * lib/unictype/pr_grapheme_link.h: Regenerated.
38310         * lib/unictype/pr_id_continue.h: Regenerated.
38311         * lib/unictype/pr_id_start.h: Regenerated.
38312         * lib/unictype/pr_ideographic.h: Regenerated.
38313         * lib/unictype/pr_ignorable_control.h: Regenerated.
38314         * lib/unictype/pr_lowercase.h: Regenerated.
38315         * lib/unictype/pr_math.h: Regenerated.
38316         * lib/unictype/pr_numeric.h: Regenerated.
38317         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38318         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38319         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38320         * lib/unictype/pr_other_id_continue.h: Regenerated.
38321         * lib/unictype/pr_other_lowercase.h: Regenerated.
38322         * lib/unictype/pr_other_math.h: Regenerated.
38323         * lib/unictype/pr_punctuation.h: Regenerated.
38324         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38325         * lib/unictype/pr_soft_dotted.h: Regenerated.
38326         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38327         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38328         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38329         * lib/unictype/pr_uppercase.h: Regenerated.
38330         * lib/unictype/pr_xid_continue.h: Regenerated.
38331         * lib/unictype/pr_xid_start.h: Regenerated.
38332         * lib/unictype/pr_zero_width.h: Regenerated.
38333         * lib/unictype/scripts.h: Regenerated.
38334         * lib/unictype/scripts_byname.gperf: Regenerated.
38335         * lib/unictype/sy_java_ident.h: Regenerated.
38336         * lib/unilbrk/lbrkprop1.h: Regenerated.
38337         * lib/unilbrk/lbrkprop2.h: Regenerated.
38338         * tests/unictype/test-categ_C.c: Regenerated.
38339         * tests/unictype/test-categ_Cf.c: Regenerated.
38340         * tests/unictype/test-categ_Cn.c: Regenerated.
38341         * tests/unictype/test-categ_L.c: Regenerated.
38342         * tests/unictype/test-categ_Ll.c: Regenerated.
38343         * tests/unictype/test-categ_Lm.c: Regenerated.
38344         * tests/unictype/test-categ_Lo.c: Regenerated.
38345         * tests/unictype/test-categ_Lu.c: Regenerated.
38346         * tests/unictype/test-categ_M.c: Regenerated.
38347         * tests/unictype/test-categ_Mc.c: Regenerated.
38348         * tests/unictype/test-categ_Me.c: Regenerated.
38349         * tests/unictype/test-categ_Mn.c: Regenerated.
38350         * tests/unictype/test-categ_N.c: Regenerated.
38351         * tests/unictype/test-categ_Nd.c: Regenerated.
38352         * tests/unictype/test-categ_Nl.c: Regenerated.
38353         * tests/unictype/test-categ_No.c: Regenerated.
38354         * tests/unictype/test-categ_P.c: Regenerated.
38355         * tests/unictype/test-categ_Pd.c: Regenerated.
38356         * tests/unictype/test-categ_Pe.c: Regenerated.
38357         * tests/unictype/test-categ_Pf.c: Regenerated.
38358         * tests/unictype/test-categ_Pi.c: Regenerated.
38359         * tests/unictype/test-categ_Po.c: Regenerated.
38360         * tests/unictype/test-categ_Ps.c: Regenerated.
38361         * tests/unictype/test-categ_S.c: Regenerated.
38362         * tests/unictype/test-categ_Sk.c: Regenerated.
38363         * tests/unictype/test-categ_Sm.c: Regenerated.
38364         * tests/unictype/test-categ_So.c: Regenerated.
38365         * tests/unictype/test-ctype_alnum.c: Regenerated.
38366         * tests/unictype/test-ctype_alpha.c: Regenerated.
38367         * tests/unictype/test-ctype_graph.c: Regenerated.
38368         * tests/unictype/test-ctype_lower.c: Regenerated.
38369         * tests/unictype/test-ctype_print.c: Regenerated.
38370         * tests/unictype/test-ctype_punct.c: Regenerated.
38371         * tests/unictype/test-ctype_upper.c: Regenerated.
38372         * tests/unictype/test-decdigit.h: Regenerated.
38373         * tests/unictype/test-digit.h: Regenerated.
38374         * tests/unictype/test-numeric.h: Regenerated.
38375         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38376         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38377         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38378         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38379         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38380         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38381         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38382         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38383         * tests/unictype/test-pr_combining.c: Regenerated.
38384         * tests/unictype/test-pr_dash.c: Regenerated.
38385         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38386         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38387         * tests/unictype/test-pr_deprecated.c: Regenerated.
38388         * tests/unictype/test-pr_diacritic.c: Regenerated.
38389         * tests/unictype/test-pr_extender.c: Regenerated.
38390         * tests/unictype/test-pr_format_control.c: Regenerated.
38391         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38392         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38393         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38394         * tests/unictype/test-pr_id_continue.c: Regenerated.
38395         * tests/unictype/test-pr_id_start.c: Regenerated.
38396         * tests/unictype/test-pr_ideographic.c: Regenerated.
38397         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38398         * tests/unictype/test-pr_lowercase.c: Regenerated.
38399         * tests/unictype/test-pr_math.c: Regenerated.
38400         * tests/unictype/test-pr_numeric.c: Regenerated.
38401         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38402         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38403         Regenerated.
38404         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38405         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38406         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38407         * tests/unictype/test-pr_other_math.c: Regenerated.
38408         * tests/unictype/test-pr_punctuation.c: Regenerated.
38409         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38410         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38411         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38412         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38413         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38414         * tests/unictype/test-pr_uppercase.c: Regenerated.
38415         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38416         * tests/unictype/test-pr_xid_start.c: Regenerated.
38417         * tests/unictype/test-pr_zero_width.c: Regenerated.
38418
38419         Update to Unicode 5.1.0.
38420         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38421         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38422         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38423         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38424         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38425         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38426         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38427         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38428         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38429         (nonspacing_table_ind): Update.
38430         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38431
38432         Update to Unicode 5.1.0.
38433         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38434         code transform.
38435         * lib/uniname/uniname.c (unicode_character_name,
38436         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38437         * lib/uniname/uninames.h: Regenerated.
38438         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38439
38440 2009-02-07  Bruno Haible  <bruno@clisp.org>
38441
38442         Merge gen-ctype and gen-lbrk into a single program.
38443         * lib/gen-uni-tables.c: New file, incorporating
38444         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38445         Add directory prefixes to the names of the generated files.
38446         * lib/unictype/gen-ctype.c: Remove file.
38447         * lib/unilbrk/gen-lbrk.c: Remove file.
38448         * modules/gen-uni-tables: New file.
38449         * modules/unictype/gen-ctype: Remove file.
38450         * modules/unilbrk/gen-lbrk: Remove file.
38451
38452 2009-02-07  Bruno Haible  <bruno@clisp.org>
38453
38454         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38455
38456         New module 'unistr/u32-strcoll'.
38457         * modules/unistr/u32-strcoll: New file.
38458         * lib/unistr/u32-strcoll.c: New file.
38459
38460         New module 'unistr/u16-strcoll'.
38461         * modules/unistr/u16-strcoll: New file.
38462         * lib/unistr/u16-strcoll.c: New file.
38463
38464         New module 'unistr/u8-strcoll'.
38465         * modules/unistr/u8-strcoll: New file.
38466         * lib/unistr/u8-strcoll.c: New file.
38467         * lib/unistr/u-strcoll.h: New file.
38468
38469 2009-02-07  Bruno Haible  <bruno@clisp.org>
38470
38471         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38472         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38473         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38474         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38475         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38476         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38477
38478 2009-02-07  Bruno Haible  <bruno@clisp.org>
38479
38480         Make 64-bit clean.
38481         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38482         output_combclass, output_bidi_category, output_decimal_digit,
38483         output_digit, output_numeric, output_mirror, output_scripts,
38484         output_ident_category): Use proper width specifier in format strings.
38485
38486 2009-02-07  Bruno Haible  <bruno@clisp.org>
38487
38488         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38489         failure behaviour.
38490
38491 2009-02-07  Jim Meyering  <meyering@redhat.com>
38492
38493         regex: avoid compilation failure with upcoming gcc-4.4
38494         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38495         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38496         "... error: integer overflow in preprocessor expression".
38497
38498 2009-02-05  Ben Pfaff  <blp@gnu.org>
38499
38500         Fix link errors on Windows when close module is used.
38501         * modules/close: Add $(LIB_CLOSE) to Link section.
38502         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38503         $(LIB_CLOSE) on Windows.
38504
38505 2009-02-05  Jim Meyering  <meyering@redhat.com>
38506
38507         still avoid unused-parameter warnings, but do it cleanly
38508         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38509         (get_fs_usage): Cast to void instead.
38510         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38511         (dev_from_mount_options, read_file_system_list): Cast to void.
38512         Prompted by Bruno Haible.
38513
38514 2009-02-04  Jim Meyering  <meyering@redhat.com>
38515
38516         fsusage.c: correct copyright year
38517         * lib/fsusage.c: Reflect year in which the change is pushed into
38518
38519         avoid misc. warnings
38520         * lib/fsusage.c (UNUSED_PARAM): Define.
38521         (get_fs_usage): Mark parameter "disk" as unused.
38522         * lib/getugroups.c (getgrent): Use "void" in prototype.
38523         * lib/mountlist.c: Mark unused parameters.
38524         (read_file_system_list): Declare a local with "const".
38525         * lib/nanosleep.c (getnow): Declare static.
38526         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38527
38528         dirfd: set errno upon failure
38529         * lib/dirfd.c: Include <errno.h>.
38530         Set errno to ENOTSUP when returning -1.
38531         * modules/dirfd (Depends-on): Add errno.
38532         Suggested by John Kodis <kodis@comcast.net>.
38533
38534 2009-02-01  Bruno Haible  <bruno@clisp.org>
38535
38536         Don't assume sizeof (long) >= sizeof (void *).
38537         * lib/memcmp.c: Include stdint.h.
38538         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38539         srcp2 to 'const byte *'.
38540         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38541         types to uintptr_t.
38542         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38543         * modules/memcmp (Depends-on): Add stdint.
38544         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38545
38546 2009-01-30  Eric Blake  <ebb9@byu.net>
38547
38548         fix more require-before-expand issues
38549         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38550         expand, AC_PROG_AWK.
38551         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38552
38553 2009-01-28  Eric Blake  <ebb9@byu.net>
38554
38555         version-etc: use consistent URL formatting
38556         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38557         Improve formatting.  Use fputs for string without %.
38558
38559 2009-01-28  Jim Meyering  <meyering@redhat.com>
38560
38561         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38562         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38563         "underquoted definition of NAME" from autoconf-2.59.
38564
38565 2009-01-28  Bruno Haible  <bruno@clisp.org>
38566
38567         * doc/gnulib.texi: Add "Obsolete modules" to index.
38568
38569 2009-01-28  Jim Meyering  <meyering@redhat.com>
38570
38571         useless-if-before-free: recognize more variants
38572         * build-aux/useless-if-before-free: Also recognize e.g.,
38573         if (NULL != p) free (p);
38574
38575 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38576
38577         test-getaddrinfo: skip (don't fail) this test when there's no network
38578         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38579         on the presumption that it means you lack network access.
38580
38581 2009-01-26  Jim Meyering  <meyering@redhat.com>
38582
38583         fflush: avoid warnings on modern systems
38584         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38585         pos and result, into scopes where they're used.
38586
38587 2009-01-26  Eric Blake  <ebb9@byu.net>
38588
38589         Silence warning reintroduced by recent extensions patch.
38590         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38591         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38592         autoconf.
38593
38594         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38595         * m4/00gnulib.m4: New file.
38596         * gnulib-tool (func_get_filelist): Always use it.
38597         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38598         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38599
38600 2009-01-25  Bruno Haible  <bruno@clisp.org>
38601
38602         Make test-quotearg work on MacOS X and AIX.
38603         * tests/test-quotearg.sh: New file.
38604         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38605         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38606         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38607         include <libintl.h>.
38608         (fake_locale): Remove variable.
38609         (gettext, dgettext, dcgettext): Remove functions.
38610         (main): Instead of setting a fake locale, set a real locale. Call
38611         textdomain and bindtextdomain.
38612         * modules/quotearg-tests (Files): Add the new files.
38613         (Depends-on): Add gettext, setenv, unsetenv.
38614         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38615         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38616         Augment TESTS_ENVIRONMENT.
38617
38618 2009-01-25  Bruno Haible  <bruno@clisp.org>
38619
38620         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38621         fr_FR.ISO8859-1 locale on MacOS X.
38622         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38623         ja_JP.eucJP locale on MacOS X.
38624         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38625         zh_CN.GB18030 locale on MacOS X.
38626
38627 2009-01-25  Bruno Haible  <bruno@clisp.org>
38628
38629         Avoid link errors on MacOS X 10.3.
38630         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38631         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38632
38633 2009-01-25  Bruno Haible  <bruno@clisp.org>
38634
38635         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38636         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38637         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38638         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38639         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38640         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38641         posix_spawnattr_init, posix_spawnattr_setsigmask,
38642         posix_spawnattr_setflags, posix_spawnattr_destroy.
38643
38644         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38645         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38646         * modules/execute (Files): Remove m4/posix_spawn.m4.
38647         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38648         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38649         posix_spawnattr_init, posix_spawnattr_setsigmask,
38650         posix_spawnattr_setflags, posix_spawnattr_destroy.
38651
38652 2009-01-25  Bruno Haible  <bruno@clisp.org>
38653
38654         * lib/glthread/threadlib.c: Include <stdlib.h>.
38655
38656 2009-01-25  Bruno Haible  <bruno@clisp.org>
38657
38658         * lib/glthread/threadlib.c (dummy): New declaration.
38659
38660 2009-01-25  Bruno Haible  <bruno@clisp.org>
38661
38662         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38663         multibyte characters also for the GB18030 encoding. Don't crash when
38664         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38665
38666 2009-01-25  Bruno Haible  <bruno@clisp.org>
38667
38668         Avoid redefining 'struct random_data' on OSF/1 5.1.
38669         * lib/stdlib.in.h: Include <random.h> if it exists.
38670         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38671         HAVE_RANDOM_H. Include <random.h> when testing whether
38672         'struct random_data' exists.
38673         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38674
38675 2009-01-25  Bruno Haible  <bruno@clisp.org>
38676
38677         Don't install charset.alias on MacOS X >= 10.3.
38678         * lib/localcharset.c (DARWIN7): New macro.
38679         (get_charset_aliases): Hardcode the result for Darwin7.
38680         * modules/localcharset (install-exec-local): Don't install
38681         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38682
38683 2009-01-25  Bruno Haible  <bruno@clisp.org>
38684
38685         Don't install charset.alias on mingw and Cygwin.
38686         * modules/localcharset (install-exec-local): Don't install
38687         charset.alias on mingw and Cygwin, if the file does not yet exist.
38688         The result for these platforms is hardcoded in localcharset.c.
38689
38690 2009-01-25  Bruno Haible  <bruno@clisp.org>
38691
38692         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38693         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38694         before requiring AC_USE_SYSTEM_EXTENSIONS.
38695
38696 2009-01-25  Jim Meyering  <meyering@redhat.com>
38697
38698         c-strtod: avoid warnings
38699         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38700         "assignment discards qualifiers from pointer target type" warnings.
38701
38702 2009-01-24  Bruno Haible  <bruno@clisp.org>
38703
38704         Add support for non-UTF-8 locales on MacOS X.
38705         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38706         canonical encodings. For Darwin 7 and newer, don't map traditional
38707         encodings to UTF-8.
38708         Reported by Vincent Lefevre <vincent@vinc17.org>
38709         at <http://savannah.gnu.org/bugs/?25235>.
38710
38711 2009-01-24  Bruno Haible  <bruno@clisp.org>
38712
38713         * doc/gnulib.texi (Obsolete modules): New section.
38714         Reported by Mike Frysinger <vapier@gentoo.org>.
38715
38716 2009-01-24  Bruno Haible  <bruno@clisp.org>
38717
38718         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38719         (%.dvi): New rule.
38720
38721 2009-01-24  Bruno Haible  <bruno@clisp.org>
38722
38723         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38724         Reported by Eric Blake.
38725
38726 2009-01-24  Bruno Haible  <bruno@clisp.org>
38727
38728         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38729         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38730         Reported by Gary V. Vaughan <gary@gnu.org>.
38731
38732 2009-01-24  Bruno Haible  <bruno@clisp.org>
38733
38734         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38735
38736 2009-01-23  Bruno Haible  <bruno@clisp.org>
38737
38738         Make c-strtod, c-strtold usable in libraries.
38739         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38740         (C_STRTOD): Call strdup instead of xstrdup.
38741         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38742         * modules/c-strtold (Depends-on): Likewise.
38743         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38744         * NEWS: Mention the change.
38745         Reported by Michael Gold <mgold@ncf.ca>.
38746
38747 2009-01-23  Jim Meyering  <meyering@redhat.com>
38748
38749         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38750         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38751         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38752
38753 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38754
38755         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38756         GNU CoreUtils.
38757         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38758         * modules/version-etc (Description): Update.
38759
38760 2009-01-22  Bruno Haible  <bruno@clisp.org>
38761
38762         Cache the C locale object.
38763         * lib/c-strtod.c (c_locale_cache): New variable.
38764         (c_locale): New function.
38765         (C_STRTOD): Use it, and don't call freelocale.
38766         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38767         Suggested by Paolo Bonzini.
38768
38769 2009-01-21  Bruno Haible  <bruno@clisp.org>
38770
38771         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38772         conditions other than overflow.
38773
38774 2009-01-21  Bruno Haible  <bruno@clisp.org>
38775
38776         * lib/c-strtod.c: Include errno.h.
38777         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38778         value from STRTOD_L and STRTOD.
38779
38780 2009-01-21  Bruno Haible  <bruno@clisp.org>
38781         and Jim Meyering  <meyering@redhat.com>
38782
38783         nanosleep: skip configure test (fail it) for apple universal builds
38784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38785         universal builds, assume that nanosleep does not work.
38786         * modules/nanosleep (Depends-on): Add multiarch.
38787
38788         mktime: skip configure test (fail it) for apple universal builds
38789         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38790         universal builds, assume that mktime does not work.
38791         * modules/mktime (Depends-on): Add multiarch.
38792
38793 2009-01-21  Eric Blake  <ebb9@byu.net>
38794
38795         multiarch: avoid expand-before-require warning
38796         * modules/multiarch (configure.ac): Require, rather than expand,
38797         gl_MULTIARCH.
38798         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38799         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38800         enforce that all clients require it.  Partial reversion of
38801         2008-12-29 patch.
38802
38803         error: avoid expand-before-require warning
38804         * modules/errno (configure.ac): Require, rather than expand,
38805         gl_HEADER_ERRNO_H.
38806         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38807         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38808         enforce that all clients require it.
38809
38810         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38811         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38812         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38813         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38814
38815 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38816
38817         Revert:
38818         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38819
38820         regex: do not depend on obsolete modules.
38821         * modules/regex: Remove memcmp and memmove.
38822
38823 2009-01-20  Bruno Haible  <bruno@clisp.org>
38824
38825         Make the 'link' module link on Windows NT 4.
38826         * lib/link.c (_WIN32_WINNT): Don't define.
38827         (CreateHardLinkFuncType): New type.
38828         (CreateHardLinkFunc, initialized): New variables.
38829         (initialize): New function.
38830         (link): Invoke CreateHardLink indirectly through the function pointer.
38831
38832 2009-01-20  Bruno Haible  <bruno@clisp.org>
38833
38834         Fix compilation failure on mingw.
38835         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38836
38837 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38838
38839         * doc/c-strtod.texi: Mention a couple of restrictions.
38840
38841 2009-01-20  Jim Meyering  <meyering@redhat.com>
38842
38843         gettimeofday: move more declarations out of functions
38844         * lib/gettimeofday.c: Move extern declarations of tzset and
38845         gmtime out of containing functions.  Prompted by Bruno Haible.
38846
38847 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38848
38849         regex: do not depend on obsolete modules.
38850         * modules/regex: Remove memcmp and memmove.
38851
38852 2009-01-19  Bruno Haible  <bruno@clisp.org>
38853
38854         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38855         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38856         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38857         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38858         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38859
38860 2009-01-19  Bruno Haible  <bruno@clisp.org>
38861
38862         * tests/test-link.c: Include <errno.h>.
38863         (main): Exit with code 77 when a hard link cannot be created due to
38864         the file system.
38865         * tests/test-link.sh: Skip test when a hard link cannot be created due
38866         to the file system.
38867         Suggested by Eric Blake.
38868
38869 2009-01-19  Martin Lambers  <marlam@marlam.de>
38870
38871         * modules/link-tests: New file.
38872         * tests/test-link.sh: New file.
38873         * tests/test-link.c: New file.
38874
38875 2009-01-19  Eric Blake  <ebb9@byu.net>
38876
38877         doc: mention another function added in cygwin 1.7.0
38878         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38879         Another new function in cygwin 1.7.
38880
38881 2009-01-19  Bruno Haible  <bruno@clisp.org>
38882
38883         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38884         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38885         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38886         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38887         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38888         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38889         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38890         * m4/md4.m4 (gl_MD4): Likewise.
38891         * m4/md5.m4 (gl_MD5): Likewise.
38892         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38893         * m4/sha1.m4 (gl_SHA1): Likewise.
38894         * m4/sha256.m4 (gl_SHA256): Likewise.
38895         * m4/sha512.m4 (gl_SHA512): Likewise.
38896
38897 2009-01-19  Bruno Haible  <bruno@clisp.org>
38898
38899         * modules/uniname/uniname-tests (Depends-on): Add progname.
38900         * tests/uniname/test-uninames.c: Include progname.h.
38901         (main): Call set_program_name.
38902
38903         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38904         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38905         (main): Call set_program_name.
38906
38907         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38908         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38909         (main): Call set_program_name.
38910
38911         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38912         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38913         (main): Call set_program_name.
38914
38915         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38916         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38917         (main): Call set_program_name.
38918
38919         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38920         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38921         (main): Call set_program_name.
38922
38923         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38924         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38925         (main): Call set_program_name.
38926
38927         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38928         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38929         (main): Call set_program_name.
38930
38931         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38932         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38933         (main): Call set_program_name.
38934
38935 2009-01-19  Eric Blake  <ebb9@byu.net>
38936
38937         test-unistd: test previous patch
38938         * tests/test-unistd.c: Test *_FILENO macros.
38939
38940         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38941         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38942         Guarantee a definition.
38943         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38944         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38945         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38946         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38947         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38948         Likewise.
38949         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38950         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38951         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38952         Likewise.
38953         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38954         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38955         (STDERR_FILENO): Likewise.
38956         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38957         (STDERR_FILENO): Likewise.
38958         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38959         (STDERR_FILENO): Likewise.
38960         Reported by Elbert Pol.
38961
38962 2009-01-19  Eric Blake  <ebb9@byu.net>
38963
38964         doc: mention more functions added in cygwin 1.7.0
38965         * doc/posix-functions/abort.texi (abort): Update wording related
38966         to cygwin.
38967         * doc/posix-functions/daylight.texi (daylight): Likewise.
38968         * doc/posix-functions/optarg.texi (optarg): Likewise.
38969         * doc/posix-functions/optarg.texi (opterr): Likewise.
38970         * doc/posix-functions/optarg.texi (optind): Likewise.
38971         * doc/posix-functions/optarg.texi (optopt): Likewise.
38972         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38973         worked in 1.5.x, and was withdrawn in 1.7.
38974         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38975         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38976         cygwin versions.
38977         * doc/posix-functions/perror.texi (perror): Likewise.
38978         * doc/posix-functions/printf.texi (printf): Likewise.
38979         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38980         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38981         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38982         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38983         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38984         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38985         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38986         Likewise.
38987         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38988         Likewise.
38989         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38990         this function.
38991         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38992         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38993         Likewise.
38994         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38995         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38996         * doc/posix-functions/confstr.texi (confstr): Likewise.
38997         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38998         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38999         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39000         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39001         * doc/posix-functions/fputws.texi (fputws): Likewise.
39002         * doc/posix-functions/fwide.texi (fwide): Likewise.
39003         * doc/posix-functions/getwc.texi (getwc): Likewise.
39004         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39005         * doc/posix-functions/putwc.texi (putwc): Likewise.
39006         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39007         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39008         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39009         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39010         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39011         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39012         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39013         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39014         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39015         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39016         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39017
39018 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39019
39020         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39021         * lib/ioctl.c: Include <sys/ioctl.h>.
39022
39023 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39024
39025         * modules/getdate-tests (Depends-on): Add progname.
39026         * tests/test-getdate.c: Use progname module, to avoid link errors
39027         on non-glibc systems.
39028
39029 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39030
39031         * modules/filenamecat-tests (Depends-on): Add progname.
39032         * modules/fstrcmp-tests (Depends-on): Likewise.
39033
39034         * tests/test-filenamecat.c: Use progname module, to avoid link
39035         errors on non-glibc systems.
39036         * tests/test-fstrcmp.c: Likewise.
39037
39038 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39039
39040         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39041         * lib/gettimeofday.c: Move extern declaration out of function.
39042
39043 2009-01-18  Bruno Haible  <bruno@clisp.org>
39044
39045         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39046         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39047         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39048
39049 2009-01-18  Bruno Haible  <bruno@clisp.org>
39050
39051         * lib/strftime.c (MEMPCPY): Remove unused macro.
39052         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39053
39054 2009-01-18  Martin Lambers  <marlam@marlam.de>
39055
39056         New module 'link'.
39057         * lib/unistd.in.h (link): New declaration.
39058         * lib/link.c: New file.
39059         * m4/link.m4: New file.
39060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39061         HAVE_LINK.
39062         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39063         * modules/link: New file.
39064         * doc/posix-functions/link.texi: Mention the new module.
39065
39066 2009-01-18  Bruno Haible  <bruno@clisp.org>
39067
39068         * tests/test-avltree_list.c (main): Call set_program_name.
39069         * tests/test-avltree_oset.c (main): Likewise.
39070         * tests/test-obstack-printf.c: Include progname.h.
39071         (main): Call set_program_name.
39072         * tests/test-quotearg.c: Include progname.h.
39073         (main): Call set_program_name.
39074         * tests/test-xmemdup0.c: Include progname.h.
39075         (main): Call set_program_name.
39076
39077 2009-01-18  Bruno Haible  <bruno@clisp.org>
39078
39079         New module 'alphasort'.
39080         * lib/dirent.in.h (alphasort): New declaration.
39081         * lib/alphasort.c: New file, from glibc with modifications.
39082         * m4/alphasort.m4: New file.
39083         * modules/alphasort: New file.
39084         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39085         HAVE_ALPHASORT.
39086         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39087         HAVE_ALPHASORT.
39088         * doc/posix-functions/alphasort.texi: Mention the new module and the
39089         portability problems.
39090
39091 2009-01-18  Bruno Haible  <bruno@clisp.org>
39092
39093         New module 'scandir'.
39094         * lib/dirent.in.h (scandir): New declaration.
39095         * lib/scandir.c: New file, from glibc with modifications.
39096         * m4/scandir.m4: New file.
39097         * modules/scandir: New file.
39098         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39099         HAVE_SCANDIR.
39100         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39101         HAVE_SCANDIR.
39102         * doc/posix-functions/scandir.texi: Mention the new module and the
39103         portability problems.
39104
39105 2009-01-17  Bruno Haible  <bruno@clisp.org>
39106
39107         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39108         Update documentation.
39109         (func_remove_suffix): Escape all dots in the suffix. Update
39110         documentation.
39111         (func_filter_filelist): Update documentation.
39112         Reported by Ralf Wildenhues.
39113
39114 2009-01-17  Bruno Haible  <bruno@clisp.org>
39115
39116         * modules/dprintf-posix-tests: New file.
39117         * tests/test-dprintf-posix.sh: New file.
39118         * tests/test-dprintf-posix.c: New file.
39119
39120         New modules 'dprintf', 'dprintf-posix'.
39121         * lib/stdio.in.h (dprintf): New declaration.
39122         * lib/dprintf.c: New file.
39123         * m4/dprintf.m4: New file.
39124         * m4/dprintf-posix.m4: New file.
39125         * modules/dprintf: New file.
39126         * modules/dprintf-posix: New file.
39127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39128         HAVE_DPRINTF, REPLACE_DPRINTF.
39129         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39130         HAVE_DPRINTF, REPLACE_DPRINTF.
39131         * doc/posix-functions/dprintf.texi: Mention the new modules.
39132
39133 2009-01-17  Bruno Haible  <bruno@clisp.org>
39134
39135         * modules/vdprintf-posix-tests: New file.
39136         * tests/test-vdprintf-posix.sh: New file.
39137         * tests/test-vdprintf-posix.c: New file.
39138
39139         New modules 'vdprintf', 'vdprintf-posix'.
39140         * lib/stdio.in.h (vdprintf): New declaration.
39141         * lib/vdprintf.c: New file.
39142         * m4/vdprintf.m4: New file.
39143         * m4/vdprintf-posix.m4: New file.
39144         * modules/vdprintf: New file.
39145         * modules/vdprintf-posix: New file.
39146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39147         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39148         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39149         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39150         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39151
39152 2009-01-17  Bruno Haible  <bruno@clisp.org>
39153
39154         Fix replacement of fopen on mingw.
39155         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39156         mingw.
39157
39158 2009-01-17  Bruno Haible  <bruno@clisp.org>
39159
39160         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39161         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39162
39163 2009-01-17  Bruno Haible  <bruno@clisp.org>
39164
39165         Avoid test-fflush2.sh failure on mingw.
39166         * tests/test-fflush2.c: Include binary-io.h.
39167         (main): Put standard input into binary mode.
39168         * modules/fflush-tests (Depends-on): Add binary-io.
39169
39170 2009-01-17  Bruno Haible  <bruno@clisp.org>
39171
39172         * lib/wchar.in.h: In another particular situation, include only the
39173         system's <wchar.h> file.
39174         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39175         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39176         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39177
39178 2009-01-17  Bruno Haible  <bruno@clisp.org>
39179
39180         Support for stripping executables in --enable-relocatable.
39181         * build-aux/install-reloc: Expect one more argument, or an environment
39182         variable RELOC_STRIP_PROG. If set, strip the destination program and
39183         its wrapper.
39184         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39185         RELOC_STRIP_PROG.
39186         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39187         to set RELOCATABLE_STRIP.
39188         * NEWS: Mention the new Makefile requirement.
39189
39190 2009-01-17  Bruno Haible  <bruno@clisp.org>
39191
39192         * build-aux/install-reloc: Remove debugging information left over by
39193         C compiler on MacOS X.
39194
39195 2009-01-17  Bruno Haible  <bruno@clisp.org>
39196
39197         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39198         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39199         _NSGetExecutablePath.
39200
39201 2009-01-16  Jim Meyering  <meyering@redhat.com>
39202
39203         strerror: avoid warnings about discarding "const"
39204         * lib/strerror.c (rpl_strerror): Instead of returning a const
39205         string from each and every "case", use a variable, and add a single
39206         cast after the switch.
39207
39208 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39209
39210         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39211
39212 2009-01-16  Bruno Haible  <bruno@clisp.org>
39213
39214         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39215         array initializer syntax that also works in C++ mode.
39216         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39217
39218 2009-01-16  Jim Meyering  <meyering@redhat.com>
39219
39220         poll: suppress a warning
39221         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39222         to ignore "...unsigned expression < 0 is always false" warnings.
39223
39224 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39225
39226         poll: remove declarations of unused variables
39227         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39228         sockbuf and optlen.
39229
39230 2009-01-15  Bruno Haible  <bruno@clisp.org>
39231
39232         Make fflush-after-ungetc POSIX compliant on BSD systems.
39233         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39234         (clear_ungetc_buffer): Implement also for other systems.
39235         (rpl_fflush): On glibc systems, invoke
39236         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39237         clear_ungetc_buffer after fetching the stream's position, not before.
39238
39239 2009-01-15  Bruno Haible  <bruno@clisp.org>
39240
39241         Make fflush-after-ungetc POSIX compliant on glibc systems.
39242         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39243         after ungetc.
39244         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39245         (rpl_fflush): On glibc systems, simply call the system's fflush
39246         function after clearing the ungetc buffer.
39247         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39248         Instead, lseek only to the end of file, then use the system's fseeko
39249         for the rest. On glibc systems, reset the EOF indicator bit.
39250
39251 2009-01-15  Jim Meyering  <meyering@redhat.com>
39252
39253         openmp.m4: revert quote-adding change, for portability to older autoconf
39254         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39255         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39256         Simon Josefsson noticed the problem when using autoconf-2.61.
39257
39258 2009-01-15  Bruno Haible  <bruno@clisp.org>
39259
39260         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39261         * tests/test-fflush2.c (ASSERT): Always fail.
39262         (main): Add two tests for fflush() after ungetc(), taking into account
39263         the Austin Group's clarification.
39264         Suggested by Eric Blake.
39265
39266 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39267
39268         mktime.m4: remove K&R-style function prototypes
39269         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39270         for the Sun C++ compiler.
39271
39272 2009-01-14  Bruno Haible  <bruno@clisp.org>
39273
39274         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39275         while including <wchar.h>.
39276         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39277         the system's <wchar.h> file.
39278         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39279
39280 2009-01-14  Bruno Haible  <bruno@clisp.org>
39281
39282         * m4/csharp.m4: Don't mention gettext on the serial number line.
39283         * m4/csharpexec.m4: Likewise.
39284         * m4/eaccess.m4: Likewise.
39285         * m4/javaexec.m4: Likewise.
39286         * m4/sig_atomic_t.m4: Likewise.
39287         * m4/tmpdir.m4: Likewise.
39288         * m4/intldir.m4: Bump gettext version.
39289         * m4/lib-ld.m4: Likewise.
39290
39291 2009-01-14  Bruno Haible  <bruno@clisp.org>
39292
39293         * lib/progname.c (set_program_name): Add more comments.
39294         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39295
39296 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39297
39298         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39299         were sys/stat.h does not define it.
39300
39301 2009-01-14  Jim Meyering  <meyering@redhat.com>
39302
39303         many *.m4 files: improve m4 quoting
39304         99% of this change was performed by running the following commands:
39305         git ls-files | grep '\.m4$' | xargs perl -pi \
39306           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39307           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39308           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39309           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39310         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39311         The remainder were to add Copyright dates, increment serial numbers,
39312         undo some changes in comments, exclude m4/intl.m4, and add quotes
39313         around the "1" in ",1" where the unusual spacing prohibited the
39314         above regexps from doing the job.  For more details, see
39315         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39316         * m4/acl.m4: Modified.
39317         * m4/afs.m4: Likewise.
39318         * m4/alloca.m4: Likewise.
39319         * m4/argp.m4: Likewise.
39320         * m4/argz.m4: Likewise.
39321         * m4/atexit.m4: Likewise.
39322         * m4/bison-i18n.m4: Likewise.
39323         * m4/bison.m4: Likewise.
39324         * m4/byteswap.m4: Likewise.
39325         * m4/c-stack.m4: Likewise.
39326         * m4/c-strtod.m4: Likewise.
39327         * m4/calloc.m4: Likewise.
39328         * m4/canonicalize-lgpl.m4: Likewise.
39329         * m4/chown.m4: Likewise.
39330         * m4/clock_time.m4: Likewise.
39331         * m4/codeset.m4: Likewise.
39332         * m4/copy-file.m4: Likewise.
39333         * m4/csharp.m4: Likewise.
39334         * m4/csharpcomp.m4: Likewise.
39335         * m4/csharpexec.m4: Likewise.
39336         * m4/d-ino.m4: Likewise.
39337         * m4/d-type.m4: Likewise.
39338         * m4/dirfd.m4: Likewise.
39339         * m4/double-slash-root.m4: Likewise.
39340         * m4/eaccess.m4: Likewise.
39341         * m4/eealloc.m4: Likewise.
39342         * m4/environ.m4: Likewise.
39343         * m4/errno_h.m4: Likewise.
39344         * m4/euidaccess.m4: Likewise.
39345         * m4/execute.m4: Likewise.
39346         * m4/fatal-signal.m4: Likewise.
39347         * m4/fchdir.m4: Likewise.
39348         * m4/fcntl_h.m4: Likewise.
39349         * m4/fileblocks.m4: Likewise.
39350         * m4/filenamecat.m4: Likewise.
39351         * m4/findprog.m4: Likewise.
39352         * m4/flexmember.m4: Likewise.
39353         * m4/fnmatch.m4: Likewise.
39354         * m4/fopen.m4: Likewise.
39355         * m4/fpending.m4: Likewise.
39356         * m4/fprintf-posix.m4: Likewise.
39357         * m4/free.m4: Likewise.
39358         * m4/frexp.m4: Likewise.
39359         * m4/frexpl.m4: Likewise.
39360         * m4/fsusage.m4: Likewise.
39361         * m4/ftruncate.m4: Likewise.
39362         * m4/gc-camellia.m4: Likewise.
39363         * m4/gc-random.m4: Likewise.
39364         * m4/gc.m4: Likewise.
39365         * m4/getaddrinfo.m4: Likewise.
39366         * m4/getcwd-abort-bug.m4: Likewise.
39367         * m4/getcwd-path-max.m4: Likewise.
39368         * m4/getdate.m4: Likewise.
39369         * m4/getdomainname.m4: Likewise.
39370         * m4/getgroups.m4: Likewise.
39371         * m4/gethostname.m4: Likewise.
39372         * m4/gethrxtime.m4: Likewise.
39373         * m4/getline.m4: Likewise.
39374         * m4/getloadavg.m4: Likewise.
39375         * m4/getndelim2.m4: Likewise.
39376         * m4/getpass.m4: Likewise.
39377         * m4/gettext.m4: Likewise.
39378         * m4/gettime.m4: Likewise.
39379         * m4/gettimeofday.m4: Likewise.
39380         * m4/gnulib-common.m4: Likewise.
39381         * m4/group-member.m4: Likewise.
39382         * m4/host-os.m4: Likewise.
39383         * m4/iconv.m4: Likewise.
39384         * m4/iconv_open.m4: Likewise.
39385         * m4/inet_ntop.m4: Likewise.
39386         * m4/inet_pton.m4: Likewise.
39387         * m4/inline.m4: Likewise.
39388         * m4/intldir.m4: Likewise.
39389         * m4/intlmacosx.m4: Likewise.
39390         * m4/intmax.m4: Likewise.
39391         * m4/intmax_t.m4: Likewise.
39392         * m4/inttypes.m4: Likewise.
39393         * m4/inttypes_h.m4: Likewise.
39394         * m4/inttypes-pri.m4: Likewise.
39395         * m4/isapipe.m4: Likewise.
39396         * m4/isnand.m4: Likewise.
39397         * m4/isnanf.m4: Likewise.
39398         * m4/isnanl.m4: Likewise.
39399         * m4/javacomp.m4: Likewise.
39400         * m4/javaexec.m4: Likewise.
39401         * m4/jm-winsz1.m4: Likewise.
39402         * m4/jm-winsz2.m4: Likewise.
39403         * m4/lchown.m4: Likewise.
39404         * m4/lcmessage.m4: Likewise.
39405         * m4/ldexpl.m4: Likewise.
39406         * m4/lib-ld.m4: Likewise.
39407         * m4/lib-link.m4: Likewise.
39408         * m4/libsigsegv.m4: Likewise.
39409         * m4/link-follow.m4: Likewise.
39410         * m4/localcharset.m4: Likewise.
39411         * m4/locale-fr.m4: Likewise.
39412         * m4/locale-ja.m4: Likewise.
39413         * m4/locale-tr.m4: Likewise.
39414         * m4/locale-zh.m4: Likewise.
39415         * m4/lock.m4: Likewise.
39416         * m4/longlong.m4: Likewise.
39417         * m4/ls-mntd-fs.m4: Likewise.
39418         * m4/lstat.m4: Likewise.
39419         * m4/malloc.m4: Likewise.
39420         * m4/mathl.m4: Likewise.
39421         * m4/mbrtowc.m4: Likewise.
39422         * m4/mbstate_t.m4: Likewise.
39423         * m4/mbswidth.m4: Likewise.
39424         * m4/memchr.m4: Likewise.
39425         * m4/memcmp.m4: Likewise.
39426         * m4/memcpy.m4: Likewise.
39427         * m4/memmem.m4: Likewise.
39428         * m4/memmove.m4: Likewise.
39429         * m4/mempcpy.m4: Likewise.
39430         * m4/memrchr.m4: Likewise.
39431         * m4/memset.m4: Likewise.
39432         * m4/minmax.m4: Likewise.
39433         * m4/mkdir-slash.m4: Likewise.
39434         * m4/mkdtemp.m4: Likewise.
39435         * m4/mktime.m4: Likewise.
39436         * m4/mmap-anon.m4: Likewise.
39437         * m4/mountlist.m4: Likewise.
39438         * m4/nanosleep.m4: Likewise.
39439         * m4/nls.m4: Likewise.
39440         * m4/nocrash.m4: Likewise.
39441         * m4/open.m4: Likewise.
39442         * m4/openat.m4: Likewise.
39443         * m4/openmp.m4: Likewise.
39444         * m4/pathmax.m4: Likewise.
39445         * m4/perl.m4: Likewise.
39446         * m4/physmem.m4: Likewise.
39447         * m4/pipe.m4: Likewise.
39448         * m4/po.m4: Likewise.
39449         * m4/poll.m4: Likewise.
39450         * m4/posixtm.m4: Likewise.
39451         * m4/posixver.m4: Likewise.
39452         * m4/printf-frexp.m4: Likewise.
39453         * m4/printf-frexpl.m4: Likewise.
39454         * m4/printf-posix.m4: Likewise.
39455         * m4/printf-posix-rpl.m4: Likewise.
39456         * m4/printf.m4: Likewise.
39457         * m4/progtest.m4: Likewise.
39458         * m4/putenv.m4: Likewise.
39459         * m4/readline.m4: Likewise.
39460         * m4/readlink.m4: Likewise.
39461         * m4/readutmp.m4: Likewise.
39462         * m4/realloc.m4: Likewise.
39463         * m4/regex.m4: Likewise.
39464         * m4/relocatable.m4: Likewise.
39465         * m4/relocatable-lib.m4: Likewise.
39466         * m4/rename-dest-slash.m4: Likewise.
39467         * m4/rename.m4: Likewise.
39468         * m4/rmdir-errno.m4: Likewise.
39469         * m4/rmdir.m4: Likewise.
39470         * m4/roundf.m4: Likewise.
39471         * m4/roundl.m4: Likewise.
39472         * m4/rpmatch.m4: Likewise.
39473         * m4/save-cwd.m4: Likewise.
39474         * m4/selinux-selinux-h.m4: Likewise.
39475         * m4/setenv.m4: Likewise.
39476         * m4/settime.m4: Likewise.
39477         * m4/sig2str.m4: Likewise.
39478         * m4/sig_atomic_t.m4: Likewise.
39479         * m4/signalblocking.m4: Likewise.
39480         * m4/signbit.m4: Likewise.
39481         * m4/sigpipe.m4: Likewise.
39482         * m4/sockets.m4: Likewise.
39483         * m4/sockpfaf.m4: Likewise.
39484         * m4/st_dm_mode.m4: Likewise.
39485         * m4/stat-time.m4: Likewise.
39486         * m4/stdbool.m4: Likewise.
39487         * m4/stdint.m4: Likewise.
39488         * m4/stdint_h.m4: Likewise.
39489         * m4/stpcpy.m4: Likewise.
39490         * m4/stpncpy.m4: Likewise.
39491         * m4/strcase.m4: Likewise.
39492         * m4/strchrnul.m4: Likewise.
39493         * m4/strcspn.m4: Likewise.
39494         * m4/strdup.m4: Likewise.
39495         * m4/strftime.m4: Likewise.
39496         * m4/strndup.m4: Likewise.
39497         * m4/strnlen.m4: Likewise.
39498         * m4/strpbrk.m4: Likewise.
39499         * m4/strptime.m4: Likewise.
39500         * m4/strsep.m4: Likewise.
39501         * m4/strtod.m4: Likewise.
39502         * m4/strtoimax.m4: Likewise.
39503         * m4/strtok_r.m4: Likewise.
39504         * m4/strtol.m4: Likewise.
39505         * m4/strtoll.m4: Likewise.
39506         * m4/strtoul.m4: Likewise.
39507         * m4/strtoull.m4: Likewise.
39508         * m4/strtoumax.m4: Likewise.
39509         * m4/strverscmp.m4: Likewise.
39510         * m4/threadlib.m4: Likewise.
39511         * m4/timegm.m4: Likewise.
39512         * m4/tm_gmtoff.m4: Likewise.
39513         * m4/tmpdir.m4: Likewise.
39514         * m4/tmpfile.m4: Likewise.
39515         * m4/tzset.m4: Likewise.
39516         * m4/uintmax_t.m4: Likewise.
39517         * m4/unlinkdir.m4: Likewise.
39518         * m4/unlocked-io.m4: Likewise.
39519         * m4/uptime.m4: Likewise.
39520         * m4/userspec.m4: Likewise.
39521         * m4/utimbuf.m4: Likewise.
39522         * m4/utime.m4: Likewise.
39523         * m4/utimes-null.m4: Likewise.
39524         * m4/utimes.m4: Likewise.
39525         * m4/vararrays.m4: Likewise.
39526         * m4/vasnprintf.m4: Likewise.
39527         * m4/vfprintf-posix.m4: Likewise.
39528         * m4/vprintf-posix.m4: Likewise.
39529         * m4/wait-process.m4: Likewise.
39530         * m4/wchar_t.m4: Likewise.
39531         * m4/wint_t.m4: Likewise.
39532         * m4/write-any-file.m4: Likewise.
39533         * m4/yield.m4: Likewise.
39534
39535 2009-01-13  Bruno Haible  <bruno@clisp.org>
39536
39537         Avoid test-copy-file.sh failures when ACL support insufficient.
39538         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39539         TESTS_ENVIRONMENT.
39540         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39541         Reported by Jim Meyering.
39542
39543 2009-01-13  Bruno Haible  <bruno@clisp.org>
39544
39545         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39546         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39547         * modules/unistdio/u8-printf-parse (Files): Likewise.
39548         * modules/unistdio/u32-printf-parse (Files): Likewise.
39549         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39550
39551 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39552
39553         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39554         and m4/inttypes_h.m4 too.
39555
39556 2009-01-12  Eric Blake  <ebb9@byu.net>
39557
39558         tests: IRIX 6.2 cc can't compile -0.0 into .data
39559         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39560         rather than at compile-time.
39561         * tests/test-floorl.c (minus_zero): Likewise.
39562         * tests/test-frexpl.c (minus_zero): Likewise.
39563         * tests/test-isnan.c (minus_zerol): Likewise.
39564         * tests/test-isnanl.h (minus_zero): Likewise.
39565         * tests/test-ldexpl.c (minus_zero): Likewise.
39566         * tests/test-roundl.c (minus_zero): Likewise.
39567         * tests/test-signbit.c (minus_zerol): Likewise.
39568         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39569         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39570         * tests/test-truncl.c (minus_zero): Likewise.
39571         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39572         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39573         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39574
39575 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39576
39577         regex: fix glibc bug 9697
39578         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39579         handling.
39580
39581 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39582
39583         regex: fix glibc bug 697
39584         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39585         being NULL also if there are no backreferences.
39586
39587 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39588
39589         regex: merge glibc changes
39590         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39591         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39592         re_string_skip_chars, re_string_reconstruct): Likewise.
39593         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39594
39595 2009-01-07  Jim Meyering  <meyering@redhat.com>
39596
39597         poll: filter through cppi
39598         * lib/poll.c: Indent cpp directives to reflect nesting.
39599
39600 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39601
39602         poll: don't return uninitialized
39603         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39604
39605 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39606
39607         avoid compile failure on AIX 6.1
39608         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39609         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39610
39611 2009-01-04  Jim Meyering  <meyering@redhat.com>
39612
39613         remove duplicate inclusion of <stdio.h>
39614         * tests/test-fprintf-posix.c: Likewise.
39615         * tests/test-printf-posix.c: Likewise.
39616         * tests/test-snprintf-posix.c: Likewise.
39617         * tests/test-sprintf-posix.c: Likewise.
39618         * tests/test-vasprintf-posix.c: Likewise.
39619         * tests/test-vfprintf-posix.c: Likewise.
39620         * tests/test-vprintf-posix.c: Likewise.
39621         * tests/test-vsnprintf-posix.c: Likewise.
39622         * tests/test-vsprintf-posix.c: Likewise.
39623
39624 2009-01-03  Jim Meyering  <meyering@redhat.com>
39625
39626         gnulib-tool: fix sed-based filtering
39627         * gnulib-tool (func_filter_filelist): Remove extra backslash
39628         in sed_fff_filter definition.
39629
39630 2009-01-02  Jim Meyering  <meyering@redhat.com>
39631
39632         strftime: avoid compilation failure on Solaris 2.6
39633         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39634         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39635         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39636         be available.  Reported by Tom G. Christensen.  Details in
39637         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39638
39639 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39640             Bruno Haible  <bruno@clisp.org>
39641
39642         Speed up gnulib-tool by doing more string processing through shell
39643         built-ins.
39644         * gnulib-tool (fast_func_append): New variable.
39645         (func_remove_prefix, func_remove_suffix): New functions.
39646         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39647         (func_filter_filelist): New function.
39648         (func_get_dependencies): Use func_remove_suffix instead of sed.
39649         (func_get_automake_snippet): Use func_filter_filelist instead of a
39650         subshell and sed invocation.
39651
39652 2009-01-01  Bruno Haible  <bruno@clisp.org>
39653
39654         Fix a security bug.
39655         * gnulib-tool (func_import, import, update): Don't allow the characters
39656         '"', '$', '`', '\' in macro arguments that become part of commands that
39657         are evaluated.
39658
39659 2009-01-01  Bruno Haible  <bruno@clisp.org>
39660
39661         * gnulib-tool (func_reset_sigpipe): Add more comments.
39662
39663 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39664
39665         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39666         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39667         already know the answer.
39668
39669 2009-01-01  Jim Meyering  <meyering@redhat.com>
39670
39671         * lib/version-etc.c (version_etc_va): Update copyright year.
39672
39673 2008-12-30  Bruno Haible  <bruno@clisp.org>
39674
39675         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39676         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39677         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39678
39679 2008-12-29  Eric Blake  <ebb9@byu.net>
39680
39681         multiarch: avoid autoconf AC_REQUIRE bug
39682         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39683         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39684         2.63 and older.
39685         Reported by Bruno Haible, and analyzed in
39686         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39687
39688 2008-12-29  Bruno Haible  <bruno@clisp.org>
39689
39690         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39691         files in subdirectories correctly.
39692         Reported by Ralf Wildenhues.
39693
39694 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39695
39696         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39697         rather than 'join FILE -', for Solaris join.
39698
39699 2008-12-29  Bruno Haible  <bruno@clisp.org>
39700
39701         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39702         quoting.
39703         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39704         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39705         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39706         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39707         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39708         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39709         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39710         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39711         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39712         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39713         * m4/nls.m4 (AM_NLS): Likewise.
39714         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39715         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39716         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39717         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39718         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39719         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39720         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39721         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39722         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39723         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39724         * m4/xsize.m4 (gl_XSIZE): Likewise.
39725         Suggested by Jim Meyering.
39726
39727 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39728
39729         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39730         * lib/parse-duration.c: use a switch instead of cascading if's.
39731
39732 2008-12-29  Eric Blake  <ebb9@byu.net>
39733
39734         wchar.h: supply WEOF on Irix 5.3
39735         * lib/wchar.in.h (wint_t): Also supply WEOF.
39736         * lib/wctype.in.h (wint_t): Likewise.
39737         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39738         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39739         Reported by Tom G. Christensen.
39740
39741 2008-12-26  Bruno Haible  <bruno@clisp.org>
39742
39743         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39744         i486, i586, i686.
39745
39746 2008-12-26  Bruno Haible  <bruno@clisp.org>
39747
39748         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39749
39750 2008-12-26  Bruno Haible  <bruno@clisp.org>
39751
39752         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39753         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39754         not __STDC_CONSTANT_MACROS.
39755         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39756
39757 2008-12-25  Bruno Haible  <bruno@clisp.org>
39758
39759         Add support for universal builds to vasnprintf.
39760         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39761         universal builds, guess no.
39762         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39763         * modules/vasprintf-posix (Depends-on): Likewise.
39764         * modules/fprintf-posix (Depends-on): Likewise.
39765         * modules/vfprintf-posix (Depends-on): Likewise.
39766         * modules/snprintf-posix (Depends-on): Likewise.
39767         * modules/vsnprintf-posix (Depends-on): Likewise.
39768         * modules/sprintf-posix (Depends-on): Likewise.
39769         * modules/vsprintf-posix (Depends-on): Likewise.
39770         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39771         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39772         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39773         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39774         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39775         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39776         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39777
39778         Add support for universal builds to <inttypes.h>.
39779         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39780         _SCNu64_PREFIX): In Apple
39781         universal builds, define directly, using _LP64.
39782         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39783         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39784         * modules/inttypes (Depends-on): Add multiarch.
39785         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39786
39787         Add support for universal builds to <stdint.h>.
39788         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39789         universal builds, define directly, using _LP64.
39790         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39791         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39792         and size_t.
39793         * modules/stdint (Depends-on): Add multiarch.
39794         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39795
39796         New module 'multiarch'.
39797         * modules/multiarch: New file.
39798         * m4/multiarch.m4: New file.
39799
39800 2008-12-25  Bruno Haible  <bruno@clisp.org>
39801
39802         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39803
39804 2008-12-25  Bruno Haible  <bruno@clisp.org>
39805
39806         * modules/btowc (License): Relicense under LGPLv2+.
39807         * modules/mbsinit (License): Likewise.
39808         * modules/mbrtowc (License): Likewise.
39809         * modules/wcrtomb (License): Likewise.
39810         * modules/streq (License): Likewise.
39811         Reported by David Lutterkort <lutter@redhat.com>.
39812
39813 2008-12-23  Bruno Haible  <bruno@clisp.org>
39814
39815         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39816
39817 2008-12-23  Bruno Haible  <bruno@clisp.org>
39818
39819         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39821         GETADDRINFO_LIB, not in LIBS.
39822         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39823         * modules/canon-host (Link): Likewise.
39824         * NEWS: Mention the change.
39825         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39826         GETADDRINFO_LIB.
39827
39828 2008-12-22  Bruno Haible  <bruno@clisp.org>
39829
39830         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39831         * doc/posix-functions/iswalpha_l.texi: Likewise.
39832         * doc/posix-functions/iswblank_l.texi: Likewise.
39833         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39834         * doc/posix-functions/iswctype_l.texi: Likewise.
39835         * doc/posix-functions/iswdigit_l.texi: Likewise.
39836         * doc/posix-functions/iswgraph_l.texi: Likewise.
39837         * doc/posix-functions/iswlower_l.texi: Likewise.
39838         * doc/posix-functions/iswprint_l.texi: Likewise.
39839         * doc/posix-functions/iswpunct_l.texi: Likewise.
39840         * doc/posix-functions/iswspace_l.texi: Likewise.
39841         * doc/posix-functions/iswupper_l.texi: Likewise.
39842         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39843         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39844         * doc/posix-functions/open_wmemstream.texi: Likewise.
39845         * doc/posix-functions/swscanf.texi: Likewise.
39846         * doc/posix-functions/towctrans_l.texi: Likewise.
39847         * doc/posix-functions/towlower.texi: Likewise.
39848         * doc/posix-functions/towlower_l.texi: Likewise.
39849         * doc/posix-functions/towupper.texi: Likewise.
39850         * doc/posix-functions/towupper_l.texi: Likewise.
39851         * doc/posix-functions/vfwprintf.texi: Likewise.
39852         * doc/posix-functions/vfwscanf.texi: Likewise.
39853         * doc/posix-functions/vswscanf.texi: Likewise.
39854         * doc/posix-functions/vwprintf.texi: Likewise.
39855         * doc/posix-functions/vwscanf.texi: Likewise.
39856         * doc/posix-functions/wcpcpy.texi: Likewise.
39857         * doc/posix-functions/wcpncpy.texi: Likewise.
39858         * doc/posix-functions/wcscasecmp.texi: Likewise.
39859         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39860         * doc/posix-functions/wcscoll_l.texi: Likewise.
39861         * doc/posix-functions/wcsdup.texi: Likewise.
39862         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39863         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39864         * doc/posix-functions/wcsnlen.texi: Likewise.
39865         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39866         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39867         * doc/posix-functions/wctrans_l.texi: Likewise.
39868         * doc/posix-functions/wctype_l.texi: Likewise.
39869         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39870         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39871         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39872         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39873         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39874         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39875         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39876         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39877         * doc/glibc-functions/wcschrnul.texi: Likewise.
39878         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39879         * doc/glibc-functions/wcstod_l.texi: Likewise.
39880         * doc/glibc-functions/wcstof_l.texi: Likewise.
39881         * doc/glibc-functions/wcstol_l.texi: Likewise.
39882         * doc/glibc-functions/wcstold_l.texi: Likewise.
39883         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39884         * doc/glibc-functions/wcstoq.texi: Likewise.
39885         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39886         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39887         * doc/glibc-functions/wcstouq.texi: Likewise.
39888         * doc/glibc-functions/wmempcpy.texi: Likewise.
39889
39890 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39891             Eric Blake  <ebb9@byu.net>
39892             Paolo Bonzini  <bonzini@gnu.org>
39893             Bruno Haible  <bruno@clisp.org>
39894
39895         Make c-stack work on Haiku.
39896         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39897         (c_stack_action): Use SA_ONSTACK flag.
39898
39899 2008-12-22  Bruno Haible  <bruno@clisp.org>
39900
39901         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39902
39903 2008-12-22  Bruno Haible  <bruno@clisp.org>
39904
39905         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39906         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39907         being overridden.
39908         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39909         New macros.
39910         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39912         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39913         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39914
39915 2008-12-22  Bruno Haible  <bruno@clisp.org>
39916
39917         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39918         from test code.
39919
39920 2008-12-22  Eric Blake  <ebb9@byu.net>
39921
39922         Avoid gcc warnings on cygwin.
39923         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39924         Avoid unused variable.
39925         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39926         Likewise.
39927
39928 2008-12-22  Bruno Haible  <bruno@clisp.org>
39929
39930         Remove HAVE_MBRTOWC conditionals.
39931         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39932         (mbscasecmp): Assume mbrtowc function.
39933         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39934         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39935         * lib/mbschr.c: Include mbuiter.h unconditionally.
39936         (mbschr): Assume mbrtowc function.
39937         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39938         (mbscspn): Assume mbrtowc function.
39939         * lib/mbslen.c: Include mbuiter.h unconditionally.
39940         (mbslen): Assume mbrtowc function.
39941         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39942         (mbsncasecmp): Assume mbrtowc function.
39943         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39944         (mbsnlen): Assume mbrtowc function.
39945         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39946         (mbspbrk): Assume mbrtowc function.
39947         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39948         (mbspcasecmp): Assume mbrtowc function.
39949         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39950         (mbsrchr): Assume mbrtowc function.
39951         * lib/mbssep.c: Include mbuiter.h unconditionally.
39952         (mbssep): Assume mbrtowc function.
39953         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39954         (mbsspn): Assume mbrtowc function.
39955         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39956         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39957         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39958         (mbstok_r): Assume mbrtowc function.
39959         * lib/propername.c: Include mbuiter.h unconditionally.
39960         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39961         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39962         (trim2): Assume mbrtowc function.
39963         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39964         (mbsnwidth): Assume mbrtowc function.
39965         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39966         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39967         fallback definitions.
39968         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39969
39970 2008-12-22  Bruno Haible  <bruno@clisp.org>
39971
39972         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39973
39974 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39975
39976         * modules/regex: Request emulations for the mb*/wc* functions we need.
39977         * m4/regex.m4: Don't look for those functions here.
39978         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39979
39980 2008-12-22  Bruno Haible  <bruno@clisp.org>
39981
39982         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39983
39984 2008-12-21  Bruno Haible  <bruno@clisp.org>
39985
39986         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39987         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39988         (Include): Remove conditionalization.
39989         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39990         (Include): Remove conditionalization.
39991         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39992         (Include): Remove conditionalization.
39993         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39994         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39995         * NEWS: Mention the change.
39996         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39997         via Sergey Poznyakoff <gray@gnu.org.ua>.
39998
39999 2008-12-21  Bruno Haible  <bruno@clisp.org>
40000
40001         * MODULES.html.sh (Extended multibyte and wide character utilities
40002         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40003         wcrtomb, wcsrtombs.
40004         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40005         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40006         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40007         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40008
40009 2008-12-21  Bruno Haible  <bruno@clisp.org>
40010
40011         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40012
40013 2008-12-21  Bruno Haible  <bruno@clisp.org>
40014
40015         * modules/wcsnrtombs-tests: New file.
40016         * tests/test-wcsnrtombs1.sh: New file.
40017         * tests/test-wcsnrtombs2.sh: New file.
40018         * tests/test-wcsnrtombs3.sh: New file.
40019         * tests/test-wcsnrtombs4.sh: New file.
40020         * tests/test-wcsnrtombs.c: New file.
40021
40022         New module 'wcsnrtombs'.
40023         * lib/wchar.in.h (wcsnrtombs): New declaration.
40024         * lib/wcsnrtombs.c: New file.
40025         * lib/wcsrtombs-state.c: New file.
40026         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40027         (internal_state): Remove variable.
40028         * m4/wcsnrtombs.m4: New file.
40029         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40030         compilation units.
40031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40032         HAVE_WCSNRTOMBS.
40033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40034         HAVE_WCSNRTOMBS.
40035         * modules/wcsnrtombs: New file.
40036         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40037         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40038
40039 2008-12-21  Bruno Haible  <bruno@clisp.org>
40040
40041         * modules/wcsrtombs-tests: New file.
40042         * tests/test-wcsrtombs1.sh: New file.
40043         * tests/test-wcsrtombs2.sh: New file.
40044         * tests/test-wcsrtombs3.sh: New file.
40045         * tests/test-wcsrtombs4.sh: New file.
40046         * tests/test-wcsrtombs.c: New file.
40047
40048         New module 'wcsrtombs'.
40049         * lib/wchar.in.h (wcsrtombs): New declaration.
40050         * lib/wcsrtombs.c: New file.
40051         * m4/wcsrtombs.m4: New file.
40052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40053         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40055         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40056         * modules/wcsrtombs: New file.
40057         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40058         bugs.
40059
40060 2008-12-21  Bruno Haible  <bruno@clisp.org>
40061
40062         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40063         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40064         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40065         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40066         if not correct.
40067         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40068         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40069         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40070         m4/locale-zh.m4, m4/codeset.m4.
40071         * doc/posix-functions/wcrtomb.texi: Document the bug.
40072
40073 2008-12-21  Bruno Haible  <bruno@clisp.org>
40074
40075         Work around a btowc() bug on IRIX 6.5.
40076         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40077         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40078         REPLACE_WTOBC if not.
40079         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40080         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40081         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40082
40083 2008-12-21  Bruno Haible  <bruno@clisp.org>
40084
40085         * modules/wcrtomb-tests: New file.
40086         * tests/test-wcrtomb.sh: New file.
40087         * tests/test-wcrtomb.c: New file.
40088
40089         New module 'wcrtomb'.
40090         * lib/wchar.in.h (wcrtomb): New declaration.
40091         * lib/wcrtomb.c: New file.
40092         * m4/wcrtomb.m4: New file.
40093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40094         HAVE_WCRTOMB.
40095         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40096         HAVE_WCRTOMB.
40097         * modules/wcrtomb: New file.
40098         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40099
40100 2008-12-21  Bruno Haible  <bruno@clisp.org>
40101
40102         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40103         * modules/mbsrtowcs (Files): Likewise.
40104         * modules/wctob (Files): Likewise.
40105         * modules/c-strcase-tests (Files): Likewise.
40106         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40107         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40108         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40109         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40110         * modules/vasnprintf-posix-tests (Files): Likewise.
40111
40112 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40113
40114         gitlog-to-changelog: pass all command-line arguments to git-log
40115         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40116         it is sometimes convenient to filter the commits in various ways.
40117         gitlog-to-changelog only allows --since to specify a start date,
40118         but git-log itself supports many other filtering mechanisms.
40119         At the moment, I want to filter by branch name.  Rather than
40120         adding a --branch option to gitlog-to-changelog, it seems more
40121         flexible to simply pass all options directly to git-log and let
40122         git do the work.  Notice that this effectively makes --since a
40123         redundant option for gitlog-to-changelog, but removing it would
40124         require current usage to change since calls would then require
40125         an additional '--'.
40126
40127 2008-12-21  Bruno Haible  <bruno@clisp.org>
40128
40129         * modules/mbsnrtowcs-tests: New file.
40130         * tests/test-mbsnrtowcs1.sh: New file.
40131         * tests/test-mbsnrtowcs2.sh: New file.
40132         * tests/test-mbsnrtowcs3.sh: New file.
40133         * tests/test-mbsnrtowcs4.sh: New file.
40134         * tests/test-mbsnrtowcs.c: New file.
40135
40136         New module 'mbsnrtowcs'.
40137         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40138         * lib/mbsnrtowcs.c: New file.
40139         * lib/mbsrtowcs-state.c: New file.
40140         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40141         (internal_state): Remove variable.
40142         * m4/mbsnrtowcs.m4: New file.
40143         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40144         compilation units.
40145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40146         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40147         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40148         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40149         * modules/mbsnrtowcs: New file.
40150         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40151         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40152         portability problem.
40153
40154 2008-12-21  Bruno Haible  <bruno@clisp.org>
40155
40156         Work around mbsrtowcs bug.
40157         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40158         (gl_FUNC_MBSRTOWCS): Invoke it.
40159         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40160         m4/locale-zh.m4.
40161         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40162
40163 2008-12-21  Bruno Haible  <bruno@clisp.org>
40164
40165         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40166
40167 2008-12-21  Bruno Haible  <bruno@clisp.org>
40168
40169         Update doc for AIX.
40170         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40171         16-bit wchar_t type.
40172         * doc/posix-functions/btowc.texi: Likewise.
40173         * doc/posix-functions/fgetwc.texi: Likewise.
40174         * doc/posix-functions/fgetws.texi: Likewise.
40175         * doc/posix-functions/fputwc.texi: Likewise.
40176         * doc/posix-functions/fputws.texi: Likewise.
40177         * doc/posix-functions/fwide.texi: Likewise.
40178         * doc/posix-functions/fwprintf.texi: Likewise.
40179         * doc/posix-functions/fwscanf.texi: Likewise.
40180         * doc/posix-functions/getwchar.texi: Likewise.
40181         * doc/posix-functions/getwc.texi: Likewise.
40182         * doc/posix-functions/iswalnum.texi: Likewise.
40183         * doc/posix-functions/iswalpha.texi: Likewise.
40184         * doc/posix-functions/iswblank.texi: Likewise.
40185         * doc/posix-functions/iswcntrl.texi: Likewise.
40186         * doc/posix-functions/iswctype.texi: Likewise.
40187         * doc/posix-functions/iswdigit.texi: Likewise.
40188         * doc/posix-functions/iswgraph.texi: Likewise.
40189         * doc/posix-functions/iswlower.texi: Likewise.
40190         * doc/posix-functions/iswprint.texi: Likewise.
40191         * doc/posix-functions/iswpunct.texi: Likewise.
40192         * doc/posix-functions/iswspace.texi: Likewise.
40193         * doc/posix-functions/iswupper.texi: Likewise.
40194         * doc/posix-functions/iswxdigit.texi: Likewise.
40195         * doc/posix-functions/mbrtowc.texi: Likewise.
40196         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40197         * doc/posix-functions/mbstowcs.texi: Likewise.
40198         * doc/posix-functions/mbtowc.texi: Likewise.
40199         * doc/posix-functions/putwchar.texi: Likewise.
40200         * doc/posix-functions/putwc.texi: Likewise.
40201         * doc/posix-functions/swprintf.texi: Likewise.
40202         * doc/posix-functions/tolower.texi: Likewise.
40203         * doc/posix-functions/toupper.texi: Likewise.
40204         * doc/posix-functions/towctrans.texi: Likewise.
40205         * doc/posix-functions/ungetwc.texi: Likewise.
40206         * doc/posix-functions/vswprintf.texi: Likewise.
40207         * doc/posix-functions/wcrtomb.texi: Likewise.
40208         * doc/posix-functions/wcscat.texi: Likewise.
40209         * doc/posix-functions/wcschr.texi: Likewise.
40210         * doc/posix-functions/wcscmp.texi: Likewise.
40211         * doc/posix-functions/wcscoll.texi: Likewise.
40212         * doc/posix-functions/wcscpy.texi: Likewise.
40213         * doc/posix-functions/wcscspn.texi: Likewise.
40214         * doc/posix-functions/wcsftime.texi: Likewise.
40215         * doc/posix-functions/wcslen.texi: Likewise.
40216         * doc/posix-functions/wcsncat.texi: Likewise.
40217         * doc/posix-functions/wcsncmp.texi: Likewise.
40218         * doc/posix-functions/wcsncpy.texi: Likewise.
40219         * doc/posix-functions/wcspbrk.texi: Likewise.
40220         * doc/posix-functions/wcsrchr.texi: Likewise.
40221         * doc/posix-functions/wcsrtombs.texi: Likewise.
40222         * doc/posix-functions/wcsspn.texi: Likewise.
40223         * doc/posix-functions/wcsstr.texi: Likewise.
40224         * doc/posix-functions/wcstod.texi: Likewise.
40225         * doc/posix-functions/wcstof.texi: Likewise.
40226         * doc/posix-functions/wcstoimax.texi: Likewise.
40227         * doc/posix-functions/wcstok.texi: Likewise.
40228         * doc/posix-functions/wcstold.texi: Likewise.
40229         * doc/posix-functions/wcstoll.texi: Likewise.
40230         * doc/posix-functions/wcstol.texi: Likewise.
40231         * doc/posix-functions/wcstombs.texi: Likewise.
40232         * doc/posix-functions/wcstoull.texi: Likewise.
40233         * doc/posix-functions/wcstoul.texi: Likewise.
40234         * doc/posix-functions/wcstoumax.texi: Likewise.
40235         * doc/posix-functions/wcswidth.texi: Likewise.
40236         * doc/posix-functions/wcsxfrm.texi: Likewise.
40237         * doc/posix-functions/wctob.texi: Likewise.
40238         * doc/posix-functions/wctomb.texi: Likewise.
40239         * doc/posix-functions/wctrans.texi: Likewise.
40240         * doc/posix-functions/wctype.texi: Likewise.
40241         * doc/posix-functions/wcwidth.texi: Likewise.
40242         * doc/posix-functions/wmemchr.texi: Likewise.
40243         * doc/posix-functions/wmemcmp.texi: Likewise.
40244         * doc/posix-functions/wmemcpy.texi: Likewise.
40245         * doc/posix-functions/wmemmove.texi: Likewise.
40246         * doc/posix-functions/wmemset.texi: Likewise.
40247         * doc/posix-functions/wprintf.texi: Likewise.
40248         * doc/posix-functions/wscanf.texi: Likewise.
40249
40250 2008-12-21  Bruno Haible  <bruno@clisp.org>
40251
40252         Update doc for HP-UX 11.11.
40253         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40254         in HP-UX version 11.00, not in all versions of HP-UX 11.
40255         * doc/posix-functions/fwide.texi: Likewise.
40256         * doc/posix-functions/fwprintf.texi: Likewise.
40257         * doc/posix-functions/fwscanf.texi: Likewise.
40258         * doc/posix-functions/inet_ntop.texi: Likewise.
40259         * doc/posix-functions/inet_pton.texi: Likewise.
40260         * doc/posix-functions/mbrlen.texi: Likewise.
40261         * doc/posix-functions/mbrtowc.texi: Likewise.
40262         * doc/posix-functions/mbsinit.texi: Likewise.
40263         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40264         * doc/posix-functions/swprintf.texi: Likewise.
40265         * doc/posix-functions/swscanf.texi: Likewise.
40266         * doc/posix-functions/towctrans.texi: Likewise.
40267         * doc/posix-functions/vfwprintf.texi: Likewise.
40268         * doc/posix-functions/vswprintf.texi: Likewise.
40269         * doc/posix-functions/vwprintf.texi: Likewise.
40270         * doc/posix-functions/wcrtomb.texi: Likewise.
40271         * doc/posix-functions/wcsrtombs.texi: Likewise.
40272         * doc/posix-functions/wcsstr.texi: Likewise.
40273         * doc/posix-functions/wctob.texi: Likewise.
40274         * doc/posix-functions/wctrans.texi: Likewise.
40275         * doc/posix-functions/wmemchr.texi: Likewise.
40276         * doc/posix-functions/wmemcmp.texi: Likewise.
40277         * doc/posix-functions/wmemcpy.texi: Likewise.
40278         * doc/posix-functions/wmemmove.texi: Likewise.
40279         * doc/posix-functions/wmemset.texi: Likewise.
40280         * doc/posix-functions/wprintf.texi: Likewise.
40281         * doc/posix-functions/wscanf.texi: Likewise.
40282
40283 2008-12-21  Bruno Haible  <bruno@clisp.org>
40284
40285         Work around a portability problem.
40286         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40287         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40288
40289 2008-12-20  Bruno Haible  <bruno@clisp.org>
40290
40291         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40292         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40293         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40295         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40296
40297         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40298         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40299         set.
40300         (GNULIB_defined_mbstate_t): New macro.
40301         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40302         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40303         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40304         reuses the system's mbrtowc function but works around the bugs.
40305         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40306         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40307         macros.
40308         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40309         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40310         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40311         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40312         REPLACE_MBSINIT if mbsinit needs to be overridden.
40313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40314         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40315         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40316         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40317         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40318         m4/locale-zh.m4.
40319         (Depends): Add mbsinit.
40320         * modules/mbsinit (Depends): Add mbrtowc.
40321         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40322
40323 2008-12-20  Bruno Haible  <bruno@clisp.org>
40324
40325         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40326         so that there are no conversion errors on AIX.
40327         * tests/test-mbsrtowcs.c (main): LIkewise.
40328
40329 2008-12-20  Bruno Haible  <bruno@clisp.org>
40330
40331         Work around wctob bug on Solaris <= 9.
40332         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40333         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40335         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40336         * modules/wctob (Files): Add m4/locale-fr.m4.
40337         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40338
40339 2008-12-20  Bruno Haible  <bruno@clisp.org>
40340
40341         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40342         /dev/null.
40343         * tests/test-select-in.sh: Likewise.
40344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40345
40346 2008-12-20  Bruno Haible  <bruno@clisp.org>
40347
40348         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40349         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40350         Cygwin 1.5.x.
40351
40352 2008-12-20  Bruno Haible  <bruno@clisp.org>
40353
40354         Ensure mbstate_t is defined on HP-UX 11.11.
40355         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40356         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40357         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40358         AC_USE_SYSTEM_EXTENSIONS.
40359         * modules/fnmatch (Depends-on): Add extensions.
40360         * modules/mbrlen (Depends-on): Likewise.
40361         * modules/mbrtowc (Depends-on): Likewise.
40362         * modules/mbsinit (Depends-on): Likewise.
40363         * modules/mbsrtowcs (Depends-on): Likewise.
40364         * modules/mbswidth (Depends-on): Likewise.
40365         * modules/quotearg (Depends-on): Likewise.
40366         * modules/strftime (Depends-on): Likewise.
40367
40368 2008-12-20  Bruno Haible  <bruno@clisp.org>
40369
40370         Ensure wctob is declared on IRIX 6.5.
40371         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40372         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40373         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40375         of HAVE_WCTOB.
40376         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40377         HAVE_WCTOB.
40378         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40379
40380 2008-12-19  Bruno Haible  <bruno@clisp.org>
40381
40382         * modules/mbsrtowcs-tests: New file.
40383         * tests/test-mbsrtowcs1.sh: New file.
40384         * tests/test-mbsrtowcs2.sh: New file.
40385         * tests/test-mbsrtowcs3.sh: New file.
40386         * tests/test-mbsrtowcs4.sh: New file.
40387         * tests/test-mbsrtowcs.c: New file.
40388
40389         New module 'mbsrtowcs'.
40390         * lib/wchar.in.h (mbsrtowcs): New declaration.
40391         * lib/mbsrtowcs.c: New file.
40392         * m4/mbsrtowcs.m4: New file.
40393         * modules/mbsrtowcs: New file.
40394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40395         HAVE_MBSRTOWCS.
40396         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40397         HAVE_MBSRTOWCS.
40398         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40399
40400 2008-12-19  Bruno Haible  <bruno@clisp.org>
40401
40402         New module 'mbrlen'.
40403         * lib/wchar.in.h (mbrlen): New declaration.
40404         * lib/mbrlen.c: New file.
40405         * m4/mbrlen.m4: New file.
40406         * modules/mbrlen: New file.
40407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40408         HAVE_MBRLEN.
40409         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40410         HAVE_MBRLEN.
40411         * doc/posix-functions/mbrlen.texi: Document the new module.
40412
40413 2008-12-19  Bruno Haible  <bruno@clisp.org>
40414
40415         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40416         * modules/mbrtowc (Depends-on): Add verify.
40417         Suggested by Paul Eggert.
40418
40419 2008-12-18  Bruno Haible  <bruno@clisp.org>
40420
40421         * modules/mbsinit-tests: New file.
40422         * tests/test-mbsinit.sh: New file.
40423         * tests/test-mbsinit.c: New file.
40424
40425 2008-12-18  Bruno Haible  <bruno@clisp.org>
40426
40427         * modules/mbrtowc-tests: New file.
40428         * tests/test-mbrtowc1.sh: New file.
40429         * tests/test-mbrtowc2.sh: New file.
40430         * tests/test-mbrtowc3.sh: New file.
40431         * tests/test-mbrtowc4.sh: New file.
40432         * tests/test-mbrtowc.c: New file.
40433
40434         New module 'mbrtowc'.
40435         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40436         mbsinit and mbrtowc.
40437         (mbrtowc): New declaration.
40438         * lib/mbrtowc.c: New file.
40439         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40440         * modules/mbrtowc: New file.
40441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40442         HAVE_MBRTOWC.
40443         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40444         HAVE_MBRTOWC.
40445         * doc/posix-functions/mbrtowc.texi: Document the new module.
40446
40447 2008-12-18  Bruno Haible  <bruno@clisp.org>
40448
40449         New module 'wctob'.
40450         * lib/wchar.in.h (wctob): New declaration.
40451         * lib/wctob.c: New file.
40452         * m4/wctob.m4: New file.
40453         * modules/wctob: New file.
40454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40455         HAVE_WCTOB.
40456         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40457         * doc/posix-functions/wctob.texi: Document the new module.
40458
40459 2008-12-18  Bruno Haible  <bruno@clisp.org>
40460
40461         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40462         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40463
40464 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40465
40466         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40467         G. Christensen" <tgc@jupiterrise.com>.
40468
40469         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40470         G. Christensen" <tgc@jupiterrise.com>.
40471
40472         * lib/flock.c: Need to include string.h.  Reported by "Tom
40473         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40474         <ebb9@byu.net>.
40475
40476 2008-12-18  Bruno Haible  <bruno@clisp.org>
40477
40478         * m4/locale-ja.m4: New file, from GNU gettext.
40479
40480 2008-12-17  Bruno Haible  <bruno@clisp.org>
40481
40482         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40483         Suggested by Eric Blake.
40484
40485 2008-12-17  Bruno Haible  <bruno@clisp.org>
40486
40487         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40488
40489 2008-12-17  Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40492         * modules/mbsinit (Depends-on): Add verify.
40493         Suggested by Paul Eggert.
40494
40495 2008-12-17  Bruno Haible  <bruno@clisp.org>
40496
40497         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40498         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40499         gl_FUNC_MBRTOWC.
40500         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40501         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40502         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40503         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40504         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40505         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40506         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40507         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40508         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40509         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40510         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40511         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40512         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40513         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40514         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40515         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40516         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40517         * modules/trim (configure.ac): Likewise.
40518
40519 2008-12-17  Bruno Haible  <bruno@clisp.org>
40520
40521         * modules/btowc-tests: New file.
40522         * tests/test-btowc1.sh: New file.
40523         * tests/test-btowc2.sh: New file.
40524         * tests/test-btowc.c: New file.
40525
40526         New module 'btowc'.
40527         * lib/wchar.in.h (btowc): New declaration.
40528         * lib/btowc.c: New file.
40529         * m4/btowc.m4: New file.
40530         * modules/btowc: New file.
40531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40532         HAVE_BTOWC.
40533         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40534         * doc/posix-functions/btowc.texi: Document the new module.
40535
40536 2008-12-17  Bruno Haible  <bruno@clisp.org>
40537
40538         New module 'mbsinit'.
40539         * lib/wchar.in.h (mbsinit): New declaration.
40540         * lib/mbsinit.c: New file.
40541         * m4/mbsinit.m4: New file.
40542         * modules/mbsinit: New file.
40543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40544         HAVE_MBSINIT.
40545         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40546         HAVE_MBSINIT.
40547         * doc/posix-functions/mbsinit.texi: Document the new module.
40548
40549 2008-12-16  Bruno Haible  <bruno@clisp.org>
40550
40551         * lib/unistd.in.h: Add comment.
40552         * tests/test-environ.c: Don't include <stdlib.h>.
40553
40554 2008-12-16  Bruno Haible  <bruno@clisp.org>
40555
40556         * lib/parse-duration.h (parse_duration): Document return value
40557         convention.
40558         * lib/parse-duration.c: Include specification header first. Add
40559         comments.
40560         (_): Remove macro.
40561         (parse_year_month_day, parse_hour_minute_second): Move side effects
40562         outside of strchr call.
40563         (parse_non_iso8601): Move side effects outside of isspace call.
40564         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40565         call.
40566
40567 2008-12-16  Bruno Haible  <bruno@clisp.org>
40568
40569         * tests/test-parse-duration.sh: Produce no output when the test
40570         succeeds.
40571
40572 2008-12-16  Bruno Haible  <bruno@clisp.org>
40573
40574         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40575         expressions.
40576
40577 2008-12-15  Bruno Haible  <bruno@clisp.org>
40578
40579         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40580         * doc/glibc-functions/flistxattr.texi: Likewise.
40581         * doc/glibc-functions/fopencookie.texi: Likewise.
40582         * doc/glibc-functions/fremovexattr.texi: Likewise.
40583         * doc/glibc-functions/fsetxattr.texi: Likewise.
40584         * doc/glibc-functions/getxattr.texi: Likewise.
40585         * doc/glibc-functions/lgetxattr.texi: Likewise.
40586         * doc/glibc-functions/listxattr.texi: Likewise.
40587         * doc/glibc-functions/llistxattr.texi: Likewise.
40588         * doc/glibc-functions/lremovexattr.texi: Likewise.
40589         * doc/glibc-functions/lsetxattr.texi: Likewise.
40590         * doc/glibc-functions/removexattr.texi: Likewise.
40591         * doc/glibc-functions/setxattr.texi: Likewise.
40592         * doc/posix-functions/open_memstream.texi: Likewise.
40593
40594 2008-12-15  Eric Blake  <ebb9@byu.net>
40595
40596         Update doc for cygwin 1.7.
40597         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40598         functions.
40599         * doc/posix-functions/fchmodat.texi: Likewise.
40600         * doc/posix-functions/fchownat.texi: Likewise.
40601         * doc/posix-functions/fdopendir.texi: Likewise.
40602         * doc/posix-functions/fmemopen.texi: Likewise.
40603         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40604         * doc/posix-functions/fstatat.texi: Likewise.
40605         * doc/posix-functions/futimens.texi: Likewise.
40606         * doc/posix-functions/gai_strerror.texi: Likewise.
40607         * doc/posix-functions/getaddrinfo.texi: Likewise.
40608         * doc/posix-functions/getnameinfo.texi: Likewise.
40609         * doc/posix-functions/if_freenameindex.texi: Likewise.
40610         * doc/posix-functions/if_indextoname.texi: Likewise.
40611         * doc/posix-functions/if_nameindex.texi: Likewise.
40612         * doc/posix-functions/if_nametoindex.texi: Likewise.
40613         * doc/posix-functions/insque.texi: Likewise.
40614         * doc/posix-functions/linkat.texi: Likewise.
40615         * doc/posix-functions/llrint.texi: Likewise.
40616         * doc/posix-functions/llrintf.texi: Likewise.
40617         * doc/posix-functions/llrintl.texi: Likewise.
40618         * doc/posix-functions/lockf.texi: Likewise.
40619         * doc/posix-functions/lrintl.texi: Likewise.
40620         * doc/posix-functions/mkdirat.texi: Likewise.
40621         * doc/posix-functions/mkfifoat.texi: Likewise.
40622         * doc/posix-functions/mknodat.texi: Likewise.
40623         * doc/posix-functions/mq_close.texi: Likewise.
40624         * doc/posix-functions/mq_getattr.texi: Likewise.
40625         * doc/posix-functions/mq_notify.texi: Likewise.
40626         * doc/posix-functions/mq_open.texi: Likewise.
40627         * doc/posix-functions/mq_receive.texi: Likewise.
40628         * doc/posix-functions/mq_send.texi: Likewise.
40629         * doc/posix-functions/mq_setattr.texi: Likewise.
40630         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40631         * doc/posix-functions/mq_timedsend.texi: Likewise.
40632         * doc/posix-functions/mq_unlink.texi: Likewise.
40633         * doc/posix-functions/open_memstream.texi: Likewise.
40634         * doc/posix-functions/openat.texi: Likewise.
40635         * doc/posix-functions/posix_fadvise.texi: Likewise.
40636         * doc/posix-functions/posix_fallocate.texi: Likewise.
40637         * doc/posix-functions/posix_madvise.texi: Likewise.
40638         * doc/posix-functions/posix_memalign.texi: Likewise.
40639         * doc/posix-functions/posix_openpt.texi: Likewise.
40640         * doc/posix-functions/readlinkat.texi: Likewise.
40641         * doc/posix-functions/remque.texi: Likewise.
40642         * doc/posix-functions/renameat.texi: Likewise.
40643         * doc/posix-functions/rintl.texi: Likewise.
40644         * doc/posix-functions/sem_unlink.texi: Likewise.
40645         * doc/posix-functions/shm_open.texi: Likewise.
40646         * doc/posix-functions/shm_unlink.texi: Likewise.
40647         * doc/posix-functions/signgam.texi: Likewise.
40648         * doc/posix-functions/sigset.texi: Likewise.
40649         * doc/posix-functions/stpcpy.texi: Likewise.
40650         * doc/posix-functions/stpncpy.texi: Likewise.
40651         * doc/posix-functions/strerror.texi: Likewise.
40652         * doc/posix-functions/strtod.texi: Likewise.
40653         * doc/posix-functions/symlinkat.texi: Likewise.
40654         * doc/posix-functions/unlinkat.texi: Likewise.
40655         * doc/posix-functions/utimensat.texi: Likewise.
40656         * doc/glibc-functions/bindresvport.texi: Likewise.
40657         * doc/glibc-functions/dn_expand.texi: Likewise.
40658         * doc/glibc-functions/exp10.texi: Likewise.
40659         * doc/glibc-functions/exp10f.texi: Likewise.
40660         * doc/glibc-functions/fgetxattr.texi: Likewise.
40661         * doc/glibc-functions/flistxattr.texi: Likewise.
40662         * doc/glibc-functions/fopencookie.texi: Likewise.
40663         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40664         * doc/glibc-functions/fremovexattr.texi: Likewise.
40665         * doc/glibc-functions/fsetxattr.texi: Likewise.
40666         * doc/glibc-functions/getifaddrs.texi: Likewise.
40667         * doc/glibc-functions/getxattr.texi: Likewise.
40668         * doc/glibc-functions/lgetxattr.texi: Likewise.
40669         * doc/glibc-functions/listxattr.texi: Likewise.
40670         * doc/glibc-functions/llistxattr.texi: Likewise.
40671         * doc/glibc-functions/lremovexattr.texi: Likewise.
40672         * doc/glibc-functions/lsetxattr.texi: Likewise.
40673         * doc/glibc-functions/pow10.texi: Likewise.
40674         * doc/glibc-functions/pow10f.texi: Likewise.
40675         * doc/glibc-functions/rcmd_af.texi: Likewise.
40676         * doc/glibc-functions/removexattr.texi: Likewise.
40677         * doc/glibc-functions/res_init.texi: Likewise.
40678         * doc/glibc-functions/res_mkquery.texi: Likewise.
40679         * doc/glibc-functions/res_query.texi: Likewise.
40680         * doc/glibc-functions/res_querydomain.texi: Likewise.
40681         * doc/glibc-functions/res_send.texi: Likewise.
40682         * doc/glibc-functions/rresvport_af.texi: Likewise.
40683         * doc/glibc-functions/setxattr.texi: Likewise.
40684         * doc/glibc-functions/strcasestr.texi: Likewise.
40685
40686 2008-12-15  Bruno Haible  <bruno@clisp.org>
40687
40688         Fix compilation error on OSF/1 4.0.
40689         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40690         <sys/time.h>, simply delegate to the system header.
40691         Reported by Daniel Richard G. <oss@teragram.com>.
40692
40693 2008-12-15  Bruno Haible  <bruno@clisp.org>
40694
40695         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40696         * doc/posix-functions/fchmodat.texi: Likewise.
40697         * doc/posix-functions/fchownat.texi: Likewise.
40698         * doc/posix-functions/fdopendir.texi: Likewise.
40699         * doc/posix-functions/fstatat.texi: Likewise.
40700         * doc/posix-functions/mkdirat.texi: Likewise.
40701         * doc/posix-functions/unlinkat.texi: Likewise.
40702
40703 2008-12-14  Bruno Haible  <bruno@clisp.org>
40704
40705         Update doc for POSIX:2008.
40706         * doc/posix-functions/faccessat.texi: New file.
40707         * doc/posix-functions/fchmodat.texi: New file.
40708         * doc/posix-functions/fchownat.texi: New file.
40709         * doc/posix-functions/fdopendir.texi: New file.
40710         * doc/posix-functions/fstatat.texi: New file.
40711         * doc/posix-functions/futimens.texi: New file.
40712         * doc/posix-functions/linkat.texi: New file.
40713         * doc/posix-functions/mkdirat.texi: New file.
40714         * doc/posix-functions/mkfifoat.texi: New file.
40715         * doc/posix-functions/mknodat.texi: New file.
40716         * doc/posix-functions/open_wmemstream.texi: New file.
40717         * doc/posix-functions/openat.texi: New file.
40718         * doc/posix-functions/psiginfo.texi: New file.
40719         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40720         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40721         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40722         * doc/posix-functions/readlinkat.texi: New file.
40723         * doc/posix-functions/renameat.texi: New file.
40724         * doc/posix-functions/strerror_l.texi: New file.
40725         * doc/posix-functions/symlinkat.texi: New file.
40726         * doc/posix-functions/unlinkat.texi: New file.
40727         * doc/posix-functions/utimensat.texi: New file.
40728         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40729
40730 2008-12-14  Bruno Haible  <bruno@clisp.org>
40731
40732         Update doc for POSIX:2008.
40733         * doc/posix-functions/alphasort.texi: Renamed from
40734         doc/glibc-functions/alphasort.texi.
40735         * doc/posix-functions/dirfd.texi: Renamed from
40736         doc/glibc-functions/dirfd.texi.
40737         * doc/posix-functions/dprintf.texi: Renamed from
40738         doc/glibc-functions/dprintf.texi.
40739         * doc/posix-functions/duplocale.texi: Renamed from
40740         doc/glibc-functions/duplocale.texi.
40741         * doc/posix-functions/fexecve.texi: Renamed from
40742         doc/glibc-functions/fexecve.texi.
40743         * doc/posix-functions/fmemopen.texi: Renamed from
40744         doc/glibc-functions/fmemopen.texi.
40745         * doc/posix-functions/freelocale.texi: Renamed from
40746         doc/glibc-functions/freelocale.texi.
40747         * doc/posix-functions/getdate_err.texi: Renamed from
40748         doc/glibc-functions/getdate_err.texi.
40749         * doc/posix-functions/isalnum_l.texi: Renamed from
40750         doc/glibc-functions/isalnum_l.texi.
40751         * doc/posix-functions/isalpha_l.texi: Renamed from
40752         doc/glibc-functions/isalpha_l.texi.
40753         * doc/posix-functions/isblank_l.texi: Renamed from
40754         doc/glibc-functions/isblank_l.texi.
40755         * doc/posix-functions/iscntrl_l.texi: Renamed from
40756         doc/glibc-functions/iscntrl_l.texi.
40757         * doc/posix-functions/isdigit_l.texi: Renamed from
40758         doc/glibc-functions/isdigit_l.texi.
40759         * doc/posix-functions/isgraph_l.texi: Renamed from
40760         doc/glibc-functions/isgraph_l.texi.
40761         * doc/posix-functions/islower_l.texi: Renamed from
40762         doc/glibc-functions/islower_l.texi.
40763         * doc/posix-functions/isprint_l.texi: Renamed from
40764         doc/glibc-functions/isprint_l.texi.
40765         * doc/posix-functions/ispunct_l.texi: Renamed from
40766         doc/glibc-functions/ispunct_l.texi.
40767         * doc/posix-functions/isspace_l.texi: Renamed from
40768         doc/glibc-functions/isspace_l.texi.
40769         * doc/posix-functions/isupper_l.texi: Renamed from
40770         doc/glibc-functions/isupper_l.texi.
40771         * doc/posix-functions/iswalnum_l.texi: Renamed from
40772         doc/glibc-functions/iswalnum_l.texi.
40773         * doc/posix-functions/iswalpha_l.texi: Renamed from
40774         doc/glibc-functions/iswalpha_l.texi.
40775         * doc/posix-functions/iswblank_l.texi: Renamed from
40776         doc/glibc-functions/iswblank_l.texi.
40777         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40778         doc/glibc-functions/iswcntrl_l.texi.
40779         * doc/posix-functions/iswctype_l.texi: Renamed from
40780         doc/glibc-functions/iswctype_l.texi.
40781         * doc/posix-functions/iswdigit_l.texi: Renamed from
40782         doc/glibc-functions/iswdigit_l.texi.
40783         * doc/posix-functions/iswgraph_l.texi: Renamed from
40784         doc/glibc-functions/iswgraph_l.texi.
40785         * doc/posix-functions/iswlower_l.texi: Renamed from
40786         doc/glibc-functions/iswlower_l.texi.
40787         * doc/posix-functions/iswprint_l.texi: Renamed from
40788         doc/glibc-functions/iswprint_l.texi.
40789         * doc/posix-functions/iswpunct_l.texi: Renamed from
40790         doc/glibc-functions/iswpunct_l.texi.
40791         * doc/posix-functions/iswspace_l.texi: Renamed from
40792         doc/glibc-functions/iswspace_l.texi.
40793         * doc/posix-functions/iswupper_l.texi: Renamed from
40794         doc/glibc-functions/iswupper_l.texi.
40795         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40796         doc/glibc-functions/iswxdigit_l.texi.
40797         * doc/posix-functions/isxdigit_l.texi: Renamed from
40798         doc/glibc-functions/isxdigit_l.texi.
40799         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40800         doc/glibc-functions/mbsnrtowcs.texi.
40801         * doc/posix-functions/mkdtemp.texi: Renamed from
40802         doc/glibc-functions/mkdtemp.texi.
40803         * doc/posix-functions/newlocale.texi: Renamed from
40804         doc/glibc-functions/newlocale.texi.
40805         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40806         doc/glibc-functions/nl_langinfo_l.texi.
40807         * doc/posix-functions/open_memstream.texi: Renamed from
40808         doc/glibc-functions/open_memstream.texi.
40809         * doc/posix-functions/opterr.texi: Renamed from
40810         doc/glibc-functions/opterr.texi.
40811         * doc/posix-functions/optind.texi: Renamed from
40812         doc/glibc-functions/optind.texi.
40813         * doc/posix-functions/optopt.texi: Renamed from
40814         doc/glibc-functions/optopt.texi.
40815         * doc/posix-functions/psignal.texi: Renamed from
40816         doc/glibc-functions/psignal.texi.
40817         * doc/posix-functions/scandir.texi: Renamed from
40818         doc/glibc-functions/scandir.texi.
40819         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40820         doc/glibc-functions/sched_get_priority_min.texi.
40821         * doc/posix-functions/signgam.texi: Renamed from
40822         doc/glibc-functions/signgam.texi.
40823         * doc/posix-functions/stpcpy.texi: Renamed from
40824         doc/glibc-functions/stpcpy.texi.
40825         * doc/posix-functions/stpncpy.texi: Renamed from
40826         doc/glibc-functions/stpncpy.texi.
40827         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40828         doc/glibc-functions/strcasecmp_l.texi.
40829         * doc/posix-functions/strcoll_l.texi: Renamed from
40830         doc/glibc-functions/strcoll_l.texi.
40831         * doc/posix-functions/strfmon_l.texi: Renamed from
40832         doc/glibc-functions/strfmon_l.texi.
40833         * doc/posix-functions/strftime_l.texi: Renamed from
40834         doc/glibc-functions/strftime_l.texi.
40835         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40836         doc/glibc-functions/strncasecmp_l.texi.
40837         * doc/posix-functions/strndup.texi: Renamed from
40838         doc/glibc-functions/strndup.texi.
40839         * doc/posix-functions/strnlen.texi: Renamed from
40840         doc/glibc-functions/strnlen.texi.
40841         * doc/posix-functions/strsignal.texi: Renamed from
40842         doc/glibc-functions/strsignal.texi.
40843         * doc/posix-functions/strxfrm_l.texi: Renamed from
40844         doc/glibc-functions/strxfrm_l.texi.
40845         * doc/posix-functions/timer_gettime.texi: Renamed from
40846         doc/glibc-functions/timer_gettime.texi.
40847         * doc/posix-functions/tolower_l.texi: Renamed from
40848         doc/glibc-functions/tolower_l.texi.
40849         * doc/posix-functions/toupper_l.texi: Renamed from
40850         doc/glibc-functions/toupper_l.texi.
40851         * doc/posix-functions/towctrans_l.texi: Renamed from
40852         doc/glibc-functions/towctrans_l.texi.
40853         * doc/posix-functions/towlower_l.texi: Renamed from
40854         doc/glibc-functions/towlower_l.texi.
40855         * doc/posix-functions/towupper_l.texi: Renamed from
40856         doc/glibc-functions/towupper_l.texi.
40857         * doc/posix-functions/uselocale.texi: Renamed from
40858         doc/glibc-functions/uselocale.texi.
40859         * doc/posix-functions/vdprintf.texi: Renamed from
40860         doc/glibc-functions/vdprintf.texi.
40861         * doc/posix-functions/wcpcpy.texi:
40862         Renamed from doc/glibc-functions/wcpcpy.texi.
40863         * doc/posix-functions/wcpncpy.texi: Renamed from
40864         doc/glibc-functions/wcpncpy.texi.
40865         * doc/posix-functions/wcscasecmp.texi: Renamed from
40866         doc/glibc-functions/wcscasecmp.texi.
40867         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40868         doc/glibc-functions/wcscasecmp_l.texi.
40869         * doc/posix-functions/wcscoll_l.texi: Renamed from
40870         doc/glibc-functions/wcscoll_l.texi.
40871         * doc/posix-functions/wcsdup.texi: Renamed from
40872         doc/glibc-functions/wcsdup.texi.
40873         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40874         doc/glibc-functions/wcsncasecmp.texi.
40875         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40876         doc/glibc-functions/wcsncasecmp_l.texi.
40877         * doc/posix-functions/wcsnlen.texi: Renamed from
40878         doc/glibc-functions/wcsnlen.texi.
40879         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40880         doc/glibc-functions/wcsnrtombs.texi.
40881         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40882         doc/glibc-functions/wcsxfrm_l.texi.
40883         * doc/posix-functions/wctrans_l.texi: Renamed from
40884         doc/glibc-functions/wctrans_l.texi.
40885         * doc/posix-functions/wctype_l.texi: Renamed from
40886         doc/glibc-functions/wctype_l.texi.
40887         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40888         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40889         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40890         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40891         these subsections.
40892         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40893         Remove sections.
40894
40895 2008-12-14  Bruno Haible  <bruno@clisp.org>
40896
40897         Update doc for POSIX:2008.
40898         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40899
40900 2008-12-14  Bruno Haible  <bruno@clisp.org>
40901
40902         Update doc for POSIX:2008.
40903         * doc/pastposix-functions/bcmp.texi: Renamed from
40904         doc/posix-functions/bcmp.texi.
40905         * doc/pastposix-functions/bcopy.texi: Renamed from
40906         doc/posix-functions/bcopy.texi.
40907         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40908         doc/posix-functions/bsd_signal.texi.
40909         * doc/pastposix-functions/bzero.texi: Renamed from
40910         doc/posix-functions/bzero.texi.
40911         * doc/pastposix-functions/ecvt.texi: Renamed from
40912         doc/posix-functions/ecvt.texi.
40913         * doc/pastposix-functions/fcvt.texi: Renamed from
40914         doc/posix-functions/fcvt.texi.
40915         * doc/pastposix-functions/ftime.texi: Renamed from
40916         doc/posix-functions/ftime.texi.
40917         * doc/pastposix-functions/gcvt.texi: Renamed from
40918         doc/posix-functions/gcvt.texi.
40919         * doc/pastposix-functions/getcontext.texi: Renamed from
40920         doc/posix-functions/getcontext.texi.
40921         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40922         doc/posix-functions/gethostbyaddr.texi.
40923         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40924         doc/posix-functions/gethostbyname.texi.
40925         * doc/pastposix-functions/getwd.texi: Renamed from
40926         doc/posix-functions/getwd.texi.
40927         * doc/pastposix-functions/h_errno.texi: Renamed from
40928         doc/posix-functions/h_errno.texi.
40929         * doc/pastposix-functions/index.texi: Renamed from
40930         doc/posix-functions/index.texi.
40931         * doc/pastposix-functions/makecontext.texi: Renamed from
40932         doc/posix-functions/makecontext.texi.
40933         * doc/pastposix-functions/mktemp.texi: Renamed from
40934         doc/posix-functions/mktemp.texi.
40935         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40936         doc/posix-functions/pthread_attr_getstackaddr.texi.
40937         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40938         doc/posix-functions/pthread_attr_setstackaddr.texi.
40939         * doc/pastposix-functions/rindex.texi: Renamed from
40940         doc/posix-functions/rindex.texi.
40941         * doc/pastposix-functions/scalb.texi: Renamed from
40942         doc/posix-functions/scalb.texi.
40943         * doc/pastposix-functions/setcontext.texi: Renamed from
40944         doc/posix-functions/setcontext.texi.
40945         * doc/pastposix-functions/swapcontext.texi: Renamed from
40946         doc/posix-functions/swapcontext.texi.
40947         * doc/pastposix-functions/ualarm.texi: Renamed from
40948         doc/posix-functions/ualarm.texi.
40949         * doc/pastposix-functions/usleep.texi: Renamed from
40950         doc/posix-functions/usleep.texi.
40951         * doc/pastposix-functions/vfork.texi: Renamed from
40952         doc/posix-functions/vfork.texi.
40953         * doc/pastposix-functions/wcswcs.texi: Renamed from
40954         doc/posix-functions/wcswcs.texi.
40955         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40956         (Function Substitutes): Update.
40957
40958 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40959
40960         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40961         m4/strerror.m4.
40962
40963 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40964             Bruno Haible  <bruno@clisp.org>
40965
40966         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40967
40968 2008-12-13  Bruno Haible  <bruno@clisp.org>
40969
40970         * modules/strtoull (Depends-on): Remove unistd.
40971
40972 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40973
40974         * modules/strtoull (Depends-on): Add stdlib.
40975
40976 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40977
40978         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40979
40980 2008-12-10  Jim Meyering  <meyering@redhat.com>
40981
40982         gl_ASSERT: don't say assertions are disabled when they're not
40983         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40984         "checking whether to enable assertions... no", when they are in
40985         fact enabled.  This is solely a bug in the output of configure.
40986         In spite of saying "no", NDEBUG was not defined in that case.
40987         Also, as noted by Eric Blake, leave assertions enabled upon
40988         --enable-assert=INVALID.
40989
40990 2008-12-10  Bruno Haible  <bruno@clisp.org>
40991
40992         Change MODULES.html to refer to POSIX:2008 where possible.
40993         * MODULES.html.sh (POSIX2008_URL): New variable.
40994         (posix_headers): Remove sys/timeb, ucontext.
40995         (posix2001_headers): New variable.
40996         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40997         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40998         index, makecontext, mktemp, pthread_attr_getstackaddr,
40999         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41000         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41001         (posix2001_functions): New variable.
41002         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41003         otherwise.
41004
41005 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41006
41007         add missing include to parse-duration.c
41008         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41009         * modules/parse-duration (Depends-on): Add xalloc.
41010
41011         fix sed script reading maint.mk
41012         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41013         (syntax-check-rules): Use it.
41014
41015 2008-12-09  Bruno Haible  <bruno@clisp.org>
41016
41017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41018         MacOS X 10.4/PowerPC.
41019         Reported by Simon Josefsson.
41020
41021 2008-12-08  Jim Meyering  <meyering@redhat.com>
41022
41023         work around mingw's lack of some S_IF definitions
41024         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41025         Reported by Simon Josefsson.
41026
41027 2008-12-08  Bruno Haible  <bruno@clisp.org>
41028
41029         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41030         applied to variables. Needed on MacOS X 10.4/PowerPC.
41031         Reported by Simon Josefsson.
41032
41033 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41034         and Eric Blake  <ebb9@byu.net>
41035
41036         assert: honor --enable-assert
41037         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41038         order to honor --enable-assert, rather than treating it as a
41039         synonym for --disable-assert.
41040
41041 2008-12-08  Jim Meyering  <meyering@redhat.com>
41042
41043         * lib/posixtm.c: Remove now-useless declaration of mktime.
41044
41045         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41046
41047 2008-12-07  Bruno Haible  <bruno@clisp.org>
41048
41049         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41050         test_once): Mark functions as static.
41051         * tests/test-tls.c (test_tls): Likewise.
41052
41053 2008-12-07  Bruno Haible  <bruno@clisp.org>
41054
41055         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41056         iconv_register_autodetect.
41057
41058 2008-12-07  Jim Meyering  <meyering@redhat.com>
41059
41060         posixtm.c: avoid a warning
41061         * lib/posixtm.c (posixtime): Don't initialize tm0.
41062         It's no longer needed to placate gcc4's -Wuninitialized,
41063         and the attempt to placate would elicit a new warning.
41064
41065         unicodeio.c: mark unused parameters
41066         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41067         (fallback_failure_callback): Likewise.
41068
41069 2008-12-07  Bruno Haible  <bruno@clisp.org>
41070
41071         * gnulib-tool (func_create_testdir): When building the tests
41072         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41073         Reported by Simon Josefsson.
41074
41075 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41076
41077         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41078
41079 2008-12-06  Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41082         Suggested by Eric Blake.
41083
41084 2008-12-06  Bruno Haible  <bruno@clisp.org>
41085
41086         Fix a c-stack test failure on MacOS X.
41087         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41088         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41089         handler for SIGBUS as well.
41090         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41091         install a signal handler for SIGBUS as well.
41092         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41093
41094 2008-12-06  Bruno Haible  <bruno@clisp.org>
41095
41096         Advocacy documentation.
41097         * doc/gnulib-intro.texi (Benefits): New section.
41098         * doc/gnulib.texi: Update.
41099
41100 2008-12-06  Bruno Haible  <bruno@clisp.org>
41101
41102         Document the 'manywarnings' module.
41103         * doc/manywarnings.texi: New file.
41104         * doc/gnulib.texi: Include it.
41105
41106 2008-12-05  Eric Blake  <ebb9@byu.net>
41107
41108         tests: silence some gcc warnings
41109         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41110         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41111         type mismatches.
41112
41113 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41114             Bruno Haible  <bruno@clisp.org>
41115
41116         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41117
41118 2008-11-29  Jim Meyering  <meyering@redhat.com>
41119
41120         unicodeio.c: mark unused parameters
41121         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41122         (fallback_failure_callback): Likewise.
41123
41124         fts: fix a thinko
41125         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41126         (set_stat_type): Return S_IF*-valued "type" directly.
41127         Prompted by James Youngman's spotting a related bug.
41128         Confirmed by further testing through find.
41129
41130         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41131         * lib/fts.c (D_TYPE): Define.
41132         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41133         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41134         (s_ifmt_shift_bits): New function.
41135         (set_stat_type): New function.
41136         (fts_build): When not calling fts_stat, call set_stat_type
41137         to propagate dirent.d_type info to fts_read caller.
41138         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41139         fts_statp->st_mode type information may be valid.
41140
41141 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41142
41143         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41144         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41145         <sds@gnu.org>.
41146
41147 2008-11-20  Bruno Haible  <bruno@clisp.org>
41148
41149         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41150         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41151         INCLUDE_NEXT.
41152         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41153         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41154         * modules/math (Makefile.am): Substitute
41155         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41156         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41157
41158 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41159             Bruno Haible  <bruno@clisp.org>
41160
41161         * lib/stdint.in.h: Define all type macros so that their expansion is
41162         a single typedef'ed token. Fixes a compilation failure in Boost which
41163         does "using ::int8_t;".
41164
41165 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41166
41167         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41168         gl_MANYWARN_ALL_GCC.
41169         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41170         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41171         * modules/manywarnings: New file.
41172         * MODULES.html.sh: Mention manywarnings module.
41173
41174 2008-11-18  Bruno Haible  <bruno@clisp.org>
41175
41176         * doc/gnulib-tool.texi (Unit tests): New section.
41177
41178 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41179
41180         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41181         paths like 'lib/po/foo.po'.
41182
41183 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41184
41185         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41186         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41187
41188 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41189
41190         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41191         parameter works.
41192
41193 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41194
41195         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41196
41197 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41198
41199         * modules/parse-duration-tests: New file.
41200         * tests/test-parse-duration.sh: New file.
41201         * tests/test-parse-duration.c: New file.
41202
41203         New module 'parse-duration'.
41204         * lib/parse-duration.h: New file.
41205         * lib/parse-duration.c: New file.
41206         * modules/parse-duration: New file.
41207
41208 2008-11-17  Bruno Haible  <bruno@clisp.org>
41209
41210         * tests/test-select-out.sh: Comment out the first pipe test.
41211         Reported by Simon Josefsson.
41212
41213 2008-11-17  Bruno Haible  <bruno@clisp.org>
41214
41215         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41217         gl_HOSTENT.
41218
41219 2008-11-17  Bruno Haible  <bruno@clisp.org>
41220
41221         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41222         -lnetwork and -lnet. Needed for Haiku and BeOS.
41223
41224 2008-11-16  Bruno Haible  <bruno@clisp.org>
41225
41226         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41227
41228 2008-11-16  Bruno Haible  <bruno@clisp.org>
41229
41230         Avoid test failure on Haiku.
41231         * tests/test-fsync.c: Include <errno.h>.
41232         (main): Don't require that fsync (0) fails.
41233
41234 2008-11-15  Bruno Haible  <bruno@clisp.org>
41235
41236         New module 'hostent'.
41237         * modules/hostent: New file.
41238         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41239
41240 2008-11-15  Bruno Haible  <bruno@clisp.org>
41241
41242         New module 'servent'.
41243         * modules/servent: New file.
41244         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41245
41246 2008-11-15  Bruno Haible  <bruno@clisp.org>
41247
41248         Avoid generating same test program with two different rules.
41249         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41250         test-frexp to test-frexp-nolibm.
41251         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41252         test-frexpl to test-frexpl-nolibm.
41253
41254 2008-11-15  Bruno Haible  <bruno@clisp.org>
41255
41256         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41257         $(FREXPL_LIBM).
41258
41259 2008-11-15  Bruno Haible  <bruno@clisp.org>
41260
41261         * lib/netdb.in.h: Activate the definitions also when the system's
41262         <netdb.h> has 'struct addrinfo'.
41263         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41264         EAI_OVERFLOW or AI_NUMERICSERV.
41265         * doc/posix-headers/netdb.texi: Document the problem.
41266
41267 2008-11-15  Bruno Haible  <bruno@clisp.org>
41268
41269         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41270
41271         Make the 'sched' module work on platforms where <sched.h> exists but
41272         is incomplete (such as Haiku).
41273         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41274         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41275         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41276         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41277         HAVE_STRUCT_SCHED_PARAM.
41278         * modules/sched (Depends-on): Add include_next.
41279         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41280         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41281         * doc/posix-headers/sched.texi: Document the issue.
41282
41283 2008-11-13  Jim Meyering  <meyering@redhat.com>
41284
41285         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41286         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41287         test would fail due to the difference in the Report bugs to ...
41288         line.  The expected address is empty, "<>", while the actual
41289         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41290
41291 2008-11-12  Bruno Haible  <bruno@clisp.org>
41292
41293         lstat: don't compile lstat.c on systems lacking lstat
41294         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41295         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41296         Reported by Daniel P. Berrange via Jim Meyering.
41297
41298 2008-11-12  Jim Meyering  <meyering@redhat.com>
41299
41300         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41301
41302 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41303
41304         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41305         instead.
41306
41307 2008-11-12  Bruno Haible  <bruno@clisp.org>
41308
41309         * lib/unicodeio.c: Include unistr.h.
41310         (utf8_wctomb): Remove function.
41311         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41312
41313 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41314
41315         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41316         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41317         <bruno@clisp.org>.
41318         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41319
41320 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41321
41322         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41323         * doc/gnulib.texi: Add section for warnings.
41324
41325 2008-11-11  Bruno Haible  <bruno@clisp.org>
41326
41327         * lib/sockets.h: Add a comment.
41328
41329 2008-11-11  Karl Berry  <karl@gnu.org>
41330
41331         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41332
41333 2008-11-11  Eric Blake  <ebb9@byu.net>
41334
41335         fdl.texi: avoid git symlinks
41336         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41337
41338 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41339
41340         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41341
41342 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41343
41344         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41345         (gl_WARN_ADD): Substitute $2 if literal.
41346
41347 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41348
41349         * m4/warning.m4: Remove.
41350
41351 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41352
41353         * m4/warnings.m4: Almost complete rewrite. :-)
41354
41355 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41356
41357         * modules/warnings: New module.
41358         * m4/warnings.m4: New file.
41359         * MODULES.html.sh: Mention warnings module.
41360         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41361         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41362
41363 2008-11-10  Eric Blake  <ebb9@byu.net>
41364
41365         fdl.texi: make a symlink to the latest version
41366         * doc/standards.texi: Revert today's earlier change.
41367         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41368         * doc/fdl.texi: ...and replace this with a symlink to the newer
41369         fdl-1.3.texi.
41370
41371 2008-11-10  Bruno Haible  <bruno@clisp.org>
41372
41373         * tests/test-select-fd.c (main): Accept the result file name as fourth
41374         argument.
41375         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41376         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41377
41378 2008-11-10  Bruno Haible  <bruno@clisp.org>
41379
41380         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41381         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41382         as autoconf-substituted macros.
41383         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41385         gl_NETDB_H_DEFAULTS. Set these variables.
41386         * modules/netdb (Makefile.am): Substitute these variables.
41387
41388 2008-11-10  Eric Blake  <ebb9@byu.net>
41389
41390         standards.texi: include correct file for FDL 1.3
41391         * doc/standards.texi (GNU Free Documentation License): Change
41392         include file to pull in FDL 1.3, not 1.2.
41393
41394         fdl.texi: revert accidental change to license
41395         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41396
41397 2008-11-10  Bruno Haible  <bruno@clisp.org>
41398
41399         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41400         cross-compiling guesses also when the native compile gives no result.
41401
41402 2008-11-10  Bruno Haible  <bruno@clisp.org>
41403
41404         * lib/spawni.c (__spawni): Force variable into the stack.
41405
41406 2008-11-10  Bruno Haible  <bruno@clisp.org>
41407
41408         Add support for Haiku.
41409         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41410         glibc and BeOS, but also on Haiku.
41411         * lib/fpurge.c (fpurge): Likewise.
41412         * lib/freadable.c (freadable): Likewise.
41413         * lib/freadahead.c (freadahead): Likewise.
41414         * lib/freading.c (freading): Likewise.
41415         * lib/freadptr.c (freadptr): Likewise.
41416         * lib/freadseek.c (freadptrinc): Likewise.
41417         * lib/fseeko.c (rpl_fseeko): Likewise.
41418         * lib/fseterr.c (fseterr): Likewise.
41419         * lib/fwritable.c (fwritable): Likewise.
41420         * lib/fwriting.c (fwriting): Likewise.
41421         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41422
41423 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41424
41425         * lib/config.charset: Treat Haiku like BeOS.
41426
41427 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41428
41429         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41430         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41431
41432 2008-11-08  Bruno Haible  <bruno@clisp.org>
41433
41434         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41435         AC_CACHE_CHECK.
41436
41437 2008-11-08  Bruno Haible  <bruno@clisp.org>
41438
41439         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41440
41441 2008-11-08  Bruno Haible  <bruno@clisp.org>
41442
41443         * tests/test-select-fd.c: New file.
41444         * tests/test-select-in.sh: New file.
41445         * tests/test-select-out.sh: New file.
41446         * tests/test-select-stdin.c: New file.
41447         * modules/select-tests (Files): Add the new files.
41448         (Depends-on): Add gettimeofday.
41449         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41450         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41451         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41452
41453 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41454             Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41457
41458 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41459
41460         * build-aux/pmccabe2html: Added support for C++ source files.
41461
41462 2008-11-05  Ben Pfaff  <blp@gnu.org>
41463
41464         Fix lib/close.c build on Windows.
41465         * modules/close (Files): Add lib/w32sock.h.
41466
41467 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41468
41469         Accept Bison's NEWS format.
41470         * build-aux/announce-gen (print_news_deltas): Tweak
41471         $re_prefix.
41472
41473 2008-11-04  Bruno Haible  <bruno@clisp.org>
41474
41475         * modules/random_r (Maintainer): Add glibc.
41476
41477 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41478
41479         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41480         by karl@freefriends.org (Karl Berry).
41481         * doc/alloca.texi: Likewise.
41482         * doc/c-ctype.texi: Likewise.
41483         * doc/c-strcase.texi: Likewise.
41484         * doc/c-strcaseeq.texi: Likewise.
41485         * doc/c-strcasestr.texi: Likewise.
41486         * doc/c-strstr.texi: Likewise.
41487         * doc/c-strtod.texi: Likewise.
41488         * doc/c-strtold.texi: Likewise.
41489         * doc/ctime.texi: Likewise.
41490         * doc/error.texi: Likewise.
41491         * doc/fdl.texi: Likewise.
41492         * doc/gcd.texi: Likewise.
41493         * doc/getdate.texi: Likewise.
41494         * doc/gnulib-intro.texi: Likewise.
41495         * doc/gnulib-tool.texi: Likewise.
41496         * doc/gnulib.texi: Likewise.
41497         * doc/inet_ntoa.texi: Likewise.
41498         * doc/maintain.texi: Likewise.
41499         * doc/make-stds.texi: Likewise.
41500         * doc/quote.texi: Likewise.
41501         * doc/regexprops-generic.texi: Likewise.
41502         * doc/standards.texi: Likewise.
41503         * doc/verify.texi: Likewise.
41504         * doc/visibility.texi: Likewise.
41505         * doc/gnulib.texi (GNU Free Documentation License): Include
41506         fdl-1.3.texi instead of fdl.texi.
41507
41508 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41509
41510         * doc/fdl-1.3.texi: New file, from
41511         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41512         * modules/fdl-1.3: Add.
41513         * MODULES.html.sh: Add fdl-1.3.
41514
41515 2008-11-03  Bruno Haible  <bruno@clisp.org>
41516
41517         Make determination of absolute name of header file work with AIX xlc.
41518         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41519         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41520         preprocessing.
41521         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41522         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41523
41524 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41525
41526         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41527         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41528         <ludo@gnu.org>.
41529
41530 2008-11-02  Bruno Haible  <bruno@clisp.org>
41531
41532         Mark 'strpbrk' obsolete.
41533         * modules/strpbrk (Status, Notice): New sections.
41534         * modules/strtok_r (Depends-on): Add strpbrk.
41535
41536 2008-11-02  Bruno Haible  <bruno@clisp.org>
41537
41538         Mark 'strdup' obsolete.
41539         * modules/strdup (Status, Notice): New sections.
41540         * modules/findprog (Depends-on): Add strdup.
41541         * modules/getaddrinfo (Depends-on): Likewise.
41542         * modules/localename (Depends-on): Likewise.
41543         * modules/relocatable-lib (Depends-on): Likewise.
41544         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41545         * modules/relocatable-prog (Depends-on): Likewise.
41546         * modules/trim (Depends-on): Likewise.
41547         * modules/unictype/gen-ctype (Depends-on): Likewise.
41548         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41549
41550 2008-11-02  Bruno Haible  <bruno@clisp.org>
41551
41552         Mark 'strcspn' obsolete.
41553         * modules/strcspn (Status, Notice): New sections.
41554
41555 2008-11-02  Bruno Haible  <bruno@clisp.org>
41556
41557         Mark 'rmdir' obsolete.
41558         * modules/rmdir (Status, Notice): New sections.
41559         * modules/clean-temp (Depends-on): Add rmdir.
41560         * modules/openat (Depends-on): Likewise.
41561
41562 2008-11-02  Bruno Haible  <bruno@clisp.org>
41563
41564         Mark 'raise' obsolete.
41565         * modules/raise (Status, Notice): New sections.
41566         (Include): Specify <signal.h>.
41567         * modules/stdio (Depends-on): Add raise.
41568         * modules/write (Depends-on): Likewise.
41569
41570 2008-11-02  Bruno Haible  <bruno@clisp.org>
41571
41572         Mark 'memset' obsolete.
41573         * modules/memset (Status, Notice): New sections.
41574
41575 2008-11-02  Bruno Haible  <bruno@clisp.org>
41576
41577         Mark 'memmove' obsolete.
41578         * modules/memmove (Status, Notice): New sections.
41579         * modules/argp (Depends-on): Add memmove.
41580         * modules/argz (Depends-on): Likewise.
41581         * modules/canonicalize (Depends-on): Likewise.
41582         * modules/canonicalize-lgpl (Depends-on): Likewise.
41583         * modules/fts (Depends-on): Likewise.
41584         * modules/getcwd (Depends-on): Likewise.
41585         * modules/human (Depends-on): Likewise.
41586         * modules/regex (Depends-on): Likewise.
41587         * modules/striconveh (Depends-on): Likewise.
41588         * modules/trim (Depends-on): Likewise.
41589         * modules/unistr/u8-move (Depends-on): Likewise.
41590         * modules/unistr/u16-move (Depends-on): Likewise.
41591         * modules/unistr/u32-move (Depends-on): Likewise.
41592
41593 2008-11-02  Bruno Haible  <bruno@clisp.org>
41594
41595         Mark 'memcpy' obsolete.
41596         * modules/memcpy (Status, Notice): New sections.
41597
41598 2008-11-02  Bruno Haible  <bruno@clisp.org>
41599
41600         Mark 'memcmp' obsolete.
41601         * modules/memcmp (Status, Notice): New sections.
41602         * modules/argmatch (Depends-on): Add memchr.
41603         * modules/backupfile (Depends-on): Likewise.
41604         * modules/c-strcasestr (Depends-on): Likewise.
41605         * modules/crypto/des (Depends-on): Likewise.
41606         * modules/csharpcomp (Depends-on): Likewise.
41607         * modules/fnmatch (Depends-on): Likewise.
41608         * modules/git-merge-changelog (Depends-on): Likewise.
41609         * modules/isnand (Depends-on): Likewise.
41610         * modules/isnand-nolibm (Depends-on): Likewise.
41611         * modules/isnanf (Depends-on): Likewise.
41612         * modules/isnanf-nolibm (Depends-on): Likewise.
41613         * modules/isnanl (Depends-on): Likewise.
41614         * modules/isnanl-nolibm (Depends-on): Likewise.
41615         * modules/mbchar (Depends-on): Likewise.
41616         * modules/memcoll (Depends-on): Likewise.
41617         * modules/quotearg (Depends-on): Likewise.
41618         * modules/regex (Depends-on): Likewise.
41619         * modules/relocatable-prog (Depends-on): Likewise.
41620         * modules/same (Depends-on): Likewise.
41621         * modules/signbit (Depends-on): Likewise.
41622         * modules/strcasestr-simple (Depends-on): Likewise.
41623         * modules/unictype/gen-ctype (Depends-on): Likewise.
41624         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41625         * modules/uniname/uniname (Depends-on): Likewise.
41626         * modules/unistr/u8-cmp (Depends-on): Likewise.
41627
41628 2008-11-02  Bruno Haible  <bruno@clisp.org>
41629
41630         Mark 'memchr' obsolete.
41631         * modules/memchr (Status, Notice): New sections.
41632         * modules/argp (Depends-on): Add memchr.
41633         * modules/base64 (Depends-on): Likewise.
41634         * modules/c-strcasestr (Depends-on): Likewise.
41635         * modules/chdir-long (Depends-on): Likewise.
41636         * modules/fnmatch (Depends-on): Likewise.
41637         * modules/getsubopt (Depends-on): Likewise.
41638         * modules/git-merge-changelog (Depends-on): Likewise.
41639         * modules/glob (Depends-on): Likewise.
41640         * modules/strcasestr-simple (Depends-on): Likewise.
41641         * modules/strnlen (Depends-on): Likewise.
41642
41643 2008-11-02  Bruno Haible  <bruno@clisp.org>
41644
41645         Mark 'atexit' obsolete.
41646         * modules/atexit (Status, Notice): New sections.
41647         * modules/chdir-long (Depends-on): Add atexit.
41648         * modules/wait-process (Depends-on): Likewise.
41649
41650 2008-11-02  Bruno Haible  <bruno@clisp.org>
41651
41652         * gnulib-tool: New option --with-obsolete.
41653         (func_usage): Document it.
41654         (func_modules_transitive_closure): Drop obsolete dependencies if
41655         incobsolete is not true.
41656         (func_import): Read and save the incobsolete variable to the cache.
41657
41658 2008-11-02  Bruno Haible  <bruno@clisp.org>
41659
41660         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41661         * gnulib-tool: New option --extract-status.
41662         (func_usage): Document it.
41663         (sed_extract_prog): Recognize it.
41664         (func_get_status): New function.
41665
41666 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41667
41668         * modules/sockets (License): Change from LGPL to LGPLv2+.
41669
41670 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41671
41672         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41673
41674 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41675
41676         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41677         Mention times and sys_times.
41678         * modules/sys_times, modules/sys_times-tests: New modules.
41679         * modules/times, modules/times-tests: Likewise
41680         * m4/sys_times_h.m4: New file.
41681         * lib/sys_times.in.h: Likewise
41682         * lib/times.c: Likewise.
41683         * tests/test-sys_times.c: Likewise.
41684         * tests/test-times.c: Likewise.
41685         * doc/posix-headers/sys_times.texi: Update.
41686         * doc/posix-functions/times.texi: Update.
41687
41688 2008-10-28  Jim Meyering  <meyering@redhat.com>
41689
41690         * modules/tempname (Depends-on): Add lstat.
41691
41692         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41693
41694 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41695
41696         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41697         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41698         using idiom used elsewhere in gnulib.
41699
41700 2008-10-27  Jim Meyering  <meyering@redhat.com>
41701
41702         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41703
41704 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41705
41706         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41707         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41708         programs.
41709         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41710
41711 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41712
41713         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41714
41715 2008-10-27  Bruno Haible  <bruno@clisp.org>
41716
41717         * tests/test-lstat.c: Include <stdio.h>.
41718
41719 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41720
41721         * modules/lstat-tests: New module.
41722         * tests/test-lstat.c: New file.
41723
41724 2008-10-26  Jim Meyering  <meyering@redhat.com>
41725
41726         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41727
41728 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41729             Bruno Haible  <bruno@clisp.org>
41730
41731         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41732         * modules/configmake (Include): Add a note that the include must come
41733         after all system headers.
41734         * lib/javaversion.c: Include configmake.h after all other includes.
41735
41736 2008-10-26  Bruno Haible  <bruno@clisp.org>
41737
41738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41739         HAVE_STRUCT_RANDOM_DATA to 1.
41740         (gl_STDLIB_H): Simplify.
41741
41742 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41743
41744         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41745         substitute HAVE_STRUCT_RANDOM_DATA.
41746         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41747         random_data.
41748         * modules/stdlib (Makefile.am): Substitute
41749         HAVE_STRUCT_RANDOM_DATA.
41750
41751 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41752
41753         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41754         * doc/gnulib-intro.texi (Copyright): Likewise.
41755
41756 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41757
41758         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41759         findings.
41760
41761 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41762             Bruno Haible  <bruno@clisp.org>
41763
41764         * lib/unistd.in.h: Include <winsock2.h>.
41765         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41766         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41767         Provide dummy declarations.
41768         (gethostname): Override.
41769         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41770         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41771         gl_PREREQ_SYS_H_WINSOCK2.
41772         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41773         * doc/posix-functions/gethostname.texi: More details.
41774
41775 2008-10-25  Bruno Haible  <bruno@clisp.org>
41776
41777         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41778         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41779         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41780
41781         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41782         here ...
41783         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41784         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41785         gl_UNISTD_H_DEFAULTS.
41786
41787 2008-10-25  Eric Blake  <ebb9@byu.net>
41788
41789         signbit: avoid spurious compiler failure
41790         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41791         declarations inside function.
41792
41793 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41794             Bruno Haible  <bruno@clisp.org>
41795
41796         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41797         * modules/random_r (Depends-on): Add stdint.
41798
41799 2008-10-24  Bruno Haible  <bruno@clisp.org>
41800
41801         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41802         Eggert.
41803         * modules/strerror (License): Likewise.
41804
41805 2008-10-24  Jim Meyering  <meyering@redhat.com>
41806
41807         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41808         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41809
41810 2008-10-24  Eric Blake  <ebb9@byu.net>
41811
41812         getgroups: fix compilation when getgroups is available
41813         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41814         but with <config.h> override of getgroups disabled.
41815
41816 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41817
41818         * doc/gnulib.texi (Header files): Add note about C++ problems.
41819         Explained by Bruno Haible <bruno@clisp.org>.
41820
41821 2008-10-23  Bruno Haible  <bruno@clisp.org>
41822
41823         Define a dummy SA_NODEFER macro on Interix.
41824         * lib/signal.in.h (SA_NODEFER): Define fallback.
41825         Reported by Aleksey Cheusov <cheusov@tut.by> via
41826         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41827
41828 2008-10-23  Bruno Haible  <bruno@clisp.org>
41829
41830         * modules/freadahead (License): Change to LGPLv2+.
41831         Suggested by Simon Josefsson.
41832
41833 2008-10-23  Jim Meyering  <meyering@redhat.com>
41834
41835         random_r: new module
41836         * modules/random_r: New file.
41837         * m4/random_r.m4: New file.
41838         * lib/random_r.c: New file, from glibc.
41839         * modules/random_r-tests: New file.
41840         * tests/test-random_r.c: New file.
41841         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41842          Declare.
41843         (RAND_MAX): Define.
41844         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41845         * modules/stdlib: Substitute them, too.
41846         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41847         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41848         * doc/glibc-functions/random_r.texi: Likewise.
41849         * doc/glibc-functions/setstate_r.texi: Likewise.
41850         * doc/glibc-functions/srandom_r.texi: Likewise.
41851         * config/srclist.txt: Mention it.
41852
41853 2008-10-23  David Lutterkort  <lutter@redhat.com>
41854
41855         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41856         link requirement
41857
41858 2008-10-23  Jim Meyering  <meyering@redhat.com>
41859
41860         selinux-h: mark parameters of stub functions as intentionally unused
41861         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41862         * lib/se-context.in.h: Likewise.
41863
41864 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41865
41866         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41867
41868 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41869
41870         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41871
41872 2008-10-22  Eric Blake  <ebb9@byu.net>
41873
41874         glthread/thread: avoid compiler warning
41875         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41876         Add unreachable abort to silence compiler.
41877
41878 2008-10-22  Eric Blake  <ebb9@byu.net>
41879
41880         netdb: also supply struct addrinfo for cygwin 1.5.x
41881         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41882         older cygwin.
41883         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41884         cygwin.
41885         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41886
41887 2008-10-22  Bruno Haible  <bruno@clisp.org>
41888
41889         * users.txt: Update entry about pspp.
41890
41891 2008-10-21  Bruno Haible  <bruno@clisp.org>
41892
41893         Simplification.
41894         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41895         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41896
41897         Simplification.
41898         * lib/ioctl.c (ioctl): Don't undefine.
41899         * lib/socket.c (socket): Don't undefine.
41900
41901         Remove unused module indicator macros.
41902         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41903         GNULIB_$1 as a C macro.
41904
41905         * doc/posix-functions/close.texi: Undo last change.
41906         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41907         Windows platforms.
41908
41909 2008-10-21  Bruno Haible  <bruno@clisp.org>
41910
41911         Add gethostname() declaration to <unistd.h>.
41912         * lib/unistd.in.h (gethostname): New declaration.
41913         * lib/gethostname.c: Include <unistd.h>.
41914         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41915         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41917         and HAVE_GETHOSTNAME.
41918         * modules/gethostname (Depends-on): Add unistd.
41919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41920         (Include): Specify <unistd.h>.
41921         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41922         HAVE_GETHOSTNAME.
41923         * tests/test-gethostname.c: Include <unistd.h> first.
41924
41925 2008-10-21  Bruno Haible  <bruno@clisp.org>
41926
41927         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41928         * modules/select-tests (Depends-on): Likewise.
41929         Reported by Simon Josefsson.
41930
41931 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41932
41933         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41934         * lib/accept.c: New file, based on winsock.c.
41935         * lib/bind.c: New file, based on winsock.c.
41936         * lib/connect.c: New file, based on winsock.c.
41937         * lib/getpeername.c: New file, based on winsock.c.
41938         * lib/getsockname.c: New file, based on winsock.c.
41939         * lib/getsockopt.c: New file, based on winsock.c.
41940         * lib/ioctl.c: New file, based on winsock.c.
41941         * lib/listen.c: New file, based on winsock.c.
41942         * lib/recv.c: New file, based on winsock.c.
41943         * lib/recvfrom.c: New file, based on winsock.c.
41944         * lib/send.c: New file, based on winsock.c.
41945         * lib/sendto.c: New file, based on winsock.c.
41946         * lib/setsockopt.c: New file, based on winsock.c.
41947         * lib/shutdown.c: New file, based on winsock.c.
41948         * lib/socket.c: New file, based on winsock.c.
41949         * lib/w32sock.h: New file, based on winsock.c.
41950         * lib/winsock.c: Remove file.
41951         * modules/accept: Likewise.
41952         * modules/bind: Likewise.
41953         * modules/connect: Likewise.
41954         * modules/getpeername: Likewise.
41955         * modules/getsockname: Likewise.
41956         * modules/getsockopt: Likewise.
41957         * modules/ioctl: Likewise.
41958         * modules/listen: Likewise.
41959         * modules/recv: Likewise.
41960         * modules/recvfrom: Likewise.
41961         * modules/send: Likewise.
41962         * modules/sendto: Likewise.
41963         * modules/setsockopt: Likewise.
41964         * modules/shutdown: Likewise.
41965         * modules/socket: Use socket.c instead of winsock.c.
41966         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41967         * doc/posix-functions/accept.texi: Doc fix.
41968         * doc/posix-functions/bind.texi: Doc fix.
41969         * doc/posix-functions/close.texi: Doc fix.
41970         * doc/posix-functions/connect.texi: Doc fix.
41971         * doc/posix-functions/getpeername.texi: Doc fix.
41972         * doc/posix-functions/getsockname.texi: Doc fix.
41973         * doc/posix-functions/getsockopt.texi: Doc fix.
41974         * doc/posix-functions/ioctl.texi: Doc fix.
41975         * doc/posix-functions/listen.texi: Doc fix.
41976         * doc/posix-functions/recv.texi: Doc fix.
41977         * doc/posix-functions/recvfrom.texi: Doc fix.
41978         * doc/posix-functions/send.texi: Doc fix.
41979         * doc/posix-functions/sendto.texi: Doc fix.
41980         * doc/posix-functions/setsockopt.texi: Doc fix.
41981         * doc/posix-functions/shutdown.texi: Doc fix.
41982         * doc/posix-functions/socket.texi: Doc fix.
41983
41984 2008-10-20  Bruno Haible  <bruno@clisp.org>
41985
41986         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41987         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41988         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41989         as an alias for SIGABRT.
41990         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41991         (sigaction): Map it to SIGABRT.
41992         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41993
41994 2008-10-20  Bruno Haible  <bruno@clisp.org>
41995
41996         * lib/fts.c: Don't include lstat.h.
41997         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41998
41999         Move the lstat() declaration to <sys/stat.h>.
42000         * lib/lstat.h: Remove file.
42001         * lib/sys_stat.in.h: Add special invocation convention.
42002         (lstat): New declaration.
42003         * lib/lstat.c (orig_lstat): New function.
42004         (rpl_lstat): Use orig_lstat instead of lstat.
42005         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42006         AC_C_INLINE. Set REPLACE_LSTAT.
42007         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42008         and REPLACE_LSTAT.
42009         * modules/lstat (Files): Remove lib/lstat.h.
42010         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42011         (Include): Specify <sys/stat.h> instead of lstat.h.
42012         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42013         REPLACE_LSTAT.
42014         * NEWS: Mention the change.
42015
42016 2008-10-20  Bruno Haible  <bruno@clisp.org>
42017
42018         * modules/posix_spawn-tests: New file.
42019         * tests/test-posix_spawn3.c: New file.
42020
42021 2008-10-20  Bruno Haible  <bruno@clisp.org>
42022
42023         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42024         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42025         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42026         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42027         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42028
42029 2008-10-20  Bruno Haible  <bruno@clisp.org>
42030
42031         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42032         of posix_spawn on AIX 5.3.
42033
42034 2008-10-20  Bruno Haible  <bruno@clisp.org>
42035
42036         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42037
42038 2008-10-20  Bruno Haible  <bruno@clisp.org>
42039
42040         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42041         of AC_LANG_PROGRAM.
42042
42043 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42044
42045         * lib/netdb.in.h: Don't define GNU specific constants until they
42046         are supported or needed.  Reported by Bruno Haible
42047         <bruno@clisp.org>.
42048
42049 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42050
42051         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42052
42053 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42054
42055         * lib/getaddrinfo.h: Remove file.
42056         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42057         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42058         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42059         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42060         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42061         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42062         * tests/test-getaddrinfo.c: Likewise.
42063         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42064         * NEWS: Mention change.
42065
42066 2008-10-19  Bruno Haible  <bruno@clisp.org>
42067
42068         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42069
42070 2008-10-19  Bruno Haible  <bruno@clisp.org>
42071
42072         * lib/wait-process.c: Include simply <sys/wait.h>.
42073         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42074         WIFSTOPPED): Remove fallback definitions.
42075         * modules/wait-process (Depends-on): Add sys_wait.
42076
42077         New module 'sys_wait'.
42078         * modules/sys_wait: New file.
42079         * lib/sys_wait.in.h: New file, partially copied from
42080         lib/wait-process.c.
42081         * m4/sys_wait_h.m4: New file.
42082         * doc/posix-headers/sys_wait.texi: Mention the new module.
42083
42084 2008-10-19  Bruno Haible  <bruno@clisp.org>
42085
42086         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42087
42088 2008-10-19  Bruno Haible  <bruno@clisp.org>
42089
42090         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42091         * lib/wait-process.c (WAIT_T): Remove type.
42092         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42093         (wait_subprocess): Update.
42094
42095 2008-10-19  Bruno Haible  <bruno@clisp.org>
42096
42097         New module 'atoll'.
42098         * modules/atoll: New file.
42099         * lib/stdlib.in.h (atoll): New declaration.
42100         * lib/atoll.c: New file, from glibc with modifications.
42101         * m4/atoll.m4: New file.
42102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42103         HAVE_ATOLL.
42104         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42105         * doc/posix-functions/atoll.texi: Mention the new module.
42106
42107 2008-10-19  Bruno Haible  <bruno@clisp.org>
42108
42109         Add strtoull() declaration to <stdlib.h>.
42110         * lib/stdlib.in.h (strtoull): New declaration.
42111         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42112         Set HAVE_STRTOULL.
42113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42114         HAVE_STRTOULL.
42115         * modules/strtoull (Depends-on): Add stdlib.
42116         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42117         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42118         HAVE_STRTOULL.
42119
42120 2008-10-19  Bruno Haible  <bruno@clisp.org>
42121
42122         Add strtoll() declaration to <stdlib.h>.
42123         * lib/stdlib.in.h (strtoll): New declaration.
42124         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42125         Set HAVE_STRTOLL.
42126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42127         HAVE_STRTOLL.
42128         * modules/strtoll (Depends-on): Add stdlib.
42129         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42130         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42131
42132 2008-10-19  Bruno Haible  <bruno@clisp.org>
42133
42134         * modules/bcopy (Depends-on): Add strings.
42135         (Include): Specify <strings.h>.
42136
42137 2008-10-19  Bruno Haible  <bruno@clisp.org>
42138
42139         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42140
42141 2008-10-19  Bruno Haible  <bruno@clisp.org>
42142
42143         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42144         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42145         mingw.
42146
42147 2008-10-19  Bruno Haible  <bruno@clisp.org>
42148
42149         * lib/atanl.c: Don't include isnanl.h.
42150         * lib/cosl.c: Likewise.
42151         * lib/ldexpl.c: Likewise.
42152         * lib/logl.c: Likewise.
42153         * lib/sinl.c: Likewise.
42154         * lib/sqrtl.c: Likewise.
42155         * lib/tanl.c: Likewise.
42156
42157         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42158         * lib/isnanf.h: Remove file.
42159         * lib/isnand.h: Remove file.
42160         * lib/isnanl.h: Remove file.
42161         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42162         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42163         macros.
42164         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42165         HAVE_ISNANF, don't define it as a C macro.
42166         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42167         HAVE_ISNAND, don't define it as a C macro.
42168         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42169         HAVE_ISNANL, don't define it as a C macro.
42170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42171         HAVE_ISNAN[FDL].
42172         * modules/isnanf (Files): Remove lib/isnanf.h.
42173         (Depends-on): Add math.
42174         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42175         (Include): Specify <math.h> instead of isnanf.h.
42176         * modules/isnand (Files): Remove lib/isnand.h.
42177         (Depends-on): Add math.
42178         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42179         (Include): Specify <math.h> instead of isnand.h.
42180         * modules/isnanl (Files): Remove lib/isnanl.h.
42181         (Depends-on): Add math.
42182         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42183         (Include): Specify <math.h> instead of isnanl.h.
42184         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42185         HAVE_ISNAN[FDL].
42186         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42187         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42188         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42189         * NEWS: Mention the change.
42190
42191 2008-10-18  Bruno Haible  <bruno@clisp.org>
42192
42193         Add getusershell(), setusershell(), endusershell() declarations to
42194         <unistd.h>.
42195         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42196         declarations.
42197         * lib/getusershell.c: Include unistd.h.
42198         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42199         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42200         HAVE_GETUSERSHELL.
42201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42202         and HAVE_GETUSERSHELL.
42203         * modules/getusershell (Depends-on): Add unistd, extensions.
42204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42205         (Include): Specify <unistd.h>.
42206         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42207         HAVE_GETUSERSHELL.
42208
42209 2008-10-18  Bruno Haible  <bruno@clisp.org>
42210
42211         Add a getloadavg() declaration to <stdlib.h>.
42212         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42213         getloadavg declaration.
42214         (getloadavg): New declaration.
42215         * lib/getloadavg.c: Include <stdlib.h> first.
42216         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42217         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42218         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42220         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42221         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42223         (Include): Specify <stdlib.h>.
42224         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42225         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42226
42227 2008-10-18  Bruno Haible  <bruno@clisp.org>
42228
42229         * lib/dirchownmod.c: Don't include lchmod.h.
42230
42231         Move the lchmod() declaration to <sys/stat.h>.
42232         * lib/lchmod.h: Remove file.
42233         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42234         (lchmod): New declaration, moved here from lib/lchown.h.
42235         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42236         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42237         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42238         and HAVE_LCHMOD.
42239         * modules/lchmod (Files): Remove lib/lchmod.h.
42240         (Depends-on): Add sys_stat, extensions.
42241         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42242         (Include): Specify <sys/stat.h> instead of lchmod.h.
42243         * modules/sys_stat (Depends-on): Add link-warning.
42244         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42245         definition of GL_LINK_WARNING.
42246         * NEWS: Mention the change.
42247
42248 2008-10-18  Bruno Haible  <bruno@clisp.org>
42249
42250         * lib/fchdir.c: Don't include dirfd.h.
42251         * lib/fts.c: Likewise.
42252         * lib/getcwd.c: Likewise.
42253         * lib/glob.c: Likewise.
42254
42255         Move the dirfd() declaration to <dirent.h>.
42256         * lib/dirfd.h: Remove file.
42257         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42258         (dirfd): New declaration.
42259         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42260         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42261         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42262         HAVE_DECL_DIRFD.
42263         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42264         HAVE_DECL_DIRFD.
42265         * modules/dirfd (Files): Remove lib/dirfd.h.
42266         (Depends-on): Add dirent, extensions.
42267         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42268         (Include): Specify <dirent.h> instead of dirfd.h.
42269         * modules/dirent (Depends-on): Add link-warning.
42270         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42271         definition of GL_LINK_WARNING.
42272         * NEWS: Mention the change.
42273
42274 2008-10-18  Bruno Haible  <bruno@clisp.org>
42275
42276         Move the euidaccess() declaration to <unistd.h>.
42277         * lib/euidaccess.h: Remove file.
42278         * lib/unistd.in.h (euidaccess): New declaration.
42279         * lib/euidaccess.c: Don't include euidaccess.h.
42280         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42281         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42283         and HAVE_EUIDACCESS.
42284         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42285         (Depends-on): Add unistd.
42286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42287         (Include): Specify <unistd.h> instead of euidaccess.h.
42288         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42289         HAVE_EUIDACCESS.
42290         * NEWS: Mention the change.
42291
42292 2008-10-18  Bruno Haible  <bruno@clisp.org>
42293
42294         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42295
42296         Move the getdomainname() declaration to <unistd.h>.
42297         * lib/getdomainname.h: Remove file.
42298         * lib/unistd.in.h (getdomainname): New declaration.
42299         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42300         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42301         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42302         HAVE_GETDOMAINNAME.
42303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42304         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42305         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42306         (Depends-on): Add unistd, extensions.
42307         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42308         (Includes): Specify <unistd.h> instead of getdomainname.h.
42309         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42310         HAVE_GETDOMAINNAME.
42311         * NEWS: Mention the change.
42312
42313 2008-10-18  Bruno Haible  <bruno@clisp.org>
42314
42315         * modules/dirent: New file.
42316         * m4/dirent_h.m4: New file.
42317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42318         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42319         * modules/fchdir (Files): Remove lib/dirent.in.h.
42320         (Depends-on): Add dirent.
42321         (Makefile.am): Move rules to modules/dirent.
42322         * doc/posix-headers/dirent.texi: Mention the new module.
42323
42324 2008-10-18  Bruno Haible  <bruno@clisp.org>
42325
42326         Avoid -Wunused-parameter warnings in public gnulib header files.
42327         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42328         macro.
42329         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42330
42331 2008-10-18  Bruno Haible  <bruno@clisp.org>
42332
42333         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42334         * doc/glibc-functions/error.texi: Mention the module 'error'.
42335         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42336         * doc/glibc-functions/getdomainname.texi: Mention the module
42337         'getdomainname'.
42338         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42339         * doc/glibc-functions/getpagesize.texi: Mention the module
42340         'getpagesize'.
42341         * doc/glibc-functions/getusershell.texi: Mention the module
42342         'getusershell'.
42343         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42344         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42345         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42346         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42347         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42348         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42349         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42350         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42351         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42352         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42353         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42354         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42355         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42356         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42357
42358 2008-10-17  Bruno Haible  <bruno@clisp.org>
42359
42360         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42361         HP-UX and IRIX, use -0.0L.
42362         * tests/test-ceill.c (minus_zero): Likewise.
42363         * tests/test-floorl.c (minus_zero): Likewise.
42364         * tests/test-frexpl.c (minus_zero): Likewise.
42365         * tests/test-isnan.c (minus_zerol): Likewise.
42366         * tests/test-isnanl.h (minus_zero): Likewise.
42367         * tests/test-ldexpl.c (minus_zero): Likewise.
42368         * tests/test-roundl.c (minus_zero): Likewise.
42369         * tests/test-signbit.c (minus_zerol): Likewise.
42370         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42371         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42372         * tests/test-truncl.c (minus_zero): Likewise.
42373         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42374         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42375         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42376         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42377
42378 2008-10-17  Bruno Haible  <bruno@clisp.org>
42379
42380         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42381         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42382         that it gets activated only for gcc >= 3.0.
42383         * lib/dirent.in.h: Likewise.
42384         * lib/errno.in.h: Likewise.
42385         * lib/fcntl.in.h: Likewise.
42386         * lib/float.in.h: Likewise.
42387         * lib/iconv.in.h: Likewise.
42388         * lib/inttypes.in.h: Likewise.
42389         * lib/locale.in.h: Likewise.
42390         * lib/math.in.h: Likewise.
42391         * lib/netdb.in.h: Likewise.
42392         * lib/netinet_in.in.h: Likewise.
42393         * lib/search.in.h: Likewise.
42394         * lib/signal.in.h: Likewise.
42395         * lib/spawn.in.h: Likewise.
42396         * lib/stdarg.in.h: Likewise.
42397         * lib/stdint.in.h: Likewise.
42398         * lib/stdio.in.h: Likewise.
42399         * lib/stdlib.in.h: Likewise.
42400         * lib/string.in.h: Likewise.
42401         * lib/strings.in.h: Likewise.
42402         * lib/sys_file.in.h: Likewise.
42403         * lib/sys_ioctl.in.h: Likewise.
42404         * lib/sys_select.in.h: Likewise.
42405         * lib/sys_socket.in.h: Likewise.
42406         * lib/sys_stat.in.h: Likewise.
42407         * lib/sys_time.in.h: Likewise.
42408         * lib/sysexits.in.h: Likewise.
42409         * lib/time.in.h: Likewise.
42410         * lib/unistd.in.h: Likewise.
42411         * lib/wchar.in.h: Likewise.
42412         * lib/wctype.in.h: Likewise.
42413         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42414
42415 2008-10-17  Jim Meyering  <meyering@redhat.com>
42416
42417         ignore-value: don't depend on inline module
42418         * modules/ignore-value (Depends-on): Remove 'inline'.
42419         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42420         Suggestion from Bruno Haible.
42421
42422 2008-10-17  Bruno Haible  <bruno@clisp.org>
42423
42424         New implementation of condition variables for Win32.
42425         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42426         (gl_linked_waitqueue_t): New type.
42427         (gl_cond_t): Use it.
42428         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42429         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42430         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42431         (glthread_cond_init_func, glthread_cond_wait_func,
42432         glthread_cond_timedwait_func, glthread_cond_signal_func,
42433         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42434         Reimplemented on the basis of gl_linked_waitqueue_t.
42435         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42436         gl_waitqueue_t.
42437         (gl_rwlock_t): Update.
42438         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42439
42440 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42441
42442         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42443         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42444
42445 2008-10-17  Jim Meyering  <meyering@redhat.com>
42446
42447         ignore-value: new module
42448         * modules/ignore-value: New file.
42449         * lib/ignore-value.h: New file.
42450         * MODULES.html.sh (Compiler warning management): New section,
42451         just for this module.  More to come.
42452
42453 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42454
42455         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42456         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42457         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42458
42459 2008-10-16  Jim Meyering  <meyering@redhat.com>
42460
42461         openat-die.c: avoid 'no previous prototype' warning
42462         * lib/openat-die.c: Include "openat.h".
42463         Reported by Reuben Thomas <rrt@sc3d.org>.
42464
42465 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42466
42467         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42468         * lib/netdb.in.h: Fix typo.
42469         Reported by Bruno Haible  <bruno@clisp.org>
42470
42471         * lib/netdb.in.h: Include sys/socket.h for platforms without
42472         netdb.h, to get structures like hostent on MinGW.
42473         * modules/netdb (Depends-on): Add sys_socket.
42474
42475 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42476
42477         * modules/netdb, modules/netdb-tests: New file.
42478         * m4/netdb_h.m4: New file.
42479         * lib/netdb.in.h: Add, currently just an empty file pending
42480         definitions.
42481         * tests/test-netdb.c: New file.
42482         * doc/posix-headers/netdb.texi: Mention that we replace it if
42483         needed.
42484         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42485         netdb.
42486
42487 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42488
42489         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42490         with code.
42491
42492 2008-10-13  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/glthread/cond.c (glthread_cond_wait_func,
42495         glthread_cond_timedwait_func): Add a comment.
42496
42497 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42498
42499         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42500         * tests/test-select.c: Likewise,
42501
42502 2008-10-13  Bruno Haible  <bruno@clisp.org>
42503
42504         * lib/glthread/cond.c (glthread_cond_wait_func,
42505         glthread_cond_timedwait_func): Fix variable name.
42506         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42507
42508 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42509
42510         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42511         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42512         struct sockaddr.sa_len.
42513         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42514
42515 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42516
42517         * build-aux/pmccabe2html: Add css and css_url parameters.
42518
42519 2008-10-12  Bruno Haible  <bruno@clisp.org>
42520
42521         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42522         calling aclx_get.
42523         Reported by Rainer Tammer <tammer@tammer.net>.
42524
42525 2008-10-12  Bruno Haible  <bruno@clisp.org>
42526
42527         Use msvcrt aware primitives for creation/termination of Win32 threads.
42528         * lib/glthread/thread.c: Include <process.h>.
42529         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42530         (wrapper_func): Update signature.
42531         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42532
42533 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42534             Bruno Haible  <bruno@clisp.org>
42535
42536         Provide a Win32 implementation of the 'cond' module.
42537         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42538         * lib/glthread/cond.c (glthread_cond_init_func,
42539         glthread_cond_wait_func, glthread_cond_timedwait_func,
42540         glthread_cond_signal_func, glthread_cond_broadcast_func,
42541         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42542         * modules/cond (Dependencies): Add gettimeofday.
42543
42544 2008-10-11  Bruno Haible  <bruno@clisp.org>
42545
42546         Make sleep work on older versions of mingw.
42547         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42548         only whether it exists.
42549         * doc/posix-functions/sleep.texi: Mention the problem with older
42550         versions of mingw.
42551
42552 2008-10-11  Bruno Haible  <bruno@clisp.org>
42553
42554         New module 'shutdown'.
42555         * modules/shutdown: New file.
42556         * lib/sys_socket.in.h (shutdown): New declaration.
42557         * lib/winsock.c (shutdown): New function.
42558         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42559         GNULIB_SHUTDOWN.
42560         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42561         * doc/posix-functions/shutdown.texi: Document the new module.
42562
42563 2008-10-11  Jim Meyering  <meyering@redhat.com>
42564
42565         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42566
42567 2008-10-11  Bruno Haible  <bruno@clisp.org>
42568
42569         New module 'fclose'.
42570         * modules/fclose: New file.
42571         * lib/stdio.in.h (fclose): New declaration.
42572         * lib/fclose.c: New file.
42573         * m4/fclose.m4: New file.
42574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42575         REPLACE_FCLOSE.
42576         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42577         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42578         REPLACE_FCLOSE.
42579         * modules/close (Depends-on): fclose.
42580         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42581
42582 2008-10-11  Bruno Haible  <bruno@clisp.org>
42583
42584         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42585         set errno and don't call _close.
42586
42587 2008-10-10  Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42590         ACL, not afterwards. Fixes test failure on Cygwin.
42591
42592 2008-10-09  Ben Pfaff  <blp@gnu.org>
42593
42594         * build-aux/announce-gen: Fix gnulib version related part of usage
42595         message.  Die with a useful error message if no tarballs are
42596         found.
42597
42598 2008-10-10  Jim Meyering  <meyering@redhat.com>
42599
42600         bootstrap: use git's --depth=N option only if it's supported
42601         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42602         recognize the --depth option.  Reported by Pádraig Brady.
42603
42604 2008-10-09  Bruno Haible  <bruno@clisp.org>
42605
42606         New module 'ioctl'.
42607         * modules/ioctl: New file.
42608         * lib/sys_socket.in.h (ioctl): Remove declaration.
42609         * lib/winsock.c: Include <sys/ioctl.h>.
42610         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42611         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42612         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42613         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42614         * doc/posix-functions/ioctl.texi: Mention the new module.
42615
42616 2008-10-09  Bruno Haible  <bruno@clisp.org>
42617
42618         New module 'sys_ioctl'.
42619         * lib/sys_ioctl.in.h: New file.
42620         * m4/sys_ioctl_h.m4: New file.
42621         * modules/sys_ioctl: New file.
42622         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42623
42624 2008-10-09  Bruno Haible  <bruno@clisp.org>
42625
42626         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42627         * lib/winsock.c: Include <stdarg.h>.
42628         (rpl_ioctl): Change to second argument 'int' and then varargs.
42629
42630 2008-10-09  Bruno Haible  <bruno@clisp.org>
42631
42632         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42633         when the sys_socket module is present and the system has <winsock2.h>.
42634
42635 2008-10-09  Bruno Haible  <bruno@clisp.org>
42636
42637         * doc/posix-functions/close.texi: Mention module 'close' instead of
42638         module 'sys_socket'.
42639
42640 2008-10-09  Bruno Haible  <bruno@clisp.org>
42641
42642         * doc/glibc-headers/sys_ioctl.texi: New file.
42643         * doc/gnulib.texi: Include it.
42644
42645 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42646             Bruno Haible  <bruno@clisp.org>
42647
42648         Combine the two replacements of 'close'.
42649         * lib/sys_socket.in.h (close): Define to a reminder to include
42650         <unistd.h>.
42651         (_gl_close_fd_maybe_socket): New declaration.
42652         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42653         * lib/winsock.c (close): Remove undefinition.
42654         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42655         needed for the gnulib module 'close'.
42656         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42657         define to an error symbol or to a warning, if suitable.
42658         * lib/close.c: Include <sys/socket.h>.
42659         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42660         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42661         UNISTD_H_HAVE_WINSOCK2_H.
42662         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42664         UNISTD_H_HAVE_WINSOCK2_H.
42665         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42666         (configure.ac): Set a module indicator.
42667         (Makefile.am): Substitute GNULIB_CLOSE.
42668         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42669         * modules/poll-tests (Depends-on): Add close.
42670         * modules/select-tests (Depends-on): Likewise.
42671
42672 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42673             Bruno Haible  <bruno@clisp.org>
42674
42675         New module 'close'.
42676         * modules/close: New file.
42677         * lib/unistd.in.h (close): Move declaration out of the
42678         FCHDIR_REPLACEMENT scope.
42679         (_gl_unregister_fd): New declaration.
42680         * lib/close.c: New file.
42681         * lib/fchdir.c (rpl_close): Remove function.
42682         * m4/close.m4: New file.
42683         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42684         close.
42685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42686         REPLACE_CLOSE.
42687         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42688         REPLACE_CLOSE.
42689         * modules/fchdir (Depends-on): Add close.
42690
42691 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42692             Bruno Haible  <bruno@clisp.org>
42693
42694         * lib/fcntl.in.h (open): Simplify conditionals.
42695         (_gl_register_fd): New declaration.
42696         * lib/fchdir.c (rpl_open): Remove function.
42697         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42698         also.
42699         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42701         open.
42702
42703 2008-10-09  Jim Meyering  <meyering@redhat.com>
42704
42705         GNUmakefile: use the more name-space-friendly "_version"
42706         * top/GNUmakefile (_dummy): Update.
42707         (_version): Rename from "version".
42708
42709 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42710             Bruno Haible  <bruno@clisp.org>
42711
42712         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42713         rpl_close.
42714         (_gl_register_fd): New function, extracted from rpl_open.
42715         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42716         (rpl_open, rpl_opendir): Use _gl_register_fd.
42717
42718 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42719
42720         Fix organization of 'open' replacement.
42721         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42722         (gl_FUNC_OPEN): Use it.
42723         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42724
42725 2008-10-08  Bruno Haible  <bruno@clisp.org>
42726
42727         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42728
42729 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42730
42731         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42732         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42733         listen).
42734
42735 2008-10-08  Eric Blake  <ebb9@byu.net>
42736
42737         GNUmakefile: add 'make version' target
42738         * top/GNUmakefile (_curr-ver): Split version update rules...
42739         (version): ...into a target.
42740
42741 2008-10-07  Bruno Haible  <bruno@clisp.org>
42742
42743         Use a more portable replacement expression for -0.0L.
42744         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42745         instead of -0.0L. Fix m4 quotation.
42746
42747         * tests/test-signbit.c: Include <float.h>.
42748         (minus_zero): New variable.
42749         (test_signbitl): Use minus_zero instead of -zero.
42750         * modules/signbit-tests (Depends-on): Add float.
42751
42752         * tests/test-ceill.c: Include <float.h>.
42753         (zero): Remove variable.
42754         (minus_zero): New variable.
42755         (main): Use minus_zero instead of -zero.
42756         * modules/ceill-tests (Depends-on): Add float.
42757
42758         * tests/test-floorl.c: Include <float.h>.
42759         (zero): Remove variable.
42760         (minus_zero): New variable.
42761         (main): Use minus_zero instead of -zero.
42762         * modules/floorl-tests (Depends-on): Add float.
42763
42764         * tests/test-roundl.c: Include <float.h>.
42765         (zero): Remove variable.
42766         (minus_zero): New variable.
42767         (main): Use minus_zero instead of -zero.
42768         * modules/roundl-tests (Depends-on): Add float.
42769
42770         * tests/test-truncl.c: Include <float.h>.
42771         (zero): Remove variable.
42772         (minus_zero): New variable.
42773         (main): Use minus_zero instead of -zero.
42774         * modules/truncl-tests (Depends-on): Add float.
42775
42776         * tests/test-frexpl.c (zero): Remove variable.
42777         (minus_zero): New variable.
42778         (main): Use minus_zero instead of -zero.
42779         * modules/frexpl-tests (Depends-on): Add float.
42780
42781         * tests/test-isnan.c (zerol): Remove variable.
42782         (minus_zerol): New variable.
42783         (test_long_double): Use minus_zerol instead of -zerol.
42784         * modules/isnan-tests (Depends-on): Add float.
42785
42786         * tests/test-isnanl.h (zero): Remove variable.
42787         (minus_zero): New variable.
42788         (main): Use minus_zero instead of -zero.
42789         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42790         * modules/isnanl-tests (Depends-on): Add float.
42791
42792         * tests/test-ldexpl.c (zero): Remove variable.
42793         (minus_zero): New variable.
42794         (main): Use minus_zero instead of -zero.
42795         * modules/ldexpl-tests (Depends-on): Add float.
42796
42797         * tests/test-snprintf-posix.h (zerol): Remove variable.
42798         (minus_zerol): New variable.
42799         (test_function): Use minus_zerol instead of -zerol.
42800         * modules/snprintf-posix-tests (Depends-on): Add float.
42801         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42802
42803         * tests/test-sprintf-posix.h (zerol): Remove variable.
42804         (minus_zerol): New variable.
42805         (test_function): Use minus_zerol instead of -zerol.
42806         * modules/sprintf-posix-tests (Depends-on): Add float.
42807         * modules/vsprintf-posix-tests (Depends-on): Add float.
42808
42809         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42810         (minus_zerol): New variable.
42811         (test_function): Use minus_zerol instead of -zerol.
42812         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42813
42814         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42815         (minus_zerol): New variable.
42816         (test_function): Use minus_zerol instead of -zerol.
42817         * modules/vasprintf-posix-tests (Depends-on): Add float.
42818
42819 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42820
42821         * MODULES.html.sh (Support for building documentation): Mention
42822         pmccabe2html.  Sort entries.
42823
42824         Add pmccabe2html module, from gnupdf.
42825         * build-aux/pmccabe.css: New file.
42826         * build-aux/pmccabe2html: New file.
42827         * m4/pmccabe2html.m4: New file.
42828         * modules/pmccabe2html: New file.
42829
42830 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42831
42832         flock: new module
42833         * MODULES.html.sh: Add to list of modules.
42834         * lib/flock.c: flock implementation for Windows and Unix systems
42835         which have fcntl.
42836         * doc/glibc-functions/flock.texi: Update documentation.
42837         * lib/sys_file.in.h: <sys/file.h> header file.
42838         * m4/flock.m4: M4 macros.
42839         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42840         * modules/flock: flock module.
42841         * modules/flock-tests: flock tests module.
42842         * modules/sys_file: sys/file.h module.
42843         * tests/test-flock.c: test suite for flock.
42844
42845 2008-10-06  Jim Meyering  <meyering@redhat.com>
42846
42847         bootstrap: check for LT_INIT more portably still ;-)
42848         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42849         Spotted by Bruno Haible.
42850
42851 2008-10-06  Eric Blake  <ebb9@byu.net>
42852
42853         test-signbit: avoid tripping Irix cc bug on -0.0L
42854         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42855         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42856         entire testsuite consistent and avoids an Irix 6.2 bug.
42857
42858 2008-10-05  Bruno Haible  <bruno@clisp.org>
42859             Jim Meyering  <jim@meyering.net>
42860
42861         Add an option for ignoring EPIPE during close_stdout.
42862         * lib/closeout.h: Include <stdbool.h>.
42863         (close_stdout_set_ignore_EPIPE): New declaration.
42864         * lib/closeout.c: Include <stdbool.h>.
42865         (ignore_EPIPE): New variable.
42866         (close_stdout_set_ignore_EPIPE): New function.
42867         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42868         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42869         failure.
42870         * modules/closeout (Depends-on): Add stdbool.
42871
42872 2008-10-05  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/accept: New file.
42875         * modules/bind: New file.
42876         * modules/connect: New file.
42877         * modules/getpeername: New file.
42878         * modules/getsockname: New file.
42879         * modules/getsockopt: New file.
42880         * modules/listen: New file.
42881         * modules/recv: New file.
42882         * modules/recvfrom: New file.
42883         * modules/send: New file.
42884         * modules/sendto: New file.
42885         * modules/setsockopt: New file.
42886         * modules/socket: New file.
42887         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42888         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42889         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42890         the particular module is requested. Add a link warning when the
42891         particular module is not requested.
42892         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42893         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42894         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42895         the particular module is requested.
42896         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42897         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42898         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42899         * modules/sys_socket (Depends-on): Add link-warning.
42900         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42901         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42902         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42903         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42904         GL_LINK_WARNING.
42905         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42906         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42907         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42908         * doc/posix-functions/getpeername.texi: Mention the new module
42909         'getpeername'.
42910         * doc/posix-functions/getsockname.texi: Mention the new module
42911         'getsockname'.
42912         * doc/posix-functions/getsockopt.texi: Mention the new module
42913         'getsockopt'.
42914         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42915         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42916         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42917         * doc/posix-functions/send.texi: Mention the new module 'send'.
42918         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42919         * doc/posix-functions/setsockopt.texi: Mention the new module
42920         'setsockopt'.
42921         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42922         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42923         listen, connect, accept.
42924         * modules/select-tests (Depends-on): Likewise.
42925
42926 2008-10-05  Bruno Haible  <bruno@clisp.org>
42927
42928         * lib/winsock.c (strerror): Remove unused #undef.
42929         (rpl_close): Remove unused local variable.
42930
42931         * modules/sys_socket (Depends-on); Add errno.
42932
42933 2008-10-05  Bruno Haible  <bruno@clisp.org>
42934
42935         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42936         (select): Add a link warning when the 'select' module is not used.
42937         * modules/sys_select (Depends-on): Add link-warning.
42938         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42939         Suggested by Paolo Bonzini.
42940
42941 2008-10-05  Jim Meyering  <meyering@redhat.com>
42942
42943         bootstrap: check for LT_INIT more portably
42944         * build-aux/bootstrap: Avoid using grep -E, since it's not
42945         portable enough.  Suggestion from Bruno Haible.
42946
42947 2008-10-05  Bruno Haible  <bruno@clisp.org>
42948
42949         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42950         as being fixed by gnulib.
42951
42952 2008-10-05  Bruno Haible  <bruno@clisp.org>
42953
42954         * modules/select-tests: New file, mostly copied from
42955         modules/sys_select-tests.
42956         * tests/test-select.c: New file, mostly copied from
42957         tests/test-sys_select.c.
42958         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42959         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42960         (Makefile.am): Remove test_sys_select_LDADD.
42961
42962         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42963         to an undefined symbol, for an error message.
42964         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42965         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42966         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42967         winsock-select.c here.
42968         * modules/sys_select (Files): Remove lib/winsock-select.c.
42969         (Depends-on): Remove alloca.
42970         (Makefile.am): Substitute GNULIB_SELECT.
42971         * modules/select: New file.
42972         * doc/posix-functions/select.texi: Update.
42973
42974 2008-10-05  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42977         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42978         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42979         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42980         getdtablesize.
42981         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42982         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42983
42984 2008-10-05  Bruno Haible  <bruno@clisp.org>
42985
42986         * modules/getdtablesize-tests: New file.
42987         * tests/test-getdtablesize.c: New file.
42988
42989         New module 'getdtablesize'.
42990         * lib/unistd.in.h (getdtablesize): New declaration.
42991         * lib/getdtablesize.c: New file.
42992         * m4/getdtablesize.m4: New file.
42993         * modules/getdtablesize: New file.
42994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42995         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42996         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42997         HAVE_GETDTABLESIZE.
42998         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42999
43000 2008-10-05  Bruno Haible  <bruno@clisp.org>
43001
43002         * modules/sched (Makefile.am): Fix typo.
43003         Reported by Simon Josefsson.
43004
43005 2008-10-05  Jim Meyering  <meyering@redhat.com>
43006
43007         bootstrap: check for LT_INIT, too
43008         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43009         are deprecated.  Suggestion from Ralf Wildenhues.
43010
43011 2008-10-05  Bruno Haible  <bruno@clisp.org>
43012
43013         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43014         overriding them by ours.
43015         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43016
43017 2008-10-05  Jim Meyering  <meyering@redhat.com>
43018
43019         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43020         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43021         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43022
43023 2008-10-04  Bruno Haible  <bruno@clisp.org>
43024
43025         * modules/dup2 (License): Change to LGPLv2+.
43026         * modules/sleep (License): Likewise.
43027         * modules/perror (License): Likewise.
43028         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43029         Blake.
43030         * modules/signal (License): Likewise.
43031         * modules/sigprocmask (License): Likewise.
43032         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43033         Meyering.
43034
43035 2008-10-04  Bruno Haible  <bruno@clisp.org>
43036
43037         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43038         Reported by Rainer Tammer <tammer@tammer.net>.
43039
43040 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43041             Bruno Haible  <bruno@clisp.org>
43042
43043         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43044         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43045         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43046
43047 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43048
43049         filevercmp: new module
43050         * lib/filevercmp.h: New function filevercmp comparing version strings.
43051         * lib/filevercmp.c: Implementation of filevercmp function.
43052         * modules/filevercmp: Module metadata.
43053         * tests/test-filevercmp.c: Unit test for new module.
43054         * modules/filevercmp-tests: Unit test metadata.
43055         * MODULES.html.sh: Add filevercmp module.
43056
43057 2008-10-03  Bruno Haible  <bruno@clisp.org>
43058
43059         * lib/c-ctype.h: Add comment.
43060         Reported by Jim Meyering.
43061
43062 2008-10-02  Bruno Haible  <bruno@clisp.org>
43063
43064         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43065
43066 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43067
43068         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43069         name of bootstrap.conf accordingly.
43070
43071 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43072
43073         * build-aux/bootstrap: Install git-merge-changelog configuration
43074         items into .gitconfig if needed.
43075
43076 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43077
43078         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43079         git repository, and initialize/update it accordingly.
43080
43081 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43082
43083         * modules/fsync-tests: New file.
43084         * tests/test-fsync.c: New file.
43085
43086         New module 'fsync'.
43087         * lib/fsync.c: New file.
43088         * m4/fsync.m4: New file.
43089         * modules/fsync: New file.
43090         * lib/unistd.in.h (fsync): New declaration.
43091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43092         GNULIB_FSYNC and HAVE_FSYNC.
43093         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43094         * MODULES.html.sh (posix_functions): Add fsync.
43095         * doc/posix-functions/fsync.texi: Mention the new module.
43096
43097 2008-10-02  Jim Meyering  <meyering@redhat.com>
43098
43099         fts.c: sync with similar code from coreutils' remove.c
43100         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43101         Guard also with "#if defined __linux__", since for now at least,
43102         this code is Linux-kernel-specific.
43103
43104 2008-10-02  Jim Meyering  <meyering@redhat.com>
43105
43106         fts: bug fixes
43107         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43108         Include <sys/vfs.h>, not <sys/statfs.h>.
43109
43110         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43111         Include <sys/vfs.h>, not <sys/statfs.h>.
43112
43113 2008-10-01  Bruno Haible  <bruno@clisp.org>
43114
43115         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43116         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43117         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43118         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43119         * doc/posix-functions/posix_spawnp.texi: Likewise.
43120         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43121         whether posix_spawn actually works.
43122         * m4/pipe.m4 (gl_PIPE): Likewise.
43123         * modules/execute (Files): Add m4/posix_spawn.m4.
43124         * modules/pipe (Files): Add m4/posix_spawn.m4.
43125         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43126
43127 2008-10-01  Jim Meyering  <meyering@redhat.com>
43128
43129         remove trailing spaces
43130         * NEWS: Likewise.
43131         * lib/poll.c (poll): Likewise.
43132         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43133         * lib/winsock.c (rpl_close): Likewise.
43134         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43135         * modules/yield: Likewise.
43136         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43137         * tests/test-sys_select.c (connect_to_socket): Likewise.
43138
43139         fts.c: adjust a new interface to be more generally useful
43140         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43141         (fts_build): Adjust caller.
43142
43143 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43144
43145         * modules/cond-tests: New file.
43146         * tests/test-cond.c: New file.
43147
43148 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43149             Bruno Haible  <bruno@clisp.org>
43150
43151         * modules/cond (Dependencies): Add errno, time.
43152         * lib/glthread/cond.h: Include <time.h>.
43153         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43154         across platforms.
43155
43156 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43157             Bruno Haible  <bruno@clisp.org>
43158
43159         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43160
43161 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43162             Bruno Haible  <bruno@clisp.org>
43163
43164         * modules/tls-tests (Depends-on): Add thread, yield.
43165         (configure.ac): Remove all checks.
43166         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43167         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43168         gl_thread_self): Remove definitions. Include glthread/thread.h and
43169         glthread/yield.h instead.
43170         (test_tls): Pass an additional NULL argument to gl_thread_join.
43171
43172 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43173             Bruno Haible  <bruno@clisp.org>
43174
43175         * modules/lock-tests (Depends-on): Add thread, yield.
43176         (configure.ac): Remove all checks.
43177         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43178         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43179         gl_thread_self): Remove definitions. Include glthread/thread.h and
43180         glthread/yield.h instead.
43181         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43182         additional NULL argument to gl_thread_join.
43183
43184 2008-09-30  Bruno Haible  <bruno@clisp.org>
43185
43186         Fix the Win32 implementation of the 'thread' module.
43187         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43188         pointer type.
43189         (gl_thread_self): Invoke gl_thread_self_func.
43190         (gl_thread_self_func): New declaration.
43191         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43192         (do_init_self_key, init_self_key): New functions.
43193         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43194         Remove some fields.
43195         (running_threads, running_lock): Remove variables.
43196         (get_current_thread_handle): New function.
43197         (gl_thread_self_func, wrapper_func, glthread_create_func,
43198         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43199         simplified.
43200
43201 2008-09-30  Bruno Haible  <bruno@clisp.org>
43202
43203         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43204         files.
43205
43206 2008-09-30  Jim Meyering  <meyering@redhat.com>
43207
43208         fts.m4: correct the test for statfs.f_type
43209         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43210         when checking for statfs.f_type.
43211
43212 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43213
43214         tests: avoid some compiler warnings
43215         * tests/test-memchr.c (main): Pass NULL indirectly.
43216         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43217
43218 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43219
43220         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43221         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43222         exactly specified dayshifts.
43223         (dayshift): New rule.
43224         (rel): Add dayshift.
43225         (relative_time_table) [tomorrow, yesterday, today, now]:
43226         Use tDAY_SHIFT in place of tDAY_UNIT.
43227         * tests/test-getdate.c: Add tests for now-disallowed countable
43228         dayshifts, e.g., "4 yesterday ago".
43229
43230 2008-09-29  Bruno Haible  <bruno@clisp.org>
43231
43232         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43233         * tests/test-posix_spawn1.in.sh: Renamed from
43234         tests/test-posix_spawn.in.sh.
43235         * tests/test-posix_spawn2.c: New file.
43236         * tests/test-posix_spawn2.in.sh: New file.
43237         * modules/posix_spawnp-tests (Files): Update.
43238         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43239
43240 2008-09-29  Bruno Haible  <bruno@clisp.org>
43241
43242         Propagate effects of putenv/setenv/unsetenv to child processes.
43243         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43244         * lib/pipe.c (create_pipe): Likewise.
43245
43246 2008-09-29  Bruno Haible  <bruno@clisp.org>
43247
43248         Enable use of shell scripts as executables in mingw.
43249         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43250         run the program as a shell script.
43251         * lib/pipe.c (create_pipe): Likewise.
43252         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43253         resulting array.
43254
43255 2008-09-29  Eric Blake  <ebb9@byu.net>
43256
43257         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43258
43259 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43260
43261         * doc/posix-functions/accept.texi: Update mingw problems.
43262         * doc/posix-functions/bind.texi: Update mingw problems.
43263         * doc/posix-functions/close.texi: Update mingw problems.
43264         * doc/posix-functions/connect.texi: Update mingw problems.
43265         * doc/posix-functions/getpeername.texi: Update mingw problems.
43266         * doc/posix-functions/getsockname.texi: Update mingw problems.
43267         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43268         * doc/posix-functions/ioctl.texi: Update mingw problems.
43269         * doc/posix-functions/listen.texi: Update mingw problems.
43270         * doc/posix-functions/recv.texi: Update mingw problems.
43271         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43272         * doc/posix-functions/select.texi: Update mingw problems.
43273         * doc/posix-functions/send.texi: Update mingw problems.
43274         * doc/posix-functions/sendto.texi: Update mingw problems.
43275         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43276         * doc/posix-functions/socket.texi: Update mingw problems.
43277
43278 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43279             Bruno Haible  <bruno@clisp.org>
43280
43281         * lib/sys_select.in.h: Include sys/time.h.
43282         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43283         * modules/sys_select: Depend on sys_time.
43284         * tests/test-sys_select.c: Test that sys/select.h defines struct
43285         timeval fully.
43286
43287 2008-09-29  Bruno Haible  <bruno@clisp.org>
43288
43289         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43290         * lib/sys_select.in.h: Likewise.
43291
43292 2008-09-29  Bruno Haible  <bruno@clisp.org>
43293
43294         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43295
43296 2008-09-29  Bruno Haible  <bruno@clisp.org>
43297
43298         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43299         Set LIBSOCKET instead of augmenting LIBS.
43300         * modules/sockets (Link): New section.
43301         * modules/sockets-tests (test_sockets_LDADD): New variable.
43302         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43303         * modules/poll-tests (test_poll_LDADD): New variable.
43304         * NEWS: Document the change.
43305
43306 2008-09-29  Bruno Haible  <bruno@clisp.org>
43307
43308         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43309         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43310         ARPA_INET_H directly.
43311         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43312
43313 2008-09-28  Bruno Haible  <bruno@clisp.org>
43314
43315         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43316         from gl_HEADER_SYS_SOCKET.
43317         (gl_HEADER_SYS_SOCKET): Invoke it.
43318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43319
43320 2008-09-28  Bruno Haible  <bruno@clisp.org>
43321
43322         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43323         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43324         Needed on OSF/1 4.0.
43325
43326 2008-09-28  Bruno Haible  <bruno@clisp.org>
43327
43328         Override open more carefully.
43329         * lib/open.c (orig_open): New function.
43330         (rpl_open): Use orig_open instead of open.
43331         * lib/fcntl.in.h: Add special invocation convention.
43332         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43333         (gl_FUNC_OPEN): Invoke it.
43334
43335         Override freopen more carefully.
43336         * lib/freopen.c (orig_freopen): New function.
43337         (rpl_freopen): Use orig_freopen instead of freopen.
43338         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43339         (gl_FUNC_FREOPEN): Invoke it.
43340
43341         Override fopen more carefully.
43342         * lib/fopen.c (orig_fopen): New function.
43343         (rpl_fopen): Use orig_fopen instead of fopen.
43344         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43345         (gl_FUNC_FOPEN): Invoke it.
43346         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43347
43348 2008-09-28  Bruno Haible  <bruno@clisp.org>
43349
43350         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43351         SIGPIPE.
43352
43353 2008-09-28  Bruno Haible  <bruno@clisp.org>
43354
43355         * tests/test-sigaction.c (handler, main): Disable the check whether
43356         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43357         glibc systems with LinuxThreads.
43358
43359 2008-09-28  Bruno Haible  <bruno@clisp.org>
43360
43361         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43362
43363         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43364         with AIX xlc.
43365         * lib/fcntl.in.h (open): Likewise.
43366         Reported by Rainer Tammer <tammer@tammer.net>.
43367
43368 2008-09-28  Bruno Haible  <bruno@clisp.org>
43369
43370         * modules/posix_spawnp-tests: New file.
43371         * tests/test-posix_spawn.c: New file.
43372         * tests/test-posix_spawn.in.sh: New file.
43373
43374         New module 'posix_spawnp'.
43375         * modules/posix_spawnp: New file.
43376         * lib/spawnp.c: New file, from GNU libc with modifications.
43377         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43378
43379         New module 'posix_spawn'.
43380         * modules/posix_spawn: New file.
43381         * lib/spawn.c: New file, from GNU libc with modifications.
43382         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43383
43384         New module 'posix_spawnattr_destroy'.
43385         * modules/posix_spawnattr_destroy: New file.
43386         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43387         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43388         module.
43389
43390         New module 'posix_spawnattr_setsigmask'.
43391         * modules/posix_spawnattr_setsigmask: New file.
43392         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43393         modifications.
43394         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43395         new module.
43396
43397         New module 'posix_spawnattr_getsigmask'.
43398         * modules/posix_spawnattr_getsigmask: New file.
43399         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43400         modifications.
43401         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43402         new module.
43403
43404         New module 'posix_spawnattr_setsigdefault'.
43405         * modules/posix_spawnattr_setsigdefault: New file.
43406         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43407         modifications.
43408         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43409         new module.
43410
43411         New module 'posix_spawnattr_getsigdefault'.
43412         * modules/posix_spawnattr_getsigdefault: New file.
43413         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43414         modifications.
43415         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43416         new module.
43417
43418         New module 'posix_spawnattr_setschedpolicy'.
43419         * modules/posix_spawnattr_setschedpolicy: New file.
43420         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43421         modifications.
43422         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43423         new module.
43424
43425         New module 'posix_spawnattr_getschedpolicy'.
43426         * modules/posix_spawnattr_getschedpolicy: New file.
43427         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43428         modifications.
43429         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43430         new module.
43431
43432         New module 'posix_spawnattr_setschedparam'.
43433         * modules/posix_spawnattr_setschedparam: New file.
43434         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43435         modifications.
43436         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43437         new module.
43438
43439         New module 'posix_spawnattr_getschedparam'.
43440         * modules/posix_spawnattr_getschedparam: New file.
43441         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43442         modifications.
43443         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43444         new module.
43445
43446         New module 'posix_spawnattr_setpgroup'.
43447         * modules/posix_spawnattr_setpgroup: New file.
43448         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43449         modifications.
43450         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43451         module.
43452
43453         New module 'posix_spawnattr_getpgroup'.
43454         * modules/posix_spawnattr_getpgroup: New file.
43455         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43456         modifications.
43457         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43458         module.
43459
43460         New module 'posix_spawnattr_setflags'.
43461         * modules/posix_spawnattr_setflags: New file.
43462         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43463         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43464         module.
43465
43466         New module 'posix_spawnattr_getflags'.
43467         * modules/posix_spawnattr_getflags: New file.
43468         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43469         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43470         module.
43471
43472         New module 'posix_spawnattr_init'.
43473         * modules/posix_spawnattr_init: New file.
43474         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43475         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43476         module.
43477
43478         New module 'posix_spawn_file_actions_destroy'.
43479         * modules/posix_spawn_file_actions_destroy: New file.
43480         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43481         modifications.
43482         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43483         the new module.
43484
43485         New module 'posix_spawn_file_actions_addopen'.
43486         * modules/posix_spawn_file_actions_addopen: New file.
43487         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43488         modifications.
43489         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43490         the new module.
43491
43492         New module 'posix_spawn_file_actions_adddup2'.
43493         * modules/posix_spawn_file_actions_adddup2: New file.
43494         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43495         modifications.
43496         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43497         the new module.
43498
43499         New module 'posix_spawn_file_actions_addclose'.
43500         * modules/posix_spawn_file_actions_addclose: New file.
43501         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43502         modifications.
43503         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43504         the new module.
43505
43506         New module 'posix_spawn_file_actions_init'.
43507         * modules/posix_spawn_file_actions_init: New file.
43508         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43509         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43510         new module.
43511
43512         New module 'posix_spawn-internal'.
43513         * modules/posix_spawn-internal: New file.
43514         * lib/spawn_int.h: New file, from GNU libc with modifications.
43515         * lib/spawni.c: New file, from GNU libc with modifications.
43516         * m4/posix_spawn.m4: New file.
43517
43518         New module 'spawn'.
43519         * modules/spawn: New file.
43520         * lib/spawn.in.h: New file, from GNU libc with modifications.
43521         * m4/spawn_h.m4: New file.
43522         * doc/posix-headers/spawn.texi: Mention the new module.
43523
43524 2008-09-28  Bruno Haible  <bruno@clisp.org>
43525
43526         * modules/sched-tests: New file.
43527         * tests/test-sched.c: New file.
43528
43529         New module 'sched'.
43530         * modules/sched: New file.
43531         * lib/sched.in.h: New file.
43532         * m4/sched_h.m4: New file.
43533         * doc/posix-headers/sched.texi: Mention the new module.
43534
43535 2008-09-27  Eric Blake  <ebb9@byu.net>
43536
43537         Fix previous patch, and tweak references to $0.
43538         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43539         (func_version, func_gnulib_dir): Don't call this program
43540         gnulib-tool.
43541         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43542         with using $0 in function.
43543         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43544         (func_fatal_error): Reuse the name the user invoked us with.
43545
43546 2008-09-27  Bruno Haible  <bruno@clisp.org>
43547
43548         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43549         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43550         (gl_ICONV_H): Not here.
43551         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43552         instead of assigning ICONV_H directly.
43553
43554         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43556         WCHAR_H directly.
43557
43558 2008-09-27  Bruno Haible  <bruno@clisp.org>
43559
43560         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43561         * modules/arpa_inet (Depends-on): Add link-warning.
43562         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43563         * modules/unistd (Makefile.am): Likewise.
43564
43565 2008-09-26  Bruno Haible  <bruno@clisp.org>
43566
43567         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43568         variables.
43569         (func_version): Essentially copied from gnulib-tool.
43570         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43571         func_readlink): Copied from gnulib-tool.
43572
43573 2008-09-26  Bruno Haible  <bruno@clisp.org>
43574
43575         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43576         invoking git-version-gen.
43577
43578 2008-09-26  Bruno Haible  <bruno@clisp.org>
43579
43580         * posix-modules: Update to directory names changed on 2008-01-19.
43581         Remove commas in output before splitting into words. No more need to
43582         avoid 'ftruncate' since 2007-02-19.
43583
43584 2008-09-26  Bruno Haible  <bruno@clisp.org>
43585
43586         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43587
43588 2008-09-26  Bruno Haible  <bruno@clisp.org>
43589
43590         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43591         * modules/fwriteerror (Depends-on): Add errno.
43592
43593 2008-09-26  Bruno Haible  <bruno@clisp.org>
43594
43595         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43596         * tests/test-vc-list-files-cvs.sh: Likewise.
43597
43598 2008-09-26  Bruno Haible  <bruno@clisp.org>
43599
43600         * doc/posix-headers/sys_resource.texi: Reorder items.
43601
43602 2008-09-26  Jim Meyering  <meyering@redhat.com>
43603
43604         fts: tweak inode comparison function
43605         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43606         inode numbers, as documented.
43607
43608         fts: sort dirent entries on inode number before traversing
43609         This avoids a quadratic, seek-related performance penalty when
43610         operating on a directory containing many entries (measurable at 10k;
43611         3.5 hours at 2 million entries with a cold cache) on certain types
43612         of file systems, including ext3 and ext4, but not tmpfs.
43613         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43614         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43615         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43616         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43617         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43618         (fts_build): Set the stat.st_ino member from D_INO.
43619         If it is likely to be useful, sort dirent entries on inode number.
43620
43621         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43622         and the struct statfs.f_type member.
43623         * modules/fts (Depends-on): Add d-ino.
43624
43625 2008-09-26  Bruno Haible  <bruno@clisp.org>
43626
43627         * modules/sigpipe-die (Depends-on): Add sigpipe.
43628
43629         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43630         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43631         and GNULIB_STDIO_H_SIGPIPE are set.
43632         * lib/stdio-write.c: New file.
43633         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43634         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43635         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43636         REPLACE_STDIO_WRITE_FUNCS.
43637         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43638         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43639         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43640         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43641         * modules/stdio (Files): Add lib/stdio-write.c.
43642         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43643         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43644         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43645         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43646         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43647         REPLACE_FPRINTF_POSIX.
43648         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43649         REPLACE_PRINTF_POSIX.
43650         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43651         REPLACE_VFPRINTF_POSIX.
43652         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43653         REPLACE_VPRINTF_POSIX.
43654         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43655         SIGPIPE issue.
43656         * doc/posix-functions/fputc.texi: Likewise.
43657         * doc/posix-functions/fputs.texi: Likewise.
43658         * doc/posix-functions/fwrite.texi: Likewise.
43659         * doc/posix-functions/printf.texi: Likewise.
43660         * doc/posix-functions/putc.texi: Likewise.
43661         * doc/posix-functions/putchar.texi: Likewise.
43662         * doc/posix-functions/puts.texi: Likewise.
43663         * doc/posix-functions/vfprintf.texi: Likewise.
43664         * doc/posix-functions/vprintf.texi: Likewise.
43665
43666         * modules/safe-write (Depends-on): Add write.
43667
43668         * modules/sigpipe-tests: New file.
43669         * tests/test-sigpipe.c: New file.
43670         * tests/test-sigpipe.sh: New file.
43671
43672         * modules/write: New file.
43673         * lib/unistd.in.h: Include <sys/types.h>.
43674         (write): New declaration.
43675         * lib/write.c: New file.
43676         * m4/write.m4: New file.
43677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43678         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43679         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43680         GNULIB_WRITE, REPLACE_WRITE.
43681         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43682         and the SIGPIPE issue.
43683
43684         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43685         (raise): New declaration.
43686         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43687         (ext_signal): New function.
43688         (rpl_raise): New function.
43689         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43690         GNULIB_SIGNAL_H_SIGPIPE.
43691         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43692         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43693
43694         * modules/sigpipe: New file.
43695         * m4/sigpipe.m4: New file.
43696
43697 2008-09-25  Derek Price  <derek@ximbiot.com>
43698             Bruno Haible  <bruno@clisp.org>
43699
43700         * gnulib-tool (func_import): Report all license incompatibilities, not
43701         just the first one.
43702
43703 2008-09-25  Bruno Haible  <bruno@clisp.org>
43704
43705         * gnulib-tool (func_import): When computing the edits, consider not
43706         only the Makefile.ams that exist but also those that will be generated.
43707
43708 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43709
43710         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43711         fixes gnulib-tool --test warning about duplicate dependency.
43712
43713 2008-09-25  Bruno Haible  <bruno@clisp.org>
43714
43715         * gnulib-tool: Don't ask the user to perform edits in the generated
43716         Makefile.ams.
43717         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43718         apply to the Makefile.am being generated.
43719         (func_emit_tests_Makefile_am): Execute edits that apply to the
43720         Makefile.am being generated.
43721         (func_import): Setup list of Makefile.am edits before emitting the
43722         Makefile.ams, not at the end.
43723         (func_create_testdir): Update.
43724         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43725
43726 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43727
43728         * gnulib-tool (func_import): Store the --tests-base option in the
43729         comment in gnulib-cache.m4.
43730
43731 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43732
43733         * NEWS: Document increased portability that sys_select now provides.
43734
43735         * lib/sys_select.in.h: Install select wrapper.
43736         * lib/sys_socket.in.h: Use more descriptive name when there is no
43737         select wrapper.
43738         * lib/winsock-select.c: New.
43739         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43740         Require gl_HEADER_SYS_SOCKET.
43741         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43742         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43743         * tests/test-sys_select.c: Add functional tests.
43744
43745 2008-09-24  Eric Blake  <ebb9@byu.net>
43746
43747         open, fopen: close fd leak in last patch
43748         * lib/open.c (rpl_open): Close fd before returning error.
43749         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43750         * doc/posix-functions/open.texi (open): Document that Irix also
43751         has the bug.
43752         * doc/posix-functions/fopen.texi (fopen): Likewise.
43753         Reported by Paolo Bonzini.
43754
43755 2008-09-24  Bruno Haible  <bruno@clisp.org>
43756
43757         Ensure that a filename ending in a slash cannot be used to access a
43758         non-directory.
43759         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43760         to check whether it's really a directory.
43761         * lib/fopen.c: Include fcntl.h, unistd.h.
43762         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43763         and fdopen().
43764         * modules/fopen (Depends-on): Add unistd.
43765         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43766         * tests/test-fopen.c (main): Likewise.
43767         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43768         * doc/posix-functions/fopen.texi: Likewise.
43769         Reported by Eric Blake.
43770
43771 2008-09-23  Eric Blake  <ebb9@byu.net>
43772
43773         c-stack: avoid compiler optimizations when provoking overflow
43774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43775         recursion harder to optimize, to ensure a stack overflow occurs.
43776         * tests/test-c-stack.c (recurse): Likewise.
43777         Borrowed from libsigsegv.
43778
43779         c-stack: work around Irix sigaltstack bug
43780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43781         whether sigaltstack uses wrong end of stack_t (copied in part from
43782         libsigsegv).
43783         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43784         Irix bug, without requiring an over-allocation.
43785         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43786         bug.
43787
43788         fopen: document mingw bug on directories
43789         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43790         not allowing a stream visiting a directory, even though reading
43791         from such a stream is not portable.
43792
43793 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43794
43795         * lib/poll.c: Rewrite.
43796         * modules/poll: Depend on alloca.
43797
43798 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43799
43800         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43801         instead define prototypes for a full set of wrappers.  Ensure
43802         that Cygwin does not use the compatibility code, which is only
43803         for MinGW.
43804         * lib/winsock.c: New.
43805         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43806         * modules/sys_socket: Add lib/winsock.c.
43807
43808         * modules/poll-tests: Add errno and perror.
43809         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43810
43811 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43812
43813         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43814
43815 2008-09-23  Bruno Haible  <bruno@clisp.org>
43816
43817         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43818         * doc/glibc-functions/*: Likewise.
43819
43820 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43821
43822         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43823         success.
43824
43825 2008-09-22  Eric Blake  <ebb9@byu.net>
43826             Bruno Haible  <bruno@clisp.org>
43827
43828         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43829         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43830         supply %A but mishandle pseudo-NaN.
43831         Reported by Simon Josefsson.
43832
43833 2008-09-21  Bruno Haible  <bruno@clisp.org>
43834
43835         * tests/test-lock.c (main): Tweak skip message.
43836         * tests/test-tls.c (main): Likewise.
43837
43838 2008-09-21  Bruno Haible  <bruno@clisp.org>
43839
43840         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43841         whether 'struct sigaction' has sa_sigaction here...
43842         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43843         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43844
43845 2008-09-21  Bruno Haible  <bruno@clisp.org>
43846
43847         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43848         section.
43849         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43850         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43851         the new section.
43852         (Support for obsolete systems lacking POSIX:2001): New section.
43853         (String handling <string.h>): Move strdup to the new section.
43854         Suggested by Simon Josefsson and Paolo Bonzini.
43855
43856 2008-09-21  Bruno Haible  <bruno@clisp.org>
43857
43858         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43859         exponents in %e and %g results on 'long double'. Needed for mingw's
43860         improved *printf functions.
43861         * tests/test-vasprintf-posix.c (test_function): Likewise.
43862         * tests/test-snprintf-posix.h (test_function): Likewise.
43863         * tests/test-sprintf-posix.h (test_function): Likewise.
43864         Reported by Eric Blake.
43865
43866 2008-09-21  Bruno Haible  <bruno@clisp.org>
43867
43868         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43869         * tests/test-sprintf-posix.h (test_function): Likewise.
43870
43871 2008-09-21  Bruno Haible  <bruno@clisp.org>
43872
43873         * modules/getpass (Depends-on): Add strdup-posix.
43874
43875         New module 'strdup-posix'.
43876         * modules/strdup-posix: New file.
43877         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43878         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43880         REPLACE_STRDUP.
43881         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43882         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43883         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43884         strdup-posix.
43885
43886         * modules/strdup (Depends-on): Remove malloc-posix.
43887
43888 2008-09-20  Bruno Haible  <bruno@clisp.org>
43889
43890         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43891         Wildenhues.
43892
43893 2008-09-20  Bruno Haible  <bruno@clisp.org>
43894
43895         Ensure that wint_t gets defined on IRIX 5.3.
43896         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43897         * lib/wctype.in.h (wint_t): Likewise.
43898         (__wctype_wint_t): Remove type.
43899         (isw*): Use wint_t instead of __wctype_wint_t.
43900         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43901         * modules/wchar (Files): Add m4/wint_t.m4.
43902         (Makefile.am): Substitute HAVE_WINT_T.
43903         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43904         * tests/test-wctype.c: Check that wint_t is defined.
43905         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43906         * doc/posix-headers/wctype.texi: Likewise.
43907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43908
43909 2008-09-18  Bruno Haible  <bruno@clisp.org>
43910
43911         * gnulib-tool (func_exit): Update comment.
43912
43913 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43914
43915         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43916         assumes strdup exists and does not depend on strdup to return
43917         ENOMEM on out of memory conditions.
43918
43919 2008-09-18  Bruno Haible  <bruno@clisp.org>
43920
43921         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43922         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43923         digits for the exponent.
43924
43925 2008-09-18  Jim Meyering  <meyering@redhat.com>
43926             Bruno Haible  <bruno@clisp.org>
43927
43928         * lib/vasnprintf.c (decimal_point_char): Define also if
43929         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43930
43931 2008-09-16  Bruno Haible  <bruno@clisp.org>
43932         and Eric Blake  <ebb9@byu.net>
43933
43934         vasnprintf: support Irix 5.3
43935         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43936         that mishandle long double infinity.
43937         Reported by Tom G. Christensen.
43938
43939 2008-09-16  Bruno Haible  <bruno@clisp.org>
43940
43941         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43942         Solaris 9.
43943         * doc/glibc-functions/alphasort.texi: Likewise.
43944         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43945
43946 2008-09-16  Jim Meyering  <meyering@redhat.com>
43947
43948         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43949         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43950         a umask modification leak out of a subshell.  Otherwise, the
43951         opensolaris /bin/sh would be accepted and thus cause unwarranted
43952         failures in the coreutils test suite.
43953
43954 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43955
43956         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43957         to succeed.
43958
43959 2008-09-16  Jim Meyering  <meyering@redhat.com>
43960
43961         avoid spurious test failure when library is built without ACL support
43962         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43963         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43964         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43965         * tests/test-copy-acl.sh: Likewise.
43966
43967 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43968
43969         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43970         based on character occurrence counts.
43971
43972 2008-09-15  Eric Blake  <ebb9@byu.net>
43973
43974         tests: avoid some compiler warnings
43975         * tests/test-memchr.c (main): Pass NULL indirectly.
43976         * tests/test-closein.c (main): Avoid unused variable.
43977
43978 2008-09-15  Bruno Haible  <bruno@clisp.org>
43979
43980         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43981         are missing on OpenBSD 4.0 individually.
43982         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43983
43984 2008-09-15  Bruno Haible  <bruno@clisp.org>
43985
43986         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43987         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43988         * doc/posix-functions/perror.texi: Likewise.
43989         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43990         is missing.
43991         Reported by Eric Blake.
43992
43993         * lib/errno.in.h: Use replacement values >= 2000.
43994         Reported by Eric Blake.
43995
43996 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43997
43998         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43999         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44000         limit.
44001         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44002         compareseq was aborted.
44003
44004 2008-09-14  Bruno Haible  <bruno@clisp.org>
44005
44006         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44007         yvec_edit_count.
44008         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44009         (fstrcmp_bounded): Simplify result computation accordingly.
44010
44011 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44012
44013         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44014         (fstrcmp): Define in terms of fstrcmp_bounded.
44015         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44016         lower_bound argument.
44017         Return quickly if the result is certainly < lower_bound.
44018         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44019
44020 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44021
44022         * lib/diffseq.h (EARLY_ABORT): New macro.
44023         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44024         evaluates to true.
44025
44026 2008-09-14  Bruno Haible  <bruno@clisp.org>
44027
44028         * modules/perror-tests: New file.
44029         * tests/test-perror.sh: New file.
44030         * tests/test-perror.c: New file.
44031
44032         New module 'perror'.
44033         * lib/stdio.in.h (perror): New declaration.
44034         * lib/perror.c: New file.
44035         * m4/perror.m4: New file.
44036         * modules/perror: New file.
44037         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44038         * doc/posix-functions/perror.texi: Mention the perror module.
44039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44040         REPLACE_PERROR.
44041         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44042         REPLACE_PERROR.
44043
44044 2008-09-14  Bruno Haible  <bruno@clisp.org>
44045
44046         * modules/stdio (Makefile.am): Reorder to match the order in
44047         lib/stdio.in.h.
44048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44049
44050 2008-09-13  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44053
44054 2008-09-13  Bruno Haible  <bruno@clisp.org>
44055
44056         Extend strerror to cover the added errno values.
44057         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44058         (rpl_strerror): Provide error messages for the added errno values and
44059         for the WSA* values.
44060         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44061         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44062         strerror.
44063         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44064         * modules/strerror (Depends-on): Add errno.
44065         * doc/posix-functions/strerror.texi: Document the change.
44066         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44067         and EOVERFLOW.
44068
44069 2008-09-13  Bruno Haible  <bruno@clisp.org>
44070
44071         * modules/EOVERFLOW: Remove file.
44072         * m4/eoverflow.m4: Remove file.
44073         * modules/EOVERFLOW-tests: Remove file.
44074         * tests/test-EOVERFLOW.c: Remove file.
44075         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44076         * modules/ftell (Depends-on): Likewise.
44077         * modules/getdelim (Depends-on): Likewise.
44078         * modules/getugroups (Depends-on): Likewise.
44079         * modules/poll (Depends-on): Likewise.
44080         * modules/snprintf (Depends-on): Likewise.
44081         * modules/sprintf-posix (Depends-on): Likewise.
44082         * modules/vasnprintf (Depends-on): Likewise.
44083         * modules/vasprintf (Depends-on): Likewise.
44084         * modules/vfprintf-posix (Depends-on): Likewise.
44085         * modules/vsnprintf (Depends-on): Likewise.
44086         * modules/vsprintf-posix (Depends-on): Likewise.
44087         * modules/xvasprintf (Depends-on): Likewise.
44088         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44089         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44090         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44091         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44092         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44093         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44094         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44095         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44096         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44097         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44098         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44099         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44100         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44101         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44102         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44103         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44104         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44105         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44106         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44107         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44108         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44109         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44110         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44111         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44112         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44113         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44114         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44115         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44116         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44117         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44118         * MODULES.html.sh: Remove EOVERFLOW.
44119         * NEWS: Mention the change.
44120
44121 2008-09-13  Bruno Haible  <bruno@clisp.org>
44122
44123         * modules/errno-tests: New file.
44124         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44125
44126         * lib/errno.in.h: New file.
44127         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44128         * modules/errno: New file.
44129         * doc/posix-headers/errno.texi: Update documentation.
44130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44131
44132 2008-09-13  Bruno Haible  <bruno@clisp.org>
44133
44134         * tests/test-poll.c: Use #if for native Windows, rather than testing
44135         __MSVCRT__.
44136
44137 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44138             Bruno Haible  <bruno@clisp.org>
44139
44140         * lib/glob.c: Don't include <pwd.h> on native Windows.
44141         (WINDOWS32): New macro.
44142         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44143
44144 2008-09-13  Bruno Haible  <bruno@clisp.org>
44145
44146         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44147         (ETIMEDOUT): Remove macro.
44148         (glthread_cond_timedwait_multithreaded): New declaration.
44149         (glthread_cond_timedwait): Use it.
44150         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44151         (glthread_cond_timedwait_multithreaded): New function.
44152
44153 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44154
44155         * modules/poll-tests: Do not check for io.h.
44156         * tests/test-poll.c: Check for __MSVCRT__ instead.
44157
44158 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44159
44160         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44161         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44162         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44163
44164 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44165
44166         * modules/poll-tests: New.
44167         * tests/test-poll.c: New.
44168
44169 2008-09-12  Eric Blake  <ebb9@byu.net>
44170
44171         frexp: test for NetBSD failure on -0.0
44172         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44173         not all, bugs from NetBSD 3.0 have been fixed.
44174         * doc/posix-functions/frexp.texi (frexp): Document bug.
44175         Reported by Thomas Klausner.
44176
44177         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44178         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44179         literal -0.0.
44180         Reported by Jonathan C. Patschke <jp@centtech.com>.
44181
44182 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44183
44184         * lib/glthread/cond.h: Use dummy implementation also if
44185         USE_WIN32_THREADS.
44186
44187 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44188
44189         * modules/fnmatch-posix (License): Change to LGPLv2+.
44190         * modules/fnmatch-gnu (License): Likewise.
44191
44192 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44193
44194         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44195
44196 2008-09-11  Jim Meyering  <meyering@redhat.com>
44197
44198         * users.txt: Add gtk-vnc.
44199
44200 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44201
44202         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44203         rotate amounts.
44204
44205         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44206         required for 16-bit and 8-bit rotates.
44207         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44208         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44209         UINT8_MAX instead of hard-coded constants.
44210         Suggested by Paul Eggert.
44211
44212 2008-09-07  Bruno Haible  <bruno@clisp.org>
44213
44214         * tests/test-striconveh.c (main): Check behaviour when converting from
44215         UTF-7.
44216
44217         Make striconveh work better with stateful encodings.
44218         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44219         that iconv does not increment the inptr when returning -1/EINVAL.
44220
44221 2008-09-07  Bruno Haible  <bruno@clisp.org>
44222
44223         * build-aux/config.rpath: Update according to libtool-2.2.6.
44224         * build-aux/config.libpath: Likewise.
44225
44226 2008-09-06  Bruno Haible  <bruno@clisp.org>
44227
44228         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44229         * lib/freadptr.c (freadptr): Likewise.
44230         * lib/freadseek.c (freadptrinc): Likewise.
44231         Reported by Simon Josefsson.
44232
44233 2008-09-06  Bruno Haible  <bruno@clisp.org>
44234
44235         * modules/freadptr (License): Change to LGPLv2+.
44236         * modules/freadseek (License): Likewise.
44237         Suggested by Eric Blake.
44238
44239         * modules/memchr2 (License): Change to LGPLv2+.
44240         Approved by Eric Blake.
44241
44242 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44243             Bruno Haible  <bruno@clisp.org>
44244
44245         Make gnulib-tool work with native 'sed' on AIX.
44246         * gnulib-tool (sed_noop): New variable.
44247         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44248         func_add_or_update, func_create_testdir): Use it to initialize sed
44249         script variables.
44250         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44251
44252 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44253             Bruno Haible  <bruno@clisp.org>
44254
44255         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44256         also works after #include directives.
44257
44258 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44259
44260         getdate.y: reject an out-of-range timezone value
44261         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44262         the range [-24...+24].  When specified with only one or two digits,
44263         * tests/test-getdate.c: Tests for the fix.
44264         * doc/getdate.texi: Document this change.
44265
44266 2008-09-03  Bruno Haible  <bruno@clisp.org>
44267
44268         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44269
44270 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44271
44272         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44273         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44274         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44275         Blake <ebb9@byu.net>.
44276
44277         * tests/test-bitrotate.c: Add more test vectors.
44278
44279 2008-09-02  Eric Blake  <ebb9@byu.net>
44280
44281         vasnprintf-posix: handle large precision via %.*d
44282         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44283         when handling it ourselves.
44284         * tests/test-vasnprintf-posix.c (test_function): Add test.
44285         * tests/test-snprintf-posix.h (test_function): Likewise.
44286         * tests/test-sprintf-posix.h (test_function): Likewise.
44287         * tests/test-vasprintf-posix.c (test_function): Likewise.
44288         Reported by Alain Guibert.
44289
44290 2008-09-01  Eric Blake  <ebb9@byu.net>
44291
44292         c-stack: make configure-time check more robust
44293         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44294         successful sigaction call.
44295         Reported by Tom G. Christensen.
44296
44297 2008-09-01  Bruno Haible  <bruno@clisp.org>
44298
44299         New module 'findprog-lgpl'.
44300         * modules/findprog-lgpl: New file.
44301         * lib/findprog-lgpl.c: New file.
44302         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44303         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44304         to decide whether to use strdup or xstrdup, concatenated_filename or
44305         xconcatenated_filename.
44306
44307 2008-09-01  Bruno Haible  <bruno@clisp.org>
44308
44309         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44310         'xconcat-filename' (GPL).
44311         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44312         (License): Change to LGPLv2+.
44313         * modules/xconcat-filename: New file.
44314         * lib/concat-filename.h (concatenated_filename): Change specification.
44315         (xconcatenated_filename): New declaration.
44316         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44317         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44318         memory situations.
44319         * lib/xconcat-filename.c: New file.
44320         * NEWS: Mention the change.
44321         * lib/findprog.c: Include concat-filename.h, not filename.h.
44322         (find_in_path): Use xconcatenated_filename instead of
44323         concatenated_filename.
44324         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44325         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44326         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44327         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44328         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44329         instead of concatenated_filename.
44330         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44331         (execute_java_class): Use xconcatenated_filename instead of
44332         concatenated_filename.
44333         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44334         * modules/javacomp (Depends-on): Likewise.
44335         * modules/javaexec (Depends-on): Likewise.
44336
44337 2008-09-01  Bruno Haible  <bruno@clisp.org>
44338
44339         Split module 'filename' into 'filename' and 'concat-filename'.
44340         * modules/filename: Keep only lib/filename.h.
44341         (License): Change to LGPLv2+.
44342         * modules/concat-filename: New file, extracted from modules/filename.
44343         * lib/filename.h (concatenated_filename): Remove declaration.
44344         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44345         * lib/concat-filename.c: Include concat-filename.h.
44346         * NEWS: Mention the change.
44347
44348 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44349
44350         * lib/bitrotate.h (rotl8, rotr8): Add.
44351
44352         * modules/bitrotate (configure.ac): Need
44353         AC_REQUIRE([AC_C_INLINE]).
44354         (Description): Mention stdint.h.  Reported by Bruno Haible
44355         <bruno@clisp.org>.
44356
44357         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44358         Paolo Bonzini <bonzini@gnu.org>.
44359
44360 2008-08-31  Bruno Haible  <bruno@clisp.org>
44361
44362         Assume Solaris specific bi-arch conventions on Solaris systems.
44363         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44364         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44365         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44366         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44367         like acl_libdirstem.
44368         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44369         acl_libdirstem.
44370         * NEWS: Mention the change.
44371         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44372
44373 2008-08-31  Jim Meyering  <meyering@redhat.com>
44374
44375         * lib/strftime.h: Add comments describing the two added arguments.
44376
44377         remove duplicate #include directives
44378         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44379         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44380
44381 2008-08-31  Bruno Haible  <bruno@clisp.org>
44382
44383         New module 'sigpipe-die'.
44384         * modules/sigpipe-die: New file.
44385         * lib/sigpipe-die.h: New file.
44386         * lib/sigpipe-die.c: New file.
44387         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44388
44389 2008-08-31  Bruno Haible  <bruno@clisp.org>
44390
44391         Don't override previously installed signal handlers.
44392         * lib/fatal-signal.c (saved_sigactions): New variable.
44393         (uninstall_handlers): Reset the signal to the saved handler, not
44394         to SIG_DFL (except when ignored).
44395         (install_handlers): Save the previous handlers.
44396
44397 2008-08-30  Bruno Haible  <bruno@clisp.org>
44398
44399         * gnulib-tool (func_reset_sigpipe): New function.
44400         (func_get_automake_snippet, func_modules_transitive_closure,
44401         func_import): Invoke it before a join command that reads from stdin,
44402         to avoid "echo: write error: Broken pipe" error messages on stderr.
44403         Reported by Sam Steingold <sds@gnu.org>.
44404
44405 2008-08-30  Bruno Haible  <bruno@clisp.org>
44406
44407         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44408         Code copied from m4/open.m4.
44409         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44410         access and the filename ends in a slash. Code copied from lib/open.c.
44411         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44412         * tests/test-fopen.c (main): Check against bug with trailing slash.
44413
44414 2008-08-29  Bruno Haible  <bruno@clisp.org>
44415
44416         Avoid some "gcc -pedantic" warnings.
44417         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44418         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44419         * lib/dirent.in.h: Likewise.
44420         * lib/fcntl.in.h: Likewise.
44421         * lib/float.in.h: Likewise.
44422         * lib/iconv.in.h: Likewise.
44423         * lib/inttypes.in.h: Likewise.
44424         * lib/locale.in.h: Likewise.
44425         * lib/math.in.h: Likewise.
44426         * lib/netinet_in.in.h: Likewise.
44427         * lib/search.in.h: Likewise.
44428         * lib/signal.in.h: Likewise.
44429         * lib/stdarg.in.h: Likewise.
44430         * lib/stdint.in.h: Likewise.
44431         * lib/stdio.in.h: Likewise.
44432         * lib/stdlib.in.h: Likewise.
44433         * lib/string.in.h: Likewise.
44434         * lib/strings.in.h: Likewise.
44435         * lib/sys_select.in.h: Likewise.
44436         * lib/sys_socket.in.h: Likewise.
44437         * lib/sys_stat.in.h: Likewise.
44438         * lib/sys_time.in.h: Likewise.
44439         * lib/sysexits.in.h: Likewise.
44440         * lib/time.in.h: Likewise.
44441         * lib/unistd.in.h: Likewise.
44442         * lib/wchar.in.h: Likewise.
44443         * lib/wctype.in.h: Likewise.
44444         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44445         * modules/fchdir (Makefile.am): Likewise.
44446         * modules/fcntl (Makefile.am): Likewise.
44447         * modules/float (Makefile.am): Likewise.
44448         * modules/iconv_open (Makefile.am): Likewise.
44449         * modules/inttypes (Makefile.am): Likewise.
44450         * modules/locale (Makefile.am): Likewise.
44451         * modules/math (Makefile.am): Likewise.
44452         * modules/netinet_in (Makefile.am): Likewise.
44453         * modules/search (Makefile.am): Likewise.
44454         * modules/signal (Makefile.am): Likewise.
44455         * modules/stdarg (Makefile.am): Likewise.
44456         * modules/stdint (Makefile.am): Likewise.
44457         * modules/stdio (Makefile.am): Likewise.
44458         * modules/stdlib (Makefile.am): Likewise.
44459         * modules/string (Makefile.am): Likewise.
44460         * modules/strings (Makefile.am): Likewise.
44461         * modules/sys_select (Makefile.am): Likewise.
44462         * modules/sys_socket (Makefile.am): Likewise.
44463         * modules/sys_stat (Makefile.am): Likewise.
44464         * modules/sys_time (Makefile.am): Likewise.
44465         * modules/sysexits (Makefile.am): Likewise.
44466         * modules/time (Makefile.am): Likewise.
44467         * modules/unistd (Makefile.am): Likewise.
44468         * modules/wchar (Makefile.am): Likewise.
44469         * modules/wctype (Makefile.am): Likewise.
44470         Reported by Reuben Thomas <rrt@sc3d.org>.
44471
44472 2008-08-29  Bruno Haible  <bruno@clisp.org>
44473
44474         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44475         any more.
44476
44477 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44478
44479         * MODULES.html.sh (Misc): Add bitrotate.
44480
44481         * modules/bitrotate: New file.
44482
44483         * lib/bitrotate.h: New file.
44484
44485         * modules/bitrotate-tests: New file.
44486
44487         * tests/test-bitrotate.c: New file.
44488
44489         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44490         on the bitrotate module.
44491
44492         * lib/arctwo.c: Use new bitrotate module.
44493
44494 2008-08-29  Jim Meyering  <meyering@redhat.com>
44495
44496         bootstrap: merge changes from coreutils
44497         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44498         of copied files.  Remove a kludge, now that this is fixed.
44499         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44500         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44501         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44502
44503 2008-08-29  Bruno Haible  <bruno@clisp.org>
44504
44505         * MODULES.html.sh: Remove --cvs-urls option.
44506
44507 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44508
44509         maint.mk: adjust to file name change
44510         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44511
44512 2008-08-28  Jim Meyering  <meyering@redhat.com>
44513
44514         * modules/getndelim2 (License): Relicense to LGPLv2+.
44515         Approved by Richard Stallman for the version of 1995, and by
44516         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44517
44518 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44519
44520         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44521         dummy if one is not available.  Do not touch them if
44522         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44523         (getc_maybe_unlocked): New.
44524         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44525
44526 2008-08-26  Eric Blake  <ebb9@byu.net>
44527
44528         doc/INSTALL: resync from autoconf
44529         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44530         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44531         moving...
44532         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44533         * INSTALL: Regenerate.
44534         * INSTALL.ISO: New file.
44535         * INSTALL.UTF-8: Likewise.
44536
44537 2008-08-26  Jim Meyering  <meyering@redhat.com>
44538
44539         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44540         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44541         these definitions conditional, so that they may be overridden, too.
44542
44543 2008-08-26  Bruno Haible  <bruno@clisp.org>
44544
44545         Generate INSTALL file variants with prettier quotes.
44546         * doc/Makefile (INSTALL_PRELUDE): New macro.
44547         (INSTALL): Use it.
44548         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44549
44550 2008-08-26  Bruno Haible  <bruno@clisp.org>
44551
44552         Run makeinfo in an English locale.
44553         * doc/Makefile (MAKEINFO): New variable.
44554
44555 2008-08-26  Bruno Haible  <bruno@clisp.org>
44556
44557         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44558         Suggested by Eric Blake.
44559
44560 2008-08-25  Bruno Haible  <bruno@clisp.org>
44561
44562         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44563
44564 2008-08-25  Eric Blake  <ebb9@byu.net>
44565
44566         c-stack: test that stack overflow can be caught
44567         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44568         that platform allows handling stack overflow; at least OS/2 EMX
44569         has sigaltstack, but crashes before transferring control to
44570         handler on stack overflow.
44571         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44572         check for HAVE_STACK_OVERFLOW_HANDLING.
44573         Reported by Elbert Pol.
44574
44575 2008-08-25  Bruno Haible  <bruno@clisp.org>
44576
44577         * doc/posix-functions/strftime.texi: Fix description of strftime
44578         module.
44579
44580 2008-08-24  Bruno Haible  <bruno@clisp.org>
44581
44582         * tests/uniwidth/test-uc_width2.c: New file.
44583         * tests/uniwidth/test-uc_width2.sh: New file.
44584         * modules/uniwidth/width-tests (Files): Add the new files.
44585         (TESTS): Add uniwidth/test-uc_width2.sh.
44586         (TESTS_ENVIRONMENT): New variable.
44587         (check_PROGRAMS): Add test-uc_width2.
44588         (test_uc_width2_SOURCES): New variable.
44589
44590         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44591         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44592         not 0x00AB.
44593         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44594
44595 2008-08-22  Eric Blake  <ebb9@byu.net>
44596
44597         test-lock, test-tls: mention why a test is skipped
44598         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44599         skipped.
44600         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44601
44602         count-one-bits: relax license
44603         * modules/count-one-bits (License): Relicense to LGPLv2+.
44604         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44605
44606 2008-08-22  Andreas Schwab  <schwab@suse.de>
44607
44608         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44609         Remove spurious space in assignment.
44610
44611 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44612
44613         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44614         Paul Eggert <eggert@CS.UCLA.EDU>.
44615
44616 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44617
44618         * modules/gettext: Add m4/threadlib.m4.
44619
44620 2008-08-19  Eric Blake  <ebb9@byu.net>
44621
44622         test-c-stack: fix compilation failure on FreeBSD 5.0
44623         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44624         headers before <sys/resource.h>.
44625         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44626         the bug.
44627         Reported by Nelson H. F. Beebe.
44628
44629         strverscmp: migrate from "strverscmp.h" to <string.h>
44630         * modules/string (Makefile.am): Add new hooks.
44631         * modules/strverscmp (Files): Remove strverscmp.h.
44632         (Depends-on): Add string.
44633         (configure.ac): Add indicator.
44634         (Include): Mention new header.
44635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44636         defaults.
44637         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44638         results.
44639         * lib/strverscmp.h: Delete.
44640         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44641         * tests/test-strverscmp.c (includes): Adjust client.
44642         * lib/check-version.c (includes): Likewise.
44643         * NEWS: Document the change.
44644
44645         strverscmp: add unit test
44646         * modules/strverscmp-tests: New file.
44647         * tests/test-strverscmp.c: Likewise.
44648
44649 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44650
44651         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44652         regarding Windows crypto stuff, from Mono.
44653
44654 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44655
44656         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44657         if present, for intel RND.  Return error on failures.
44658
44659 2008-08-18  Ben Pfaff  <blp@gnu.org>
44660
44661         gitlog-to-changelog: give better diagnostic for failed pipe-open
44662         * build-aux/gitlog-to-changelog: Improve error message: suggest
44663         that the version of Git may be too old.
44664
44665 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44666
44667         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44668         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44669
44670 2008-08-18  Bruno Haible  <bruno@clisp.org>
44671
44672         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44673         pthread_in_use().
44674
44675 2008-08-18  Bruno Haible  <bruno@clisp.org>
44676
44677         * lib/glthread/threadlib.c: Include <pthread.h>.
44678
44679 2008-08-18  Bruno Haible  <bruno@clisp.org>
44680
44681         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44682         glthread_recursive_lock_* macros.
44683         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44684         Fix syntax error.
44685
44686 2008-08-18  Bruno Haible  <bruno@clisp.org>
44687
44688         * lib/glthread/thread.c: Avoid forcing a context switch right after
44689         thread creation.
44690
44691 2008-08-17  Bruno Haible  <bruno@clisp.org>
44692
44693         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44694         * lib/glthread/thread.h: Provide Win32 specific implementation.
44695         * modules/thread (Files): Add lib/glthread/thread.c.
44696         (Depends-on): Add lock.
44697         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44698
44699 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44700
44701         New module 'yield'.
44702         * modules/yield: New file.
44703         * lib/glthread/yield.h: New file.
44704         * m4/yield.m4: New file.
44705         * MODULES.html.sh (Multithreading): Add yield.
44706
44707 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44708
44709         New module 'thread'.
44710         * modules/thread: New file.
44711         * lib/glthread/thread.h: New file.
44712         * m4/thread.m4: New file.
44713         * MODULES.html.sh (Multithreading): Add thread.
44714
44715 2008-08-17  Bruno Haible  <bruno@clisp.org>
44716
44717         * lib/glthread/lock.h: Include <stdlib.h> always.
44718         * lib/glthread/tls.h: Likewise.
44719         * lib/glthread/cond.h: Likewise.
44720
44721 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44722
44723         New module 'cond'.
44724         * modules/cond: New file.
44725         * lib/glthread/cond.h: New file.
44726         * lib/glthread/cond.c: New file.
44727         * m4/cond.m4: New file.
44728         * MODULES.html.sh (Multithreading): Add cond.
44729
44730 2008-08-16  Eric Blake  <ebb9@byu.net>
44731
44732         c-stack: fix regression on Irix 5.3 from 2008-06-21
44733         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44734         sa_sigaction...
44735         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44736         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44737         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44738         * modules/signal (Makefile.am): Use the value.
44739         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44740         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44741         * doc/posix-headers/signal.texi (signal.h): Document this
44742         portability issue.
44743         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44744         Reported by Tom G. Christensen.
44745
44746 2008-08-17  Bruno Haible  <bruno@clisp.org>
44747
44748         New module 'threadlib'.
44749         * modules/threadlib: New file.
44750         * lib/glthread/threadlib.c: New file, extracted from
44751         lib/glthread/lock.c.
44752         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44753         functions.
44754         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44755         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44756         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44757         macros.
44758         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44759         (gl_DISABLE_THREADS): Remove macro.
44760         * modules/lock (Files): Remove build-aux/config.rpath.
44761         (Depends-on): Remove havelib. Add threadlib.
44762         (configure.ac-early): Remove section.
44763         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44764         * modules/tls (Depends-on): Remove lock. Add threadlib.
44765         (Link): New section, copied from threadlib.
44766         * MODULES.html.sh (Multithreading): Add threadlib.
44767
44768 2008-08-14  Bruno Haible  <bruno@clisp.org>
44769
44770         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44771         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44772         glthread_rwlock_unlock, glthread_rwlock_destroy,
44773         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44774         glthread_recursive_lock_destroy): Define as macros always.
44775         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44776         glthread_lock_lock.
44777         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44778         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44779         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44780         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44781         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44782         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44783         (glthread_recursive_lock_lock_func): Renamed from
44784         glthread_recursive_lock_lock.
44785         (glthread_recursive_lock_unlock_func): Renamed from
44786         glthread_recursive_lock_unlock.
44787         (glthread_recursive_lock_destroy_func): Renamed from
44788         glthread_recursive_lock_destroy.
44789
44790 2008-08-14  Bruno Haible  <bruno@clisp.org>
44791
44792         * lib/glthread/lock.h: Renamed from lib/lock.h.
44793         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44794         * lib/glthread/tls.h: Renamed from lib/tls.h.
44795         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44796         * lib/fstrcmp.c: Update includes.
44797         * lib/strsignal.c: Update includes.
44798         * modules/lock (Files, Makefile.am): Update.
44799         (Include): Change to "glthread/lock.h".
44800         * modules/tls (Files, Makefile.am): Update.
44801         (Include): Change to "glthread/tls.h".
44802         * tests/test-lock.c: Update includes.
44803         * tests/test-tls.c: Update includes.
44804         * NEWS: Mention the renamed header files.
44805
44806 2008-08-11  Jim Meyering  <meyering@redhat.com>
44807
44808         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44809
44810 2008-08-11  Eric Blake  <ebb9@byu.net>
44811
44812         test-c-stack: avoid C99-ism
44813         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44814         before statement.
44815         Reported by Alain Guibert.
44816
44817 2008-08-10  Jim Meyering  <meyering@redhat.com>
44818
44819         ensure that return value of uinttostr et al are not ignored
44820         * lib/inttostr.h (__GNUC_PREREQ): Define.
44821         (__attribute_warn_unused_result__): Define.
44822         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44823
44824 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44825
44826         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44827         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44828
44829 2008-08-07  Jim Meyering  <meyering@redhat.com>
44830
44831         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44832
44833         * modules/mkstemp (License): Relicense under LGPLv2+.
44834         * modules/tempname (License): Likewise.
44835
44836 2008-08-06  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/poll.c (poll): Further micro-optimization.
44839
44840 2008-08-06  Jim Meyering  <meyering@redhat.com>
44841
44842         inet_pton.c: use locale-independent tolower
44843         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44844         (inet_pton6): Use c_tolower rather than tolower.
44845         * modules/inet_pton (Depends-on): Add c-ctype.
44846
44847 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44848
44849         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44850         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44851
44852 2008-08-06  Jim Meyering  <meyering@redhat.com>
44853
44854         * modules/inet_pton (License): Relicense under LGPLv2+.
44855
44856 2008-08-03  Bruno Haible  <bruno@clisp.org>
44857
44858         Additional non-aborting API for lock and tls.
44859         * lib/lock.h: Include <errno.h>.
44860         (glthread_lock_init): New macro/function.
44861         (gl_lock_init): Define as wrapper around glthread_lock_init.
44862         (glthread_lock_lock): New macro/function.
44863         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44864         (glthread_lock_unlock): New macro/function.
44865         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44866         (glthread_lock_destroy): New macro/function.
44867         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44868         (glthread_rwlock_init): New macro/function.
44869         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44870         (glthread_rwlock_rdlock): New macro/function.
44871         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44872         (glthread_rwlock_wrlock): New macro/function.
44873         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44874         (glthread_rwlock_unlock): New macro/function.
44875         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44876         (glthread_rwlock_destroy): New macro/function.
44877         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44878         (glthread_recursive_lock_init): New macro/function.
44879         (gl_recursive_lock_init): Define as wrapper around
44880         glthread_recursive_lock_init.
44881         (glthread_recursive_lock_lock): New macro/function.
44882         (gl_recursive_lock_lock): Define as wrapper around
44883         glthread_recursive_lock_lock.
44884         (glthread_recursive_lock_unlock): New macro/function.
44885         (gl_recursive_lock_unlock): Define as wrapper around
44886         glthread_recursive_lock_unlock.
44887         (glthread_recursive_lock_destroy): New macro/function.
44888         (gl_recursive_lock_destroy): Define as wrapper around
44889         glthread_recursive_lock_destroy.
44890         (glthread_once): New macro/function.
44891         (gl_once): Define as wrapper around glthread_once.
44892         Update function declarations.
44893         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44894         glthread_rwlock_init. Return error code.
44895         (glthread_rwlock_rdlock_multithreaded): Renamed from
44896         glthread_rwlock_rdlock. Return error code.
44897         (glthread_rwlock_wrlock_multithreaded): Renamed from
44898         glthread_rwlock_wrlock. Return error code.
44899         (glthread_rwlock_unlock_multithreaded): Renamed from
44900         glthread_rwlock_unlock. Return error code.
44901         (glthread_rwlock_destroy_multithreaded): Renamed from
44902         glthread_rwlock_destroy. Return error code.
44903         (glthread_recursive_lock_init_multithreaded): Renamed from
44904         glthread_recursive_lock_init. Return error code.
44905         (glthread_recursive_lock_lock_multithreaded): Renamed from
44906         glthread_recursive_lock_lock. Return error code.
44907         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44908         glthread_recursive_lock_unlock. Return error code.
44909         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44910         glthread_recursive_lock_destroy. Return error code.
44911         (glthread_once_call): Make static.
44912         (glthread_once_multithreaded): Renamed from glthread_once.
44913         * lib/tls.h: Include <errno.h>.
44914         (glthread_tls_key_init): New macro/function.
44915         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44916         (glthread_tls_set): New macro/function.
44917         (gl_tls_set): Define as wrapper around glthread_tls_set.
44918         (glthread_tls_key_destroy): New macro/function.
44919         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44920         Update function declarations.
44921         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44922         glthread_tls_get.
44923         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44924
44925 2008-08-04  Eric Blake  <ebb9@byu.net>
44926
44927         gnumakefile: use space, not TAB, outside of targets
44928         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44929
44930 2008-08-02  Jim Meyering  <meyering@redhat.com>
44931
44932         getdate.y: avoid locale-dependent date parsing failure
44933         In Turkish locales, getdate would fail to recognize keywords
44934         containing a lowercase "i".  The solution is not to rely on
44935         locale-sensitive case-conversion.
44936         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44937         (lookup_word): Use c_toupper in place of toupper.
44938         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44939         Reported by Vefa Bicakci <bicave@superonline.com> in
44940         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44941         * modules/getdate (Depends-on): Add c-ctype.
44942
44943 2008-08-02  Bruno Haible  <bruno@clisp.org>
44944
44945         * gnulib-tool (func_import): When updating or creating a .gitignore
44946         file, prepend each added line with a slash, and ignore leading slashes
44947         from the existing lines.
44948         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44949
44950 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44951
44952         Portability fix for GNU make 3.79.1.
44953         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44954         versions do not understand.
44955
44956 2008-08-01  Bruno Haible  <bruno@clisp.org>
44957
44958         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44959         * tests/test-isnanf.h (zero): New variable.
44960         (main): Avoid literal -0.0f.
44961         * tests/test-isnand.h (zero): New variable.
44962         (main): Avoid literal -0.0.
44963         * tests/test-isnanl.h (zero): New variable.
44964         (main): Avoid literal -0.0L.
44965         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44966         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44967         -0.0, -0.0L.
44968         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44969         (test_signbitd): Avoid literal -0.0.
44970         (test_signbitl): Avoid literal -0.0L.
44971         * tests/test-ceilf1.c (zero): New variable.
44972         (main): Avoid literal -0.0f.
44973         * tests/test-ceill.c (zero): New variable.
44974         (main): Avoid literal -0.0L.
44975         * tests/test-floorf1.c (zero): New variable.
44976         (main): Avoid literal -0.0f.
44977         * tests/test-floorl.c (zero): New variable.
44978         (main): Avoid literal -0.0L.
44979         * tests/test-roundf1.c (zero): New variable.
44980         (main): Avoid literal -0.0f.
44981         * tests/test-round1.c (zero): New variable.
44982         (main): Avoid literal -0.0.
44983         * tests/test-roundl.c (zero): New variable.
44984         (main): Avoid literal -0.0L.
44985         * tests/test-truncf1.c (zero): New variable.
44986         (main): Avoid literal -0.0f.
44987         * tests/test-trunc1.c (zero): New variable.
44988         (main): Avoid literal -0.0.
44989         * tests/test-truncl.c (zero): New variable.
44990         (main): Avoid literal -0.0L.
44991         * tests/test-frexp.c (zero): New variable.
44992         (main): Avoid literal -0.0.
44993         * tests/test-frexpl.c (zero): New variable.
44994         (main): Avoid literal -0.0L.
44995         * tests/test-ldexpl.c (zero): New variable.
44996         (main): Avoid literal -0.0L.
44997         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44998         (zerod, zerol): New variables.
44999         (test_function): Avoid literals -0.0, -0.0L.
45000         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45001         (zerod, zerol): New variables.
45002         (test_function): Avoid literals -0.0, -0.0L.
45003         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45004         (zerod, zerol): New variables.
45005         (test_function): Avoid literals -0.0, -0.0L.
45006         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45007         (zerod, zerol): New variables.
45008         (test_function): Avoid literals -0.0, -0.0L.
45009         * tests/test-strtod.c (zero): New variable.
45010         (main): Avoid literal -0.0.
45011         Reported by Jonathan C. Patschke <jp@centtech.com>.
45012
45013 2008-07-31  Jim Meyering  <meyering@redhat.com>
45014
45015         sha256.h: correct definition of SHA224_DIGEST_SIZE
45016         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45017         Reported by Paulie Pena IV <paulie4@gmail.com>.
45018         Define as 224 / 8, rather than as a literal.
45019         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45020         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45021         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45022
45023 2008-07-31  Bruno Haible  <bruno@clisp.org>
45024
45025         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45026         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45027         Reported by Jonathan Patschke <jp@centtech.com>.
45028
45029 2008-07-31  Bruno Haible  <bruno@clisp.org>
45030
45031         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45032         Reported by Paolo Bonzini <bonzini@gnu.org>.
45033
45034 2008-07-30  Eric Blake  <ebb9@byu.net>
45035
45036         test-strtod: allow compilation without -lm
45037         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45038         Reported by Dennis Clarke <blastwave@gmail.com>.
45039
45040 2008-07-28  Jim Meyering  <meyering@redhat.com>
45041
45042         bootstrap: work also when there are no .po files in po/
45043         * build-aux/bootstrap (update_po_files): Complete the change
45044         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45045
45046 2008-07-27  Jim Meyering  <meyering@redhat.com>
45047
45048         * users.txt: Add zile.
45049
45050 2008-07-26  Ben Pfaff  <blp@gnu.org>
45051
45052         Add missing dependencies on new m4/exponent[fdl].m4 files.
45053         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45054         * modules/isnand-nolibm: Add m4/exponentd.m4.
45055         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45056         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45057         m4/isnan[fdl].m4, because the macros actually used moved.
45058         Reported by Jim Meyering.
45059
45060 2008-07-14  Ben Pfaff  <blp@gnu.org>
45061
45062         Add isinf module.
45063         * lib/isinf.c: New file.
45064         * lib/math.in.h: Define isinf macro if we have decided to replace
45065         it.
45066         * m4/isinf.m4: New file.
45067         * m4/math_h.m4: Initialize and substitute variables for isinf
45068         module.
45069         * modules/isinf: New file.
45070         * modules/isinf-tests: New file.
45071         * modules/math: Add substitutions for new module.
45072         * tests/test-isinf.c: New file.
45073         * doc/posix-functions/isinf.texi: Mention new module.
45074         * MODULES.html.sh: Mention new module.
45075
45076 2008-07-14  Ben Pfaff  <blp@gnu.org>
45077
45078         Factor out some macros for use by additional modules.
45079         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45080         exponentf.m4.
45081         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45082         exponentd.m4.
45083         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45084         file exponentl.m4.
45085         * m4/exponentf.m4: New file.
45086         * m4/exponentd.m4: New file.
45087         * m4/exponentl.m4: New file.
45088         * modules/isnanf: Use new file m4/exponentf.m4.
45089         * modules/isnand: Use new file m4/exponentd.m4.
45090         * modules/isnanl: Use new file m4/exponentl.m4.
45091
45092 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45093
45094         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45095         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45096         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45097         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45098
45099         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45100         readlink on platforms without PATH_MAX.
45101
45102 2008-07-21  Eric Blake  <ebb9@byu.net>
45103
45104         Warn, not fail, on stale version.
45105         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45106
45107         Don't allow installation with stale devel version number.
45108         * top/GNUmakefile (_is-install-target): New macro.
45109         (_curr-ver): Forbid installation with stale version number.
45110
45111 2008-07-20  Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45114         TESTS_ENVIRONMENT.
45115         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45116
45117 2008-07-20  Bruno Haible  <bruno@clisp.org>
45118
45119         * lib/c-stack.h (c_stack_action): Add documentation.
45120         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45121
45122 2008-07-20  Bruno Haible  <bruno@clisp.org>
45123
45124         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45125         * modules/readlink (License): Likewise.
45126
45127 2008-07-17  Eric Blake  <ebb9@byu.net>
45128
45129         * modules/c-stack (Link): Fix typo.
45130
45131         Make c-stack use libsigsegv, when available.
45132         * modules/c-stack (Depends-on): Add libsigsegv.
45133         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45134         needed.
45135         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45136         (segv_handler, overflow_handler, c_stack_action)
45137         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45138         implementation when libsigsegv is available, but only when using
45139         the library is necessary.
45140         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45141         comment, explaining why XSI check fails on Linux.
45142         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45143         * tests/test-c-stack2.sh: Tweak skip message.
45144         * NEWS: Document new link-time requirements.
45145
45146 2008-07-16  Eric Blake  <ebb9@byu.net>
45147
45148         c-stack: Expose false positives when not using libsigsegv.
45149         * modules/c-stack-tests (Files): Expand test.
45150         * tests/test-c-stack.c (main): Add means to conditionally trigger
45151         non-overflow SIGSEGV.
45152         * tests/test-c-stack2.sh: New file.
45153
45154 2008-07-14  Bruno Haible  <bruno@clisp.org>
45155
45156         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45157         Reported by Eric Blake.
45158
45159 2008-07-14  Sam Steingold  <sds@gnu.org>
45160             Bruno Haible  <bruno@clisp.org>
45161
45162         New module libsigsegv.
45163         * modules/libsigsegv: New file.
45164         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45165         modifications.
45166         * MODULES.html.sh (Signal handling): New section.
45167
45168 2008-07-14  Bruno Haible  <bruno@clisp.org>
45169
45170         * modules/unictype/ctype-* (Description): Add the word "function".
45171         Improves the resulting doc in MODULES.html.
45172
45173 2008-07-12  Ben Pfaff  <blp@gnu.org>
45174
45175         Add longlong module.
45176         * modules/longlong: New file.
45177
45178 2008-07-12  Bruno Haible  <bruno@clisp.org>
45179
45180         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45181         to empty.
45182
45183 2008-07-10  Ben Pfaff  <blp@gnu.org>
45184
45185         Add isnan module.
45186         * doc/posix-functions/isnan.texi: Mention new module.
45187         * lib/math.in.h: Define isnan macro if we have decided to replace
45188         it.
45189         * m4/isnan.m4: New file.
45190         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45191         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45192         also.
45193         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45194         redundancy.
45195         * m4/math_h.m4: Initialize and substitute variables for isnan
45196         module.
45197         * modules/isnan: New file.
45198         * modules/isnan-tests: New file.
45199         * modules/math: Add substitutions for new module.
45200         * tests/test-isnan.c: New file.
45201         * MODULES.html.sh: Mention new module.
45202
45203 2008-07-10  Ben Pfaff  <blp@gnu.org>
45204
45205         Add isnanf module.
45206         * lib/isnanf.m4: New file.
45207         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45208         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45209         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45210         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45211         * modules/isnanf: New file.
45212         * modules/isnanf-tests: New file.
45213         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45214         files.
45215         * tests/test-isnanf-nolibm.c: factored most of its contents into
45216         new file tests/test-isnanf.h.
45217         * tests/test-isnanf.h: New file.
45218         * tests/test-isnanf.c: New file.
45219         * MODULES.html.sh: Mention new module.
45220         * doc/glibc-functions/isnanf.texi: Mention new module.
45221
45222 2008-07-10  Ben Pfaff  <blp@gnu.org>
45223
45224         Add isnand module.
45225         * lib/isnand.h: New file.
45226         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45227         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45228         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45229         functionality also.
45230         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45231         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45232         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45233         * modules/isnand: New file.
45234         * modules/isnand-tests: New file.
45235         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45236         files.
45237         * tests/test-isnand-nolibm.c: factored most of its contents into
45238         new file tests/test-isnand.h.
45239         * tests/test-isnand.h: New file.
45240         * tests/test-isnand.c: New file.
45241         * MODULES.html.sh: Mention new module.
45242
45243 2008-07-10  Ben Pfaff  <blp@gnu.org>
45244
45245         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45246         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45247         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45248         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45249         * modules/isnanf-nolibm: Update references to renamed files.
45250         * modules/isnand-nolibm: Likewise.
45251         * modules/isnanf-nolibm-tests: Likewise.
45252         * modules/isnand-nolibm-tests: Likewise.
45253         * lib/frexp.c: Likewise.
45254         * lib/isfinite.c: Likewise.
45255         * lib/signbitd.c: Likewise.
45256         * lib/signbitf.c: Likewise.
45257         * lib/vasnprintf.c: Likewise.
45258         * tests/test-ceilf1.c: Likewise.
45259         * tests/test-ceilf2.c: Likewise.
45260         * tests/test-floorf1.c: Likewise.
45261         * tests/test-floorf2.c: Likewise.
45262         * tests/test-frexp.c: Likewise.
45263         * tests/test-round1.c: Likewise.
45264         * tests/test-round2.c: Likewise.
45265         * tests/test-roundf1.c: Likewise.
45266         * tests/test-strtod.c: Likewise.
45267         * tests/test-trunc1.c: Likewise.
45268         * tests/test-trunc2.c: Likewise.
45269         * tests/test-truncf1.c: Likewise.
45270         * tests/test-truncf2.c: Likewise.
45271         * NEWS: Mention the renamed header files.
45272
45273 2008-07-11  Jim Meyering  <meyering@redhat.com>
45274
45275         vc-list-files: make the last-resort awk code more portable
45276         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45277         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45278         does not support it.
45279
45280 2008-07-10  Eric Blake  <ebb9@byu.net>
45281
45282         Work with tar's bootstrap.
45283         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45284         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45285         an m4 comment.
45286
45287 2008-07-09  Jim Meyering  <meyering@redhat.com>
45288
45289         posix-shell.m4: fix typo that made this test malfunction
45290         * m4/posix-shell.m4: Remove capitalization in variable name.
45291
45292 2008-07-08  Bruno Haible  <bruno@clisp.org>
45293
45294         * m4/onceonly.m4: Update comments.
45295         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45296
45297 2008-07-04  Jim Meyering  <meyering@redhat.com>
45298
45299         * users.txt: Add vc-dwim.
45300         (bison, coreutils): Use the gitweb URL.
45301
45302 2008-07-03  Jim Meyering  <meyering@redhat.com>
45303
45304         * users.txt: Add libffcall.  From Sam Steingold.
45305
45306 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45307
45308         getdate.y: do not ignore TZ with relative day, month or year offset
45309         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45310         relative-date-handling, since otherwise, the latter would clobber the
45311         sole output (an updated Start value) of the tz-handling block.
45312         * tests/test-getdate.c: Tests for the fix
45313
45314 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45315
45316         Recognize 'foo_LIBRARIES += libgnu.a'.
45317         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45318         makefile snippet has already specified an installation location,
45319         also using '+='.
45320
45321 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45322
45323         getdate.y: factor out common actions
45324         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45325         Use them in place of open-coded actions.
45326
45327 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45328
45329         Add self-test for getdate module.
45330         * modules/getdate-tests: New file.
45331         * tests/test-getdate.c: New file.
45332
45333 2008-06-29  Bruno Haible  <bruno@clisp.org>
45334
45335         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45336         .gitignore.
45337         Reported by Sylvain Beucler <beuc@beuc.net>.
45338
45339 2008-06-29  Bruno Haible  <bruno@clisp.org>
45340
45341         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45342         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45343
45344 2008-06-29  Bruno Haible  <bruno@clisp.org>
45345
45346         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45347         EXTRA_DIST.
45348         Reported by Sylvain Beucler <beuc@beuc.net>.
45349
45350 2008-06-26  Jim Meyering  <meyering@redhat.com>
45351
45352         make several modules depend on the "open" module
45353         This provides slightly increased consistency when opening-for-write
45354         the name of a non-directory spelled with a trailing slash.
45355         * modules/chdir-safer: Likewise.
45356         * modules/chown: Likewise.
45357         * modules/clean-temp: Likewise.
45358         * modules/copy-file: Likewise.
45359         * modules/fchdir: Likewise.
45360         * modules/fcntl-safer: Likewise.
45361         * modules/pipe: Likewise.
45362         * modules/utime: Likewise.
45363         Prompted by Eric Blake and Bruno Haible.
45364
45365 2008-06-24  Andreas Schwab  <schwab@suse.de>
45366
45367         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45368         literals can be used as initializers for global variables.
45369
45370 2008-06-23  Eric Blake  <ebb9@byu.net>
45371
45372         Make gnulib-cache.m4 easier to diff.
45373         * gnulib-tool (func_import): Allow newlines when reading cached
45374         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45375
45376 2008-06-23  Bruno Haible  <bruno@clisp.org>
45377
45378         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45379         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45380         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45381         m4/signalblocking.m4.
45382         (gl_PREREQ_SIGACTION): Don't invoke it.
45383         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45384         gl_PREREQ_SIG_HANDLER_H.
45385         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45386         Don't check for sigaction here.
45387
45388 2008-06-23  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45391         (install_handlers): Don't set the SA_RESETHAND flag.
45392
45393 2008-06-23  Bruno Haible  <bruno@clisp.org>
45394
45395         * m4/sigaction.m4: Comment fixes.
45396         * lib/signal.in.h: Likewise.
45397
45398 2008-06-23  Eric Blake  <ebb9@byu.net>
45399
45400         Fix typo.
45401         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45402
45403         Avoid SA_ namespace.
45404         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45405         Reported by Ralf Wildenhues.
45406
45407         Avoid test failure due to SA_RESTORER.
45408         * tests/test-sigaction.c (SA_MASK): New macro.
45409         (main): Avoid failing due to extension flags being set.
45410         Reported by Jim Meyering.
45411
45412         Revert use of sig-handler.h in sigprocmask.c.
45413         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45414         it requires the existence of struct sigaction.
45415         * lib/sigprocmask.c (handler_t): Restore typedef.
45416         (rpl_signal, old_handlers): Use local type.
45417
45418 2008-06-22  Bruno Haible  <bruno@clisp.org>
45419
45420         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45421         conditionally.
45422         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45423
45424 2008-06-22  Bruno Haible  <bruno@clisp.org>
45425
45426         * doc/posix-functions/siginterrupt.texi: Move note.
45427
45428         * lib/signal.in.h (SA_RESTART): New macro.
45429         * lib/sigaction.c: Update comment.
45430
45431         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45432
45433         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45434         (gl_PREREQ_SIGPROCMASK): Invoke it.
45435         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45436
45437         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45438
45439         * lib/sigprocmask.c: Update a comment.
45440
45441 2008-06-21  Eric Blake  <ebb9@byu.net>
45442
45443         Use sigaction module rather than signal().
45444         * modules/c-stack (Depends-on): Add sigaction.
45445         * modules/fatal-signal (Depends-on): Likewise.
45446         * modules/nanosleep (Depends-on): Likewise.
45447         * modules/sigprocmask (Files): Add sig-handler.h.
45448         * modules/sigaction (Files): Likewise.
45449         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45450         Eggert.
45451         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45452         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45453         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45454         (init_fatal_signals): Likewise.
45455         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45456         (siginterrupt): Delete fallback.
45457         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45458         instead.
45459         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45460         siginterrupt.
45461
45462         New module sigaction, for mingw.
45463         * modules/sigaction: New module...
45464         * modules/sigaction-tests: ...and its test.
45465         * m4/sigaction.m4: New file.
45466         * lib/sigaction.c: Likewise.
45467         * tests/test-sigaction.c: Likewise.
45468         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45469         * modules/signal (Makefile.am): Likewise.
45470         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45471         needed.
45472         * doc/posix-headers/signal.texi (signal.h): Mention provided
45473         types.
45474         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45475         that sigaction is preferable.
45476         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45477         module.
45478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45479         sigaction.
45480
45481         Improve robustness of sigprocmask by overriding signal.
45482         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45483         is in use.
45484         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45485         (SIGKILL, SIGSTOP): Provide fallbacks.
45486         (rpl_signal): Implement.
45487         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45488         signal can be called inside handlers.
45489
45490         Fix nanosleep module on mingw.
45491         * modules/nanosleep (Depends-on): Add sys_select.
45492         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45493
45494         Fix licensing of sigprocmask.
45495         * modules/raise (License): Relicense as LGPL.
45496
45497 2008-06-21  Bruno Haible  <bruno@clisp.org>
45498
45499         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45500         result if it contains question marks.
45501         Reported by Michael Geng <linux@michaelgeng.de>.
45502
45503 2008-06-19  Bruno Haible  <bruno@clisp.org>
45504
45505         Fix CVS-ism.
45506         * doc/gnulib.texi: Include updated-stamp.texi.
45507         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45508         (updated-stamp.texi): New rule.
45509         (gnulib.info): Depend on it.
45510         * doc/.gitignore: Add updated-stamp.texi.
45511         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45512
45513 2008-06-19  Bruno Haible  <bruno@clisp.org>
45514
45515         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45516         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45517
45518 2008-06-19  Eric Blake  <ebb9@byu.net>
45519
45520         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45521         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45522         Reported by Stepan Kasal.
45523
45524 2008-06-18  Bruno Haible  <bruno@clisp.org>
45525
45526         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45527         Reported by Eric Blake.
45528
45529 2008-06-18  Eric Blake  <ebb9@byu.net>
45530
45531         Work around cygwin 1.5.25 strsignal bug.
45532         * tests/test-strsignal.c: Allow for const char *.
45533         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45534
45535 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45536
45537         * users.txt: Update URL to article and add author/date
45538         information.
45539
45540 2008-06-17  Bruno Haible  <bruno@clisp.org>
45541
45542         New macro gl_DISABLE_THREADS.
45543         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45544         if the user did not pass --enable-threads or --disable-threads option.
45545         (gl_DISABLE_THREADS): New macro.
45546         Reported by Eric Blake <ebb9@byu.net>.
45547
45548 2008-06-17  Bruno Haible  <bruno@clisp.org>
45549
45550         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45551         when the macro ignores it.
45552         Based on a patch by Eric Blake <ebb9@byu.net>.
45553
45554 2008-06-17  Bruno Haible  <bruno@clisp.org>
45555
45556         * modules/tls (License): Change to LGPLv2+.
45557         Reported by Eric Blake.
45558
45559 2008-06-17  Eric Blake  <ebb9@byu.net>
45560
45561         Simplify c-stack prerequisites.
45562         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45563         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45564         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45565         check.
45566         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45567         <sys/resource.h>.
45568
45569         Move c-stack test into testsuite.
45570         * modules/c-stack-tests: New file.
45571         * lib/c-stack.c [DEBUG]: Move test program...
45572         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45573         fail test if sigaltstack is lacking.
45574         * tests/test-c-stack.sh: New driver file.
45575
45576 2008-06-16  Eric Blake  <ebb9@byu.net>
45577
45578         Use raise module consistently.
45579         * modules/fatal-signal (Depends-on): Add raise.
45580         * modules/sigprocmask (Depends-on): Likewise.
45581         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45582         * lib/sigprocmask.c (sigprocmask): Likewise.
45583         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45584         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45585
45586         Fix compliance bug in sigpending.
45587         * lib/sigprocmask.c (sigpending): Return pending array via
45588         parameter, not return value.
45589
45590 2008-06-14  Eric Blake  <ebb9@byu.net>
45591
45592         Improve obstack-printf test code.
45593         * tests/test-obstack-printf.c (test_function): Fix comment, and
45594         simplify usage of obstack_* in macros.  Add a test for coverage.
45595         Reported by Bruno Haible.
45596
45597 2008-06-14  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45600         array size as a constant, not as a const variable.
45601         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45602         AC_USE_SYSTEM_EXTENSIONS.
45603         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45604         Test whether the obstack_printf function actually exists.
45605         * modules/obstack-printf (Depends-on): Add extensions.
45606         (Include): Remove obstack.h.
45607         * modules/obstack-printf-posix (Depends-on): Add extensions.
45608         (Include): Remove obstack.h.
45609
45610 2008-06-13  Eric Blake  <ebb9@byu.net>
45611
45612         Add obstack-printf and obstack-printf-posix modules.
45613         * modules/obstack-printf: New file.
45614         * modules/obstack-printf-posix: Likewise.
45615         * MODULES.html.sh (Misc): Mention them.
45616         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45617         Likewise.
45618         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45619         Likewise.
45620         * modules/stdio (Makefile.am): Accomodate new modules.
45621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45622         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45623         Declare.
45624         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45625         functions.
45626         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45627         (gl_REPLACE_OBSTACK_PRINTF): New macros
45628         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45629         * tests/test-obstack-printf.c: New file.
45630         * modules/obstack-printf-tests: Likewise.
45631         * modules/obstack-printf-posix-tests: Likewise.
45632
45633 2008-06-11  Bruno Haible  <bruno@clisp.org>
45634
45635         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45636         * lib/open.c: Include errno.h.
45637         (open): Fail when attempting to write to a file that has a trailing
45638         slash.
45639         * tests/test-open.c (main): Test against trailing slash bug.
45640         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45641
45642 2008-06-10  Bruno Haible  <bruno@clisp.org>
45643
45644         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45645         for $? to work inside the trap command, with various /bin/sh-s.
45646         * tests/test-vc-list-files-cvs.sh: Likewise.
45647
45648 2008-06-10  Bruno Haible  <bruno@clisp.org>
45649
45650         * lib/acl-internal.h: Don't include gettext.h here.
45651         * lib/set-mode-acl.c: Include gettext.h here.
45652         * lib/copy-acl.c: Likewise.
45653
45654 2008-06-10  Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45657         * lib/wait-process.c (wait_subprocess): Likewise.
45658         * lib/execute.h (execute): Add termsigp argument.
45659         * lib/execute.c (execute): Likewise.
45660         * lib/csharpcomp.c (compile_csharp_using_pnet,
45661         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45662         * lib/csharpexec.c (execute_csharp_using_pnet,
45663         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45664         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45665         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45666         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45667         is_jikes_present): Update.
45668         * lib/javaexec.c (execute_java_class): Update.
45669         * lib/javaversion.c (execute_and_read_line): Update.
45670         * NEWS: Document the changes.
45671         Reported by Eric Blake.
45672
45673 2008-06-10  Eric Blake  <ebb9@byu.net>
45674
45675         Add missing include.
45676         * tests/test-strstr.c (includes): Add <signal.h>.
45677         * tests/test-strcasestr.c (includes): Likewise.
45678         * tests/test-memmem.c (includes): Likewise.
45679
45680 2008-06-10  Bruno Haible  <bruno@clisp.org>
45681
45682         * lib/wait-process.c (wait_subprocess): Add an assertion.
45683
45684 2008-06-10  Bruno Haible  <bruno@clisp.org>
45685
45686         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45687
45688 2008-06-10  Bruno Haible  <bruno@clisp.org>
45689
45690         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45691         using alarm().
45692         * tests/test-strcasestr.c (main): Likewise.
45693         * tests/test-strstr.c (main): Likewise.
45694
45695 2008-06-09  Bruno Haible  <bruno@clisp.org>
45696
45697         Work around the Solaris 10 ACE ACLs ABI change.
45698         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45699         declare if ACL_NO_TRIVIAL is present.
45700         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45701         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45702         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45703         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45704         define if ACL_NO_TRIVIAL is present.
45705         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45706         and use the current ABI.
45707         (file_has_acl): Use same #if condition as elsewhere.
45708         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45709         in use, and use the current ABI.
45710         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45711         Reported by Jim Meyering.
45712
45713 2008-06-09  Eric Blake  <ebb9@byu.net>
45714
45715         Work around environments that (stupidly) ignore SIGALRM.
45716         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45717         before using alarm().
45718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45719         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45720         Reported by Ian Beckwith <ianb@erislabs.net>.
45721
45722         Produce autobuild blurb earlier in log.
45723         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45724
45725 2008-06-09  Jim Meyering  <meyering@redhat.com>
45726         and OndÅ™ej Vašík  <ovasik@redhat.com>
45727
45728         utimens.c: correct kernel bug work-around
45729         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45730         failure, not success, and the kernel bug we're trying to work
45731         around affects not just the utimensat call, but also the fallback
45732         futimens call.
45733         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45734         not success.
45735         [HAVE_FUTIMENS]: Use the same work-around, here.
45736
45737 2008-06-09  Jim Meyering  <meyering@redhat.com>
45738
45739         add more guards around definition of ACE_-related code
45740         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45741         ALLOW and ACE_OWNER are also defined.
45742
45743 2008-06-08  Bruno Haible  <bruno@clisp.org>
45744
45745         * lib/acl-internal.h: Add me as co-author.
45746         * lib/file-has-acl.c: Likewise.
45747         * lib/set-mode-acl.c: Likewise.
45748         * lib/copy-acl.c: Likewise.
45749
45750 2008-06-08  Bruno Haible  <bruno@clisp.org>
45751
45752         Add support for AIX ACLs.
45753         * lib/acl-internal.h (acl_nontrivial): New declaration.
45754         * lib/file-has-acl.c (acl_nontrivial): New function.
45755         (file_has_acl): Add implementation using AIX 4 ACL API.
45756         * lib/set-mode-acl.c (qset_acl): Likewise.
45757         * lib/copy-acl.c (qcopy_acl): Likewise.
45758
45759 2008-06-08  Bruno Haible  <bruno@clisp.org>
45760
45761         Add support for HP-UX ACLs.
45762         * lib/acl-internal.h (acl_nontrivial): New declaration.
45763         * lib/file-has-acl.c (acl_nontrivial): New function.
45764         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45765         * lib/set-mode-acl.c (qset_acl): Likewise.
45766         * lib/copy-acl.c (qcopy_acl): Likewise.
45767
45768 2008-06-08  Bruno Haible  <bruno@clisp.org>
45769
45770         Add support for Cygwin ACLs.
45771         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45772         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45773         the chmod_or_fchmod call.
45774         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45775
45776 2008-06-08  Bruno Haible  <bruno@clisp.org>
45777
45778         Fix bug with setuid modes in Solaris 10+ code.
45779         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45780         succeeded, when the mode contains some special bits.
45781
45782 2008-06-08  Bruno Haible  <bruno@clisp.org>
45783
45784         Add support for Solaris 7..10 ACLs.
45785         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45786         declarations.
45787         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45788         functions.
45789         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45790         * lib/set-mode-acl.c (qset_acl): Likewise.
45791         * lib/copy-acl.c (qcopy_acl): Likewise.
45792
45793 2008-06-08  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45796         declaration.
45797         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45798         (acl_access_nontrivial): Remove MacOS X case.
45799         (file_has_acl): Use acl_extended_nontrivial.
45800         * lib/copy-acl.c (qcopy_acl): Likewise.
45801
45802 2008-06-08  Bruno Haible  <bruno@clisp.org>
45803
45804         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45805
45806 2008-06-08  Jim Meyering  <meyering@redhat.com>
45807
45808         * modules/acl (Maintainer): Add Bruno Haible.
45809
45810 2008-06-07  Bruno Haible  <bruno@clisp.org>
45811
45812         Improve support for Tru64 ACLs.
45813         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45814         ACL on OSF/1.
45815
45816 2008-06-07  Bruno Haible  <bruno@clisp.org>
45817
45818         Add support for MacOS X ACLs.
45819         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45820         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45821         * lib/set-mode-acl.c (qset_acl): Likewise.
45822         * lib/copy-acl.c (qcopy_acl): Likewise.
45823
45824 2008-06-07  Bruno Haible  <bruno@clisp.org>
45825
45826         Fix memory leak introduced on 2008-05-22.
45827         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45828         use.
45829
45830 2008-06-07  Bruno Haible  <bruno@clisp.org>
45831
45832         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45833         to construct an empty ACL.
45834
45835 2008-06-07  Bruno Haible  <bruno@clisp.org>
45836
45837         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45838         precisely.
45839         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45840
45841 2008-06-07  Bruno Haible  <bruno@clisp.org>
45842
45843         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45844         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45845
45846 2008-06-07  Bruno Haible  <bruno@clisp.org>
45847
45848         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45849         regardless of POSIX.
45850         * doc/posix-functions/_longjmp.texi: Likewise.
45851         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45852         SystemV platform in this case.
45853
45854 2008-06-06  Eric Blake  <ebb9@byu.net>
45855
45856         Document abort() bugs.
45857         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45858
45859         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45860         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45861         sigsetjmp.
45862         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45863         siglongjmp, but only as a macro.
45864         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45865         is obsolete.
45866         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45867
45868         Tweak documentation to cover cygwin argz bugs.
45869         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45870         argz bug fix; no code change needed since no cygwin releases
45871         occurred between the last fix and the bug being tested.
45872         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45873         module and recently fixed cygwin bugs.
45874         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45875         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45876         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45877         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45878         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45879         Likewise.
45880         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45881         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45882         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45883         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45884         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45885         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45886         Likewise.
45887
45888         Avoid gcc warning on cygwin.
45889         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45890         !ACL_NO_TRIVIAL]: Avoid unused variable.
45891
45892 2008-06-05  Eric Blake  <ebb9@byu.net>
45893
45894         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45895         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45896         git-version-gen fails to come up with a version.
45897         Reported by Simon Josefsson.
45898
45899 2008-06-05  Jim Meyering  <meyering@redhat.com>
45900             Paul Eggert  <eggert@cs.ucla.edu>
45901
45902         utimens.c: work around a probable Linux kernel bug
45903         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45904         appears to be a kernel bug that causes utimensat to return 280
45905         instead of 0, indicating success.
45906
45907 2008-06-04  Bruno Haible  <bruno@clisp.org>
45908
45909         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45910         2008-06-01 commit.
45911
45912 2008-06-04  Bruno Haible  <bruno@clisp.org>
45913
45914         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45915         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45916         (file_has_acl): Use it. Save errno afterwards.
45917         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45918
45919 2008-06-03  Bruno Haible  <bruno@clisp.org>
45920
45921         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45922         draft code. Simplify #ifs.
45923         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45924         Put Solaris code after POSIX-draft code. Fix comments regarding
45925         Solaris 10, HP-UX. Mention Cygwin.
45926         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45927
45928 2008-06-03  Eric Blake  <ebb9@byu.net>
45929
45930         Provide fallback for older kernels.
45931         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45932         Provide runtime fallback if kernel lacks support.
45933         Reported by Mike Frysinger.
45934
45935 2008-06-02  Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45938         it exists.
45939
45940 2008-06-02  Bruno Haible  <bruno@clisp.org>
45941
45942         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45943         * lib/copy-acl.c (qcopy_acl): Update comment.
45944
45945 2008-06-02  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45948         like ACL APIs.
45949
45950 2008-06-02  Bruno Haible  <bruno@clisp.org>
45951
45952         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45953         * tests/test-set-mode-acl.sh: Likewise.
45954         * tests/test-copy-acl.sh: Likewise.
45955         * tests/test-copy-file.sh: Likewise.
45956
45957 2008-06-02  Bruno Haible  <bruno@clisp.org>
45958
45959         * tests/test-file-has-acl.sh: Remove unused code.
45960
45961 2008-06-01  Bruno Haible  <bruno@clisp.org>
45962
45963         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45964         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45965         messages.
45966         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45967
45968 2008-06-01  Bruno Haible  <bruno@clisp.org>
45969
45970         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45971         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45972         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45973         APIs.
45974         * modules/acl-tests (configure.ac): Remove tests now contained in
45975         m4/acl.m4.
45976
45977 2008-06-02  Jim Meyering  <meyering@redhat.com>
45978
45979         announce-gen: use a better key-server host name
45980         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45981         it may be more consistently reliable.  Suggested by Werner Koch
45982         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45983
45984 2008-06-01  Bruno Haible  <bruno@clisp.org>
45985
45986         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45987         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45988
45989 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45990
45991         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45992
45993 2008-06-01  Bruno Haible  <bruno@clisp.org>
45994
45995         New ACL tests.
45996         * tests/test-file-has-acl.sh: New file.
45997         * tests/test-file-has-acl.c: New file.
45998         * tests/test-set-mode-acl.sh: New file.
45999         * tests/test-set-mode-acl.c: New file.
46000         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46001         * tests/test-copy-acl.c: New file.
46002         * modules/acl-tests: New file, based on modules/copy-file-tests.
46003         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46004         (Depends-on): Add acl-tests.
46005         (configure.ac): Remove checks.
46006         (Makefile.am): Don't create test-sameacls program here any more.
46007
46008 2008-06-01  Bruno Haible  <bruno@clisp.org>
46009
46010         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46011         * tests/test-sameacls.c: Include progname.h.
46012         (main): Invoke set_program_name. Portability fixes for MacOS X,
46013         Solaris, HP-UX.
46014
46015 2008-06-01  Bruno Haible  <bruno@clisp.org>
46016
46017         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46018         function.
46019         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46020
46021 2008-06-01  Bruno Haible  <bruno@clisp.org>
46022
46023         * modules/rpmatch (Depends-on): Add strdup.
46024
46025 2008-06-01  Bruno Haible  <bruno@clisp.org>
46026
46027         * lib/pipe.c: Include unistd-safer.h.
46028         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46029         * modules/pipe (Depends-on): Add unistd-safer.
46030
46031 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46032
46033         * modules/autobuild (configure.ac): Call AB_INIT.
46034
46035 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46036
46037         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46038         Suggested by Bruno Haible <bruno@clisp.org>.
46039
46040 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46041
46042         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46043         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46044         <bruno@clisp.org>.
46045
46046 2008-05-29  Eric Blake  <ebb9@byu.net>
46047
46048         Prefer new POSIX 200x interfaces over futimesat.
46049         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46050         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46051         when available.
46052         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46053
46054 2008-05-28  Bruno Haible  <bruno@clisp.org>
46055
46056         * modules/stpcpy (License): Change to LGPLv2+.
46057         Requested by David Lutterkort <dlutter@redhat.com>.
46058
46059 2008-05-27  Bruno Haible  <bruno@clisp.org>
46060
46061         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46062         current mingw.
46063         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46064
46065 2008-05-27  Bruno Haible  <bruno@clisp.org>
46066
46067         * modules/iconv_open (Link): New section, from module 'iconv'.
46068         * modules/striconv (Link): Likewise.
46069         * modules/striconveh (Link): Likewise.
46070         * modules/xstriconv (Link): Likewise.
46071         * modules/unicodeio (Link): Likewise.
46072         * modules/propername (Link): Likewise.
46073         Reported by Jim Meyering.
46074
46075 2008-05-26  Jim Meyering  <meyering@redhat.com>
46076
46077         sha256: do not artificially restrict buffer length to be < 2^32
46078         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46079         uint32_t to size_t.
46080         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46081         to match.
46082
46083         avoid unaligned access errors, e.g., on sparc
46084         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46085         direct access through a possibly-unaligned uint64* pointer.
46086         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46087         direct access through a possibly-unaligned uint32* pointer.
46088         Prompted by this patch from Tom "spot" Callaway:
46089         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46090
46091         sha512.c: fix typo in comment
46092         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46093
46094 2008-05-25  Bruno Haible  <bruno@clisp.org>
46095
46096         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46097         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46098         (Makefile.am): Update lib_SOURCES.
46099
46100 2008-05-25  Bruno Haible  <bruno@clisp.org>
46101
46102         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46103
46104 2008-05-25  Jim Meyering  <meyering@redhat.com>
46105
46106         useless-if-before-free: freed expr may have white-space differences
46107         * build-aux/useless-if-before-free: Recognize cases in which the
46108         freed expression differs from the tested one in embedded white
46109         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46110         $1 was used, so we can't make any regexp shy.  Improved tests now
46111         detect this.
46112
46113         useless-if-before-free: accept white space in the expression.
46114         * build-aux/useless-if-before-free: For now, any white space
46115         in the expression must be identical in the free argument.
46116
46117         useless-if-before-free: efficiency tweak
46118         * build-aux/useless-if-before-free: Make the expression-matching
46119         regexp "shy".
46120         Make the *outer* regexp shy, not the expr-matching one.
46121
46122         update code-in-comment to accept cast of free arg
46123         * build-aux/useless-if-before-free: Update regexp.
46124
46125 2008-05-25  Bruno Haible  <bruno@clisp.org>
46126
46127         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46128         * modules/copy-file-tests (Files, Makefile.am): Update.
46129         * tests/test-copy-file.c (func_test_copy): Update.
46130
46131 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46132
46133         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46134
46135 2008-05-23  Bruno Haible  <bruno@clisp.org>
46136
46137         Improve support for ACLs on OSF/1.
46138         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46139         Remove fallback for unknown flavors of ACLs.
46140
46141 2008-05-22  Bruno Haible  <bruno@clisp.org>
46142
46143         Add support for ACLs on OSF/1.
46144         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46145         replacements.
46146         (acl_free_text): New macro fallback.
46147         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46148         acl_free.
46149         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46150         acl_free_text function. Require AC_C_INLINE.
46151
46152 2008-05-22  Bruno Haible  <bruno@clisp.org>
46153
46154         Make copy_acl work on MacOS X 10.5.
46155         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46156         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46157         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46158         If MODE_INSIDE_ACL, don't assume that every system has the same text
46159         representation for ACLs as FreeBSD.
46160         * lib/copy-acl.c (copy_acl): Add support for platforms with
46161         !MODE_INSIDE_ACL.
46162         * lib/file-has-acl.c (file_has_acl): Likewise.
46163         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46164         FreeBSD, MacOS X, or IRIX, respectively.
46165
46166 2008-05-22  Bruno Haible  <bruno@clisp.org>
46167
46168         * lib/acl.h: Don't include <sys/acl.h>.
46169         (GETACLCNT): Move fallback to lib/acl-internal.h.
46170         * lib/acl-internal.h: Include <sys/acl.h> here.
46171         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46172
46173 2008-05-22  Bruno Haible  <bruno@clisp.org>
46174
46175         Split off copy_acl function to separate file.
46176         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46177         * lib/acl.c (copy_acl): Moved function to separate file.
46178         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46179         * modules/acl (Files): Add lib/copy-acl.c.
46180         (Makefiles.am): Augment lib_SOURCES.
46181
46182 2008-05-22  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/copy-file-tests: New file.
46185         * tests/test-copy-file.sh: New file.
46186         * tests/test-copy-file.c: New file.
46187         * tests/test-copy-file-sameacls.c: New file.
46188
46189 2008-05-22  Eric Blake  <ebb9@byu.net>
46190
46191         Avoid gcc warning.
46192         * tests/test-memcmp.c (main): Pass NULL indirectly.
46193
46194 2008-05-21  Bruno Haible  <bruno@clisp.org>
46195
46196         Add reference doc about ACLs.
46197         * doc/acl-resources.txt: New file.
46198         * doc/acl-cygwin.txt: New file.
46199
46200 2008-05-21  Bruno Haible  <bruno@clisp.org>
46201
46202         Avoid one more warning from gcc.
46203         * lib/vasnprintf.c (IF_LINT): Update comments.
46204         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46205
46206 2008-05-21  Jim Meyering  <meyering@redhat.com>
46207
46208         avoid a warning from gcc
46209         * lib/vasnprintf.c (IF_LINT): Define.
46210         (scale10_round_decimal_long_double):
46211         Use it to avoid a "may be used uninitialized" warning.
46212         (scale10_round_decimal_double): Likewise.
46213
46214 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46215
46216         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46217         declared.
46218
46219 2008-05-20  Bruno Haible  <bruno@clisp.org>
46220
46221         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46222         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46223
46224 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46225
46226         * modules/memcmp-tests: New file.
46227         * tests/test-memcmp.c: New file.
46228
46229 2008-05-19  Bruno Haible  <bruno@clisp.org>
46230
46231         * modules/propername (Notice, configure.ac): Put quoted "..." into
46232         --keyword option.
46233         * lib/propername.h: Update comments accordingly.
46234         Reported by Eric Blake.
46235
46236 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46237
46238         * modules/getpass-gnu (Depends-on): Add fseeko.
46239
46240 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46241
46242         * modules/base64-tests: New file.
46243
46244 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46245
46246         * lib/base64.c (base64_decode_ctx): If a decode context structure
46247         was passed in use it to ignore newlines.  If a context structure
46248         was _not_ passed in, continue to treat newlines as garbage (this
46249         is the historical behavior).  Formerly base64_decode.
46250         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46251         takes a decode context structure.
46252         * lib/base64.h (base64_decode): Macro for four-argument calls.
46253         (base64_decode_alloc): Likewise.
46254         * lib/base64.c (base64_decode_ctx): If a decode context structure
46255         was passed in use it to ignore newlines.  If a context structure
46256         was _not_ passed in, continue to treat newlines as garbage (this
46257         is the historical behavior).  Formerly base64_decode.
46258         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46259         takes a decode context structure.
46260         * lib/base64.h (base64_decode): Macro for four-argument calls.
46261         (base64_decode_alloc): Likewise.
46262
46263 2008-05-19  Jim Meyering  <meyering@redhat.com>
46264
46265         avoid a warning from gcc
46266         * lib/trim.c (IF_LINT): Define.
46267         (trim2): Use it to avoid a "may be used uninitialized" warning.
46268
46269         Fix doc typo.
46270         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46271
46272 2008-05-19  Bruno Haible  <bruno@clisp.org>
46273
46274         * doc/glibc-functions/getpass.texi: Document limits of other
46275         implementations.
46276
46277 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46278             Bruno Haible <bruno@clisp.org>
46279
46280         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46281
46282 2008-05-18  Bruno Haible  <bruno@clisp.org>
46283
46284         * modules/propername: New file, from GNU gettext.
46285         * lib/propername.h: New file, from GNU gettext.
46286         * lib/propername.c: New file, from GNU gettext.
46287         * MODULES.html.sh (Internationalization functions): Add propername.
46288
46289 2008-05-16  Jim Meyering  <meyering@redhat.com>
46290             Bruno Haible  <bruno@clisp.org>
46291
46292         Avoid some warnings from "gcc -Wshadow".
46293         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46294
46295 2008-05-15  Eric Blake  <ebb9@byu.net>
46296
46297         Extend previous patch to cygwin 1.7.0.
46298         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46299         fast implementation in cygwin >= 1.7.0.
46300         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46302
46303 2008-05-15  Bruno Haible  <bruno@clisp.org>
46304
46305         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46306         implementation in glibc >= 2.9.
46307         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46309
46310 2008-05-15  Bruno Haible  <bruno@clisp.org>
46311
46312         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46313         (Unicode string functions): Add unilbrk/*.
46314         Reported by Karl Berry.
46315
46316 2008-05-15  Eric Blake  <ebb9@byu.net>
46317
46318         Fix violation of <stdbool.h> replacement in regex.
46319         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46320         * lib/regexec.c (re_search_internal): Likewise.
46321         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46322
46323 2008-05-15  Jim Meyering  <meyering@redhat.com>
46324
46325         avoid distracting test output when git or cvs is not found
46326         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46327         * tests/test-vc-list-files-git.sh: Likewise.
46328
46329 2008-05-15  Eric Blake  <ebb9@byu.net>
46330
46331         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46332         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46333         glibc version.
46334         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46335         * doc/posix-functions/strstr.texi (strstr): Likewise.
46336         * lib/str-two-way.h (MAX): Sychronize with glibc.
46337
46338 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46339
46340         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46341         opr.ctx_type.
46342         (calc_first): Initialize constraint field.
46343         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46344         Fix grammar.
46345         (duplicate_node): Merge constraint field for all node types.
46346         (calc_eclosure_iter): Look at constraint field for all node types.
46347         * lib/regex_internal.c (create_cd_newstate): Don't look at
46348         opr.ctx_type.
46349
46350 2008-05-14  Bruno Haible  <bruno@clisp.org>
46351
46352         Help GCC to do better code generation.
46353         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46354         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46355         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46356         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46357         Declare with attribute 'malloc' if supported.
46358
46359 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46360
46361         use "echo STR|wc -c" rather than unportable "expr length STR"
46362         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46363         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46364
46365 2008-05-14  Jim Meyering  <meyering@redhat.com>
46366
46367         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46368         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46369         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46370         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46371         via Collin Lasse.
46372
46373 2008-05-14  Eric Blake  <ebb9@byu.net>
46374
46375         Avoid quadratic growth in gl_LIBSOURCES.
46376         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46377         Suggested by Bruno Haible.
46378
46379         Test xmemdup0.
46380         * modules/xmemdup0-tests: New file.
46381         * tests/test-xmemdup0.c: Likewise.
46382
46383 2008-05-13  Eric Blake  <ebb9@byu.net>
46384
46385         Split xmemdup0 into its own module.
46386         * modules/xmemdup0: New file.
46387         * lib/xmemdup0.h: Likewise.
46388         * lib/xmemdup0.c: Likewise.
46389         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46390         * lib/xalloc.h (xmemdup0): Remove.
46391         * lib/xmalloc.c (xmemdup0): Likewise.
46392
46393 2008-05-13  Eric Blake  <ebb9@byu.net>
46394             Bruno Haible  <bruno@clisp.org>
46395
46396         Reduce number of forks required during autoconf.
46397         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46398         and gl_LIBSOURCES_DIR.
46399         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46400         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46401         m4_syscmd per file.
46402         <m4_foreach_w>: Move...
46403         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46404
46405 2008-05-13  Eric Blake  <ebb9@byu.net>
46406
46407         * gnulib-tool: Fix various comment typos.
46408
46409 2008-05-12  Bruno Haible  <bruno@clisp.org>
46410
46411         Tailor the linebreaking algorithm.
46412         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46413
46414 2008-05-12  Bruno Haible  <bruno@clisp.org>
46415
46416         Update to Unicode 5.0.0.
46417         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46418         LBP_JV, LBP_JT. Redistribute values.
46419         (unilbrk_table): Change size.
46420         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46421         Unicode TR#14 rev. 22.
46422         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46423         LBP_JV, LBP_JT. Redistribute values.
46424         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46425         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46426         Update.
46427         * lib/unilbrk/lbrkprop1.h: Regenerated.
46428         * lib/unilbrk/lbrkprop2.h: Regenerated.
46429         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46430         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46431         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46432         Likewise.
46433         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46434         Likewise.
46435         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46436         result.
46437         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46438         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46439         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46440         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46441         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46442         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46443
46444 2008-05-11  Bruno Haible  <bruno@clisp.org>
46445
46446         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46447
46448 2008-05-11  Bruno Haible  <bruno@clisp.org>
46449
46450         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46451         * modules/unilbrk/gen-lbrk: New file.
46452
46453 2008-05-11  Bruno Haible  <bruno@clisp.org>
46454
46455         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46456         * m4/sha512.m4 (gl_SHA512): Likewise.
46457
46458 2008-05-11  Jim Meyering  <meyering@redhat.com>
46459
46460         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46461         * modules/crypto/sha256: New file.
46462         * modules/crypto/sha512: Likewise.
46463         * lib/sha256.c: Likewise.
46464         * lib/sha256.h: Likewise.
46465         * lib/sha512.c: Likewise.
46466         * lib/sha512.h: Likewise.
46467         * lib/u64.h: Likewise.
46468         * m4/sha256.m4: Likewise.
46469         * m4/sha512.m4: Likewise.
46470         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46471
46472 2008-05-10  Bruno Haible  <bruno@clisp.org>
46473
46474         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46475         (Input/Output <stdio.h>): Add xprintf.
46476         (Signal handling <signal.h>): Add strsignal.
46477         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46478         (Core language properties): Add func.
46479         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46480         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46481         strings.
46482         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46483         (Input/output): New section.
46484         (File system functions): Add openat-die, stat-macros.
46485         (Networking functions): Add sockets.
46486         (Unicode string functions): Add unictype/*.
46487         (Support for building libraries and executables): Add gperf.
46488         (Support for building documentation): Add agpl-3.0.
46489         (Misc): Add nocrash.
46490
46491 2008-05-10  Bruno Haible  <bruno@clisp.org>
46492
46493         * modules/unictype/gen-ctype: New file.
46494
46495 2008-05-10  Jim Meyering  <meyering@redhat.com>
46496
46497         Make chdir-safer.c more efficient on a system with no symlinks.
46498         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46499         also if ELOOP is zero.  Suggested by Bruno Haible.
46500
46501         Make chdir-safer.c slightly safer.
46502         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46503         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46504
46505         Avoid compile failure on systems without ELOOP (like mingw).
46506         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46507         Reported by Bruno Haible.
46508
46509 2008-05-10  Bruno Haible  <bruno@clisp.org>
46510
46511         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46512         (is_utf8_encoding): Use a case-insensitive comparison.
46513         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46514         streq.
46515
46516 2008-05-10  Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46519         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46520         * lib/unilbrk/ulc-common.h (iconv_string_length,
46521         iconv_string_keeping_offsets): Remove declarations.
46522         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46523         Don't include <iconv.h>, streq.h, xsize.h.
46524         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46525         conversion.
46526         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46527         <iconv.h>, streq.h, xsize.h.
46528         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46529         conversion.
46530         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46531         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46532         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46533         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46534
46535 2008-05-10  Bruno Haible  <bruno@clisp.org>
46536
46537         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46538         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46539
46540         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46541         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46542
46543         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46544         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46545
46546         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46547         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46548
46549         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46550         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46551
46552         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46553         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46554
46555         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46556         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46557
46558         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46559         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46560
46561 2008-05-10  Bruno Haible  <bruno@clisp.org>
46562
46563         Split up 'linebreak' module.
46564         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46565         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46566         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46567         modifications.
46568         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46569         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46570         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46571         lib/linebreak.c.
46572         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46573         lib/linebreak.c.
46574         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46575         lib/linebreak.c.
46576         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46577         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46578         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46579         lib/linebreak.c.
46580         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46581         lib/linebreak.c.
46582         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46583         lib/linebreak.c.
46584         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46585         lib/linebreak.c.
46586         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46587         lib/linebreak.c.
46588         * modules/unilbrk/base: New file.
46589         * modules/unilbrk/tables: New file.
46590         * modules/unilbrk/u8-possible-linebreaks: New file.
46591         * modules/unilbrk/u16-possible-linebreaks: New file.
46592         * modules/unilbrk/u32-possible-linebreaks: New file.
46593         * modules/unilbrk/ulc-common: New file.
46594         * modules/unilbrk/ulc-possible-linebreaks: New file.
46595         * modules/unilbrk/u8-width-linebreaks: New file.
46596         * modules/unilbrk/u16-width-linebreaks: New file.
46597         * modules/unilbrk/u32-width-linebreaks: New file.
46598         * modules/unilbrk/ulc-width-linebreaks: New file.
46599         * lib/linebreak.h: Remove file.
46600         * lib/linebreak.c: Remove file.
46601         * m4/linebreak.m4: Remove file.
46602         * modules/linebreak: Remove file.
46603         * NEWS: Mention the changes.
46604
46605 2008-05-09  Eric Blake  <ebb9@byu.net>
46606
46607         Add xmemdup0.
46608         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46609         implementation.
46610         * lib/xmalloc.c (xmemdup0): New C implementation.
46611
46612 2008-05-08  Bruno Haible  <bruno@clisp.org>
46613
46614         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46615
46616 2008-05-07  Eric Blake  <ebb9@byu.net>
46617
46618         Support cross-compilation of <wctype.h>.
46619         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46620         AC_CACHE_CHECK.
46621
46622 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46623
46624         * build-aux/vc-list-files: Add support for bzr.
46625
46626 2008-05-03  Jim Meyering  <meyering@redhat.com>
46627
46628         avoid failed assertion with tight malloc
46629         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46630
46631 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46632
46633         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46634         are needed from arpa/inet.h.
46635         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46636         Reported by Bruno Haible.
46637
46638 2008-05-02  Jim Meyering  <meyering@redhat.com>
46639
46640         avoid compilation error on FreeBSD 6
46641         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46642
46643 2008-05-01  Jim Meyering  <meyering@redhat.com>
46644
46645         useless-if-before-free: correct --help's exit status description
46646         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46647         for one or more matches, etc.  Reported by Bruno Haible.
46648
46649         vc-list-files: make the stand-alone gnulib test work
46650         * modules/vc-list-files-tests (configure.ac):
46651         Define and AC_SUBST abs_aux_dir.
46652         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46653         $(abs_top_srcdir) to each script and having each of them
46654         duplicate the work of setting PATH, set PATH here, using
46655         the new variable, abs_aux_dir instead.
46656         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46657         * tests/test-vc-list-files-git.sh: Likewise.
46658         Reported by Bruno Haible.
46659
46660 2008-05-01  Bruno Haible  <bruno@clisp.org>
46661
46662         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46663         reallocation. Rename 'done' to 'found_delimiter'.
46664
46665 2008-05-01  Jim Meyering  <meyering@redhat.com>
46666
46667         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46668         * build-aux/vc-list-files: Use `...`, not $(...).
46669
46670 2008-04-30  Jim Meyering  <meyering@redhat.com>
46671
46672         add tests for vc-list-files
46673         * modules/vc-list-files-tests: New module.
46674         * tests/test-vc-list-files-cvs.sh: New file.
46675         * tests/test-vc-list-files-git.sh: New file.
46676
46677         avoid a warning from gcc
46678         * lib/getndelim2.c (IF_LINT): Define.
46679         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46680
46681         vc-list-files: work properly with build-aux/cvsu, too
46682         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46683         to all cvs-based clauses.
46684
46685         vc-list-files: work properly in the CVS+awk case, too
46686         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46687
46688         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46689         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46690         take more than one file argument, so .  Add quotes, just in case $dir
46691         ever contains a shell meta-character.  Prompted by Soren Hansen in
46692         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46693
46694 2008-04-29  Eric Blake  <ebb9@byu.net>
46695
46696         Optimize getndelim2 to use block operations when possible.
46697         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46698         freadseek, and memchr2.
46699         * lib/getndelim2.c (getndelim2): Use them for block reads.
46700
46701 2008-04-29  Bruno Haible  <bruno@clisp.org>
46702
46703         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46704         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46705         * modules/inet_ntop (Depends-on): Add extensions.
46706         * modules/inet_pton (Depends-on): Likewise.
46707         Reported by Simon Josefsson.
46708
46709 2008-04-29  Jim Meyering  <meyering@redhat.com>
46710
46711         When the is more than one match in a block, match all of them.
46712         * build-aux/useless-if-before-free: Iterate through each block
46713         until there are no more matches.
46714
46715         Fix broken useless-if-before-free script.
46716         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46717         the expression to match cast of argument to free-like function.
46718
46719 2008-04-29  Eric Blake  <ebb9@byu.net>
46720
46721         Use new header.
46722         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46723
46724 2008-04-29  Jim Meyering  <meyering@redhat.com>
46725
46726         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46727         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46728         by gnulib to exist and to declare e.g., inet_ntop.
46729         Don't include "inet_ntop.h", now removed.
46730
46731         * m4/arpa_inet_h.m4: Remove trailing blanks.
46732
46733 2008-04-29  Eric Blake  <ebb9@byu.net>
46734
46735         Silence valgrind on safe reads beyond potential array bounds.
46736         * lib/rawmemchr.valgrind: New file.
46737         * lib/strchrnul.valgrind: Likewise.
46738         * modules/rawmemchr (Files): Distribute new file.
46739         * modules/strchrnul (Files): Likewise.
46740         Suggested by Bruno Haible.
46741
46742 2008-04-29  Bruno Haible  <bruno@clisp.org>
46743
46744         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46745         (inet_ntop, inet_pton): Change portability warning's wording.
46746         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46747         Invoke gl_CHECK_NEXT_HEADERS.
46748         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46749         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46750         set ARPA_INET_H.
46751         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46752         * modules/arpa_inet (Description): No longer only for systems that
46753         lack it.
46754         (Depends-on): Add include_next.
46755         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46756         HAVE_ARPA_INET_H.
46757
46758 2008-04-29  Jim Meyering  <meyering@redhat.com>
46759
46760         * modules/mkdir (License): Re-license as LGPLv2+.
46761
46762 2008-04-29  Bruno Haible  <bruno@clisp.org>
46763
46764         * modules/rawmemchr (Maintainer): Set to Eric.
46765         * modules/strchrnul (Maintainer): Likewise.
46766
46767 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46768
46769         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46770         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46771
46772         * modules/arpa_inet (arpa/inet.h): Use them.
46773
46774 2008-04-28  Eric Blake  <ebb9@byu.net>
46775
46776         Test getndelim2.
46777         * modules/getndelim2-tests: New file.
46778         * tests/test-getndelim2.c: Likewise.
46779         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46780         stream.
46781         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46782
46783         * MODULES.html.sh: Document new module.
46784
46785 2008-04-20  Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/c-stack.c (die): Use raise.
46788         * modules/c-stack (Depends-on): Add raise.
46789
46790 2008-04-28  Bruno Haible  <bruno@clisp.org>
46791
46792         Expect rpmatch to be declared.
46793         * lib/yesno.c (rpmatch): Remove declaration.
46794
46795         Declare rpmatch.
46796         * lib/stdlib.in.h (rpmatch): New declaration.
46797         * lib/rpmatch.c: Include <stdlib.h> first.
46798         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46799         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46801         HAVE_RPMATCH.
46802         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46803         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46804         (Include): Set to <stdlib.h>.
46805         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46806         HAVE_RPMATCH.
46807         * NEWS: Document the change.
46808
46809 2008-04-28  Bruno Haible  <bruno@clisp.org>
46810
46811         Change rpmatch to use nl_langinfo when appropriate.
46812         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46813         (N_): New macro.
46814         (localized_pattern): New function/macro.
46815         (try): Remove match, nomatch arguments. Copy the pattern into safe
46816         memory before caching it.
46817         (rpmatch): Use localized_pattern. Add translator comments.
46818         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46819         Suggested by Eric Blake.
46820         * modules/rpmatch (Depends-on): Add stdbool.
46821
46822 2008-04-28  Eric Blake  <ebb9@byu.net>
46823
46824         Add rawmemchr module, matching glibc.
46825         * modules/string (Makefile.am): New indicator.
46826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46827         * lib/string.in.h (rawmemchr): Declare when appropriate.
46828         * modules/rawmemchr: New file.
46829         * m4/rawmemchr.m4: Likewise.
46830         * lib/rawmemchr.c: Likewise.
46831         * modules/rawmemchr-tests: Likewise.
46832         * tests/test-rawmemchr.c: Likewise.
46833         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46834         module.
46835         * modules/strchrnul (Depends-on): Add rawmemchr.
46836         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46837
46838         Whitespace cleanup.
46839         * tests/test-strchrnul.c: Reindent.
46840         * lib/strchrnul.c: Likewise.
46841
46842         Optimize and test strchrnul.
46843         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46844         * modules/strchrnul-tests: New file.
46845         * tests/test-strchrnul.c: Likewise.
46846
46847         Remove intprops dependency.
46848         * modules/memchr (Depends-on): Remove intprops.
46849         * modules/memrchr (Depends-on): Likewise.
46850         * modules/memchr2 (Depends-on): Likewise.
46851         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46852         * lib/memrchr.c (__memrchr): Likewise.
46853         * lib/memrchr2.c (memchr2): Likewise.
46854         Reported by Simon Josefsson.
46855
46856 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46857
46858         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46859         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46860
46861 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46862
46863         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46864
46865         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46866
46867         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46868
46869         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46870         declarations.
46871         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46872
46873         * m4/inet_pton.m4: Don't check for header files.
46874
46875         * m4/inet_ntop.m4: Don't check for header files.
46876
46877 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46878
46879         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46880         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46881         trigger for cygwin).
46882         Reported by Bruno Haible  <bruno@clisp.org>.
46883
46884 2008-04-28  Bruno Haible  <bruno@clisp.org>
46885
46886         * doc/posix-functions/strdup.texi: Mention mingw problem.
46887
46888 2008-04-27  Bruno Haible  <bruno@clisp.org>
46889
46890         * modules/stat-time-tests (Depends-on): Add sleep.
46891         * tests/test-stat-time.c (force_unlink): New function.
46892         (cleanup): Use it.
46893         (test_mtime): Remove the ctime related tests.
46894         (test_ctime): New function, containing the ctime related tests.
46895         (main): Call test_ctime, except on native Windows platforms.
46896
46897 2008-04-27  Bruno Haible  <bruno@clisp.org>
46898
46899         * lib/rpmatch.c (rpmatch): Add some comments.
46900         Reported by James Youngman <jay@gnu.org>.
46901
46902 2008-04-27  Bruno Haible  <bruno@clisp.org>
46903
46904         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46905         quiet NaNs.
46906
46907 2008-04-27  Bruno Haible  <bruno@clisp.org>
46908
46909         Make test-yesno.sh work on mingw.
46910         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46911         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46912         (main): Set stdin to binary mode.
46913         * modules/yesno-tests (Depends-on): Add binary-io.
46914
46915 2008-04-27  Bruno Haible  <bruno@clisp.org>
46916
46917         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46918         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46919         argument that lie outside the IEEE 854 domain.
46920         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46921         (gl_ISFINITE): Use it.
46922         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46923
46924 2008-04-27  Bruno Haible  <bruno@clisp.org>
46925
46926         Allow local renaming in config.h.
46927         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46928
46929 2008-04-27  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/memchr.c (__memchr): Change type of 'i'.
46932         * lib/memchr2.c (memchr2): Likewise.
46933
46934 2008-04-26  Eric Blake  <ebb9@byu.net>
46935         and Bruno Haible  <bruno@clisp.org>
46936
46937         Optimize and test memrchr.
46938         * modules/memrchr (Depends-on): Add intprops.
46939         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46940         * modules/memrchr-tests: New file.
46941         * tests/test-memrchr.c: New file.
46942
46943 2008-04-26  Bruno Haible  <bruno@clisp.org>
46944
46945         Add tentative support for DragonFly BSD.
46946         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46947         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46948         fp.
46949         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46950         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46951         * lib/fpurge.c (fpurge): Likewise.
46952         * lib/freadable.c (freaadable): Likewise.
46953         * lib/freadahead.c (freadahead): Likewise.
46954         * lib/freading.c (freading): Likewise.
46955         * lib/freadptr.c (freadptr): Likewise.
46956         * lib/freadseek.c (freadptrinc): Likewise.
46957         * lib/fseeko.c (fseeko): Likewise.
46958         * lib/fseterr.c (fseterr): Likewise.
46959         * lib/fwritable.c (fwritable): Likewise.
46960         * lib/fwriting.c (fwriting): Likewise.
46961
46962 2008-04-26  Bruno Haible  <bruno@clisp.org>
46963
46964         * lib/stdio-impl.h: New file.
46965         * lib/fbufmode.c: Include stdio-impl.h.
46966         (fbufmode): Use fp_, remove redundant #defines.
46967         * lib/fflush.c: Include stdio-impl.h.
46968         (clear_ungetc_buffer): Remove redundant #defines.
46969         * lib/fpurge.c: Include stdio-impl.h.
46970         (fpurge): Remove redundant #defines.
46971         * lib/freadable.c: Include stdio-impl.h.
46972         (freadable): Remove redundant #defines.
46973         * lib/freadahead.c: Include stdio-impl.h.
46974         (freadahead): Remove redundant #defines.
46975         * lib/freading.c: Include stdio-impl.h.
46976         (freading): Remove redundant #defines.
46977         * lib/freadptr.c: Include stdio-impl.h.
46978         (freadptr): Remove redundant #defines.
46979         * lib/freadseek.c: Include stdio-impl.h.
46980         (freadptrinc): Remove redundant #defines.
46981         * lib/fseeko.c: Include stdio-impl.h.
46982         (rpl_fseeko): Remove redundant #defines.
46983         * lib/fseterr.c: Include stdio-impl.h.
46984         (fseterr): Remove redundant #defines.
46985         * lib/fwritable.c: Include stdio-impl.h.
46986         (fwritable: Remove redundant #defines.
46987         * lib/fwriting.c: Include stdio-impl.h.
46988         (fwriting): Remove redundant #defines.
46989         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46990         * modules/fflush (Files): Likewise.
46991         * modules/fpurge (Files): Likewise.
46992         * modules/freadable (Files): Likewise.
46993         * modules/freadahead (Files): Likewise.
46994         * modules/freading (Files): Likewise.
46995         * modules/freadptr (Files): Likewise.
46996         * modules/freadseek (Files): Likewise.
46997         * modules/fseeko (Files): Likewise.
46998         * modules/fseterr (Files): Likewise.
46999         * modules/fwritable (Files): Likewise.
47000         * modules/fwriting (Files): Likewise.
47001
47002 2008-04-26  Bruno Haible  <bruno@clisp.org>
47003
47004         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47005         restore_seek_optimization, update_fpos_cache): New functions, extracted
47006         from rpl_fflush.
47007         (rpl_fflush): Use them.
47008         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47009         (gl_REPLACE_FFLUSH): Use it.
47010
47011 2008-04-26  Bruno Haible  <bruno@clisp.org>
47012
47013         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47014         on Solaris.
47015         * tests/test-xstrtoimax.sh: Likewise.
47016         * tests/test-xstrtoumax.sh: Likewise.
47017         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47018
47019 2008-04-26  Bruno Haible  <bruno@clisp.org>
47020
47021         * modules/memchr-tests: New file.
47022         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47023
47024 2008-04-26  Eric Blake  <ebb9@byu.net>
47025             Bruno Haible  <bruno@clisp.org>
47026
47027         * lib/memchr.c: Include intprops.h.
47028         (__memchr): Optimize parallel detection of matching bytes. Rename local
47029         variables. Add explanatory comments.
47030
47031 2008-04-26  Bruno Haible  <bruno@clisp.org>
47032
47033         Fix module 'memchr', broken since 2000-10-28.
47034         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47035
47036 2008-04-26  Bruno Haible  <bruno@clisp.org>
47037
47038         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47039         comments.
47040
47041 2008-04-25  Eric Blake  <ebb9@byu.net>
47042
47043         Use native fstatat on cygwin 1.7.0.
47044         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47045         first.
47046
47047 2008-04-23  Eric Blake  <ebb9@byu.net>
47048
47049         Improve memchr2 performance.
47050         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47051         NUL bytes.
47052         * modules/memchr2 (Depends-on): Use intprops.h.
47053
47054 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47055
47056         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47057         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47058         <blp@cs.stanford.edu>.
47059
47060 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47061
47062         * lib/arpa_inet.in.h: New file.
47063
47064         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47065         (Makefile.am): Sed in substitute header file.
47066
47067         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47068         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47069
47070         * modules/inet_ntop (configure.ac): Use
47071         gl_ARPA_INET_MODULE_INDICATOR.
47072
47073         * modules/inet_pton (configure.ac): Use
47074         gl_ARPA_INET_MODULE_INDICATOR.
47075
47076 2008-04-22  Jim Meyering  <meyering@redhat.com>
47077
47078         * modules/verify (License): Re-license as LGPLv2+.
47079
47080 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47081
47082         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47083         parameter to void* as per POSIX standard (MinGW uses char*).
47084
47085 2008-04-21  Bruno Haible  <bruno@clisp.org>
47086
47087         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47088         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47089         Define to replacements if REPLACE_ISWCNTRL is 1.
47090         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47091         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47092         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47093         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47094         what it fixes.
47095         * doc/posix-functions/iswalpha.texi: Likewise.
47096         * doc/posix-functions/iswblank.texi: Likewise.
47097         * doc/posix-functions/iswcntrl.texi: Likewise.
47098         * doc/posix-functions/iswdigit.texi: Likewise.
47099         * doc/posix-functions/iswgraph.texi: Likewise.
47100         * doc/posix-functions/iswlower.texi: Likewise.
47101         * doc/posix-functions/iswprint.texi: Likewise.
47102         * doc/posix-functions/iswpunct.texi: Likewise.
47103         * doc/posix-functions/iswspace.texi: Likewise.
47104         * doc/posix-functions/iswupper.texi: Likewise.
47105         * doc/posix-functions/iswxdigit.texi: Likewise.
47106         Reported by Alain Guibert.
47107
47108 2008-04-21  Bruno Haible  <bruno@clisp.org>
47109
47110         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47111         Patch by Alain Guibert.
47112
47113 2008-04-21  Bruno Haible  <bruno@clisp.org>
47114
47115         Fix test failures on mingw.
47116         * tests/test-xstrtol.c (print_no_progname): New function.
47117         (main): Install it in error_print_progname hook.
47118         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47119         * tests/test-xstrtoimax.sh: Likewise.
47120         * tests/test-xstrtoumax.sh: Likewise.
47121
47122 2008-04-21  Bruno Haible  <bruno@clisp.org>
47123
47124         Fix test failure on mingw.
47125         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47126
47127 2008-04-21  Bruno Haible  <bruno@clisp.org>
47128
47129         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47130         Actually assign a value.
47131
47132 2008-04-20  Bruno Haible  <bruno@clisp.org>
47133
47134         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47135         take 2.
47136         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47137         'canonicalize-lgpl' module is also used.
47138         * lib/canonicalize-lgpl.c: Undo last change.
47139         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47140
47141 2008-04-20  Bruno Haible  <bruno@clisp.org>
47142
47143         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47144         config.h. Provide _mkdir based fallback for mingw.
47145         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47146         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47147         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47148         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47149         rather than defining mkdir in config.h.
47150         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47151         (gl_SYS_STAT_H_DEFAULTS): New macro.
47152         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47153         HAVE_IO_H any more.
47154         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47155         HAVE_DECL_MKDIR and HAVE_IO_H.
47156
47157 2008-04-20  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/isapipe.c: Port to native Windows platforms.
47160
47161 2008-04-20  Bruno Haible  <bruno@clisp.org>
47162
47163         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47164
47165 2008-04-21  Eric Blake  <ebb9@byu.net>
47166
47167         Work around preprocessors that don't handle UINTMAX_MAX.
47168         * lib/memchr2.c (memchr2): Avoid embedded #if.
47169         Reported by Alain Guibert, fix suggested by Bruno Haible.
47170
47171 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47172
47173         * doc/posix-functions/strftime.texi (strftime): Explain better
47174         Windows incompatibility.  Suggested by Micah Cowan
47175         <micah@cowan.name>.
47176
47177 2008-04-20  Bruno Haible  <bruno@clisp.org>
47178
47179         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47180         unistr/u8-mblen.
47181
47182 2008-04-20  Bruno Haible  <bruno@clisp.org>
47183
47184         Fix test failure on platforms with non-GNU iconv.
47185         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47186         (U_TO_U8): Use it, rather than u16_to_u8.
47187         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47188         units at the end of the input string.
47189         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47190
47191 2008-04-20  Bruno Haible  <bruno@clisp.org>
47192
47193         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47194         when the resulting length is 0.
47195         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47196
47197 2008-04-20  Bruno Haible  <bruno@clisp.org>
47198
47199         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47200         works.
47201         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47202
47203 2008-04-20  Bruno Haible  <bruno@clisp.org>
47204
47205         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47206         * modules/tsearch-tests (configure.ac): Test for initstate function.
47207
47208 2008-04-20  Bruno Haible  <bruno@clisp.org>
47209
47210         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47211         for nlink_t if missing.
47212         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47213
47214 2008-04-19  Bruno Haible  <bruno@clisp.org>
47215
47216         Work around snprintf bug on Linux libc5.
47217         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47219         gl_SNPRINTF_SIZE1.
47220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47221         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47222         that test failed.
47223         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47224         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47225         * modules/snprintf (Files): Add m4/printf.m4.
47226         * modules/vsnprintf (Files): Likewise.
47227         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47228         * doc/posix-functions/vsnprintf.texi: Likewise.
47229
47230 2008-04-19  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47233         from 0.0058 to less than 10^-7.
47234
47235 2008-04-19  Bruno Haible  <bruno@clisp.org>
47236
47237         Fix rounding when a precision is given.
47238         * lib/vasnprintf.c (is_borderline): New function.
47239         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47240         9...9x.
47241         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47242         %e, %g.
47243         * tests/test-vasprintf-posix.c (test_function): Likewise.
47244         * tests/test-snprintf-posix.h (test_function): Likewise.
47245         * tests/test-sprintf-posix.h (test_function): Likewise.
47246         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47247         * tests/test-printf-posix.h (test_function): Likewise.
47248         * tests/test-printf-posix.output: Update.
47249         Reported by John Darrington <john@darrington.wattle.id.au> via
47250         Ben Pfaff <blp@cs.stanford.edu>.
47251
47252 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47253
47254         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47255         Suggested by Bruno Haible <bruno@clisp.org>.
47256
47257 2008-04-17  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47260         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47261         implementation.
47262         Patch by Bruce Merry <bmerry@gmail.com>.
47263
47264 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47265
47266         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47267         doesn't work under Windows.
47268
47269 2008-04-16  Bruno Haible  <bruno@clisp.org>
47270
47271         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47272         New macros.
47273         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47274         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47275         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47276         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47277         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47278         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47279         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47280         macros.
47281         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47282         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47283         Northern Sotho, Uighur.
47284
47285 2008-04-16  Bruno Haible  <bruno@clisp.org>
47286
47287         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47288         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47289         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47290         Reported by Daniel Bergström <daniel@octocode.com>.
47291
47292 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47293             Bruno Haible  <bruno@clisp.org>
47294
47295         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47296         function.
47297         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47298         New functions, mostly extracted from gl_locale_name_default.
47299         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47300
47301 2008-04-16  Eric Blake  <ebb9@byu.net>
47302
47303         Adjust strtod detection to catch glibc 2.7 bug.
47304         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47305         Reported by John Gatewood Ham.
47306
47307 2008-04-16  Bruno Haible  <bruno@clisp.org>
47308
47309         Add tentative support for Linux libc5.
47310         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47311         * lib/fpurge.c (fpurge): Likewise.
47312         * lib/freadable.c (freadable): Likewise.
47313         * lib/freadahead.c (freadahead): Likewise.
47314         * lib/freading.c (freading): Likewise.
47315         * lib/freadptr.c (freadptr): Likewise.
47316         * lib/freadseek.c (freadptrinc): Likewise.
47317         * lib/fseeko.c (rpl_fseeko): Likewise.
47318         * lib/fseterr.c (fseterr): Likewise.
47319         * lib/fwritable.c (fwritable): Likewise.
47320         * lib/fwriting.c (fwriting): Likewise.
47321         Reported by Alain Guibert <alguibert+bts@free.fr>.
47322
47323 2008-04-15  Bruno Haible  <bruno@clisp.org>
47324
47325         * modules/mathl (configure.ac): Define module indicator.
47326
47327 2008-04-15  Bruno Haible  <bruno@clisp.org>
47328
47329         * lib/logl.c (logl): Remove unused variables.
47330
47331 2008-04-15  Bruno Haible  <bruno@clisp.org>
47332
47333         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47334         fails.
47335
47336 2008-04-15  Bruno Haible  <bruno@clisp.org>
47337
47338         * lib/trim.c (trim2): Fix argument of isspace() macro.
47339
47340 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47341
47342         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47343         to 0.
47344         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47345
47346 2008-04-14  Bruno Haible  <bruno@clisp.org>
47347
47348         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47349         AC_LANG_PROGRAM argument.
47350         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47351         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47353         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47354         * m4/math_h.m4 (gl_MATH_H): Likewise.
47355         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47356         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47357         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47358         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47359         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47360         * m4/regex.m4 (gl_REGEX): Likewise.
47361         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47362         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47364         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47365         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47366         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47368         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47369
47370 2008-04-14  Jim Meyering  <meyering@redhat.com>
47371
47372         test-strtod: fix typos: s/abs/fabs/
47373         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47374
47375 2008-04-13  Bruno Haible  <bruno@clisp.org>
47376
47377         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47378         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47379         module is also used and while not building the reloc-wrapper.
47380
47381 2008-04-13  Bruno Haible  <bruno@clisp.org>
47382
47383         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47384
47385 2008-04-13  Bruno Haible  <bruno@clisp.org>
47386
47387         Fix AIX compilation failure introduced on 2008-04-02.
47388         * tests/test-frexp.c (exp): Undefine before redefining.
47389         * tests/test-frexpl.c (exp): Likewise.
47390
47391 2008-04-13  Bruno Haible  <bruno@clisp.org>
47392
47393         Work around a HP-UX stdio bug.
47394         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47395         * tests/test-ftello.c (main): Likewise.
47396         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47397         * doc/posix-functions/ftello.texi: Likewise.
47398
47399 2008-04-13  Bruno Haible  <bruno@clisp.org>
47400
47401         Make test-signbit pass on HP-UX/hppa.
47402         * tests/test-signbit.c (minus_zerol): New variable.
47403         (test_signbitl): Use it.
47404
47405 2008-04-13  Bruno Haible  <bruno@clisp.org>
47406
47407         Make truncl work on OSF/1 4.0.
47408         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47409         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47410         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47412         HAVE_DECL_TRUNCL.
47413         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47414         HAVE_DECL_TRUNCL.
47415         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47416
47417 2008-04-13  Bruno Haible  <bruno@clisp.org>
47418
47419         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47420
47421 2008-04-13  Bruno Haible  <bruno@clisp.org>
47422
47423         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47424         expression, so as to avoid HP-UX 11 cc compiler bug.
47425
47426 2008-04-13  Bruno Haible  <bruno@clisp.org>
47427
47428         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47429
47430 2008-04-13  Bruno Haible  <bruno@clisp.org>
47431
47432         * lib/git-merge-changelog.c: Remove empty declaration outside of
47433         functions.
47434
47435 2008-04-13  Bruno Haible  <bruno@clisp.org>
47436
47437         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47438
47439 2008-04-13  Bruno Haible  <bruno@clisp.org>
47440
47441         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47442         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47444         also if it exists but lacks definitions of the SHUT_* macros.
47445         * modules/sys_socket (Description): Update.
47446         Reported by Elbert Pol <e.pol@chello.nl>.
47447
47448 2008-04-13  Bruno Haible  <bruno@clisp.org>
47449
47450         * lib/localcharset.c (OS2): Don't redefine if already defined.
47451         Reported by Elbert Pol <e.pol@chello.nl>.
47452
47453 2008-04-13  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/binary-io.h [__EMX__]: Include <io.h>.
47456         Reported by Elbert Pol <e.pol@chello.nl>.
47457
47458 2008-04-12  Bruno Haible  <bruno@clisp.org>
47459
47460         * lib/fpucw.h: Enable the definitions also for x86_64.
47461         Needed for NetBSD/x86_64.
47462         Reported by Thomas Klausner <tk@giga.or.at>.
47463
47464 2008-04-12  Bruno Haible  <bruno@clisp.org>
47465
47466         * tests/test-strtod.c: Include isnand.h.
47467         (main): Use isnand instead of isnan.
47468         Reported by Jim Meyering.
47469
47470 2008-04-12  Bruno Haible  <bruno@clisp.org>
47471
47472         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47473         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47474
47475 2008-04-12  Jim Meyering  <meyering@redhat.com>
47476
47477         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47478
47479 2008-04-12  Bruno Haible  <bruno@clisp.org>
47480
47481         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47482         Reported by Elbert Pol <e.pol@chello.nl>.
47483
47484 2008-04-12  Eric Blake  <ebb9@byu.net>
47485
47486         Work around Solaris 10 math.h bug.
47487         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47488         (gl_MATH_H_DEFAULTS): Set up default.
47489         * modules/math (Makefile.am): Replace new indicators.
47490         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47491         * tests/test-math.c (main): Test this.
47492         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47493         * doc/posix-headers/math.texi (math.h): Mention bug.
47494         Reported by Nelson H. F. Beebe and Jim Meyering.
47495
47496 2008-04-11  Bruno Haible  <bruno@clisp.org>
47497
47498         Adapt to future versions of Apple GCC.
47499         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47500         Reported by Peter O'Gorman <peter@pogma.com>.
47501
47502 2008-04-11  Bruno Haible  <bruno@clisp.org>
47503
47504         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47505
47506 2008-04-11  Bruno Haible  <bruno@clisp.org>
47507
47508         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47509
47510         * modules/getaddrinfo-tests (Makefile.am): Define
47511         test_getaddrinfo_LDADD.
47512
47513 2008-04-11  Bruno Haible  <bruno@clisp.org>
47514
47515         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47516         (init): Fix syntax error.
47517         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47518         is declared.
47519
47520 2008-04-11  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47523         * modules/glob (Depends-on): Add stdbool.
47524
47525 2008-04-11  Bruno Haible  <bruno@clisp.org>
47526
47527         * lib/trim.c: Include <string.h>.
47528
47529 2008-04-11  Eric Blake  <ebb9@byu.net>
47530
47531         Avoid compile failure on OS/2.
47532         * lib/regex_internal.h (internal_function): Disable optimization
47533         on OS/2 (__EMX__), where it caused compiler error.
47534         Reported by Elbert Pol.
47535
47536 2008-04-11  Bruno Haible  <bruno@clisp.org>
47537
47538         Flush the standard error stream before aborting. Needed on mingw.
47539         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47540         * tests/test-array_list.c (ASSERT): Likewise.
47541         * tests/test-array_oset.c (ASSERT): Likewise.
47542         * tests/test-avltree_list.c (ASSERT): Likewise.
47543         * tests/test-avltree_oset.c (ASSERT): Likewise.
47544         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47545         * tests/test-binary-io.c (ASSERT): Likewise.
47546         * tests/test-byteswap.c (ASSERT): Likewise.
47547         * tests/test-c-ctype.c (ASSERT): Likewise.
47548         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47549         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47550         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47551         * tests/test-c-strstr.c (ASSERT): Likewise.
47552         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47553         * tests/test-canonicalize.c (ASSERT): Likewise.
47554         * tests/test-carray_list.c (ASSERT): Likewise.
47555         * tests/test-ceilf1.c (ASSERT): Likewise.
47556         * tests/test-ceilf2.c (ASSERT): Likewise.
47557         * tests/test-ceill.c (ASSERT): Likewise.
47558         * tests/test-count-one-bits.c (ASSERT): Likewise.
47559         * tests/test-fbufmode.c (ASSERT): Likewise.
47560         * tests/test-fflush2.c (ASSERT): Likewise.
47561         * tests/test-floorf1.c (ASSERT): Likewise.
47562         * tests/test-floorf2.c (ASSERT): Likewise.
47563         * tests/test-floorl.c (ASSERT): Likewise.
47564         * tests/test-fopen.c (ASSERT): Likewise.
47565         * tests/test-fpending.c (ASSERT): Likewise.
47566         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47567         * tests/test-fpurge.c (ASSERT): Likewise.
47568         * tests/test-freadable.c (ASSERT): Likewise.
47569         * tests/test-freadahead.c (ASSERT): Likewise.
47570         * tests/test-freading.c (ASSERT): Likewise.
47571         * tests/test-freadptr.c (ASSERT): Likewise.
47572         * tests/test-freadptr2.c (ASSERT): Likewise.
47573         * tests/test-freadseek.c (ASSERT): Likewise.
47574         * tests/test-freopen.c (ASSERT): Likewise.
47575         * tests/test-frexp.c (ASSERT): Likewise.
47576         * tests/test-frexpl.c (ASSERT): Likewise.
47577         * tests/test-fseek.c (ASSERT): Likewise.
47578         * tests/test-fseeko.c (ASSERT): Likewise.
47579         * tests/test-fstrcmp.c (ASSERT): Likewise.
47580         * tests/test-ftell.c (ASSERT): Likewise.
47581         * tests/test-ftello.c (ASSERT): Likewise.
47582         * tests/test-func.c (ASSERT): Likewise.
47583         * tests/test-fwritable.c (ASSERT): Likewise.
47584         * tests/test-fwriting.c (ASSERT): Likewise.
47585         * tests/test-getdelim.c (ASSERT): Likewise.
47586         * tests/test-getline.c (ASSERT): Likewise.
47587         * tests/test-i-ring.c (ASSERT): Likewise.
47588         * tests/test-iconv-utf.c (ASSERT): Likewise.
47589         * tests/test-iconv.c (ASSERT): Likewise.
47590         * tests/test-isfinite.c (ASSERT): Likewise.
47591         * tests/test-isnand.c (ASSERT): Likewise.
47592         * tests/test-isnanf.c (ASSERT): Likewise.
47593         * tests/test-isnanl.h (ASSERT): Likewise.
47594         * tests/test-ldexpl.c (ASSERT): Likewise.
47595         * tests/test-linked_list.c (ASSERT): Likewise.
47596         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47597         * tests/test-localename.c (ASSERT): Likewise.
47598         * tests/test-lseek.c (ASSERT): Likewise.
47599         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47600         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47601         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47602         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47603         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47604         * tests/test-mbschr.c (ASSERT): Likewise.
47605         * tests/test-mbscspn.c (ASSERT): Likewise.
47606         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47607         * tests/test-mbspbrk.c (ASSERT): Likewise.
47608         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47609         * tests/test-mbsrchr.c (ASSERT): Likewise.
47610         * tests/test-mbsspn.c (ASSERT): Likewise.
47611         * tests/test-mbsstr1.c (ASSERT): Likewise.
47612         * tests/test-mbsstr2.c (ASSERT): Likewise.
47613         * tests/test-mbsstr3.c (ASSERT): Likewise.
47614         * tests/test-memchr2.c (ASSERT): Likewise.
47615         * tests/test-memmem.c (ASSERT): Likewise.
47616         * tests/test-open.c (ASSERT): Likewise.
47617         * tests/test-printf-frexp.c (ASSERT): Likewise.
47618         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47619         * tests/test-printf-posix.c (ASSERT): Likewise.
47620         * tests/test-quotearg.c (ASSERT): Likewise.
47621         * tests/test-rbtree_list.c (ASSERT): Likewise.
47622         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47623         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47624         * tests/test-round1.c (ASSERT): Likewise.
47625         * tests/test-roundf1.c (ASSERT): Likewise.
47626         * tests/test-roundl.c (ASSERT): Likewise.
47627         * tests/test-signbit.c (ASSERT): Likewise.
47628         * tests/test-sleep.c (ASSERT): Likewise.
47629         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47630         * tests/test-snprintf.c (ASSERT): Likewise.
47631         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47632         * tests/test-stat-time.c (ASSERT): Likewise.
47633         * tests/test-strcasestr.c (ASSERT): Likewise.
47634         * tests/test-strerror.c (ASSERT): Likewise.
47635         * tests/test-striconv.c (ASSERT): Likewise.
47636         * tests/test-striconveh.c (ASSERT): Likewise.
47637         * tests/test-striconveha.c (ASSERT): Likewise.
47638         * tests/test-strsignal.c (ASSERT): Likewise.
47639         * tests/test-strstr.c (ASSERT): Likewise.
47640         * tests/test-strtod.c (ASSERT): Likewise.
47641         * tests/test-trunc1.c (ASSERT): Likewise.
47642         * tests/test-trunc2.c (ASSERT): Likewise.
47643         * tests/test-truncf1.c (ASSERT): Likewise.
47644         * tests/test-truncf2.c (ASSERT): Likewise.
47645         * tests/test-truncl.c (ASSERT): Likewise.
47646         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47647         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47648         * tests/test-vasnprintf.c (ASSERT): Likewise.
47649         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47650         * tests/test-vasprintf.c (ASSERT): Likewise.
47651         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47652         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47653         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47654         * tests/test-vsnprintf.c (ASSERT): Likewise.
47655         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47656         * tests/test-wcwidth.c (ASSERT): Likewise.
47657         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47658         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47659         * tests/test-xvasprintf.c (ASSERT): Likewise.
47660         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47661         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47662         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47663         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47664         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47665         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47666         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47667         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47668         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47669         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47670         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47671         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47672         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47673         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47674         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47675         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47676         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47677         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47678         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47679         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47680         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47681         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47682         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47683         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47684         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47685         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47686         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47687         * tests/unictype/test-combining.c (ASSERT): Likewise.
47688         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47689         * tests/unictype/test-digit.c (ASSERT): Likewise.
47690         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47691         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47692         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47693         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47694         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47695         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47696         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47697         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47698         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47699         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47700         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47701         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47702         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47703         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47704         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47705         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47706         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47707         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47708         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47709         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47710         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47711         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47712         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47713         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47714         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47715         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47716         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47717         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47718         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47719         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47720         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47721         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47722         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47723         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47724         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47725         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47726         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47727         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47728         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47729         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47730         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47731         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47732         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47733         Reported by Eric Blake.
47734
47735 2008-04-11  Bruno Haible  <bruno@clisp.org>
47736
47737         * lib/wchar.in.h: Tweak comment.
47738
47739 2008-04-11  Bruno Haible  <bruno@clisp.org>
47740
47741         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47742         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47743         gl_COMMON.
47744         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47745
47746 2008-04-11  Bruno Haible  <bruno@clisp.org>
47747
47748         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47749
47750 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47751
47752         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47753         of attempting to use non-existing /dev/*random.  Based on patch
47754         from Adam Strzelecki <ono@java.pl> in
47755         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47756
47757 2008-04-08  Bruno Haible  <bruno@clisp.org>
47758
47759         Add tentative support for emx+gcc.
47760         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47761         * lib/fpurge.c (fpurge): Likewise.
47762         * lib/freadable.c (freadable): Likewise.
47763         * lib/freadahead.c (freadahead): Likewise.
47764         * lib/freading.c (freading): Likewise.
47765         * lib/freadptr.c (freadptr): Likewise.
47766         * lib/freadseek.c (freadptrinc): Likewise.
47767         * lib/fseeko.c (rpl_fseeko): Likewise.
47768         * lib/fseterr.c (fseterr): Likewise.
47769         * lib/fwritable.c (fwritable): Likewise.
47770         * lib/fwriting.c (fwriting): Likewise.
47771         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47772
47773 2008-04-09  Eric Blake  <ebb9@byu.net>
47774
47775         Avoid some autoconf warnings.
47776         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47777         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47778         * m4/afs.m4 (gl_AFS): Likewise.
47779         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47780         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47781         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47782         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47783         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47784         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47785         (AC_CHECK_DECLS_ONCE): Likewise.
47786         Rename file...
47787         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47788         gnulib-tool requires autoconf 2.59 or better.
47789         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47790
47791 2008-04-08  Eric Blake  <ebb9@byu.net>
47792
47793         Use 'git describe --match' if present (added in git 1.5.5).
47794         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47795         if possible.
47796
47797 2008-04-08  Bruno Haible  <bruno@clisp.org>
47798
47799         Add tentative support for OpenServer.
47800         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47801         _ptr, _cnt.
47802         * lib/fpurge.c (fpurge): Likewise.
47803         * lib/freadable.c (freadable): Likewise.
47804         * lib/freadahead.c (freadahead): Likewise.
47805         * lib/freading.c (freading): Likewise.
47806         * lib/freadptr.c (freadptr): Likewise.
47807         * lib/freadseek.c (freadptrinc): Likewise.
47808         * lib/fseeko.c (rpl_fseeko): Likewise.
47809         * lib/fseterr.c (fseterr): Likewise.
47810         * lib/fwritable.c (fwritable): Likewise.
47811         * lib/fwriting.c (fwriting): Likewise.
47812         Reported by Roger Cornelius <rac@tenzing.org> and
47813         Brian K. White <brian@aljex.com>.
47814
47815 2008-04-06  Jim Meyering  <meyering@redhat.com>
47816
47817         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47818
47819 2008-04-06  Bruno Haible  <bruno@clisp.org>
47820
47821         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47822         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47823         * tests/test-printf-posix.sh: Likewise.
47824         * tests/test-vfprintf-posix.sh: Likewise.
47825         * tests/test-vprintf-posix.sh: Likewise.
47826         * tests/test-xprintf-posix.sh: Likewise.
47827
47828 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47829
47830         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47831         hide error from 'ls', needed on OS/2.
47832         Report by Elbert Pol <elbert.pol@gmail.com>.
47833
47834 2008-04-04  Eric Blake  <ebb9@byu.net>
47835
47836         Make test-fseeko.c failures meaningful.
47837         * tests/test-fseeko.c: Print line number on failure.
47838         * tests/test-fseek.c: Likewise.
47839         Reported by Nelson H. F. Beebe.
47840
47841         Improve strtod bug detection check.
47842         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47843         required for Solaris 10.
47844         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47845
47846 2008-04-04  Bruno Haible  <bruno@clisp.org>
47847
47848         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47849         by m4/setenv.m4.
47850
47851 2008-04-03  Eric Blake  <ebb9@byu.net>
47852
47853         Ensure sane .version contents.
47854         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47855         version string.
47856         * build-aux/git-version-gen: Improve documentation.
47857
47858         Make GNU make output nicer.
47859         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47860         MAKECMDGOALS to enforce message for all command line targets.  Set
47861         srcdir for use in maint.mk.
47862
47863         Another maintainer tweak.
47864         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47865         a target that regenerates version.
47866
47867 2008-04-03  Jim Meyering  <meyering@redhat.com>
47868
47869         vc-list-files: don't cause coreutils "make po-check" failure
47870         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47871
47872 2008-04-03  Eric Blake  <ebb9@byu.net>
47873
47874         Allow VPATH usage of vc-list-files.
47875         * build-aux/vc-list-files (scriptversion): Add timestamp.
47876         (options): Add --help, --version, -C.
47877         (CVS): Support installed cvsu.
47878
47879 2008-04-02  Bruno Haible  <bruno@clisp.org>
47880
47881         Avoid some "statement with no effect" warnings from gcc.
47882         * tests/test-wctype.c (main): Explicitly ignore unused values.
47883         Reported by Jim Meyering.
47884
47885 2008-04-02  Jim Meyering  <meyering@redhat.com>
47886
47887         Avoid some warnings from "gcc -Wshadow".
47888         * tests/test-frexp.c (exp): Define to a different identifier.
47889         * tests/test-frexpl.c (exp): Likewise.
47890
47891 2008-04-03  Jim Meyering  <meyering@redhat.com>
47892
47893         bootstrap: remove dangling *.[ch] symlinks from lib
47894         * build-aux/bootstrap [dangling symlink removal]: Move find's
47895         -depth option to precede all others, to avoid a warning.
47896         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47897
47898 2008-04-02  Bruno Haible  <bruno@clisp.org>
47899
47900         Avoid some warnings from "gcc -Wshadow".
47901         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47902         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47903         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47904         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47905         Reported by Jim Meyering.
47906
47907 2008-04-01  Bruno Haible  <bruno@clisp.org>
47908
47909         Fix test to work on IRIX 6.5 with cc.
47910         * tests/test-math.c (numeric_equal): New function.
47911         (main): Use it.
47912
47913 2008-04-01  Bruno Haible  <bruno@clisp.org>
47914
47915         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47916
47917 2008-04-01  Bruno Haible  <bruno@clisp.org>
47918
47919         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47920         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47921         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47922         (Depends-on): Remove math.
47923
47924         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47925         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47926         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47927         (Depends-on): Remove math.
47928
47929         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47930         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47931         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47932         (Depends-on): Remove math.
47933         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47934         (Depends-on): Remove math.
47935
47936         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47937         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47938         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47939         (Depends-on): Remove math.
47940         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47941         (Depends-on): Remove math.
47942
47943         * tests/test-round1.c: Include nan.h.
47944         (main): Use NaNd instead of NAN.
47945         * modules/round-tests (Files): Add tests/nan.h.
47946
47947         * tests/test-trunc1.c: Include nan.h.
47948         (main): Use NaNd instead of NAN.
47949         * modules/trunc-tests (Files): Add tests/nan.h.
47950
47951         * tests/test-roundf1.c: Include nan.h.
47952         (main): Use NaNf instead of NAN.
47953         * modules/roundf-tests (Files): Add tests/nan.h.
47954
47955         * tests/test-truncf1.c: Include nan.h.
47956         (main): Use NaNf instead of NAN.
47957         * modules/truncf-tests (Files): Add tests/nan.h.
47958
47959         * tests/test-ceilf1.c: Include nan.h.
47960         (main): Use NaNf instead of NAN.
47961         * modules/ceilf-tests (Files): Add tests/nan.h.
47962
47963         * tests/test-floorf1.c: Include nan.h.
47964         (main): Use NaNf instead of NAN.
47965         * modules/floorf-tests (Files): Add tests/nan.h.
47966
47967         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47968         (main): Use NaNf instead of NAN.
47969         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47970
47971         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47972         (main): Use NaNd instead of NAN.
47973         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47974
47975         * tests/test-frexp.c: Include nan.h.
47976         (main): Use NaNd instead of NAN.
47977         * modules/frexp-tests (Files): Add tests/nan.h.
47978
47979         * lib/isnan.c: Don't include <math.h>.
47980         (FUNC): Don't use NAN macro.
47981         * modules/isnand-nolibm (Depends-on): Remove math.
47982         * modules/isnanf-nolibm (Depends-on): Remove math.
47983         * modules/isnanl (Depends-on): Remove math.
47984         * modules/isnanl-nolibm (Depends-on): Remove math.
47985
47986         * tests/nan.h: New file.
47987
47988 2008-04-01  Eric Blake  <ebb9@byu.net>
47989
47990         Fix typos.
47991         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47992         values to be the right type.
47993
47994         For now, cater to gnulib strtod inaccuracies.
47995         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47996         fractional results.  While not as nice from a QoI perspective, it
47997         is a quicker patch than correctly implementing decimal to binary
47998         rounding.
47999
48000 2008-03-31  Eric Blake  <ebb9@byu.net>
48001
48002         Guarantee a definition of NAN.
48003         * lib/math.in.h (NAN): Define if missing.
48004         * tests/test-math.c (main): Test it.
48005         * doc/posix-headers/math.texi (math.h): Document this.
48006         * lib/isnan.c (rpl_isnand): Use it.
48007         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48008         * tests/test-floorf1.c (NaN): Likewise.
48009         * tests/test-frexp.c (NaN): Likewise.
48010         * tests/test-isnand.c (NaN): Likewise.
48011         * tests/test-isnanf.c (NaN): Likewise.
48012         * tests/test-round1.c (NaN): Likewise.
48013         * tests/test-roundf1.c (NaN): Likewise.
48014         * tests/test-snprintf-posix.h (NaN): Likewise.
48015         * tests/test-sprintf-posix.h (NaN): Likewise.
48016         * tests/test-trunc1.c (NaN): Likewise.
48017         * tests/test-truncf1.c (NaN): Likewise.
48018         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48019         * tests/test-vasprintf-posix.c (NaN): Likewise.
48020         * modules/isnand-nolibm (Depends-on): Add math.
48021         * modules/isnanf-nolibm (Depends-on): Likewise.
48022         * modules/isnanl (Depends-on): Likewise.
48023         * modules/isnanl-nolibm (Depends-on): Likewise.
48024         * modules/snprintf-posix-tests (Depends-on): Likewise.
48025         * modules/sprintf-posix-tests (Depends-on): Likewise.
48026         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48027         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48028         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48029         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48030
48031 2008-03-31  Bruno Haible  <bruno@clisp.org>
48032
48033         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48034         * doc/posix-functions/strtod.texi: Likewise.
48035
48036 2008-03-31  Bruno Haible  <bruno@clisp.org>
48037
48038         * tests/test-strtod.c (main): Don't use C99 syntax.
48039
48040 2008-03-31  Bruno Haible  <bruno@clisp.org>
48041
48042         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48043         Reported by Eric Blake.
48044
48045 2008-03-31  Jim Meyering  <meyering@redhat.com>
48046
48047         Don't compare actual signbit return values.
48048         * tests/test-strtod.c (main): Rather, compare only their
48049         zero/non-zero nature.
48050
48051 2008-03-31  Eric Blake  <ebb9@byu.net>
48052
48053         More strtod documentation.
48054         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48055         failures as distinct bugs.
48056
48057 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48058
48059         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48060         Problem reported by Erik Benada in
48061         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48062
48063 2008-03-30  Bruno Haible  <bruno@clisp.org>
48064
48065         * tests/test-strtod.c: Add comments about which assertion fails on which
48066         platform.
48067         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48068
48069 2008-03-30  Eric Blake  <ebb9@byu.net>
48070
48071         Test signbit behavior on zeros.
48072         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48073         (test_signbitd, test_signbitl): Likewise.
48074
48075         More strtod touchups.
48076         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48077         sign of negative underflow, for now.  Use .5, not .1.
48078         * doc/posix-functions/strtod.texi (strtod): Mention these
48079         limitations.
48080         Reported by Jim Meyering.
48081
48082 2008-03-30  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48085         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48086
48087 2008-03-30  Bruno Haible  <bruno@clisp.org>
48088
48089         Avoid failure when attempting to return empty iconv results on some
48090         platforms.
48091         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48092         allocation, don't report ENOMEM when the resulting string is empty.
48093
48094 2008-03-30  Bruno Haible  <bruno@clisp.org>
48095
48096         Fix buffer overrun.
48097         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48098         Don't consider the width for tmp_length. Check count against tmp_length
48099         before doing the padding. Ensure enough allocation during padding.
48100
48101 2008-03-30  Eric Blake  <ebb9@byu.net>
48102
48103         strtod touchups.
48104         * lib/strtod.c (strtod): Avoid compiler warnings.
48105         Reported by Jim Meyering.
48106
48107 2008-03-30  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48110         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48111         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48112         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48113         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48114         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48115         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48116         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48117
48118         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48119         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48120         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48121         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48122         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48123         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48124         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48125         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48126
48127         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48128         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48129         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48130         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48131         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48132         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48133         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48134         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48135
48136         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48137         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48138
48139         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48140         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48141
48142         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48143         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48144
48145         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48146         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48147         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48148
48149         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48150         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48151         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48152
48153         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48154         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48155         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48156
48157         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48159         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48160
48161         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48162         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48164         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48165         (Depends-on): Add EOVERFLOW.
48166         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48167         (Depends-on): Add EOVERFLOW.
48168         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48169         (Depends-on): Add EOVERFLOW.
48170         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48171         (Depends-on): Add EOVERFLOW.
48172         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48173         (Depends-on): Add EOVERFLOW.
48174         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48175         (Depends-on): Add EOVERFLOW.
48176         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48177         (Depends-on): Add EOVERFLOW.
48178         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48179         (Depends-on): Add EOVERFLOW.
48180
48181         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48183         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48184
48185         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48186         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48187         * modules/snprintf (Depends-on): Add EOVERFLOW.
48188
48189         * lib/poll.c (EOVERFLOW): Remove fallback.
48190         * modules/poll (Depends-on): Add EOVERFLOW.
48191
48192         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48193         * modules/getugroups (Depends-on): Add EOVERFLOW.
48194
48195         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48196         * modules/getdelim (Depends-on): Add EOVERFLOW.
48197
48198         * lib/ftell.c (EOVERFLOW): Remove fallback.
48199         * modules/ftell (Depends-on): Add EOVERFLOW.
48200
48201         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48202         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48203         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48204
48205         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48206
48207         * modules/EOVERFLOW-tests: New file.
48208         * tests/test-EOVERFLOW.c: New file.
48209
48210         * modules/EOVERFLOW: New file.
48211         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48212
48213 2008-03-30  Bruno Haible  <bruno@clisp.org>
48214
48215         Fix bug introduced on 2007-06-10.
48216         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48217         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48218
48219 2008-03-30  Bruno Haible  <bruno@clisp.org>
48220
48221         Improve freadseek's efficiency after ungetc.
48222         * lib/freadseek.c: Include freadahead.h.
48223         (freadptrinc): New function, extracted from freadseek.
48224         (freadseek): Use it in a loop. Use freadahead to determine the number
48225         of loop iterations.
48226         * modules/freadseek (Depends-on): Add freadahead.
48227         (configure.ac): Require AC_C_INLINE.
48228
48229 2008-03-30  Bruno Haible  <bruno@clisp.org>
48230
48231         * lib/freadseek.c (freadseek): Don't ignore the return value of
48232         freadptr.
48233
48234 2008-03-29  Eric Blake  <ebb9@byu.net>
48235
48236         Add hex float support.
48237         * modules/strtod (Depends-on): Add c-ctype.
48238         (Link): Mention POW_LIB.
48239         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48240         whitespace between 'e' and exponent.
48241         * tests/test-strtod.c (main): Enable hex float tests.
48242         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48243         now provides.
48244
48245         Document various strtod bugs, with some fixes.
48246         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48247         "-0x", "inf", "nan", and hex constants.
48248         * doc/posix-functions/atof.texi (atof): Likewise.
48249         * modules/stdlib (Makefile.am): Support strtod.
48250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48251         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48252         detect additional strtod bugs.
48253         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48254         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48255         bool where appropriate.  Parse 'inf' and 'nan'.
48256         * tests/test-strtod.c: New file.
48257         * modules/strtod (Depends-on): Add stdbool, stdlib.
48258         (configure.ac): Turn on module indicator.
48259         * modules/strtod-tests: New module.
48260
48261 2008-03-29  Eric Blake  <ebb9@byu.net>
48262
48263         Fix ftell on mingw.
48264         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48265         * modules/ftell-tests (Depends-on): Add binary-io.
48266         * modules/ftello-tests (Depends-on): Likewise.
48267         * tests/test-ftell.c (main): Enhance test to cover behavior after
48268         ungetc.  Enforce binary mode.
48269         * tests/test-ftello.c (main): Likewise.
48270
48271         Pass test-freadseek on cygwin.
48272         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48273         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48274         ungetc buffer.
48275
48276         * tests/test-fflush2.c (main): Fix typo.
48277
48278 2008-03-29  Bruno Haible  <bruno@clisp.org>
48279
48280         * tests/test-fflush2.c (main): Temporarily disable the contents of
48281         this test.
48282         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48283         Reported by Eric Blake.
48284
48285 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48286
48287         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48288         (GC_SHA224_DIGEST_SIZE): Add.
48289
48290         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48291         (gc_hash_digest_length): Likewise.
48292         (gc_hash_buffer): Likewise.
48293
48294 2008-03-25  Bruno Haible  <bruno@clisp.org>
48295
48296         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48297         detail which gettext release to use.
48298         Reported by Simon Josefsson.
48299
48300 2008-03-26  Jim Meyering  <meyering@redhat.com>
48301
48302         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48303         * modules/gnumakefile (clean-GNUmakefile): Also, use
48304         test ... && ... || : syntax rather than if-then ... fi.
48305
48306         gnumakefile: Don't double-quote-expand $(VPATH) value.
48307         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48308
48309 2008-03-24  Eric Blake  <ebb9@byu.net>
48310
48311         Alter GNUmakefile to install into top directory.
48312         * modules/maintainer-makefile: Split, and add dependency...
48313         * modules/gnumakefile: to this new module.
48314         * build-aux/GNUmakefile: Move...
48315         * top/GNUmakefile: ...here.
48316         * build-aux/maint.mk: Move...
48317         * top/maint.mk: ...here.
48318         * MODULES.html.sh (Support for maintaining...): Document new
48319         module.
48320
48321 2008-03-23  Bruno Haible  <bruno@clisp.org>
48322
48323         * gnulib-tool: New options --vc-files, --no-vc-files.
48324         (func_usage): Document them.
48325         (vc_files): New variable.
48326         (func_import): Consider vc_files.
48327         (func_create_testdir): Set vc_files to empty.
48328         Suggested by Jim Meyering and Karl Berry.
48329
48330 2008-03-23  Bruno Haible  <bruno@clisp.org>
48331
48332         Fix regex compilation error on HP-UX 11.
48333         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48334         * modules/regex (Files): Add m4/mbstate_t.m4.
48335         Reported by Ton Voon <ton.voon@altinity.com>.
48336
48337 2008-03-23  Bruno Haible  <bruno@clisp.org>
48338
48339         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48340
48341 2008-03-23  Eric Blake  <ebb9@byu.net>
48342             Bruno Haible  <bruno@clisp.org>
48343
48344         Install files from top/ in the destination directory.
48345         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48346         augmentation also for the files from top/.
48347         (func_import, func_create_testdir): Rewrite file names:
48348         top/filename -> filename.
48349
48350 2008-03-23  Bruno Haible  <bruno@clisp.org>
48351
48352         Tweak "gnulib --version" output.
48353         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48354
48355 2008-03-23  Bruno Haible  <bruno@clisp.org>
48356
48357         Tweak "gnulib --version" output.
48358         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48359         rather than contents of ChangeLog, when possible.
48360
48361 2008-03-21  Eric Blake  <ebb9@byu.net>
48362
48363         More --version tweaks.
48364         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48365         date of last ChangeLog entry.
48366
48367 2008-03-21  Jim Meyering  <meyering@redhat.com>
48368
48369         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48370
48371 2008-03-20  Eric Blake  <ebb9@byu.net>
48372
48373         VPATH fix.
48374         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48375
48376 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48377
48378         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48379         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48380
48381 2008-03-20  Eric Blake  <ebb9@byu.net>
48382
48383         Sync GNUmakefile with coreutils.
48384         * build-aux/GNUmakefile (have-Makefile): Rename...
48385         (_have-Makefile): ...to this, for namespace consideration.
48386         (GNUmakefile.cfg): Include, if present.
48387         (_autoreconf): Define a default.
48388         (_is-dist-target): New rule for rebuilds to pick up intra-release
48389         version.
48390         (maint-cfg.mk): Rename...
48391         (cfg.mk): ...to this.
48392
48393 2008-03-18  Jim Meyering  <meyering@redhat.com>
48394
48395         New script and module: mktempd
48396         * MODULES.html.sh (maint+release support): Add mktempd.
48397         * build-aux/mktempd: New file.
48398         * modules/mktempd: New file.
48399
48400 2008-03-15  Jim Meyering  <meyering@redhat.com>
48401
48402         Undo last change.
48403         * lib/sha1.c, lib/md5.c: 63 != ~63.
48404         Reported by Andreas Schwab.
48405
48406         sha1.c, md5.c: Hoist a redundant expression.
48407         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48408         "ctx->buflen" only once, before calling *_process_block.
48409         * lib/md5.c (md5_process_bytes): Likewise.
48410
48411 2008-03-14  Eric Blake  <ebb9@byu.net>
48412
48413         Bump copyright year in files generated by gnulib-tool.
48414         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48415         gnulib-tool, rather than hard-coding it.
48416
48417         Fix 'gnulib-tool --version' output to work with git.
48418         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48419         (startup): ...here.
48420         (func_version): Use it to invoke git-version-gen, rather than
48421         relying on CVS keyword expansion.  Modernize wording.
48422         (cvsdatestamp, last_checkin_date, version): Kill unused
48423         variables.
48424
48425 2008-03-12  Jim Meyering  <meyering@redhat.com>
48426
48427         Recognize optional cast of the argument to free.
48428         * build-aux/useless-if-before-free: Update regexps.
48429
48430         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48431
48432 2008-03-11  Bruno Haible  <bruno@clisp.org>
48433
48434         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48435         by a single package.
48436         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48437         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48438         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48439         Reported by Sam Steingold <sds@gnu.org>.
48440
48441 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48442
48443         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48444         repositories.
48445
48446 2008-03-11  Bruno Haible  <bruno@clisp.org>
48447
48448         Avoid conflicts between local macro definitions.
48449         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48450         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48451
48452 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48453             Bruno Haible  <bruno@clisp.org>
48454
48455         Make va_copy work with some version of xlc on AIX 5.1.
48456         * lib/stdarg.in.h: New file.
48457         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48458         On AIX, use a <stdarg.h> file substitute.
48459         * modules/stdarg (Files): Add lib/stdarg.in.h.
48460         (Depends-on): Add include_next.
48461         (Makefile.am): Build a stdarg.h substitute if requested.
48462         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48463
48464 2008-03-10  Bruno Haible  <bruno@clisp.org>
48465
48466         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48467         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48468         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48469
48470 2008-03-10  Bruno Haible  <bruno@clisp.org>
48471
48472         * modules/stdlib (Depends-on): Add include_next, remove
48473         absolute-header.
48474
48475 2008-03-09  Bruno Haible  <bruno@clisp.org>
48476
48477         * lib/freadahead.h (freadahead): Document more precisely.
48478         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48479         the sum of both buffer sizes.
48480         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48481         * NEWS: Document the change.
48482
48483 2008-03-09  Bruno Haible  <bruno@clisp.org>
48484
48485         Extend freadptr to return also the buffer size.
48486         * lib/freadptr.h (freadptr): Add sizep argument.
48487         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48488         (freadptr): Add sizep argument. Determine buffer size like freadahead
48489         does.
48490         * tests/test-freadptr.c: Don't include freadahead.h.
48491         (main): Adapt for new calling convention of freadptr.
48492         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48493         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48494         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48495         tests/test-freadptr2.sh.
48496         (Depends): Remove freadahead.
48497         (TESTS): Add test-freadptr2.sh.
48498         (check_PROGRAMS): Add test-freadptr2.
48499
48500 2008-03-09  Bruno Haible  <bruno@clisp.org>
48501
48502         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48503         Report and solution by Simon Josefsson.
48504
48505 2008-03-06  Bruno Haible  <bruno@clisp.org>
48506
48507         Make fflush after ungetc work on BSD platforms.
48508         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48509         * tests/test-fflush2.c: New file.
48510         * tests/test-fflush2.sh: New file.
48511         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48512         tests/test-fflush2.c.
48513         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48514         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48515
48516 2008-03-06  Eric Blake  <ebb9@byu.net>
48517
48518         Likewise for ftello.
48519         * modules/ftello (Dependencies): Add extensions.
48520         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48521
48522 2008-03-06  Bruno Haible  <bruno@clisp.org>
48523
48524         * modules/fseeko (Dependencies): Add extensions.
48525         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48526         Needed on glibc systems.
48527
48528 2008-03-06  Bruno Haible  <bruno@clisp.org>
48529
48530         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48531         email address.
48532         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48533
48534 2008-03-06  Bruno Haible  <bruno@clisp.org>
48535
48536         * users.txt: Add libgnupdf.
48537
48538 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48539
48540         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48541         (Header File Substitutes, Function Substitutes,
48542         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48543         (Build robot for gnulib): Fix typo.
48544
48545 2008-03-06  Bruno Haible  <bruno@clisp.org>
48546
48547         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48548         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48549
48550 2008-03-06  Bruno Haible  <bruno@clisp.org>
48551
48552         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48553         * doc/gnulib.texi: Include it.
48554
48555 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48556
48557         * modules/func (License): Change license to unlimited; there was
48558         no LGPL parts in the module anyway.
48559
48560 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48561
48562         * modules/__func__: Renamed to modules/func.
48563         * modules/__func__-tests: Renamed to modules/func-tests.
48564         * tests/test-__func__.c: Renamed to tests/test-func.c.
48565         * m4/__func__.m4: Renamed to m4/func.m4.
48566         * doc/gnulib.texi (__func__): Section renamed to func.
48567         Suggested by Eric Blake <ebb9@byu.net>.
48568
48569 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48570
48571         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48572         about __func__.  Make example self-contained.  Suggested by Eric
48573         Blake <ebb9@byu.net>.
48574
48575         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48576         Suggested by Eric Blake <ebb9@byu.net>.
48577
48578 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48579
48580         * modules/__func__: New file.
48581         * modules/__func__-tests: New file.
48582         * tests/test-__func__.c: New file.
48583         * m4/__func__.m4: New file.
48584         * doc/gnulib.texi (__func__): Document __func__ module.
48585
48586 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48587
48588         * modules/byteswap (License): Re-license as LGPLv2+.
48589
48590 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48591
48592         * doc/Makefile: Add pdf target.
48593
48594 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48595
48596         * modules/inline (License): Use 'unlimited', since there are only
48597         *.m4 files in this module.
48598
48599 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48600             Bruno Haible  <bruno@clisp.org>
48601
48602         Add support for HP C 7.1 on OpenVMS 8.3.
48603         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48604
48605 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48606
48607         Update VMS specifics.
48608         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48609
48610 2008-03-02  Jim Meyering  <meyering@redhat.com>
48611
48612         Remove the last dependency on the "free" module.
48613         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48614         Reported by Bob Proulx.
48615
48616         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48617
48618         Remove useless "if" tests before free.  Deprecate "free" module.
48619         * doc/posix-functions/free.texi: Mention that this
48620         module is no longer useful.
48621         * modules/free (Notice): Say this module is obsolete.
48622         * modules/readutmp (Depends-on): Remove free.
48623         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48624         * lib/putenv.c (putenv): Likewise.
48625         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48626         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48627         * tests/test-c-strcasestr.c (main): Likewise.
48628         * tests/test-c-strstr.c (main): Likewise.
48629         * tests/test-mbscasestr1.c (main): Likewise.
48630         * tests/test-mbscasestr2.c (main): Likewise.
48631         * tests/test-mbsstr1.c (main): Likewise.
48632         * tests/test-mbsstr2.c (main): Likewise.
48633         * tests/test-memmem.c (main): Likewise.
48634         * tests/test-strcasestr.c (main): Likewise.
48635         * tests/test-striconv.c (main): Likewise.
48636         * tests/test-striconveh.c (main): Likewise.
48637         * tests/test-striconveha.c (main): Likewise.
48638         * tests/test-strstr.c (main): Likewise.
48639
48640         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48641
48642         bootstrap: sync from coreutils again
48643         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48644
48645 2008-03-01  Jim Meyering  <meyering@redhat.com>
48646
48647         bootstrap: sync from coreutils
48648         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48649         also when the target doesn't exist.
48650
48651 2008-03-01  Eric Blake  <ebb9@byu.net>
48652
48653         Fix bugs in last patch.
48654         * lib/memchr2.c (memchr2): Fix typo.
48655         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48656         extension.
48657         Reported by Bruce Korb.
48658
48659         New module 'memchr2'.
48660         * modules/memchr2: New file.
48661         * modules/memchr2-tests: Likewise.
48662         * lib/memchr2.h: Likewise.
48663         * lib/memchr2.c: Likewise, based on memchr.c.
48664         * tests/test-memchr2.c: New test.
48665         * MODULES.html.sh (String handling): Add memchr2.
48666
48667 2008-02-29  Bruno Haible  <bruno@clisp.org>
48668
48669         * modules/freadseek-tests: New file.
48670         * tests/test-freadseek.sh: New file.
48671         * tests/test-freadseek.c: New file.
48672
48673         New module 'freadseek'.
48674         * modules/freadseek: New file.
48675         * lib/freadseek.h: New file.
48676         * lib/freadseek.c: New file.
48677         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48678
48679 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48680
48681         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48682         wydawca.
48683
48684         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48685         program_invocation_name and program_invocation_short_name are
48686         present.
48687
48688 2008-02-28  Bruno Haible  <bruno@clisp.org>
48689
48690         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48691         * tests/test-freadptr.sh: Also test non-seekable stdin.
48692
48693 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48694
48695         * build-aux/bootstrap (source_base, m4_base)
48696         (doc_base, tests_base): New variables.
48697         (gnulib_tool_options): Do not hardcode base directories, use
48698         the above variables instead.
48699
48700 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48701
48702         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48703
48704 2008-02-28  Bruno Haible  <bruno@clisp.org>
48705
48706         * modules/freadptr-tests: New file.
48707         * tests/test-freadptr.sh: New file.
48708         * tests/test-freadptr.c: New file.
48709
48710         New module 'freadptr'.
48711         * modules/freadptr: New file.
48712         * lib/freadptr.h: New file.
48713         * lib/freadptr.c: New file.
48714         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48715
48716 2008-02-26  Karl Berry  <karl@freefriends.org>
48717
48718         Sync from Libtool:
48719         * libltdl/argz.c (argz_add, argz_count): New functions.
48720         * libltdl/argz.in.h: Declare them.
48721         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48722
48723 2008-02-22  Bruno Haible  <bruno@clisp.org>
48724
48725         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48726         is a pointer type.  Needed for HP-UX 10.
48727         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48728         * doc/posix-functions/gmtime_r.texi: Likewise.
48729         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48730
48731 2008-02-24  Bruno Haible  <bruno@clisp.org>
48732
48733         * modules/environ-tests: New file.
48734         * tests/test-environ.c: New file.
48735
48736         New module 'environ'.
48737         * modules/environ: New file.
48738         * lib/unistd.in.h (environ): New declaration.
48739         * m4/environ.m4: New file.
48740         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48741         after use.
48742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48743         HAVE_DECL_ENVIRON.
48744         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48745         HAVE_DECL_ENVIRON.
48746         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48747         wrong claim that 'environ' is missing on some systems.
48748         * modules/execute (Depends-on): Add environ.
48749         * lib/execute.c (environ): Remove fallback declaration.
48750         * modules/pipe (Depends-on): Add environ.
48751         * lib/pipe.c (environ): Remove fallback declaration.
48752         * modules/setenv (Depends-on): Add environ.
48753         * lib/setenv.c (environ): Remove fallback declaration.
48754         * modules/unsetenv (Depends-on): Add environ.
48755         * lib/unsetenv.c (environ): Remove fallback declaration.
48756         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48757         m4/environ.m4.
48758         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48759         (gl_PREREQ_UNSETENV): Likewise.
48760
48761 2008-02-24  Bruno Haible  <bruno@clisp.org>
48762
48763         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48764
48765 2008-02-20  Bob Proulx  <bob@proulx.com>
48766
48767         Enable use of older two part flavor 'git describe'.
48768         * build-aux/git-version-gen: If using the older two part flavor of
48769         git version then recreate the third part now present in the
48770         newer three part flavor of git describe.
48771
48772 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48773
48774         * lib/fts.c (fts_build): Typo correction to comment.
48775
48776 2008-02-17  Bruno Haible  <bruno@clisp.org>
48777
48778         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48779         generating no-op conflicts.
48780
48781 2008-02-17  Bruno Haible  <bruno@clisp.org>
48782
48783         Speed up by 10%.
48784         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48785         result_entries, rather than an index-based loop.
48786
48787 2008-02-17  Bruno Haible  <bruno@clisp.org>
48788
48789         Speed up by 25%.
48790         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48791         'hashcode_cached'.
48792         (entry_create): New function.
48793         (entry_hashcode): Use the cached hashcode if possible.
48794         (read_changelog_file, try_split_merged_entry): Use entry_create.
48795
48796 2008-02-17  Bruno Haible  <bruno@clisp.org>
48797
48798         Speed up from O(n^2) to O(n) for long ChangeLog files.
48799         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48800         (read_changelog_file): Change implementation of entries_reversed list
48801         to rbtreehash.
48802         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48803
48804 2008-02-17  Bruno Haible  <bruno@clisp.org>
48805
48806         New option --split-merged-entry.
48807         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48808         (find_paragraph_end, try_split_merged_entry): New functions.
48809         (long_options): Add option --split-merged-entry.
48810         (usage): Document option --split-merged-entry.
48811         (main): Implement option --split-merged-entry.
48812         Reported by Eric Blake.
48813
48814 2008-02-17  Bruno Haible  <bruno@clisp.org>
48815
48816         * lib/git-merge-changelog.c: Include c-strstr.h.
48817         (main): Support the "git pull --rebase" situation.
48818         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48819         Reported by Eric Blake.
48820
48821 2008-02-16  Eric Blake  <ebb9@byu.net>
48822
48823         Avoid doubling \ in common case of "c-maybe" quoting style.
48824         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48825         eliding outer quotes.
48826         * lib/quotearg.h: Document this.
48827         * tests/test-quotearg.c (result_strings, inputs, results_g)
48828         (flag_results, locale_results): Test it by adding a new string to
48829         each test group.
48830         (compare_strings): Test new string.
48831
48832 2008-02-13  Eric Blake  <ebb9@byu.net>
48833
48834         Avoid trigraph quoting in default output.
48835         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48836         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48837         unless explicitly requested.
48838         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48839
48840 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48841
48842         Don't rely on signed integer overflowing to negative value.
48843         * lib/getugroups.c (getugroups): Include <limits.h>.
48844         Instead, compare against INT_MAX, and increment only if the test passes.
48845
48846 2008-02-13  Jim Meyering  <meyering@redhat.com>
48847         and Eric Blake  <ebb9@byu.net>
48848
48849         Avoid shadowing warning and compile errors on Linux.
48850         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48851         forwarding macros on Linux.
48852         (dcgettext): Define a stub, for Linux.
48853         (results_g, main): Avoid warnings.
48854
48855 2008-02-12  Eric Blake  <ebb9@byu.net>
48856
48857         Silence warning in last patch.
48858         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48859
48860         Quotearg part 4: add tests, fix c-maybe colon quoting.
48861         * lib/quotearg.h: Improve documentation.
48862         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48863         escapes when adding outer quotes.  When quoting trigraphs, use
48864         valid C notation.  When quoting NUL, omit extra characters if next
48865         character is not digit.  Alter prototype.
48866         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48867         callers.
48868         * modules/quotearg-tests: New module.
48869         * tests/test-quotearg.c: New test.
48870
48871 2008-02-07  Eric Blake  <ebb9@byu.net>
48872
48873         Quotearg part 3: add flag to control outer quote elision.
48874         * lib/quotearg.h (c_maybe_quoting_style): New style.
48875         (enum quoting_flags): Better documentation of flags.
48876         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48877         c-maybe style.
48878         (quotearg_buffer_restyled): Handle new flag to elide outer
48879         quotes.
48880
48881         Quotearg part 2: add flag that can control NUL elision.
48882         * lib/quotearg.h (set_quoting_flags): New prototype.
48883         * lib/quotearg.c (struct quoting_options): Add flag field.
48884         (set_quoting_flags): New function.
48885         (quotearg_buffer_restyled): Add flags parameter.
48886         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48887         (quotearg_n_options): Set the flag, since length cannot be
48888         returned.
48889         (quoting_options_from_style): Default flags correctly.
48890
48891         Quotearg part 1: more wrappers, restore quotearg_char state.
48892         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48893         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48894         (quotearg_colon_mem): New wrappers.
48895         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48896         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48897         functions.
48898         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48899         (quotearg_colon_mem): New functions.
48900
48901 2008-02-11  Bruno Haible  <bruno@clisp.org>
48902
48903         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48904         library in the current directory: it does not work with parallel make.
48905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48906
48907 2008-02-11  Bruno Haible  <bruno@clisp.org>
48908
48909         * .gitattributes: New file.
48910
48911 2008-02-11  Jim Meyering  <meyering@redhat.com>
48912
48913         useless-if-before-free: Fix reversed exit values.
48914         * build-aux/useless-if-before-free: Use correct values
48915         for EXIT_MATCH and EXIT_NO_MATCH.
48916
48917         * build-aux/useless-if-before-free: Close stdout carefully.
48918
48919 2008-02-10  Bruno Haible  <bruno@clisp.org>
48920
48921         New module 'git-merge-changelog'.
48922         * modules/git-merge-changelog: New file.
48923         * lib/git-merge-changelog.c: New file.
48924
48925 2008-02-10  Jim Meyering  <meyering@redhat.com>
48926
48927         useless-if-before-free: New option: --list (-l).
48928
48929         useless-if-before-free: Don't exit immediately upon open failure.
48930         * build-aux/useless-if-before-free: Exit 2 for errors.
48931         Upon failure to open a file, don't exit immediately.
48932         Rather, just warn and continue with any remaining files.
48933
48934 2008-02-10  Bruno Haible  <bruno@clisp.org>
48935
48936         New abstract list operation 'node_set_value'.
48937         * lib/gl_list.h (gl_list_node_set_value): New function.
48938         (struct gl_list_implementation): New field node_set_value.
48939         * lib/gl_list.c (gl_list_node_set_value): New function.
48940         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48941         (gl_array_list_implementation): Update.
48942         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48943         (gl_carray_list_implementation): Update.
48944         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48945         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48946         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48947         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48948         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48949         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48950         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48951         Update.
48952         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48953         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48954         (gl_sublist_list_implementation): Update.
48955
48956 2008-02-10  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48959         Needed when ELEMENT is #defined to 'some_type *'.
48960
48961 2008-02-10  Jim Meyering  <meyering@redhat.com>
48962
48963         New script and module: useless-if-before-free
48964         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48965         * build-aux/useless-if-before-free: New file.
48966         * modules/useless-if-before-free: New file.
48967
48968         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48969
48970         xstrtol_error: Fix typo.
48971         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48972         s/exit_failure/exit_status/.
48973
48974 2008-02-09  Jim Meyering  <meyering@redhat.com>
48975
48976         New script and module: gitlog-to-changelog
48977         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48978         * modules/gitlog-to-changelog: New file.
48979         * build-aux/gitlog-to-changelog: New file.
48980
48981 2008-02-08  Jim Meyering  <meyering@redhat.com>
48982
48983         Avoid two "parameter unused" warnings.
48984         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48985         Mark "st" as used.
48986
48987         Use "git COMMAND", not "git-COMMAND".
48988         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48989         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48990         * build-aux/git-version-gen: Use "git status", not "git-status".
48991
48992 2008-02-07  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48995         Avoids a crash on Windows Vista.
48996         Reported by Adam Strzelecki <ono@java.pl> via
48997         Simon Josefsson <simon@josefsson.org>.
48998
48999 2008-02-06  Bruno Haible  <bruno@clisp.org>
49000
49001         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49002         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49003         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49005         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49006         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49007         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49008         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49009         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49010         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49011         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49012         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49013         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49015         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49016         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49017         left-adjust flag.
49018         * tests/test-snprintf-posix.h (test_function): Likewise.
49019         * tests/test-sprintf-posix.h (test_function): Likewise.
49020         * tests/test-vasprintf-posix.c (test_function): Likewise.
49021         * doc/posix-functions/fprintf.texi: Update.
49022         * doc/posix-functions/printf.texi: Update.
49023         * doc/posix-functions/snprintf.texi: Update.
49024         * doc/posix-functions/sprintf.texi: Update.
49025         * doc/posix-functions/vfprintf.texi: Update.
49026         * doc/posix-functions/vprintf.texi: Update.
49027         * doc/posix-functions/vsnprintf.texi: Update.
49028         * doc/posix-functions/vsprintf.texi: Update.
49029         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49030
49031 2008-02-06  Bruno Haible  <bruno@clisp.org>
49032
49033         Fix bug introduced on 2008-01-26.
49034         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49035
49036 2008-02-06  Bruno Haible  <bruno@clisp.org>
49037
49038         Fix bug introduced on 2007-06-10.
49039         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49040         !NEED_PRINTF_FLAG_ZERO.
49041
49042 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49043
49044         getloadavg: use libperfstat on AIX5
49045         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49046
49047 2008-02-03  Bruno Haible  <bruno@clisp.org>
49048
49049         * lib/diffseq.h: Add comments about required #includes.
49050         Reported by Michael Biggs <gnulib@doubleplum.net>.
49051
49052 2008-02-01  Bruno Haible  <bruno@clisp.org>
49053
49054         * users.txt: Add gnuit.
49055
49056 2008-01-31  Bruno Haible  <bruno@clisp.org>
49057
49058         * lib/md4.c (set_uint32): Mark as inline.
49059         * lib/md5.c (set_uint32): Likewise.
49060         * lib/sha1.c (set_uint32): Likewise.
49061         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49062         * m4/md5.m4 (gl_MD5): Likewise.
49063         * m4/sha1.m4 (gl_SHA1): Likewise.
49064
49065 2008-01-31  Jim Meyering  <meyering@redhat.com>
49066
49067         Use "sizeof VAR", rather than a literal "4".
49068         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49069         * lib/md4.c (md4_read_ctx): Likewise.
49070         * lib/sha1.c (sha1_read_ctx): Likewise.
49071
49072 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49073
49074         * tests/test-sha1.c: New file, based on test-md5.c.
49075
49076         * modules/crypto/sha1-tests: New file.
49077
49078 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49079
49080         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49081
49082 2008-01-31  Jim Meyering  <meyering@redhat.com>
49083
49084         Prefer "sizeof v" over the equivalent "4".
49085         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49086         * lib/md5.c (set_uint32): Likewise.
49087         * lib/sha1.c (set_uint32): Likewise.
49088
49089 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49090
49091         * lib/sha1.c (set_uint32): Mark function as static.
49092
49093 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49094
49095         md2: clarify comments to say that alignment is not required.
49096         * lib/md2.h: Remove warning about alignment in comment.
49097         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49098         never been required.
49099
49100 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49101
49102         md4: adapt alignment constraint fix from sha1.
49103         * lib/md4.c (set_uint32): New function, from sha1.c
49104         (md4_read_ctx): Use it.
49105         (md4_finish_ctx): Doc fix.
49106         * lib/md4.h: Doc fix.
49107
49108 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49109
49110         md5: adapt alignment constraint fix from sha1.
49111         * lib/md5.c (set_uint32): New function, from sha1.c
49112         (md5_read_ctx): Use it.
49113         (md5_finish_ctx): Doc fix.
49114         * lib/md5.h: Doc fix.
49115
49116 2008-01-30  Peter Palfrader  <weasel@debian.org>
49117
49118         sha1: remove the result buffer alignment constraint
49119         * lib/sha1.c (set_uint32): New function.
49120         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49121         constraint.
49122         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49123         * lib/sha1.h: Likewise.
49124
49125 2008-01-30  Andreas Schwab  <schwab@suse.de>
49126             Bruno Haible  <bruno@clisp.org>
49127
49128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49129         correct definition of LDBL_MIN_EXP.
49130
49131 2008-01-30  Karl Berry  <karl@gnu.org>
49132
49133         * config/srclist-update: try to preserve x bit on updates.
49134         * config/srclistvars.sh: update for karl.
49135
49136 2008-01-29  Jim Meyering  <meyering@redhat.com>
49137
49138         vasnprintf.c: Avoid warning about unused label
49139         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49140         "overflow" label definition and associated code with the
49141         same cpp condition that guards the sole use of that label.
49142
49143 2008-01-26  Bruno Haible  <bruno@clisp.org>
49144
49145         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49146         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49147         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49148         * lib/isnanl-nolibm.h (isnanl): Likewise.
49149         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49150
49151 2008-01-26  Bruno Haible  <bruno@clisp.org>
49152
49153         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49154         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49155
49156 2008-01-26  Bruno Haible  <bruno@clisp.org>
49157
49158         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49159         GCC >= 4.0 built-in.
49160         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49161
49162 2008-01-26  Bruno Haible  <bruno@clisp.org>
49163
49164         Rename isnan, applicable to 'double' only, to isnand.
49165         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49166         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49167         (configure.ac): Update.
49168         (Include): Replace "isnan.h" with "isnand.h".
49169         * m4/isnand.m4: Renamed from m4/isnan.m4.
49170         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49171         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49172         instead of isnan.c.
49173         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49174         instead of HAVE_ISNAN_IN_LIBC.
49175         (isnand): Renamed from isnan.
49176         * lib/isnand.c: New file.
49177         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49178         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49179         (Makefile.am): Update.
49180         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49181         Include isnand.h instead of isnan.h.
49182         (main): Test isnand instead of isnan.
49183         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49184         isnan-nolibm.
49185         * modules/frexp (Depends-on): Likewise.
49186         * modules/frexp-tests (Depends-on): Likewise.
49187         * modules/frexp-nolibm (Depends-on): Likewise.
49188         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49189         * modules/isfinite (Depends-on): Likewise.
49190         * modules/round-tests (Depends-on): Likewise.
49191         * modules/signbit (Depends-on): Likewise.
49192         * modules/signbit-tests (Depends-on): Likewise.
49193         * modules/snprintf-posix (Depends-on): Likewise.
49194         * modules/sprintf-posix (Depends-on): Likewise.
49195         * modules/trunc-tests (Depends-on): Likewise.
49196         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49197         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49198         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49199         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49200         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49201         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49202         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49203         * modules/vasnprintf-posix (Depends-on): Likewise.
49204         * modules/vasprintf-posix (Depends-on): Likewise.
49205         * modules/vfprintf-posix (Depends-on): Likewise.
49206         * modules/vsnprintf-posix (Depends-on): Likewise.
49207         * modules/vsprintf-posix (Depends-on): Likewise.
49208         * lib/frexp.c: Include isnand.h instead of isnan.h.
49209         (ISNAN): Set to isnand instead of isnan.
49210         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49211         (gl_isfinited): Use isnand instead of isnan.
49212         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49213         (gl_signbitd): Use isnand instead of isnan.
49214         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49215         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49216         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49217         (main): Use isnand instead of isnan.
49218         * tests/test-round1.c: Include isnand.h.
49219         (main): Use isnand instead of isnan.
49220         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49221         (ISNAN): Set to isnand instead of isnan.
49222         * tests/test-trunc1.c: Include isnand.h.
49223         (main): Use isnand instead of isnan.
49224         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49225         (equal): Use isnand instead of isnan.
49226         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49227         isnand-nolibm.
49228         * NEWS: Mention the change.
49229
49230 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49231             Bruno Haible  <bruno@clisp.org>
49232
49233         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49234         the GCC builtins for signbits are present and set
49235         REPLACE_SIGNBIT_USING_GCC if so.
49236         * lib/math.in.h (signbit): Define using GCC builtins if
49237         REPLACE_SIGNBIT_USING_GCC is set.
49238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49239         REPLACE_SIGNBIT_USING_GCC.
49240         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49241
49242 2008-01-25  Jim Meyering  <meyering@redhat.com>
49243
49244         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49245         * lib/poll.c: Include <config.h>, not "config.h".
49246         * tests/test-getaddrinfo.c: Likewise.
49247
49248 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49249
49250         * modules/sockets-tests: New file.
49251
49252 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49253
49254         * modules/sockets: New module, can be used to call WSA_Startup and
49255         WSA_Cleanup when needed.
49256
49257         * lib/sockets.h, lib/sockets.c: New files.
49258
49259         * m4/sockets.m4: New file.
49260
49261         * tests/test-sockets.c: New file.
49262
49263 2008-01-19  Bruno Haible  <bruno@clisp.org>
49264
49265         * doc/posix-headers: Renamed from doc/headers.
49266         * doc/posix-functions: Renamed from doc/functions.
49267         * doc/gnulib.texi: Update.
49268
49269 2008-01-19  Bruno Haible  <bruno@clisp.org>
49270
49271         * doc/glibc-functions/strcasestr.texi: Include contents of
49272         doc/functions/strcasestr.texi, fixing the list of platforms.
49273         * doc/functions/strcasestr.texi: Remove file.
49274
49275 2008-01-19  Bruno Haible  <bruno@clisp.org>
49276
49277         * doc/glibc-functions/memmem.texi: Include contents of
49278         doc/functions/memmem.texi.
49279         * doc/functions/memmem.texi: Remove file.
49280
49281 2008-01-18  Bruno Haible  <bruno@clisp.org>
49282
49283         * doc/glibc-functions/*.texi: New files.
49284         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49285         to use the new files.
49286
49287 2008-01-17  Bruno Haible  <bruno@clisp.org>
49288
49289         * tests/test-gethostname.c (main): Fix printf statement.
49290
49291 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49292
49293         * modules/gethostname-tests: New file.
49294
49295         * tests/test-gethostname.c: New file.
49296
49297 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49298
49299         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49300         used by the UNAME case.  Reported by Bruno Haible
49301         <bruno@clisp.org>.
49302
49303 2008-01-17  Eric Blake  <ebb9@byu.net>
49304
49305         Convert c-strcasestr to be more efficient.
49306         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49307         (Depends-on): Add c-strcase, remove malloca, strnlen.
49308         * tests/test-c-strcasestr.c (main): Enhance test.
49309         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49310
49311 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49312
49313         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49314         Use it in creating po/Makevars.
49315
49316 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49317
49318         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49319         Applications that requires it should initialize libgcrypt
49320         manually.
49321
49322 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49323
49324         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49325
49326 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         Fix problem with getdate on mingw32 reported by Simon Josefsson
49329         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49330         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49331         tzname", when deciding whether to declare tzname.
49332         * lib/strftime.c (tzname): Likewise.
49333
49334 2008-01-15  Bruno Haible  <bruno@clisp.org>
49335
49336         Work around a MacOS X 10.5 bug in frexpl().
49337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49338         * doc/functions/frexpl.texi: Document the bug.
49339         Reported by Elias Pipping <pipping@gentoo.org>.
49340
49341 2008-01-14  Eric Blake  <ebb9@byu.net>
49342
49343         Touch up previous patch.
49344         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49345         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49346
49347         Convert strcasestr module to use Two-Way algorithm.
49348         * modules/strcasestr-simple: New module, based on the old
49349         strcasestr, but with Two-Way rather than KMP.
49350         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49351         * lib/string.in.h (rpl_strcasestr): Declare.
49352         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49353         performance.
49354         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49355         * modules/string (Makefile.am): Support strcasestr.
49356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49357         * modules/strcasestr-tests (Depends-on): Check for alarm.
49358         * tests/test-strcasestr.c: Augment test.
49359         * lib/str-two-way.h: Clean up stray macro.
49360         * NEWS: Document new module.
49361         * MODULES.html.sh (string handling): Likewise.
49362         * doc/functions/strcasestr.texi: New file.
49363         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49364         here, since it is not a POSIX function.
49365
49366 2008-01-14  Colin Watson  <cjwatson@debian.org>
49367             Bruno Haible  <bruno@clisp.org>
49368
49369         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49370         works fine; if not, set REPLACE_STRSIGNAL.
49371         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49373         REPLACE_STRSIGNAL.
49374         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49375         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49376         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49377
49378 2008-01-14  Bruno Haible  <bruno@clisp.org>
49379
49380         * modules/strsignal (Include): Change to <string.h>.
49381
49382 2008-01-14  Colin Watson  <cjwatson@debian.org>
49383
49384         * modules/argp (Notice): Add a notice recommending to change
49385         XGETTEXT_OPTIONS.
49386         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49387
49388 2008-01-13  Colin Watson  <cjwatson@debian.org>
49389
49390         * modules/strsignal-tests: New file.
49391         * tests/test-strsignal.c: New file.
49392
49393         * lib/strsignal.c: New file, from glibc with modifications.
49394         * lib/siglist.h: New file, from glibc with modifications.
49395         * lib/string.in.h (strsignal): New declaration.
49396         * m4/strsignal.m4: New file.
49397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49398         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49399         * modules/strsignal: New file.
49400         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49401         HAVE_DECL_STRSIGNAL.
49402
49403 2008-01-13  Bruno Haible  <bruno@clisp.org>
49404
49405         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49406         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49407         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49408         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49409
49410 2008-01-13  Bruno Haible  <bruno@clisp.org>
49411
49412         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49413         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49414         * lib/argp.h (__attribute__): Likewise.
49415         * lib/c-stack.c (__attribute__): Likewise.
49416         * lib/error.h (__attribute__): Likewise.
49417         * lib/fts.c (__attribute__): Likewise.
49418         * lib/openat.h (__attribute__): Likewise.
49419         * lib/stdio.in.h (__attribute__): Likewise.
49420         * lib/string.in.h (__attribute__): Likewise.
49421         * lib/utimens.c (__attribute__): Likewise.
49422         * lib/vasnprintf.h (__attribute__): Likewise.
49423         * lib/xalloc.h (__attribute__): Likewise.
49424         * lib/xprintf.h (__attribute__): Likewise.
49425         * lib/xstrtol.h (__attribute__): Likewise.
49426         * lib/xvasprintf.h (__attribute__): Likewise.
49427
49428 2008-01-12  Bruno Haible  <bruno@clisp.org>
49429
49430         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49431         * doc/glibc-headers/a.out.texi: New file.
49432         * doc/glibc-headers/aliases.texi: New file.
49433         * doc/glibc-headers/alloca.texi: New file.
49434         * doc/glibc-headers/ar.texi: New file.
49435         * doc/glibc-headers/argp.texi: New file.
49436         * doc/glibc-headers/argz.texi: New file.
49437         * doc/glibc-headers/byteswap.texi: New file.
49438         * doc/glibc-headers/crypt.texi: New file.
49439         * doc/glibc-headers/endian.texi: New file.
49440         * doc/glibc-headers/envz.texi: New file.
49441         * doc/glibc-headers/err.texi: New file.
49442         * doc/glibc-headers/error.texi: New file.
49443         * doc/glibc-headers/execinfo.texi: New file.
49444         * doc/glibc-headers/fpu_control.texi: New file.
49445         * doc/glibc-headers/fstab.texi: New file.
49446         * doc/glibc-headers/fts.texi: New file.
49447         * doc/glibc-headers/getopt.texi: New file.
49448         * doc/glibc-headers/ieee754.texi: New file.
49449         * doc/glibc-headers/ifaddrs.texi: New file.
49450         * doc/glibc-headers/libintl.texi: New file.
49451         * doc/glibc-headers/mcheck.texi: New file.
49452         * doc/glibc-headers/mntent.texi: New file.
49453         * doc/glibc-headers/obstack.texi: New file.
49454         * doc/glibc-headers/paths.texi: New file.
49455         * doc/glibc-headers/printf.texi: New file.
49456         * doc/glibc-headers/pty.texi: New file.
49457         * doc/glibc-headers/resolv.texi: New file.
49458         * doc/glibc-headers/shadow.texi: New file.
49459         * doc/glibc-headers/sysexits.texi: New file.
49460         * doc/glibc-headers/ttyent.texi: New file.
49461
49462 2008-01-12  Jim Meyering  <meyering@redhat.com>
49463
49464         announce-gen: emit Gnulib's git-based version string.
49465         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49466         New option --gnulib-version=V, where V is expected to be
49467         the output of running git describe in the gnulib directory.
49468         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49469         not useful, and plan to stop publishing an xdelta file with each
49470         coreutils release.
49471
49472         * build-aux/announce-gen: Also check for lzma-compressed files.
49473
49474 2008-01-11  Bruno Haible  <bruno@clisp.org>
49475
49476         * tests/test-memmem.c (main): Increase maximum allowed time.
49477         * tests/test-strstr.c (main): Likewise.
49478
49479 2008-01-11  Bruno Haible  <bruno@clisp.org>
49480
49481         * doc/functions/memmem.texi: Add more precisions about platforms.
49482         * doc/functions/strstr.texi: Likewise.
49483
49484 2008-01-10  Eric Blake  <ebb9@byu.net>
49485
49486         * m4/strstr.m4: Delete cruft from copy-n-paste.
49487         Reported by Bruno Haible.
49488
49489 2008-01-10  Bruno Haible  <bruno@clisp.org>
49490
49491         Make c-strstr rely on strstr.
49492         * lib/c-strstr.c: Don't include str-kmp.h.
49493         (c_strstr): Define in terms of strstr.
49494         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49495         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49496
49497 2008-01-10  Bruno Haible  <bruno@clisp.org>
49498
49499         * doc/gnulib.texi (String Functions in C Locale): New section.
49500         * doc/c-ctype.texi: New file.
49501         * doc/c-strcase.texi: New file.
49502         * doc/c-strcaseeq.texi: New file.
49503         * doc/c-strcasestr.texi: New file.
49504         * doc/c-strstr.texi: New file.
49505         * doc/c-strtod.texi: New file.
49506         * doc/c-strtold.texi: New file.
49507
49508 2008-01-10  Eric Blake  <ebb9@byu.net>
49509
49510         * lib/relocatable.h: Fix a comment.
49511
49512 2008-01-10  Eric Blake  <ebb9@byu.net>
49513
49514         Share two-way algorithm.
49515         * lib/str-two-way.h: New file, merged from...
49516         * lib/memmem.c: ...here...
49517         * lib/strstr.c: ...and here.
49518         * modules/memmem (Files): Use it.
49519         * modules/strstr (Files): Likewise.
49520
49521         Avoid quadratic strstr implementations.
49522         * lib/strstr.c: New file.
49523         * m4/strstr.m4: Likewise.
49524         * modules/strstr: Likewise.
49525         * modules/strstr-tests: Likewise.
49526         * tests/test-strstr.c: Likewise.
49527         * lib/string.in.h (rpl_strstr): Declare.
49528         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49530         * modules/string (Makefile.am): Likewise.
49531         * MODULES.html.sh (string handling): Mention new module.
49532         * doc/functions/strstr.texi (strstr): Document the bug.
49533
49534 2008-01-10  Bruno Haible  <bruno@clisp.org>
49535
49536         * lib/relocatable.h (relocate): State whether result is freshly
49537         allocated or not.
49538         * lib/relocatable.c (relocate): Return a freshly allocated string
49539         instead of a pointer to a privately held string.
49540         Reported by Sylvain Beucler <beuc@gnu.org>.
49541
49542 2008-01-10  Colin Watson  <cjwatson@debian.org>
49543
49544         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49545         s/S_ISNLK/S_ISLNK/.
49546
49547 2008-01-09  Bruno Haible  <bruno@clisp.org>
49548
49549         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49550         and other files.
49551         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49552         if it's only a guess.
49553         * modules/memmem: Simplify by depending on memmem-simple.
49554
49555 2008-01-09  Bruno Haible  <bruno@clisp.org>
49556
49557         Work around OpenBSD 4.0 tdelete() bug.
49558         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49559         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49560         macros and don't redefine the enum values.
49561         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49562         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49563         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49564
49565 2008-01-09  Bruno Haible  <bruno@clisp.org>
49566
49567         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49568         (main): Don't perform the tests if setlocale did not install a UTF-8
49569         locale. Needed on OpenBSD 4.0.
49570         * modules/wcwidth-tests (Depends-on): Add localcharset.
49571
49572 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49573
49574         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49575         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49576         * NEWS: announce this.
49577         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49578
49579 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49580         and Eric Blake  <ebb9@byu.net>
49581
49582         Add memmem-simple module.
49583         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49584         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49585         * modules/memmem-simple: New file.
49586         * modules/memmem (Description): Tweak.
49587         * MODULES.html.sh (string handling): Mention new module.
49588         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49589         addressed by memmem-simple.
49590         * NEWS: Document the difference.
49591
49592 2008-01-09  Eric Blake  <ebb9@byu.net>
49593
49594         Give gcc some memmem optimization hints.
49595         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49596         (strcasestr): Declare as pure.
49597         * modules/memmem (Maintainer): Claim my implementation.
49598
49599 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49600
49601         Support AIX 6.1 and higher.
49602         * build-aux/config.libpath: Likewise.
49603         * build-aux/config.rpath: Likewise.
49604
49605 2008-01-08  Jim Meyering  <meyering@redhat.com>
49606             Bruno Haible  <bruno@clisp.org>
49607
49608         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49609         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49610         Reported by Peter Fales in
49611         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49612
49613 2008-01-08  Bruno Haible  <bruno@clisp.org>
49614
49615         * modules/unictype/category-of (Depends-on): Add
49616         unictype/category-none.
49617         * modules/unictype/category-and-tests (Depends-on): Add
49618         unictype/category-{L,N,Lu,Nd}.
49619         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49620         * modules/unictype/category-or-tests (Depends-on): Add
49621         unictype/category-{L,N}.
49622         * modules/unictype/category-name-tests (Depends-on): Add
49623         unictype/category-{Z,Nl}.
49624         Reported by Simon Josefsson.
49625
49626 2008-01-08  Bruno Haible  <bruno@clisp.org>
49627
49628         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49629         convention better.
49630         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49631         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49632         Reported by Peter Miller <millerp@canb.auug.org.au>.
49633
49634 2008-01-08  Eric Blake  <ebb9@byu.net>
49635
49636         Rewrite memmem to guarantee linear complexity without malloc.
49637         * lib/memmem.c (memmem): Use Two-Way rather than
49638         Knuth-Morris-Pratt, to allow O(1) space usage.
49639         (critical_factorization, two_way_short_needle)
49640         (two_way_long_needle): New functions.
49641         (knuth_morris_pratt): Delete.
49642         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49643         Add stdint.
49644         * tests/test-memmem.c (main): Add tests for periodic needle and
49645         sublinear performance.
49646         * doc/functions/memmem.texi (memmem): Document other deficiencies
49647         in cygwin and older glibc.
49648
49649 2008-01-08  Bruno Haible  <bruno@clisp.org>
49650
49651         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49652         augmentation.
49653
49654 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49655
49656         Add a configure time option: --disable-acl.
49657         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49658         AC_ARG_ENABLE(acl).
49659
49660 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49661
49662         * tests/test-localename.c: Don't include obsolete "setenv.h".
49663
49664         * modules/localename-tests (Depends-on): Need unsetenv.
49665
49666 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49667
49668         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49669
49670 2008-01-06  Colin Watson  <cjwatson@debian.org>
49671
49672         * users.txt: Add man-db.
49673
49674 2008-01-07  Bruno Haible  <bruno@clisp.org>
49675
49676         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49677         previous section name.
49678
49679 2008-01-07  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/progname.c (set_program_name): Don't strip off a leading
49682         "lt-" prefix outside a .libs directory.
49683         Suggested by Paul Eggert.
49684
49685 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49686             Bruno Haible  <bruno@clisp.org>
49687
49688         Improve memory cleanup in 'relocatable' module.
49689         * lib/relocatable.h (compute_curr_prefix): Change return type to
49690         'char *'.
49691         * lib/relocatable.c (compute_curr_prefix): Change return type to
49692         'char *'. Free curr_installdir after use.
49693         (relocate): Free curr_prefix_better after use.
49694         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49695
49696 2008-01-01  Bruno Haible  <bruno@clisp.org>
49697
49698         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49699         failure on older glibc systems.
49700         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49701
49702 2008-01-05  Eric Blake  <ebb9@byu.net>
49703
49704         Avoid quadratic system memmem.
49705         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49706         Reported by Ralf Wildenhues.
49707
49708         Fix memmem test for mingw.
49709         * modules/memmem-tests (configure.ac): Check for alarm.
49710         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49711         it.
49712         * doc/functions/memmem.texi: New file.
49713         * doc/gnulib.texi (Function Substitutes): Add memmem.
49714         Reported by Bruno Haible.
49715
49716 2008-01-04  Bruno Haible  <bruno@clisp.org>
49717
49718         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49719         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49720         gl_HEADER_STRING_H_DEFAULTS.
49721
49722 2008-01-04  Eric Blake  <ebb9@byu.net>
49723
49724         Shorten duration of memmem test.
49725         * tests/test-memmem.c (main): Use alarm to declare failure if test
49726         is taking too long.
49727         Reported by Ralf Wildenhues.
49728
49729 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49730
49731         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49732         string, needed by strerror.
49733
49734 2008-01-03  Colin Watson  <cjwatson@debian.org>
49735             Bruno Haible  <bruno@clisp.org>
49736
49737         * doc/gnulib-tool.texi (Localization): New section.
49738
49739 2008-01-02  Bruno Haible  <bruno@clisp.org>
49740
49741         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49742         variables to 'unsigned char *' type.
49743         Reported by Paul Eggert.
49744
49745 2008-01-02  Jim Meyering  <jim@meyering.net>
49746
49747         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49748
49749 2007-12-31  Jim Meyering  <jim@meyering.net>
49750
49751         Avoid use of private FTS type name.
49752         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49753
49754 2007-12-30  Karl Berry  <karl@gnu.org>
49755
49756         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49757         work around defect in Texinfo and/or the standalone Info browser.
49758
49759 2007-12-30  Bruno Haible  <bruno@clisp.org>
49760
49761         Unify 5 copies of the KMP code.
49762         * lib/str-kmp.h: New file.
49763         * lib/c-strcasestr.c: Include str-kmp.h.
49764         (knuth_morris_pratt): Remove function.
49765         (c_strcasestr): Update.
49766         * lib/c-strstr.c: Include str-kmp.h.
49767         (knuth_morris_pratt): Remove function.
49768         (c_strcasestr): Update.
49769         * lib/mbscasestr.c: Include str-kmp.h.
49770         (knuth_morris_pratt_unibyte): Remove function.
49771         * lib/mbsstr.c: Include str-kmp.h.
49772         (knuth_morris_pratt_unibyte): Remove function.
49773         * lib/strcasestr.c: Include str-kmp.h.
49774         (knuth_morris_pratt): Remove function.
49775         (strcasestr): Update.
49776         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49777         * modules/c-strstr (Files): Likewise.
49778         * modules/mbscasestr (Files): Likewise.
49779         * modules/mbsstr (Files): Likewise.
49780         * modules/strcasestr (Files): Likewise.
49781         Suggested by Paul Eggert.
49782
49783 2007-12-30  Bruno Haible  <bruno@clisp.org>
49784
49785         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49786         defined.
49787
49788 2007-12-30  Bruno Haible  <bruno@clisp.org>
49789
49790         * lib/xmalloca.h: Include xalloc.h.
49791         (xnmalloca): New macro.
49792
49793 2007-12-30  Bruno Haible  <bruno@clisp.org>
49794
49795         * lib/malloca.h (nmalloca): New macro.
49796         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49797         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49798         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49799         knuth_morris_pratt_multibyte): Likewise.
49800         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49801         knuth_morris_pratt_multibyte): Likewise.
49802         * lib/memmem.c (knuth_morris_pratt): Likewise.
49803         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49804
49805 2007-12-25  Bruno Haible  <bruno@clisp.org>
49806
49807         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49808         * lib/glob.c: Don't include openat.h.
49809         (link_exists2_p): Add back the code that deals with the
49810         !GLOB_ALTDIRFUNC case.
49811         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49812         let it do the filename concatenation.
49813         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49814         * modules/glob (Depends-on): Remove openat.
49815
49816 2007-12-31  Bruno Haible  <bruno@clisp.org>
49817
49818         * modules/dirfd (License): Change to LGPLv2+.
49819         Approved by Jim Meyering.
49820
49821 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49822
49823         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49824         when multiplying M by sizeof (size_t).
49825
49826 2007-12-10  Martin Lambers  <marlam@marlam.de>
49827
49828         Override getpagesize on mingw.
49829         * lib/getpagesize.c: New file.
49830         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49831         * modules/getpagesize (Files): Add lib/getpagesize.c.
49832         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49834         REPLACE_GETPAGESIZE.
49835         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49836
49837 2007-12-25  Bruno Haible  <bruno@clisp.org>
49838
49839         * modules/localcharset (Notice): New field.
49840         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49841         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49842
49843 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49844             Bruno Haible  <bruno@clisp.org>
49845
49846         Avoid using the syntax symbol() in formatted documentation.
49847         * MODULES.html.sh (func_module): When replacing symbol() with a
49848         hyperlink, remove the parentheses. Show an error if some remain.
49849         Recognize and render the '...' syntax.
49850         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49851         Rework. Add paragraph about GCC's inlining.
49852         * doc/alloca.texi: Likewise.
49853         * doc/error.texi: Remove parentheses from symbol reference.
49854         * doc/gnulib-intro.texi: Likewise.
49855         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49856         * modules/fnmatch (Description): Reword to say "the ... function".
49857         * modules/full-read (Description): Likewise.
49858         * modules/full-write (Description): Likewise.
49859         * modules/safe-read (Description): Likewise.
49860         * modules/safe-write (Description): Likewise.
49861         * modules/strchrnul (Description): Likewise.
49862         * modules/trim (Description): Likewise.
49863         * modules/error (Description): Remove parentheses from symbol
49864         references.
49865         * modules/verror (Description): Likewise.
49866         Reported by Karl Berry.
49867
49868 2007-12-25  Bruno Haible  <bruno@clisp.org>
49869
49870         Fixup after 2007-10-16 commit.
49871         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49872
49873 2007-12-24  Bruno Haible  <bruno@clisp.org>
49874
49875         Make --enable-relocatable work with DESTDIR.
49876         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49877         to compute installdir from destprog.
49878         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49879         also set the RELOC_DESTDIR variable.
49880         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49881
49882 2007-12-24  Bruno Haible  <bruno@clisp.org>
49883
49884         Fix link error due to xalloc_die().
49885         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49886         of xreadlink.
49887         * lib/relocwrapper.c: Update comments.
49888         * build-aux/install-reloc: Remove xreadlink.c from file list.
49889         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49890         xreadlink.c.
49891         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49892
49893 2007-12-24  Bruno Haible  <bruno@clisp.org>
49894
49895         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49896         * lib/setenv.h: Remove file.
49897         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49898         lib/setenv.h.
49899         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49900         (Depends-on): Add stdlib.
49901         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49902         gl_FUNC_UNSETENV.
49903         (Include): Replace setenv.h with <stdlib.h>.
49904         * modules/unsetenv: New file.
49905         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49906         * lib/unsetenv.c: Include <stdlib.h> first.
49907         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49908         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49909         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49910         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49911         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49912         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49914         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49915         * doc/functions/unsetenv.texi: Update.
49916         * modules/xsetenv (Depends-on): Add unsetenv.
49917         * modules/getdate (Depends-on): Likewise.
49918         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49919         * lib/xsetenv.c: Don't include setenv.h.
49920         * lib/getdate.y: Likewise.
49921         * lib/relocwrapper.c: Likewise.
49922         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49923         (Depends-on): Add stdlib.
49924         * NEWS: Mention the changes.
49925         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49926
49927 2007-12-23  Bruno Haible  <bruno@clisp.org>
49928
49929         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49930         indentation.
49931
49932 2007-12-23  Bruno Haible  <bruno@clisp.org>
49933
49934         * lib/c-strcasestr.c: Add more comments.
49935         * lib/c-strstr.c: Likewise.
49936         * lib/mbscasestr.c: Likewise.
49937         * lib/mbsstr.c: Likewise.
49938         * lib/strcasestr.c: Likewise.
49939         * lib/memmem.c: Likewise.
49940
49941 2007-12-23  Bruno Haible  <bruno@clisp.org>
49942
49943         * tests/test-memmem.c: Include <string.h> first.
49944
49945 2007-12-22  Bruno Haible  <bruno@clisp.org>
49946
49947         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49948         the contents of $testsbase.
49949         Reported by Ralf Wildenhues.
49950
49951 2007-12-22  Bruno Haible  <bruno@clisp.org>
49952
49953         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49954         two variables local_ldadd_before, local_ldadd_last.
49955
49956 2007-12-20  Eric Blake  <ebb9@byu.net>
49957
49958         Work around circular library issue when cross-compiling.
49959         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49960         that progname.o does not need to pull in rpl_memcmp.
49961
49962 2007-12-19  Eric Blake  <ebb9@byu.net>
49963
49964         Fix memmem to avoid O(n^2) worst-case complexity.
49965         * lib/memmem.c (knuth_morris_pratt): New function.
49966         (memmem): Use it if first few naive iterations fail.
49967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49968         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49969         * modules/memchr (License): Likewise.
49970         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49971         malloca.
49972         * tests/test-memmem.c: Rewrite, borrowing ideas from
49973         test-mbsstr1.c; the old version wouldn't even compile!
49974         * modules/memmem-tests: New file.
49975         * lib/string.in.h (rpl_memmem): Add declaration.
49976         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49978         REPLACE_MEMMEM.
49979
49980 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49981
49982         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49983         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49984         before any system include files, and undef after them all.  This
49985         should fix a problem on VMS reported by John E. Malmberg in
49986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49987
49988 2007-12-17  Eric Blake  <ebb9@byu.net>
49989
49990         Revert addition of verify, for BSD/OS.
49991         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49992         can't handle large files, for the sake of obsolete platforms.
49993         * modules/fseeko (Depends-on): Remove verify.
49994         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49995         * doc/functions/ftello.texi (ftello): Likewise.
49996         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49997         Reported by Larry Jones.
49998
49999 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50000
50001         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50002         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50003
50004 2007-12-17  Jim Meyering  <meyering@redhat.com>
50005
50006         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50007         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50008         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50009         * modules/getcwd (Depends-on): Add openat.
50010         Reported by Petr Salinger.
50011
50012 2007-12-17  Bruno Haible  <bruno@clisp.org>
50013
50014         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50015         avoid a segmentation fault of the configure test on x86_64 systems.
50016
50017 2007-12-15  Jim Meyering  <meyering@redhat.com>
50018
50019         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50020
50021 2007-12-13  Eric Blake  <ebb9@byu.net>
50022
50023         Another fseek test.
50024         * tests/test-fseek.c (main): Also test ungetc handling.
50025         * tests/test-fseeko.c (main): Likewise.
50026         * modules/fseeko (Depends-on): Add verify.
50027         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50028         large.
50029         Reported by Larry Jones.
50030
50031         Fix fseeko on mingw.
50032         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50033         seek.
50034
50035         Beef up fseek tests.
50036         * tests/test-fseek.c (main): Also test eof handling.
50037         * tests/test-fseeko.c (main): Likewise.
50038         Reported by Larry Jones.
50039
50040 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50041
50042         Fix fseeko on BSD-based platforms.
50043         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50044         successful seek.
50045
50046 2007-12-12  Eric Blake  <ebb9@byu.net>
50047
50048         Allow circular dependency of separate libtests.a
50049         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50050         when use_libtests.
50051
50052 2007-12-11  Eric Blake  <ebb9@byu.net>
50053
50054         Fix bug with -0.0L in previous patch.
50055         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50056         * tests/test-isnan.c (main): Also test on zeroes.
50057         * tests/test-isnanf.c (main): Likewise.
50058         * tests/test-isnanl.h (main): Likewise.
50059
50060         Detect pseudo-denormals on x86 even when cross-compiling.
50061         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50062         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50063         invalid bit patterns that happen to satisfy ==.
50064
50065         Avoid link failures with separate libtests.a.
50066         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50067         last, to satisfy circular dependencies.
50068
50069 2007-12-11  Eric Blake  <ebb9@byu.net>
50070         and Bruno Haible  <bruno@clisp.org>
50071
50072         Fix OpenBSD 4.0 <float.h> handling of long double.
50073         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50074         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50075         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50076
50077 2007-12-11  Jim Meyering  <meyering@redhat.com>
50078
50079         * users.txt: Add libvirt.
50080
50081         Support versions of autoconf prior to 2.59c.
50082         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50083         if it is not already defined.
50084
50085 2007-12-09  Bruno Haible  <bruno@clisp.org>
50086
50087         Let 'gnulib-tool --import' collect sources needed for the tests in
50088         tests/ rather than in lib/.
50089         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50090         argument. If true, add rules to generate libtests.a, and put libtests.a
50091         into $(LDADD). Consider source files in subdirectories and set
50092         uses_subdirs.
50093         (func_emit_initmacro_start, func_emit_initmacro_end,
50094         func_emit_initmacro_done): Pass all arguments explicitly.
50095         (func_import): Determine two module lists main_modules,
50096         testsrelated_modules. Determine use_libtests. Determine two variables
50097         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50098         instead of just sed_transform_lib_file. Determine two variables
50099         main_files and testsrelated_files. Compute 'files' as the union of
50100         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50101         func_add_or_update. In the generated gnulib-comp.m4, collect the
50102         object files for tests/ in different variables than those for lib/.
50103         Substitute LIBTESTS_LIBDEPS.
50104         (func_create_testdir): Combine the uses_subdirs results from
50105         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50106
50107 2007-12-09  Bruno Haible  <bruno@clisp.org>
50108
50109         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50110         the build-aux directory.
50111
50112 2007-12-09  Bruno Haible  <bruno@clisp.org>
50113
50114         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50115         introduced on 2006-09-09.
50116
50117 2007-12-07  Jim Meyering  <meyering@redhat.com>
50118
50119         Let these macros work also with autoconf-2.59.
50120         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50121         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50122         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50123
50124 2007-12-06  Jim Meyering  <meyering@redhat.com>
50125
50126         Avoid a configure-time syntax error in gl_FUNC_ACL.
50127         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50128         function in each branch, before testing the cache variable.
50129
50130 2007-12-04  Eric Blake  <ebb9@byu.net>
50131
50132         Make scripts executable.
50133         * build-aux/config.guess: Add execute permissions.
50134         * build-aux/config.sub: Likewise.
50135         * build-aux/gendocs.sh: Likewise.
50136
50137         Fix frexp on mingw.
50138         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50139         cross-compiling.
50140         * doc/functions/frexp.texi (frexp): Document the bug.
50141
50142         Make cygwin fseeko check more reliable.
50143         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50144         version numbers, rather than unrelated feature check.
50145         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50146         * doc/functions/ftello.texi (ftello): Likewise.
50147         Reported by Bruno Haible.
50148
50149         * m4/strerror.m4: Bump version number.
50150
50151 2007-12-03  Bruno Haible  <bruno@clisp.org>
50152
50153         * doc/functions/mprotect.texi: Mention the mingw problem.
50154
50155 2007-12-03  Eric Blake  <ebb9@byu.net>
50156
50157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50158         REPLACE_STRERROR is initialized before this macro.
50159
50160 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50161
50162         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50163         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50164         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50165         put -lsec in even for programs other than 'ls'.  This fixes a problem
50166         for gettext reported by Bruno Haible in
50167         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50168         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50169         Add support for Solaris 10.  This isn't efficient, but should get the
50170         job done for now.
50171
50172 2007-12-03  James Youngman  <jay@gnu.org>
50173
50174         * doc/regexprops-generic.texi: change "an close-group" to "a
50175         close-group" and "illegal" to "not allowed".
50176
50177 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50178
50179         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50180         pr_byname.h. Needed for the rare case when the maintainer has done
50181         "make maintainer-clean" in the source directory and then attempts a
50182         build outside the source directory.
50183         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50184         scripts_byname.h.
50185
50186 2007-12-02  Martin Lambers <marlam@marlam.de>
50187             Bruno Haible  <bruno@clisp.org>
50188
50189         * lib/getpagesize.h: Remove file.
50190         * lib/unistd.in.h: Include declaration of getpagesize here.
50191         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50192         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50193         HAVE_SYS_PARAM_H.
50194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50195         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50196         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50197         (Depends-on): Add unistd.
50198         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50199         (Include): Use <unistd.h> instead of getpagesize.h.
50200         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50201         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50202         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50203         gl_GETPAGESIZE invocation, already handled by module dependency.
50204         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50205
50206 2007-12-02  Bruno Haible  <bruno@clisp.org>
50207
50208         * modules/strings-tests: New file.
50209         * tests/test-strings.c: New file.
50210
50211         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50212         * lib/strings.in.h: New file.
50213         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50214         * m4/strings_h.m4: New file.
50215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50216         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50217         * modules/strings: New file.
50218         * modules/string (Makefile.am): Update.
50219         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50220         Reported by Karl Berry.
50221
50222 2007-12-01  Eric Blake  <ebb9@byu.net>
50223
50224         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50225         accomodate fix in cygwin 1.5.25.
50226
50227 2007-12-01  Jim Meyering  <meyering@redhat.com>
50228
50229         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50230         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50231         that would inhibit utf8-optimization of a regexp containing line-
50232         or buffer-anchors, e.g., `^', `$'.
50233
50234 2007-11-30  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50237         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50238         glthread_recursive_lock_init.
50239         * lib/lock.c (glthread_recursive_lock_init)
50240         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50241         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50242
50243 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50244
50245         New function qset_acl, like set_acl but with syscall semantics.
50246         * lib/acl.h (qset_acl): New decl.
50247         * lib/acl.c (qset_acl): New function.
50248         (set_acl): Use new function.  Use more-consistent diagnostics.
50249
50250 2007-11-28  Jim Meyering  <meyering@redhat.com>
50251
50252         * modules/physmem (License): Change from GPL to LGPLv2+.
50253
50254 2007-11-26  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50257         'long double' type has excess precision.
50258         Reported by Jim Meyering in
50259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50260
50261 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50262
50263         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50264         Sync from <http://gnu.org/licenses>.
50265         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50266         with license text from same location.
50267         * doc/maintain.texi, doc/standards.texi:  Sync from
50268         <http://savannah.gnu.org/projects/gnustandards>.
50269
50270 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50271         and Jim Meyering  <meyering@redhat.com>
50272
50273         Adjust getdate' grammar to accept a slightly more regular language.
50274         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50275         Before, the former was rejected.
50276         * lib/getdate.y (digits_to_date_time): New function, factored
50277         out of ...
50278         (number): ...here.  Just call digits_to_date_time.
50279         (hybrid): New non-terminal to handle an <unsigned number,
50280         signed relative offset> sequence consistently.
50281
50282 2007-11-18  Jim Meyering  <meyering@redhat.com>
50283
50284         Pull my changes from coreutils:
50285         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50286         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50287         use of $gnulib_tool_option_extras, so that it's separated from the
50288         preceding argument.
50289
50290         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50291         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50292         parent destination directories before copying a file into place.
50293
50294 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50295
50296         bootstrap: work also with 4-argument variant of AC_INIT
50297         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50298
50299 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50300
50301         Port test-getaddrinfo to Solaris.
50302         Problem reported by Bruno Haible in
50303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50304         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50305         explanation of setting 'hints'.
50306         Don't reject an implementation merely because it returns EAI_SERVICE.
50307         (EAI_SERVICE): Define to 0 if not defined.
50308
50309 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50310
50311         The license of gnu-make and posix-shell is now "GPLed build tool".
50312         * modules/gnu-make (License): Likewise.
50313         * modules/posix-shell (License): Likewise.
50314
50315         New module posix-shell, for determining a POSIX shell
50316         or perhaps something that is close enough to a POSIX shell.
50317         * m4/posix-shell.m4: New file.
50318         * modules/posix-shell: New file.
50319
50320         * MODULES.html.sh: Mention new module.
50321
50322         New module gnu-make, for determining whether we're using GNU Make.
50323         * m4/gnu-make.m4: New file.
50324         * modules/gnu-make: New file.
50325         * MODULES.html.sh: Mention new module.
50326
50327 2007-11-14  Jim Meyering  <meyering@redhat.com>
50328
50329         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50330         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50331         use this macro to create a function _definition_.
50332         Remove useless "#undef ARGMATCH_DIE".
50333
50334 2007-11-14  Bruno Haible  <bruno@clisp.org>
50335
50336         * lib/config.charset: Update for OpenBSD 4.1.
50337         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50338
50339 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50340
50341         Document 64-bit #if problems in stdint.texi.
50342         * doc/headers/stdint.texi (stdint.h): Mention problems with
50343         64-bit-#if, and how to work around them.
50344
50345         Don't insist on 'long long int' support in the preprocessor.  It
50346         breaks too many things.  For example, PRIdMAX still uses a 'long
50347         long int' format with the latest Sun compiler, even though
50348         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50349         preprocessor problem.  This causes the latest coreutils to dump
50350         core on Solaris 10 sparc with the Sun C compiler.
50351         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50352         the troublesome expressions at configure-time, not at #if-time.
50353         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50354         preprocessor.
50355         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50356         compile-time C checks, done at 'configure'-time.
50357         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50358         * modules/inttypes (Makefile): Substitute the new symbols that
50359         gl_INTTYPES_H now generates.
50360         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50361
50362 2007-11-12  Bruno Haible  <bruno@clisp.org>
50363
50364         Tests for Unicode character classification functions.
50365
50366         * modules/unictype/bidicategory-byname-tests: New file.
50367         * modules/unictype/bidicategory-name-tests: New file.
50368         * modules/unictype/bidicategory-of-tests: New file.
50369         * modules/unictype/bidicategory-test-tests: New file.
50370         * modules/unictype/block-list-tests: New file.
50371         * modules/unictype/block-of-tests: New file.
50372         * modules/unictype/block-test-tests: New file.
50373         * modules/unictype/category-C-tests: New file.
50374         * modules/unictype/category-Cc-tests: New file.
50375         * modules/unictype/category-Cf-tests: New file.
50376         * modules/unictype/category-Cn-tests: New file.
50377         * modules/unictype/category-Co-tests: New file.
50378         * modules/unictype/category-Cs-tests: New file.
50379         * modules/unictype/category-L-tests: New file.
50380         * modules/unictype/category-Ll-tests: New file.
50381         * modules/unictype/category-Lm-tests: New file.
50382         * modules/unictype/category-Lo-tests: New file.
50383         * modules/unictype/category-Lt-tests: New file.
50384         * modules/unictype/category-Lu-tests: New file.
50385         * modules/unictype/category-M-tests: New file.
50386         * modules/unictype/category-Mc-tests: New file.
50387         * modules/unictype/category-Me-tests: New file.
50388         * modules/unictype/category-Mn-tests: New file.
50389         * modules/unictype/category-N-tests: New file.
50390         * modules/unictype/category-Nd-tests: New file.
50391         * modules/unictype/category-Nl-tests: New file.
50392         * modules/unictype/category-No-tests: New file.
50393         * modules/unictype/category-P-tests: New file.
50394         * modules/unictype/category-Pc-tests: New file.
50395         * modules/unictype/category-Pd-tests: New file.
50396         * modules/unictype/category-Pe-tests: New file.
50397         * modules/unictype/category-Pf-tests: New file.
50398         * modules/unictype/category-Pi-tests: New file.
50399         * modules/unictype/category-Po-tests: New file.
50400         * modules/unictype/category-Ps-tests: New file.
50401         * modules/unictype/category-S-tests: New file.
50402         * modules/unictype/category-Sc-tests: New file.
50403         * modules/unictype/category-Sk-tests: New file.
50404         * modules/unictype/category-Sm-tests: New file.
50405         * modules/unictype/category-So-tests: New file.
50406         * modules/unictype/category-Z-tests: New file.
50407         * modules/unictype/category-Zl-tests: New file.
50408         * modules/unictype/category-Zp-tests: New file.
50409         * modules/unictype/category-Zs-tests: New file.
50410         * modules/unictype/category-and-not-tests: New file.
50411         * modules/unictype/category-and-tests: New file.
50412         * modules/unictype/category-byname-tests: New file.
50413         * modules/unictype/category-name-tests: New file.
50414         * modules/unictype/category-none-tests: New file.
50415         * modules/unictype/category-of-tests: New file.
50416         * modules/unictype/category-or-tests: New file.
50417         * modules/unictype/category-test-withtable-tests: New file.
50418         * modules/unictype/combining-class-tests: New file.
50419         * modules/unictype/ctype-alnum-tests: New file.
50420         * modules/unictype/ctype-alpha-tests: New file.
50421         * modules/unictype/ctype-blank-tests: New file.
50422         * modules/unictype/ctype-cntrl-tests: New file.
50423         * modules/unictype/ctype-digit-tests: New file.
50424         * modules/unictype/ctype-graph-tests: New file.
50425         * modules/unictype/ctype-lower-tests: New file.
50426         * modules/unictype/ctype-print-tests: New file.
50427         * modules/unictype/ctype-punct-tests: New file.
50428         * modules/unictype/ctype-space-tests: New file.
50429         * modules/unictype/ctype-upper-tests: New file.
50430         * modules/unictype/ctype-xdigit-tests: New file.
50431         * modules/unictype/decimal-digit-tests: New file.
50432         * modules/unictype/digit-tests: New file.
50433         * modules/unictype/mirror-tests: New file.
50434         * modules/unictype/numeric-tests: New file.
50435         * modules/unictype/property-alphabetic-tests: New file.
50436         * modules/unictype/property-ascii-hex-digit-tests: New file.
50437         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50438         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50439         * modules/unictype/property-bidi-block-separator-tests: New file.
50440         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50441         * modules/unictype/property-bidi-common-separator-tests: New file.
50442         * modules/unictype/property-bidi-control-tests: New file.
50443         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50444         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50445         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50446         * modules/unictype/property-bidi-european-digit-tests: New file.
50447         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50448         * modules/unictype/property-bidi-left-to-right-tests: New file.
50449         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50450         * modules/unictype/property-bidi-other-neutral-tests: New file.
50451         * modules/unictype/property-bidi-pdf-tests: New file.
50452         * modules/unictype/property-bidi-segment-separator-tests: New file.
50453         * modules/unictype/property-bidi-whitespace-tests: New file.
50454         * modules/unictype/property-byname-tests: New file.
50455         * modules/unictype/property-combining-tests: New file.
50456         * modules/unictype/property-composite-tests: New file.
50457         * modules/unictype/property-currency-symbol-tests: New file.
50458         * modules/unictype/property-dash-tests: New file.
50459         * modules/unictype/property-decimal-digit-tests: New file.
50460         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50461         * modules/unictype/property-deprecated-tests: New file.
50462         * modules/unictype/property-diacritic-tests: New file.
50463         * modules/unictype/property-extender-tests: New file.
50464         * modules/unictype/property-format-control-tests: New file.
50465         * modules/unictype/property-grapheme-base-tests: New file.
50466         * modules/unictype/property-grapheme-extend-tests: New file.
50467         * modules/unictype/property-grapheme-link-tests: New file.
50468         * modules/unictype/property-hex-digit-tests: New file.
50469         * modules/unictype/property-hyphen-tests: New file.
50470         * modules/unictype/property-id-continue-tests: New file.
50471         * modules/unictype/property-id-start-tests: New file.
50472         * modules/unictype/property-ideographic-tests: New file.
50473         * modules/unictype/property-ids-binary-operator-tests: New file.
50474         * modules/unictype/property-ids-trinary-operator-tests: New file.
50475         * modules/unictype/property-ignorable-control-tests: New file.
50476         * modules/unictype/property-iso-control-tests: New file.
50477         * modules/unictype/property-join-control-tests: New file.
50478         * modules/unictype/property-left-of-pair-tests: New file.
50479         * modules/unictype/property-line-separator-tests: New file.
50480         * modules/unictype/property-logical-order-exception-tests: New file.
50481         * modules/unictype/property-lowercase-tests: New file.
50482         * modules/unictype/property-math-tests: New file.
50483         * modules/unictype/property-non-break-tests: New file.
50484         * modules/unictype/property-not-a-character-tests: New file.
50485         * modules/unictype/property-numeric-tests: New file.
50486         * modules/unictype/property-other-alphabetic-tests: New file.
50487         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50488         * modules/unictype/property-other-grapheme-extend-tests: New file.
50489         * modules/unictype/property-other-id-continue-tests: New file.
50490         * modules/unictype/property-other-id-start-tests: New file.
50491         * modules/unictype/property-other-lowercase-tests: New file.
50492         * modules/unictype/property-other-math-tests: New file.
50493         * modules/unictype/property-other-uppercase-tests: New file.
50494         * modules/unictype/property-paired-punctuation-tests: New file.
50495         * modules/unictype/property-paragraph-separator-tests: New file.
50496         * modules/unictype/property-pattern-syntax-tests: New file.
50497         * modules/unictype/property-pattern-white-space-tests: New file.
50498         * modules/unictype/property-private-use-tests: New file.
50499         * modules/unictype/property-punctuation-tests: New file.
50500         * modules/unictype/property-quotation-mark-tests: New file.
50501         * modules/unictype/property-radical-tests: New file.
50502         * modules/unictype/property-sentence-terminal-tests: New file.
50503         * modules/unictype/property-soft-dotted-tests: New file.
50504         * modules/unictype/property-space-tests: New file.
50505         * modules/unictype/property-terminal-punctuation-tests: New file.
50506         * modules/unictype/property-test-tests: New file.
50507         * modules/unictype/property-titlecase-tests: New file.
50508         * modules/unictype/property-unassigned-code-value-tests: New file.
50509         * modules/unictype/property-unified-ideograph-tests: New file.
50510         * modules/unictype/property-uppercase-tests: New file.
50511         * modules/unictype/property-variation-selector-tests: New file.
50512         * modules/unictype/property-white-space-tests: New file.
50513         * modules/unictype/property-xid-continue-tests: New file.
50514         * modules/unictype/property-xid-start-tests: New file.
50515         * modules/unictype/property-zero-width-tests: New file.
50516         * modules/unictype/scripts-tests: New file.
50517         * modules/unictype/syntax-c-ident-tests: New file.
50518         * modules/unictype/syntax-c-whitespace-tests: New file.
50519         * modules/unictype/syntax-java-ident-tests: New file.
50520         * modules/unictype/syntax-java-whitespace-tests: New file.
50521         * tests/unictype/test-bidi_byname.c: New file.
50522         * tests/unictype/test-bidi_name.c: New file.
50523         * tests/unictype/test-bidi_of.c: New file.
50524         * tests/unictype/test-bidi_test.c: New file.
50525         * tests/unictype/test-block_list.c: New file.
50526         * tests/unictype/test-block_of.c: New file.
50527         * tests/unictype/test-block_test.c: New file.
50528         * tests/unictype/test-categ_and.c: New file.
50529         * tests/unictype/test-categ_and_not.c: New file.
50530         * tests/unictype/test-categ_byname.c: New file.
50531         * tests/unictype/test-categ_name.c: New file.
50532         * tests/unictype/test-categ_none.c: New file.
50533         * tests/unictype/test-categ_of.c: New file.
50534         * tests/unictype/test-categ_or.c: New file.
50535         * tests/unictype/test-categ_test_withtable.c: New file.
50536         * tests/unictype/test-combining.c: New file.
50537         * tests/unictype/test-decdigit.c: New file.
50538         * tests/unictype/test-digit.c: New file.
50539         * tests/unictype/test-mirror.c: New file.
50540         * tests/unictype/test-numeric.c: New file.
50541         * tests/unictype/test-pr_byname.c: New file.
50542         * tests/unictype/test-pr_test.c: New file.
50543         * tests/unictype/test-predicate-part1.h: New file.
50544         * tests/unictype/test-predicate-part2.h: New file.
50545         * tests/unictype/test-scripts.c: New file.
50546         * tests/unictype/test-sy_c_ident.c: New file.
50547         * tests/unictype/test-sy_java_ident.c: New file.
50548
50549         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50550         for Unicode 5.0.0.
50551         * tests/unictype/test-categ_Cc.c: Likewise.
50552         * tests/unictype/test-categ_Cf.c: Likewise.
50553         * tests/unictype/test-categ_Cn.c: Likewise.
50554         * tests/unictype/test-categ_Co.c: Likewise.
50555         * tests/unictype/test-categ_Cs.c: Likewise.
50556         * tests/unictype/test-categ_L.c: Likewise.
50557         * tests/unictype/test-categ_Ll.c: Likewise.
50558         * tests/unictype/test-categ_Lm.c: Likewise.
50559         * tests/unictype/test-categ_Lo.c: Likewise.
50560         * tests/unictype/test-categ_Lt.c: Likewise.
50561         * tests/unictype/test-categ_Lu.c: Likewise.
50562         * tests/unictype/test-categ_M.c: Likewise.
50563         * tests/unictype/test-categ_Mc.c: Likewise.
50564         * tests/unictype/test-categ_Me.c: Likewise.
50565         * tests/unictype/test-categ_Mn.c: Likewise.
50566         * tests/unictype/test-categ_N.c: Likewise.
50567         * tests/unictype/test-categ_Nd.c: Likewise.
50568         * tests/unictype/test-categ_Nl.c: Likewise.
50569         * tests/unictype/test-categ_No.c: Likewise.
50570         * tests/unictype/test-categ_P.c: Likewise.
50571         * tests/unictype/test-categ_Pc.c: Likewise.
50572         * tests/unictype/test-categ_Pd.c: Likewise.
50573         * tests/unictype/test-categ_Pe.c: Likewise.
50574         * tests/unictype/test-categ_Pf.c: Likewise.
50575         * tests/unictype/test-categ_Pi.c: Likewise.
50576         * tests/unictype/test-categ_Po.c: Likewise.
50577         * tests/unictype/test-categ_Ps.c: Likewise.
50578         * tests/unictype/test-categ_S.c: Likewise.
50579         * tests/unictype/test-categ_Sc.c: Likewise.
50580         * tests/unictype/test-categ_Sk.c: Likewise.
50581         * tests/unictype/test-categ_Sm.c: Likewise.
50582         * tests/unictype/test-categ_So.c: Likewise.
50583         * tests/unictype/test-categ_Z.c: Likewise.
50584         * tests/unictype/test-categ_Zl.c: Likewise.
50585         * tests/unictype/test-categ_Zp.c: Likewise.
50586         * tests/unictype/test-categ_Zs.c: Likewise.
50587         * tests/unictype/test-ctype_alnum.c: Likewise.
50588         * tests/unictype/test-ctype_alpha.c: Likewise.
50589         * tests/unictype/test-ctype_blank.c: Likewise.
50590         * tests/unictype/test-ctype_cntrl.c: Likewise.
50591         * tests/unictype/test-ctype_digit.c: Likewise.
50592         * tests/unictype/test-ctype_graph.c: Likewise.
50593         * tests/unictype/test-ctype_lower.c: Likewise.
50594         * tests/unictype/test-ctype_print.c: Likewise.
50595         * tests/unictype/test-ctype_punct.c: Likewise.
50596         * tests/unictype/test-ctype_space.c: Likewise.
50597         * tests/unictype/test-ctype_upper.c: Likewise.
50598         * tests/unictype/test-ctype_xdigit.c: Likewise.
50599         * tests/unictype/test-decdigit.h: Likewise.
50600         * tests/unictype/test-digit.h: Likewise.
50601         * tests/unictype/test-numeric.h: Likewise.
50602         * tests/unictype/test-pr_alphabetic.c: Likewise.
50603         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50604         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50605         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50606         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50607         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50608         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50609         * tests/unictype/test-pr_bidi_control.c: Likewise.
50610         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50611         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50612         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50613         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50614         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50615         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50616         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50617         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50618         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50619         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50620         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50621         * tests/unictype/test-pr_combining.c: Likewise.
50622         * tests/unictype/test-pr_composite.c: Likewise.
50623         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50624         * tests/unictype/test-pr_dash.c: Likewise.
50625         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50626         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50627         * tests/unictype/test-pr_deprecated.c: Likewise.
50628         * tests/unictype/test-pr_diacritic.c: Likewise.
50629         * tests/unictype/test-pr_extender.c: Likewise.
50630         * tests/unictype/test-pr_format_control.c: Likewise.
50631         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50632         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50633         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50634         * tests/unictype/test-pr_hex_digit.c: Likewise.
50635         * tests/unictype/test-pr_hyphen.c: Likewise.
50636         * tests/unictype/test-pr_id_continue.c: Likewise.
50637         * tests/unictype/test-pr_id_start.c: Likewise.
50638         * tests/unictype/test-pr_ideographic.c: Likewise.
50639         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50640         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50641         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50642         * tests/unictype/test-pr_iso_control.c: Likewise.
50643         * tests/unictype/test-pr_join_control.c: Likewise.
50644         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50645         * tests/unictype/test-pr_line_separator.c: Likewise.
50646         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50647         * tests/unictype/test-pr_lowercase.c: Likewise.
50648         * tests/unictype/test-pr_math.c: Likewise.
50649         * tests/unictype/test-pr_non_break.c: Likewise.
50650         * tests/unictype/test-pr_not_a_character.c: Likewise.
50651         * tests/unictype/test-pr_numeric.c: Likewise.
50652         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50653         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50654         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50655         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50656         * tests/unictype/test-pr_other_id_start.c: Likewise.
50657         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50658         * tests/unictype/test-pr_other_math.c: Likewise.
50659         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50660         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50661         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50662         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50663         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50664         * tests/unictype/test-pr_private_use.c: Likewise.
50665         * tests/unictype/test-pr_punctuation.c: Likewise.
50666         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50667         * tests/unictype/test-pr_radical.c: Likewise.
50668         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50669         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50670         * tests/unictype/test-pr_space.c: Likewise.
50671         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50672         * tests/unictype/test-pr_titlecase.c: Likewise.
50673         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50674         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50675         * tests/unictype/test-pr_uppercase.c: Likewise.
50676         * tests/unictype/test-pr_variation_selector.c: Likewise.
50677         * tests/unictype/test-pr_white_space.c: Likewise.
50678         * tests/unictype/test-pr_xid_continue.c: Likewise.
50679         * tests/unictype/test-pr_xid_start.c: Likewise.
50680         * tests/unictype/test-pr_zero_width.c: Likewise.
50681         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50682         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50683
50684 2007-11-12  Bruno Haible  <bruno@clisp.org>
50685
50686         Unicode character classification functions.
50687         * lib/unictype.h: New file.
50688         * modules/unictype/base: New file.
50689         * modules/unictype/category-L: New file.
50690         * modules/unictype/category-Lu: New file.
50691         * modules/unictype/category-Ll: New file.
50692         * modules/unictype/category-Lt: New file.
50693         * modules/unictype/category-Lm: New file.
50694         * modules/unictype/category-Lo: New file.
50695         * modules/unictype/category-M: New file.
50696         * modules/unictype/category-Mn: New file.
50697         * modules/unictype/category-Mc: New file.
50698         * modules/unictype/category-Me: New file.
50699         * modules/unictype/category-N: New file.
50700         * modules/unictype/category-Nd: New file.
50701         * modules/unictype/category-Nl: New file.
50702         * modules/unictype/category-No: New file.
50703         * modules/unictype/category-P: New file.
50704         * modules/unictype/category-Pc: New file.
50705         * modules/unictype/category-Pd: New file.
50706         * modules/unictype/category-Ps: New file.
50707         * modules/unictype/category-Pe: New file.
50708         * modules/unictype/category-Pi: New file.
50709         * modules/unictype/category-Pf: New file.
50710         * modules/unictype/category-Po: New file.
50711         * modules/unictype/category-S: New file.
50712         * modules/unictype/category-Sm: New file.
50713         * modules/unictype/category-Sc: New file.
50714         * modules/unictype/category-Sk: New file.
50715         * modules/unictype/category-So: New file.
50716         * modules/unictype/category-Z: New file.
50717         * modules/unictype/category-Zs: New file.
50718         * modules/unictype/category-Zl: New file.
50719         * modules/unictype/category-Zp: New file.
50720         * modules/unictype/category-C: New file.
50721         * modules/unictype/category-Cc: New file.
50722         * modules/unictype/category-Cf: New file.
50723         * modules/unictype/category-Cs: New file.
50724         * modules/unictype/category-Co: New file.
50725         * modules/unictype/category-Cn: New file.
50726         * modules/unictype/category-or: New file.
50727         * modules/unictype/category-of: New file.
50728         * modules/unictype/category-test: New file.
50729         * modules/unictype/category-test-withtable: New file.
50730         * modules/unictype/category-byname: New file.
50731         * modules/unictype/category-none: New file.
50732         * modules/unictype/category-and: New file.
50733         * modules/unictype/category-and-not: New file.
50734         * modules/unictype/category-name: New file.
50735         * modules/unictype/combining-class: New file.
50736         * modules/unictype/category-all: New file.
50737         * modules/unictype/bidicategory-all: New file.
50738         * modules/unictype/bidicategory-byname: New file.
50739         * modules/unictype/bidicategory-name: New file.
50740         * modules/unictype/bidicategory-of: New file.
50741         * modules/unictype/bidicategory-test: New file.
50742         * modules/unictype/decimal-digit: New file.
50743         * modules/unictype/digit: New file.
50744         * modules/unictype/numeric: New file.
50745         * modules/unictype/mirror: New file.
50746         * modules/unictype/property-white-space: New file.
50747         * modules/unictype/property-alphabetic: New file.
50748         * modules/unictype/property-other-alphabetic: New file.
50749         * modules/unictype/property-not-a-character: New file.
50750         * modules/unictype/property-default-ignorable-code-point: New file.
50751         * modules/unictype/property-other-default-ignorable-code-point: New
50752         file.
50753         * modules/unictype/property-deprecated: New file.
50754         * modules/unictype/property-logical-order-exception: New file.
50755         * modules/unictype/property-variation-selector: New file.
50756         * modules/unictype/property-private-use: New file.
50757         * modules/unictype/property-unassigned-code-value: New file.
50758         * modules/unictype/property-uppercase: New file.
50759         * modules/unictype/property-other-uppercase: New file.
50760         * modules/unictype/property-lowercase: New file.
50761         * modules/unictype/property-other-lowercase: New file.
50762         * modules/unictype/property-titlecase: New file.
50763         * modules/unictype/property-soft-dotted: New file.
50764         * modules/unictype/property-id-start: New file.
50765         * modules/unictype/property-other-id-start: New file.
50766         * modules/unictype/property-id-continue: New file.
50767         * modules/unictype/property-other-id-continue: New file.
50768         * modules/unictype/property-xid-start: New file.
50769         * modules/unictype/property-xid-continue: New file.
50770         * modules/unictype/property-pattern-white-space: New file.
50771         * modules/unictype/property-pattern-syntax: New file.
50772         * modules/unictype/property-join-control: New file.
50773         * modules/unictype/property-grapheme-base: New file.
50774         * modules/unictype/property-grapheme-extend: New file.
50775         * modules/unictype/property-other-grapheme-extend: New file.
50776         * modules/unictype/property-grapheme-link: New file.
50777         * modules/unictype/property-bidi-control: New file.
50778         * modules/unictype/property-bidi-left-to-right: New file.
50779         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50780         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50781         * modules/unictype/property-bidi-european-digit: New file.
50782         * modules/unictype/property-bidi-eur-num-separator: New file.
50783         * modules/unictype/property-bidi-eur-num-terminator: New file.
50784         * modules/unictype/property-bidi-arabic-digit: New file.
50785         * modules/unictype/property-bidi-common-separator: New file.
50786         * modules/unictype/property-bidi-block-separator: New file.
50787         * modules/unictype/property-bidi-segment-separator: New file.
50788         * modules/unictype/property-bidi-whitespace: New file.
50789         * modules/unictype/property-bidi-non-spacing-mark: New file.
50790         * modules/unictype/property-bidi-boundary-neutral: New file.
50791         * modules/unictype/property-bidi-pdf: New file.
50792         * modules/unictype/property-bidi-embedding-or-override: New file.
50793         * modules/unictype/property-bidi-other-neutral: New file.
50794         * modules/unictype/property-hex-digit: New file.
50795         * modules/unictype/property-ascii-hex-digit: New file.
50796         * modules/unictype/property-ideographic: New file.
50797         * modules/unictype/property-unified-ideograph: New file.
50798         * modules/unictype/property-radical: New file.
50799         * modules/unictype/property-ids-binary-operator: New file.
50800         * modules/unictype/property-ids-trinary-operator: New file.
50801         * modules/unictype/property-zero-width: New file.
50802         * modules/unictype/property-space: New file.
50803         * modules/unictype/property-non-break: New file.
50804         * modules/unictype/property-iso-control: New file.
50805         * modules/unictype/property-format-control: New file.
50806         * modules/unictype/property-dash: New file.
50807         * modules/unictype/property-hyphen: New file.
50808         * modules/unictype/property-punctuation: New file.
50809         * modules/unictype/property-line-separator: New file.
50810         * modules/unictype/property-paragraph-separator: New file.
50811         * modules/unictype/property-quotation-mark: New file.
50812         * modules/unictype/property-sentence-terminal: New file.
50813         * modules/unictype/property-terminal-punctuation: New file.
50814         * modules/unictype/property-currency-symbol: New file.
50815         * modules/unictype/property-math: New file.
50816         * modules/unictype/property-other-math: New file.
50817         * modules/unictype/property-paired-punctuation: New file.
50818         * modules/unictype/property-left-of-pair: New file.
50819         * modules/unictype/property-combining: New file.
50820         * modules/unictype/property-composite: New file.
50821         * modules/unictype/property-decimal-digit: New file.
50822         * modules/unictype/property-numeric: New file.
50823         * modules/unictype/property-diacritic: New file.
50824         * modules/unictype/property-extender: New file.
50825         * modules/unictype/property-ignorable-control: New file.
50826         * modules/unictype/property-test: New file.
50827         * modules/unictype/property-byname: New file.
50828         * modules/unictype/property-all: New file.
50829         * modules/unictype/scripts: New file.
50830         * modules/unictype/scripts-all: New file.
50831         * modules/unictype/block-of: New file.
50832         * modules/unictype/block-test: New file.
50833         * modules/unictype/block-list: New file.
50834         * modules/unictype/block-all: New file.
50835         * modules/unictype/syntax-c-whitespace: New file.
50836         * modules/unictype/syntax-java-whitespace: New file.
50837         * modules/unictype/syntax-c-ident: New file.
50838         * modules/unictype/syntax-java-ident: New file.
50839         * modules/unictype/ctype-alnum: New file.
50840         * modules/unictype/ctype-alpha: New file.
50841         * modules/unictype/ctype-cntrl: New file.
50842         * modules/unictype/ctype-digit: New file.
50843         * modules/unictype/ctype-graph: New file.
50844         * modules/unictype/ctype-lower: New file.
50845         * modules/unictype/ctype-print: New file.
50846         * modules/unictype/ctype-punct: New file.
50847         * modules/unictype/ctype-space: New file.
50848         * modules/unictype/ctype-upper: New file.
50849         * modules/unictype/ctype-xdigit: New file.
50850         * modules/unictype/ctype-blank: New file.
50851         * lib/unictype/bidi_byname.c: New file.
50852         * lib/unictype/bidi_name.c: New file.
50853         * lib/unictype/bidi_of.c: New file.
50854         * lib/unictype/bidi_test.c: New file.
50855         * lib/unictype/bitmap.h: New file.
50856         * lib/unictype/block_test.c: New file.
50857         * lib/unictype/blocks.c: New file.
50858         * lib/unictype/categ_C.c: New file.
50859         * lib/unictype/categ_Cc.c: New file.
50860         * lib/unictype/categ_Cf.c: New file.
50861         * lib/unictype/categ_Cn.c: New file.
50862         * lib/unictype/categ_Co.c: New file.
50863         * lib/unictype/categ_Cs.c: New file.
50864         * lib/unictype/categ_L.c: New file.
50865         * lib/unictype/categ_Ll.c: New file.
50866         * lib/unictype/categ_Lm.c: New file.
50867         * lib/unictype/categ_Lo.c: New file.
50868         * lib/unictype/categ_Lt.c: New file.
50869         * lib/unictype/categ_Lu.c: New file.
50870         * lib/unictype/categ_M.c: New file.
50871         * lib/unictype/categ_Mc.c: New file.
50872         * lib/unictype/categ_Me.c: New file.
50873         * lib/unictype/categ_Mn.c: New file.
50874         * lib/unictype/categ_N.c: New file.
50875         * lib/unictype/categ_Nd.c: New file.
50876         * lib/unictype/categ_Nl.c: New file.
50877         * lib/unictype/categ_No.c: New file.
50878         * lib/unictype/categ_P.c: New file.
50879         * lib/unictype/categ_Pc.c: New file.
50880         * lib/unictype/categ_Pd.c: New file.
50881         * lib/unictype/categ_Pe.c: New file.
50882         * lib/unictype/categ_Pf.c: New file.
50883         * lib/unictype/categ_Pi.c: New file.
50884         * lib/unictype/categ_Po.c: New file.
50885         * lib/unictype/categ_Ps.c: New file.
50886         * lib/unictype/categ_S.c: New file.
50887         * lib/unictype/categ_Sc.c: New file.
50888         * lib/unictype/categ_Sk.c: New file.
50889         * lib/unictype/categ_Sm.c: New file.
50890         * lib/unictype/categ_So.c: New file.
50891         * lib/unictype/categ_Z.c: New file.
50892         * lib/unictype/categ_Zl.c: New file.
50893         * lib/unictype/categ_Zp.c: New file.
50894         * lib/unictype/categ_Zs.c: New file.
50895         * lib/unictype/categ_and.c: New file.
50896         * lib/unictype/categ_and_not.c: New file.
50897         * lib/unictype/categ_byname.c: New file.
50898         * lib/unictype/categ_name.c: New file.
50899         * lib/unictype/categ_none.c: New file.
50900         * lib/unictype/categ_of.c: New file.
50901         * lib/unictype/categ_or.c: New file.
50902         * lib/unictype/categ_test.c: New file.
50903         * lib/unictype/combining.c: New file.
50904         * lib/unictype/ctype_alnum.c: New file.
50905         * lib/unictype/ctype_alpha.c: New file.
50906         * lib/unictype/ctype_blank.c: New file.
50907         * lib/unictype/ctype_cntrl.c: New file.
50908         * lib/unictype/ctype_digit.c: New file.
50909         * lib/unictype/ctype_graph.c: New file.
50910         * lib/unictype/ctype_lower.c: New file.
50911         * lib/unictype/ctype_print.c: New file.
50912         * lib/unictype/ctype_punct.c: New file.
50913         * lib/unictype/ctype_space.c: New file.
50914         * lib/unictype/ctype_upper.c: New file.
50915         * lib/unictype/ctype_xdigit.c: New file.
50916         * lib/unictype/decdigit.c: New file.
50917         * lib/unictype/digit.c: New file.
50918         * lib/unictype/identsyntaxmap.h: New file.
50919         * lib/unictype/mirror.c: New file.
50920         * lib/unictype/numeric.c: New file.
50921         * lib/unictype/pr_alphabetic.c: New file.
50922         * lib/unictype/pr_ascii_hex_digit.c: New file.
50923         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50924         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50925         * lib/unictype/pr_bidi_block_separator.c: New file.
50926         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50927         * lib/unictype/pr_bidi_common_separator.c: New file.
50928         * lib/unictype/pr_bidi_control.c: New file.
50929         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50930         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50931         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50932         * lib/unictype/pr_bidi_european_digit.c: New file.
50933         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50934         * lib/unictype/pr_bidi_left_to_right.c: New file.
50935         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50936         * lib/unictype/pr_bidi_other_neutral.c: New file.
50937         * lib/unictype/pr_bidi_pdf.c: New file.
50938         * lib/unictype/pr_bidi_segment_separator.c: New file.
50939         * lib/unictype/pr_bidi_whitespace.c: New file.
50940         * lib/unictype/pr_byname.c: New file.
50941         * lib/unictype/pr_byname.gperf: New file.
50942         * lib/unictype/pr_combining.c: New file.
50943         * lib/unictype/pr_composite.c: New file.
50944         * lib/unictype/pr_currency_symbol.c: New file.
50945         * lib/unictype/pr_dash.c: New file.
50946         * lib/unictype/pr_decimal_digit.c: New file.
50947         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50948         * lib/unictype/pr_deprecated.c: New file.
50949         * lib/unictype/pr_diacritic.c: New file.
50950         * lib/unictype/pr_extender.c: New file.
50951         * lib/unictype/pr_format_control.c: New file.
50952         * lib/unictype/pr_grapheme_base.c: New file.
50953         * lib/unictype/pr_grapheme_extend.c: New file.
50954         * lib/unictype/pr_grapheme_link.c: New file.
50955         * lib/unictype/pr_hex_digit.c: New file.
50956         * lib/unictype/pr_hyphen.c: New file.
50957         * lib/unictype/pr_id_continue.c: New file.
50958         * lib/unictype/pr_id_start.c: New file.
50959         * lib/unictype/pr_ideographic.c: New file.
50960         * lib/unictype/pr_ids_binary_operator.c: New file.
50961         * lib/unictype/pr_ids_trinary_operator.c: New file.
50962         * lib/unictype/pr_ignorable_control.c: New file.
50963         * lib/unictype/pr_iso_control.c: New file.
50964         * lib/unictype/pr_join_control.c: New file.
50965         * lib/unictype/pr_left_of_pair.c: New file.
50966         * lib/unictype/pr_line_separator.c: New file.
50967         * lib/unictype/pr_logical_order_exception.c: New file.
50968         * lib/unictype/pr_lowercase.c: New file.
50969         * lib/unictype/pr_math.c: New file.
50970         * lib/unictype/pr_non_break.c: New file.
50971         * lib/unictype/pr_not_a_character.c: New file.
50972         * lib/unictype/pr_numeric.c: New file.
50973         * lib/unictype/pr_other_alphabetic.c: New file.
50974         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50975         * lib/unictype/pr_other_grapheme_extend.c: New file.
50976         * lib/unictype/pr_other_id_continue.c: New file.
50977         * lib/unictype/pr_other_id_start.c: New file.
50978         * lib/unictype/pr_other_lowercase.c: New file.
50979         * lib/unictype/pr_other_math.c: New file.
50980         * lib/unictype/pr_other_uppercase.c: New file.
50981         * lib/unictype/pr_paired_punctuation.c: New file.
50982         * lib/unictype/pr_paragraph_separator.c: New file.
50983         * lib/unictype/pr_pattern_syntax.c: New file.
50984         * lib/unictype/pr_pattern_white_space.c: New file.
50985         * lib/unictype/pr_private_use.c: New file.
50986         * lib/unictype/pr_punctuation.c: New file.
50987         * lib/unictype/pr_quotation_mark.c: New file.
50988         * lib/unictype/pr_radical.c: New file.
50989         * lib/unictype/pr_sentence_terminal.c: New file.
50990         * lib/unictype/pr_soft_dotted.c: New file.
50991         * lib/unictype/pr_space.c: New file.
50992         * lib/unictype/pr_terminal_punctuation.c: New file.
50993         * lib/unictype/pr_test.c: New file.
50994         * lib/unictype/pr_titlecase.c: New file.
50995         * lib/unictype/pr_unassigned_code_value.c: New file.
50996         * lib/unictype/pr_unified_ideograph.c: New file.
50997         * lib/unictype/pr_uppercase.c: New file.
50998         * lib/unictype/pr_variation_selector.c: New file.
50999         * lib/unictype/pr_white_space.c: New file.
51000         * lib/unictype/pr_xid_continue.c: New file.
51001         * lib/unictype/pr_xid_start.c: New file.
51002         * lib/unictype/pr_zero_width.c: New file.
51003         * lib/unictype/scripts.c: New file.
51004         * lib/unictype/sy_c_ident.c: New file.
51005         * lib/unictype/sy_c_whitespace.c: New file.
51006         * lib/unictype/sy_java_ident.c: New file.
51007         * lib/unictype/sy_java_whitespace.c: New file.
51008
51009         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51010         Unicode 5.0.0.
51011         * lib/unictype/blocks.h: Likewise.
51012         * lib/unictype/categ_C.h: Likewise.
51013         * lib/unictype/categ_Cc.h: Likewise.
51014         * lib/unictype/categ_Cf.h: Likewise.
51015         * lib/unictype/categ_Cn.h: Likewise.
51016         * lib/unictype/categ_Co.h: Likewise.
51017         * lib/unictype/categ_Cs.h: Likewise.
51018         * lib/unictype/categ_L.h: Likewise.
51019         * lib/unictype/categ_Ll.h: Likewise.
51020         * lib/unictype/categ_Lm.h: Likewise.
51021         * lib/unictype/categ_Lo.h: Likewise.
51022         * lib/unictype/categ_Lt.h: Likewise.
51023         * lib/unictype/categ_Lu.h: Likewise.
51024         * lib/unictype/categ_M.h: Likewise.
51025         * lib/unictype/categ_Mc.h: Likewise.
51026         * lib/unictype/categ_Me.h: Likewise.
51027         * lib/unictype/categ_Mn.h: Likewise.
51028         * lib/unictype/categ_N.h: Likewise.
51029         * lib/unictype/categ_Nd.h: Likewise.
51030         * lib/unictype/categ_Nl.h: Likewise.
51031         * lib/unictype/categ_No.h: Likewise.
51032         * lib/unictype/categ_P.h: Likewise.
51033         * lib/unictype/categ_Pc.h: Likewise.
51034         * lib/unictype/categ_Pd.h: Likewise.
51035         * lib/unictype/categ_Pe.h: Likewise.
51036         * lib/unictype/categ_Pf.h: Likewise.
51037         * lib/unictype/categ_Pi.h: Likewise.
51038         * lib/unictype/categ_Po.h: Likewise.
51039         * lib/unictype/categ_Ps.h: Likewise.
51040         * lib/unictype/categ_S.h: Likewise.
51041         * lib/unictype/categ_Sc.h: Likewise.
51042         * lib/unictype/categ_Sk.h: Likewise.
51043         * lib/unictype/categ_Sm.h: Likewise.
51044         * lib/unictype/categ_So.h: Likewise.
51045         * lib/unictype/categ_Z.h: Likewise.
51046         * lib/unictype/categ_Zl.h: Likewise.
51047         * lib/unictype/categ_Zp.h: Likewise.
51048         * lib/unictype/categ_Zs.h: Likewise.
51049         * lib/unictype/categ_of.h: Likewise.
51050         * lib/unictype/combining.h: Likewise.
51051         * lib/unictype/ctype_alnum.h: Likewise.
51052         * lib/unictype/ctype_alpha.h: Likewise.
51053         * lib/unictype/ctype_blank.h: Likewise.
51054         * lib/unictype/ctype_cntrl.h: Likewise.
51055         * lib/unictype/ctype_digit.h: Likewise.
51056         * lib/unictype/ctype_graph.h: Likewise.
51057         * lib/unictype/ctype_lower.h: Likewise.
51058         * lib/unictype/ctype_print.h: Likewise.
51059         * lib/unictype/ctype_punct.h: Likewise.
51060         * lib/unictype/ctype_space.h: Likewise.
51061         * lib/unictype/ctype_upper.h: Likewise.
51062         * lib/unictype/ctype_xdigit.h: Likewise.
51063         * lib/unictype/decdigit.h: Likewise.
51064         * lib/unictype/digit.h: Likewise.
51065         * lib/unictype/mirror.h: Likewise.
51066         * lib/unictype/numeric.h: Likewise.
51067         * lib/unictype/pr_alphabetic.h: Likewise.
51068         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51069         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51070         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51071         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51072         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51073         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51074         * lib/unictype/pr_bidi_control.h: Likewise.
51075         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51076         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51077         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51078         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51079         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51080         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51081         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51082         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51083         * lib/unictype/pr_bidi_pdf.h: Likewise.
51084         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51085         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51086         * lib/unictype/pr_combining.h: Likewise.
51087         * lib/unictype/pr_composite.h: Likewise.
51088         * lib/unictype/pr_currency_symbol.h: Likewise.
51089         * lib/unictype/pr_dash.h: Likewise.
51090         * lib/unictype/pr_decimal_digit.h: Likewise.
51091         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51092         * lib/unictype/pr_deprecated.h: Likewise.
51093         * lib/unictype/pr_diacritic.h: Likewise.
51094         * lib/unictype/pr_extender.h: Likewise.
51095         * lib/unictype/pr_format_control.h: Likewise.
51096         * lib/unictype/pr_grapheme_base.h: Likewise.
51097         * lib/unictype/pr_grapheme_extend.h: Likewise.
51098         * lib/unictype/pr_grapheme_link.h: Likewise.
51099         * lib/unictype/pr_hex_digit.h: Likewise.
51100         * lib/unictype/pr_hyphen.h: Likewise.
51101         * lib/unictype/pr_id_continue.h: Likewise.
51102         * lib/unictype/pr_id_start.h: Likewise.
51103         * lib/unictype/pr_ideographic.h: Likewise.
51104         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51105         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51106         * lib/unictype/pr_ignorable_control.h: Likewise.
51107         * lib/unictype/pr_iso_control.h: Likewise.
51108         * lib/unictype/pr_join_control.h: Likewise.
51109         * lib/unictype/pr_left_of_pair.h: Likewise.
51110         * lib/unictype/pr_line_separator.h: Likewise.
51111         * lib/unictype/pr_logical_order_exception.h: Likewise.
51112         * lib/unictype/pr_lowercase.h: Likewise.
51113         * lib/unictype/pr_math.h: Likewise.
51114         * lib/unictype/pr_non_break.h: Likewise.
51115         * lib/unictype/pr_not_a_character.h: Likewise.
51116         * lib/unictype/pr_numeric.h: Likewise.
51117         * lib/unictype/pr_other_alphabetic.h: Likewise.
51118         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51119         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51120         * lib/unictype/pr_other_id_continue.h: Likewise.
51121         * lib/unictype/pr_other_id_start.h: Likewise.
51122         * lib/unictype/pr_other_lowercase.h: Likewise.
51123         * lib/unictype/pr_other_math.h: Likewise.
51124         * lib/unictype/pr_other_uppercase.h: Likewise.
51125         * lib/unictype/pr_paired_punctuation.h: Likewise.
51126         * lib/unictype/pr_paragraph_separator.h: Likewise.
51127         * lib/unictype/pr_pattern_syntax.h: Likewise.
51128         * lib/unictype/pr_pattern_white_space.h: Likewise.
51129         * lib/unictype/pr_private_use.h: Likewise.
51130         * lib/unictype/pr_punctuation.h: Likewise.
51131         * lib/unictype/pr_quotation_mark.h: Likewise.
51132         * lib/unictype/pr_radical.h: Likewise.
51133         * lib/unictype/pr_sentence_terminal.h: Likewise.
51134         * lib/unictype/pr_soft_dotted.h: Likewise.
51135         * lib/unictype/pr_space.h: Likewise.
51136         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51137         * lib/unictype/pr_titlecase.h: Likewise.
51138         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51139         * lib/unictype/pr_unified_ideograph.h: Likewise.
51140         * lib/unictype/pr_uppercase.h: Likewise.
51141         * lib/unictype/pr_variation_selector.h: Likewise.
51142         * lib/unictype/pr_white_space.h: Likewise.
51143         * lib/unictype/pr_xid_continue.h: Likewise.
51144         * lib/unictype/pr_xid_start.h: Likewise.
51145         * lib/unictype/pr_zero_width.h: Likewise.
51146         * lib/unictype/scripts.h: Likewise.
51147         * lib/unictype/scripts_byname.gperf: Likewise.
51148         * lib/unictype/sy_c_ident.h: Likewise.
51149         * lib/unictype/sy_c_whitespace.h: Likewise.
51150         * lib/unictype/sy_java_ident.h: Likewise.
51151         * lib/unictype/sy_java_whitespace.h: Likewise.
51152
51153         * lib/unictype/Makefile: New file.
51154         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51155         glibc.
51156         * lib/unictype/3level.h: New file, copied from glibc.
51157         * lib/unictype/3levelbit.h: New file.
51158
51159 2007-11-11  Bruno Haible  <bruno@clisp.org>
51160
51161         * modules/gperf: New file.
51162         * modules/iconv_open (Depends-on): Add it.
51163         (Makefile.am): Remove the GPERF definition.
51164
51165 2007-11-11  Bruno Haible  <bruno@clisp.org>
51166
51167         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51168         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51169
51170 2007-11-11  Bruno Haible  <bruno@clisp.org>
51171
51172         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51173         (usage): Remove function.
51174
51175 2007-11-11  Bruno Haible  <bruno@clisp.org>
51176
51177         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51178         gl_FUNC_CEILF_LIBS.
51179         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51180         gl_FUNC_CEIL_LIBS.
51181         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51182         gl_FUNC_CEILL_LIBS.
51183         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51184         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51185         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51186
51187 2007-11-11  Bruno Haible  <bruno@clisp.org>
51188
51189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51190         roundf were declared but do not exist on functions.
51191         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51192         roundl were declared but do not exist on functions.
51193         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51194         HAVE_FLOORL_AND_CEILL, respectively.
51195         Needed for Sun C on Solaris 10.
51196
51197 2007-11-11  Bruno Haible  <bruno@clisp.org>
51198
51199         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51200         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51201         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51202         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51203         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51204         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51205         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51206         HAVE_DECL_ROUNDF.
51207         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51208         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51210         of HAVE_DECL_ROUND*.
51211         * modules/math (Makefile.am): Update.
51212
51213 2007-11-10  Bruno Haible  <bruno@clisp.org>
51214
51215         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51216         ptrdiff_t as m4/intl.m4.
51217
51218 2007-11-10  Jim Meyering  <meyering@redhat.com>
51219
51220         Avoid link failure for the argmatch test.
51221         * tests/test-argmatch.c (usage): Define function to avoid a link
51222         failure: argmatch_die requires a usage function.
51223
51224 2007-11-09  Bruno Haible  <bruno@clisp.org>
51225
51226         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51227         * doc/functions/vsnprintf.texi: Likewise.
51228         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51229         with a size argument < 2.
51230
51231 2007-11-09  Bruno Haible  <bruno@clisp.org>
51232
51233         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51234         buffer. Fixes an inefficiency introduced on 2007-11-03.
51235
51236 2007-11-09  Bruno Haible  <bruno@clisp.org>
51237
51238         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51239         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51240
51241 2007-11-08  Jim Meyering  <meyering@redhat.com>
51242
51243         Change cache variable name prefix "jm_" to "gl_" everywhere.
51244         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51245         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51246         * m4/uptime.m4: s/gl_/jm_/
51247
51248 2007-11-07  Bruno Haible  <bruno@clisp.org>
51249
51250         Update to GNU gettext 0.17.
51251         * m4/intl.m4: Update to GNU gettext 0.17.
51252         * m4/po.m4: Likewise.
51253         * modules/gettext (Files): Remove m4/ulonglong.m4.
51254         (configure.ac): Require gettext infrastructure from version 0.17.
51255
51256 2007-11-06  Bruno Haible  <bruno@clisp.org>
51257
51258         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51259         symbolic values are not defined in a public header.
51260         * lib/freadable.c (freadable) [QNX]: Likewise.
51261         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51262         * lib/freading.c (freading) [QNX]: Likewise.
51263         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51264         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51265         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51266         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51267         Reported by Alain Magloire.
51268
51269         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51270
51271 2007-11-05  Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51274         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51275         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51276         Reported by Eric Blake.
51277
51278 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51279             Bruno Haible  <bruno@clisp.org>
51280
51281         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51282         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51283         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51284         (malloc): Undefine also before including <stdlib.h>.
51285         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51286         Needed on OSF/1 4.0.
51287
51288 2007-11-05  Jim Meyering  <meyering@redhat.com>
51289
51290         git-version-gen: sync from coreutils.
51291         * build-aux/git-version-gen: Add comments.
51292         Change the first '-' to '.' in the snapshot version string,
51293         e.g., 6.9-377-08144 -> 6.9.377-08144
51294         Remove first parameter.
51295         Don't declare a version "-dirty" merely because a time
51296         stamp has changed.
51297
51298 2007-11-04  Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/lock.h: Protect all macro definitions containing an 'if'
51301         statement through a "do { ... } while (0)".
51302         * lib/tls.h: Likewise.
51303
51304 2007-11-04  Bruno Haible  <bruno@clisp.org>
51305
51306         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51307
51308 2007-11-04  Bruno Haible  <bruno@clisp.org>
51309
51310         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51311         * modules/fprintf-posix (Depends-on): Add nocrash.
51312         * modules/snprintf-posix (Depends-on): Likewise.
51313         * modules/sprintf-posix (Depends-on): Likewise.
51314         * modules/vasnprintf-posix (Depends-on): Likewise.
51315         * modules/vasprintf-posix (Depends-on): Likewise.
51316         * modules/vfprintf-posix (Depends-on): Likewise.
51317         * modules/vsnprintf-posix (Depends-on): Likewise.
51318         * modules/vsprintf-posix (Depends-on): Likewise.
51319         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51320         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51321         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51322         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51323         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51324         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51325         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51326
51327 2007-11-04  Bruno Haible  <bruno@clisp.org>
51328
51329         * modules/nocrash: New file.
51330         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51331         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51332
51333 2007-11-04  Bruno Haible  <bruno@clisp.org>
51334
51335         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51336         precision handling.
51337         * tests/test-vasprintf-posix.c (test_function): Likewise.
51338         * tests/test-snprintf-posix.h (test_function): Likewise.
51339         * tests/test-sprintf-posix.h (test_function): Likewise.
51340
51341         Fix *printf behaviour for large precisions on mingw and BeOS.
51342         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51343         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51345         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51346         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51347         gl_PRINTF_PRECISION and test its result. Invoke
51348         gl_PREREQ_VASNPRINTF_PRECISION.
51349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51350         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51351         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51352         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51353         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51355         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51356         * doc/functions/fprintf.texi: Update.
51357         * doc/functions/printf.texi: Update.
51358         * doc/functions/snprintf.texi: Update.
51359         * doc/functions/sprintf.texi: Update.
51360         * doc/functions/vfprintf.texi: Update.
51361         * doc/functions/vprintf.texi: Update.
51362         * doc/functions/vsnprintf.texi: Update.
51363         * doc/functions/vsprintf.texi: Update.
51364
51365 2007-11-04  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51368
51369 2007-11-04  Bruno Haible  <bruno@clisp.org>
51370
51371         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51372         Reported by Sylvain Beucler <beuc@gnu.org>.
51373
51374 2007-11-03  Bruno Haible  <bruno@clisp.org>
51375
51376         * tests/test-fprintf-posix2.sh: New file.
51377         * tests/test-fprintf-posix2.c: New file.
51378         * modules/fprintf-posix-tests (Files): Add them.
51379         (TESTS): Add test-fprintf-posix2.sh.
51380         (configure.ac): Check for getrlimit and setrlimit.
51381         (check_PROGRAMS): Add test-fprintf-posix2.
51382
51383         * tests/test-printf-posix2.sh: New file.
51384         * tests/test-printf-posix2.c: New file.
51385         * modules/printf-posix-tests (Files): Add them.
51386         (TESTS): Add test-printf-posix2.sh.
51387         (configure.ac): Check for getrlimit and setrlimit.
51388         (check_PROGRAMS): Add test-printf-posix2.
51389
51390         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51391         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51392         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51393         (decode_double): New function, copied from decode_long_double.
51394         (scale10_round_decimal_decoded): New function, extracted from
51395         scale10_round_decimal_long_double.
51396         (scale10_round_decimal_long_double): Use it.
51397         (scale10_round_decimal_double): New function.
51398         (floorlog10): New function.
51399         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51401         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51402         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51403         gl_PRINTF_ENOMEM and test its result. Invoke
51404         gl_PREREQ_VASNPRINTF_ENOMEM.
51405         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51407         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51408         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51409         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51411         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51412         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51413         * modules/snprintf-posix (Depends-on): Likewise.
51414         * modules/sprintf-posix (Depends-on): Likewise.
51415         * modules/vasnprintf-posix (Depends-on): Likewise.
51416         * modules/vasprintf-posix (Depends-on): Likewise.
51417         * modules/vfprintf-posix (Depends-on): Likewise.
51418         * modules/vsnprintf-posix (Depends-on): Likewise.
51419         * modules/vsprintf-posix (Depends-on): Likewise.
51420         * doc/functions/fprintf.texi: Update.
51421         * doc/functions/printf.texi: Update.
51422         * doc/functions/snprintf.texi: Update.
51423         * doc/functions/sprintf.texi: Update.
51424         * doc/functions/vfprintf.texi: Update.
51425         * doc/functions/vprintf.texi: Update.
51426         * doc/functions/vsnprintf.texi: Update.
51427         * doc/functions/vsprintf.texi: Update.
51428
51429 2007-11-03  Bruno Haible  <bruno@clisp.org>
51430
51431         * modules/frexp-nolibm-tests: New file.
51432
51433         * modules/frexp-nolibm: New file.
51434         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51435
51436 2007-11-03  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51439         value is C99 compliant.
51440         Needed for OSF/1 5.1.
51441
51442 2007-11-03  Bruno Haible  <bruno@clisp.org>
51443
51444         Fix out-of-memory handling of vasnprintf.
51445         * lib/printf-parse.c: Include <errno.h>.
51446         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51447         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51448         is already set.
51449
51450 2007-11-02  Eric Blake  <ebb9@byu.net>
51451
51452         Fix tests on cygwin.
51453         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51454
51455 2007-11-01  Bruno Haible  <bruno@clisp.org>
51456
51457         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51458         warning.
51459         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51460         needed for POSIX compatibility.
51461
51462 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51463
51464         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51465         for compatibility with GNU.
51466
51467 2007-11-01  Bruno Haible  <bruno@clisp.org>
51468
51469         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51470         (putenv): Renamed from rpl_putenv. Change argument type from
51471         'const char *' to 'char *'.
51472         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51473         of defining putenv in config.h, just set REPLACE_PUTENV.
51474         * modules/putenv (Depends-on): Add stdlib.
51475         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51476         (Include): Use <stdlib.h>.
51477         * lib/stdlib.in.h (putenv): New declaration.
51478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51479         REPLACE_PUTENV.
51480         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51481         REPLACE_PUTENV.
51482         Needed for MacOS X 10.5.0.
51483         Reported by Peter O'Gorman <peter@pogma.com>.
51484
51485 2007-11-01  Jim Meyering  <meyering@redhat.com>
51486
51487         Treat an empty date string exactly like "0".
51488         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51489         if the remaining date string (to be parsed) is empty, use "0".
51490         Reported by Mischa Molhoek and discussed in this thread:
51491         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51492
51493 2007-10-31  Bruno Haible  <bruno@clisp.org>
51494
51495         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51496         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51497         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51498         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51499         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51500         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51501
51502 2007-10-31  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51505         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51506         (AC_TYPE_LONG_LONG_INT): Use it.
51507         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51508         it as well.
51509         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51510         to m4/longlong.m4.
51511         * modules/stdint (Files): Remove m4/ulonglong.m4.
51512         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51513         m4/ulonglong.m4.
51514         * modules/strtoumax (Files): Likewise.
51515
51516 2007-10-30  Bruno Haible  <bruno@clisp.org>
51517
51518         * modules/xvasprintf-posix: New file.
51519         Suggested by Eric Blake.
51520
51521 2007-10-30  Bruno Haible  <bruno@clisp.org>
51522
51523         * modules/xprintf-posix-tests: New file.
51524         * tests/test-xprintf-posix.sh: New file.
51525         * tests/test-xprintf-posix.c: New file.
51526         * tests/test-xfprintf-posix.c: New file.
51527
51528         * modules/xprintf-posix: New file.
51529
51530 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51531
51532         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51533         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51534         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51535
51536 2007-10-29  Bruno Haible  <bruno@clisp.org>
51537
51538         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51539         contain the special marker '_cv_'.
51540         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51541         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51542         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51543         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51544         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51545         Reported by Ralf Wildenhues.
51546
51547 2007-10-29  Bruno Haible  <bruno@clisp.org>
51548
51549         * gnulib-tool (func_import): When --lgpl is not specified, set
51550         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51551         GPLv3.
51552         Reported by Simon Josefsson.
51553
51554 2007-10-28  Bruno Haible  <bruno@clisp.org>
51555
51556         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51557         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51558         HAVE_DECL_ISFINITE.
51559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51560         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51561         HAVE_DECL_ISFINITE.
51562
51563 2007-10-28  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51566         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51567
51568 2007-10-28  Bruno Haible  <bruno@clisp.org>
51569
51570         Fix link errors with Sun C 5.0 on Solaris 10.
51571         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51572         function is declared but not present in the compiler's libm.
51573         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51574         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51575         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51576         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51577         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51578         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51579         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51581         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51582         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51583         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51584         HAVE_DECL_FLOORL.
51585
51586 2007-10-28  Bruno Haible  <bruno@clisp.org>
51587
51588         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51589         gl_FUNC_FLOORL. Cache the result.
51590         (gl_FUNC_FLOORL): Use it.
51591         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51592         gl_FUNC_CEILL. Cache the result.
51593         (gl_FUNC_CEILL): Use it.
51594
51595         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51596         gl_FUNC_FLOOR. Cache the result.
51597         (gl_FUNC_FLOOR): Use it.
51598         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51599         gl_FUNC_CEIL. Cache the result.
51600         (gl_FUNC_CEIL): Use it.
51601
51602         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51603         gl_FUNC_FLOORF. Cache the result.
51604         (gl_FUNC_FLOORF): Use it.
51605         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51606         gl_FUNC_CEILF. Cache the result.
51607         (gl_FUNC_CEILF): Use it.
51608
51609 2007-10-28  Bruno Haible  <bruno@clisp.org>
51610
51611         * gnulib-tool: Allow specifying the LGPL version number through
51612         --lgpl=2 or --lgpl=3.
51613         (func_usage): Document --lgpl with argument.
51614         Handle --lgpl=... arguments.
51615         (func_import): Recognize also gl_LGPL calls with an argument. When
51616         --lgpl=2 is used and the module's license is just LGPL, report an
51617         error. Set sed_transform_lib_file according to the lgpl variable. In
51618         the generated files, use --lgpl or gl_LGPL invocations with argument,
51619         if necessary.
51620         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51621         an LGPv2+ license.
51622         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51623         gl_LGPL macro.
51624
51625 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51626             Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51629         (u16_uctomb_aux): Likewise.
51630         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51631         !HAVE_INLINE.
51632         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51633
51634 2007-10-28  Bruno Haible  <bruno@clisp.org>
51635
51636         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51637         Invoke AM_GETTEXT_OPTION if it exists.
51638         * modules/vasprintf: Likewise.
51639         * modules/verror: Likewise.
51640         * modules/xprintf: Likewise.
51641         * modules/xvasprintf: Likewise.
51642
51643 2007-10-27  Ben Pfaff  <blp@gnu.org>
51644
51645         * lib/math.in.h: Define isfinite macro and prototypes for
51646         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51647         implementations.
51648         * m4/math_h.m4: New substitutions for isfinite module.
51649         * lib/isfinite.c: New file.
51650         * m4/isfinite.m4: New file.
51651         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51652         * modules/isfinite: New file.
51653         * modules/isfinite-tests: New file.
51654         * tests/tests-isfinite.c: New file.
51655         * doc/functions/isfinite.texi: Mention isfinite module.
51656         * MODULES.html.sh: Mention new module.
51657
51658 2007-10-27  Ben Pfaff  <blp@gnu.org>
51659
51660         Ralf Wildenhues reported that Tru64 4.0D declares the round
51661         functions but does not have definitions.
51662         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51663         cannot be found in any library, set the output variable to
51664         "missing" instead of "".
51665         * m4/round.m4: Also use our substitute if we cannot find round in
51666         any library, even if it is declared.
51667         * m4/roundf.m4: Likewise for roundf.
51668         * m4/roundl.m4: Likewise for roundl.
51669         * lib/math.in.h: Undefine roundf, round, roundl before defining
51670         their replacements, to allow for hypothetical systems where these
51671         may be defined as macros but not available in libraries.
51672
51673 2007-10-27  Bruno Haible  <bruno@clisp.org>
51674
51675         * doc/gnulib.texi: Invoke @firstparagraphindent.
51676         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51677         changes in gnulib.
51678         (Source changes): New section.
51679
51680 2007-10-26  Bruno Haible  <bruno@clisp.org>
51681
51682         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51683         borrowed from autoconf.
51684
51685 2007-10-26  Bruno Haible  <bruno@clisp.org>
51686
51687         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51688         strerror returned the empty string. Needed on HP-UX 11.00.
51689
51690 2007-10-24  Micah Cowan  <micah@cowan.name>
51691
51692         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51693         * build-aux/bootstrap: Remove support for now-unnecessary option,
51694         --cvs-user, and envvars CVS_USER, CVS_RSH.
51695
51696 2007-10-24  Jim Meyering  <meyering@redhat.com>
51697
51698         Avoid diagnostics from sha1sum when there is no cached checksum.
51699         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51700         if the po.s1 file hasn't been created yet.
51701
51702         * build-aux/bootstrap: Sync from coreutils:
51703         2007-10-24  Jim Meyering  <meyering@redhat.com>
51704         Get gnulib from the git repository, not from an obsolete cvs one.
51705         * build-aux/bootstrap: Suggestion from Micah Cowan.
51706         2007-10-04  Jim Meyering  <jim@meyering.net>
51707         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51708         (update_po_files): Work also when there are no .po files in po/.
51709
51710 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         * README: Append ".git" to git and cg examples.
51713         Problem reported by Benoit Sigoure.
51714
51715 2007-10-23  Micah Cowan  <micah@cowan.name>
51716
51717         * users.txt: Add wget.
51718
51719 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51720
51721         Fix linking of some unistdio tests on FreeBSD.
51722         * modules/unistdio/u16-vsnprintf-tests
51723         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51724         * modules/unistdio/u16-vsprintf-tests
51725         (test_u16_vsnprintf1_LDADD): Likewise.
51726         * modules/unistdio/u32-vsnprintf-tests
51727         (test_u32_vsnprintf1_LDADD): Likewise.
51728         * modules/unistdio/u32-vsprintf-tests
51729         (test_u32_vsprintf1_LDADD): Likewise.
51730         * modules/unistdio/u8-vsnprintf-tests
51731         (test_u8_vsnprintf1_LDADD): Likewise.
51732         * modules/unistdio/u8-vsprintf-tests
51733         (test_u8_vsprintf1_LDADD): Likewise.
51734         * modules/unistdio/ulc-vsnprintf-tests
51735         (test_ulc_vsnprintf1_LDADD): Likewise.
51736         * modules/unistdio/ulc-vsprintf-tests
51737         (test_ulc_vsprintf1_LDADD): Likewise.
51738
51739         Fix linking of some uniconv tests on FreeBSD.
51740         * modules/uniconv/u16-conv-from-enc-tests
51741         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51742         * modules/uniconv/u16-conv-to-enc-tests
51743         (test_u16_conv_to_enc_LDADD): Likewise.
51744         * modules/uniconv/u16-strconv-from-enc-tests
51745         (test_u16_strconv_from_enc_LDADD): Likewise.
51746         * modules/uniconv/u16-strconv-to-enc-tests
51747         (test_u16_strconv_to_enc_LDADD): Likewise.
51748         * modules/uniconv/u32-conv-from-enc-tests
51749         (test_u32_conv_from_enc_LDADD): Likewise.
51750         * modules/uniconv/u32-conv-to-enc-tests
51751         (test_u32_conv_to_enc_LDADD): Likewise.
51752         * modules/uniconv/u32-strconv-from-enc-tests
51753         (test_u32_strconv_from_enc_LDADD): Likewise.
51754         * modules/uniconv/u32-strconv-to-enc-tests
51755         (test_u32_strconv_to_enc_LDADD): Likewise.
51756         * modules/uniconv/u8-conv-from-enc-tests
51757         (test_u8_conv_from_enc_LDADD): Likewise.
51758         * modules/uniconv/u8-conv-to-enc-tests
51759         (test_u8_conv_to_enc_LDADD): Likewise.
51760         * modules/uniconv/u8-strconv-from-enc-tests
51761         (test_u8_strconv_from_enc_LDADD): Likewise.
51762         * modules/uniconv/u8-strconv-to-enc-tests
51763         (test_u8_strconv_to_enc_LDADD): Likewise.
51764
51765 2007-10-22  Bruno Haible  <bruno@clisp.org>
51766
51767         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51768         size.
51769
51770 2007-10-22  Eric Blake  <ebb9@byu.net>
51771
51772         Tweak x*printf documentation.
51773         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51774         variable name and comments.
51775         Suggested by Bruno Haible.
51776
51777 2007-10-22  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/acl.c (copy_acl): Fix file name in comment.
51780
51781 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         Fix Tru64 problem with stdbool.h.
51784         * lib/stdbool.in.h (false, true):
51785         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51786         Don't declare as an enum in this situation; it runs afoul of Tru64.
51787         Problem reported by Steven M. Schweda in
51788         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51789
51790 2007-10-22  Eric Blake  <ebb9@byu.net>
51791
51792         Also wrap vf?printf.
51793         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51794         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51795         (xvprintf, xvfprintf): New functions.
51796
51797 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51798
51799         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51800         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51801
51802         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51803         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51804
51805 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51806
51807         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51808         by Bruno Haible.
51809
51810 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51811
51812         * lib/getloadavg.c
51813         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51814         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51815
51816         * tests/test-i-ring.c: Work for C89.
51817
51818 2007-10-22  Bruno Haible  <bruno@clisp.org>
51819
51820         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51821         -1u, in preprocessor expression, so that we don't test for the bug
51822         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51824
51825 2007-10-22  Eric Blake  <ebb9@byu.net>
51826
51827         * tests/test-yesno.sh: Silence stderr during test.
51828
51829 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51830
51831         * modules/crypto/gc-camellia: New file.
51832
51833         * m4/gc-camellia.m4: New file.
51834
51835         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51836
51837         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51838
51839 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51840
51841         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51842         --help to stdout.  Reported by sms@antinode.org (Steven
51843         M. Schweda).
51844
51845 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51846
51847         * users.txt: Fix link to libksba.
51848
51849 2007-10-21  Ben Pfaff  <blp@gnu.org>
51850
51851         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51852         round.c roundf implementation that depends on floorf and ceilf to
51853         be tested unconditionally.
51854
51855 2007-10-21  Ben Pfaff  <blp@gnu.org>
51856
51857         * m4/check-libm-func.m4: Removed.
51858         * m4/check-math-lib.m4: New file.
51859         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51860         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51861         definition and lack of AC_LIBOBJ([roundf]).
51862         * m4/roundl.m4: Ditto, and similarly for roundl.
51863         * modules/round: Reference new m4 file.
51864         * modules/roundf: Ditto.
51865         * modules/roundl: Ditto.
51866         * tests/test-round2.c (main): Use ROUND instead of round.
51867         Bug report from Bruno Haible.
51868
51869 2007-10-21  Bruno Haible  <bruno@clisp.org>
51870
51871         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51872         context.
51873
51874 2007-10-21  Bruno Haible  <bruno@clisp.org>
51875
51876         * tests/test-wcwidth.c (main): Allow negative result for some control
51877         characters.
51878
51879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51880         Needed on OSF/1 5.1.
51881
51882 2007-10-21  Bruno Haible  <bruno@clisp.org>
51883
51884         * tests/test-floorf1.c: Include isnanf.h.
51885         (main): Use isnanf() instead of isnan().
51886         * tests/test-ceilf1.c: Include isnanf.h.
51887         (main): Use isnanf() instead of isnan().
51888         * tests/test-truncf1.c: Include isnanf.h.
51889         (main): Use isnanf() instead of isnan().
51890         * tests/test-roundf1.c: Include isnanf.h.
51891         (main): Use isnanf() instead of isnan().
51892
51893 2007-10-21  Eric Blake  <ebb9@byu.net>
51894
51895         * users.txt: Update URL for m4.
51896
51897 2007-10-21  Bruno Haible  <bruno@clisp.org>
51898
51899         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51900
51901 2007-10-21  Bruno Haible  <bruno@clisp.org>
51902
51903         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51904         Git's management files if the CVS files are not present.
51905
51906 2007-10-20  Bruno Haible  <bruno@clisp.org>
51907
51908         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51909         gcc-3.4.x.
51910
51911 2007-10-20  Ben Pfaff  <blp@gnu.org>
51912
51913         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51914         implementations.
51915         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51916         * lib/round.c: New file.
51917         * lib/roundf.c: New file.
51918         * lib/roundl.c: New file.
51919         * m4/round.m4: New file.
51920         * m4/roundf.m4: New file.
51921         * m4/roundl.m4: New file.
51922         * m4/check-libm-func-m4: New file.
51923         * modules/math: Replace round, roundf, roundl related @VARS@ in
51924         math.in.h.
51925         * modules/round: New file.
51926         * modules/round-tests: New file.
51927         * modules/roundf: New file.
51928         * modules/roundf-tests: New file.
51929         * modules/roundl: New file.
51930         * modules/roundl-tests: New file.
51931         * tests/test-round1.c: New file.
51932         * tests/test-round2.c: New file.
51933         * tests/test-roundf1.c: New file.
51934         * tests/test-roundf2.c: New file.
51935         * tests/test-roundl.c: New file.
51936         * doc/functions/round.texi: Mention round module.
51937         * doc/functions/roundf.texi: Mention roundf module.
51938         * doc/functions/roundl.texi: Mention roundl module.
51939         * MODULES.html.sh: Mention new modules.
51940         Thanks to Bruno Haible for suggestions.
51941
51942 2007-10-20  Jim Meyering  <meyering@redhat.com>
51943
51944         * lib/xprintf.c: Include <config.h> unconditionally.
51945
51946         Change xprintf's license to GPL.
51947         * modules/xprintf (License): s/LGPL/GPL/, since this module
51948         depends on modules (exit and exitfail) which are GPL.
51949         Suggestion from Bruno Haible.
51950
51951         xprintf fixes.
51952         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51953         Use a clearer diagnostic.
51954         Patch from Bruno Haible.
51955
51956 2007-10-20  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51959         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51961
51962 2007-10-20  Bruno Haible  <bruno@clisp.org>
51963
51964         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51965         precision in the comparison result > x - 1 or similar.
51966         * tests/test-ceilf2.c (correct_result_p): Likewise.
51967         * tests/test-truncf2.c (correct_result_p): Likewise.
51968         * tests/test-trunc2.c (correct_result_p): Likewise.
51969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51970
51971 2007-10-20  Bruno Haible  <bruno@clisp.org>
51972
51973         * modules/ceil: New file.
51974         * m4/ceil.m4: New file.
51975         * doc/functions/ceil.texi: Mention the 'ceil' module.
51976
51977 2007-10-20  Bruno Haible  <bruno@clisp.org>
51978
51979         * modules/floor: New file.
51980         * m4/floor.m4: New file.
51981         * doc/functions/floor.texi: Mention the 'floor' module.
51982
51983 2007-10-20  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51986         of %a.
51987         * modules/floorf-tests (Depends-on): Likewise.
51988         * modules/truncf-tests (Depends-on): Likewise.
51989         * modules/trunc-tests (Depends-on): Likewise.
51990         Reported by Ben Pfaff.
51991
51992 2007-10-19  Jim Meyering  <meyering@redhat.com>
51993
51994         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51995         Don't bother testing specific errno values.  Just test ferror.
51996
51997         New module: xprintf
51998         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51999
52000 2007-10-19  Bruno Haible  <bruno@clisp.org>
52001
52002         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52003         syntax.
52004         * modules/javaexec (Makefile.am): Likewise.
52005         * modules/relocatable-prog (Makefile.am): Likewise.
52006         Suggested by Jim Meyering.
52007
52008 2007-10-18  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52011         Reported by Jim Meyering.
52012
52013 2007-10-18  Eric Blake  <ebb9@byu.net>
52014
52015         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52016
52017 2007-10-18  Bruno Haible  <bruno@clisp.org>
52018
52019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52020         the format string into writable memory. Needed in Fortify conditions.
52021
52022 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52023             Bruno Haible  <bruno@clisp.org>
52024
52025         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52026         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52027         * modules/trim (Depends-on): Add mbchar.
52028         (configure.ac): Add gl_FUNC_MBRTOWC.
52029         (Makefile.am): Augment lib_SOURCES.
52030
52031 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52032
52033         Modify glob.c to use fstatat and dirfd, to simplify it.
52034         Suggested by Eric Blake.
52035         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52036         Don't include <stdbool.h>; not used.
52037         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52038         (link_exists_p): Simplify implementation, since we can now assume
52039         dirfd and fstatat.
52040         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52041
52042 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52043
52044         * gnulib-tool (func_get_dependencies): Fix sed script to
52045         match only tests.
52046
52047 2007-10-17  Bruno Haible  <bruno@clisp.org>
52048
52049         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52050         allow locale names without encoding suffix.
52051         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52052         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52053
52054 2007-10-16  Bruno Haible  <bruno@clisp.org>
52055
52056         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52057         * lib/getgroups.c (getgroups): Likewise.
52058         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52059
52060 2007-10-16  Bruno Haible  <bruno@clisp.org>
52061
52062         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52063         * modules/malloc-posix (License): Likewise.
52064         * modules/realloc-posix (License): Likewise.
52065         * modules/calloc-posix (License): Likewise.
52066         * modules/intprops (License): Change from GPL to LGPL, with
52067         Paul Eggert's approval.
52068
52069 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52070
52071         Merge glibc changes into lib/glob.c.
52072
52073         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52074         2007-10-15 04:59:03 UTC.  Here are the changes:
52075
52076         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52077
52078         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52079
52080         * lib/glob.c: Add some branch prediction throughout.
52081
52082         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52083
52084         [BZ #5103]
52085         * lib/glob.c (glob): Recognize patterns starting \/.
52086
52087         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52088
52089         [BZ #3996]
52090         * lib/glob.c (attribute_hidden): Define if not defined.
52091         (glob): Unescape dirname, filename or username when needed and not
52092         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52093         is NULL.  Handle unescaped [ in pattern without closing ].
52094         Don't pass GLOB_CHECK down to recursive glob for directories.
52095         (__glob_pattern_type): New function.
52096         (__glob_pattern_p): Implement using __glob_pattern_type.
52097         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52098         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52099         Remove unreachable code.
52100
52101         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52102
52103         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52104         explain why there are no leaks.
52105
52106         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52107
52108         [BZ #3253]
52109         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52110         time, rather allocate increasingly bigger arrays of pointers, if
52111         possible with alloca, if too large with malloc.
52112
52113 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52114
52115         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52116         Problem reported by H.Merijn Brand in
52117         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52118         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52119         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52120
52121 2007-10-15  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52124         with explicit rpl_ prefix.
52125         * lib/fopen.c (fopen): Likewise.
52126         * lib/freopen.c (freopen): Likewise.
52127         * lib/iconv.c (iconv): Likewise.
52128         * lib/iconv_close.c (iconv_close): Likewise.
52129
52130 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52131
52132         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52133
52134 2007-10-15  Bruno Haible  <bruno@clisp.org>
52135
52136         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52137         <stddef.h> instead of <stdlib.h> since we only need NULL.
52138         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52139
52140 2007-10-15  Bruno Haible  <bruno@clisp.org>
52141
52142         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52143         Replace paragraph talking about LIBOBJS.
52144         Reported by Colin Watson <cjwatson@debian.org>.
52145
52146 2007-10-15  Bruno Haible  <bruno@clisp.org>
52147
52148         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52149         <stdlib.h> before using NULL.
52150
52151 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52152
52153         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52154         Reported by Albert Chin <china@thewrittenword.com>.
52155
52156 2007-10-14  Bruno Haible  <bruno@clisp.org>
52157
52158         * modules/iconv_open-utf-tests: New file.
52159         * tests/test-iconv-utf.c: New file.
52160
52161         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52162         * modules/iconv_open-utf: New file.
52163         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52164         (iconv, iconv_close): New declarations.
52165         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52166         be defined.
52167         (iconv_open): Add special handling of conversion between UTF-8 and
52168         UTF-{16,32}{BE,LE}.
52169         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52170         * lib/iconv_close.c: New file.
52171         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52172         gl_FUNC_ICONV_OPEN.
52173         (gl_FUNC_ICONV_OPEN): Use it.
52174         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52175         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52176         and REPLACE_ICONV_UTF.
52177         * modules/iconv_open (Depends-on): Add c-strcase.
52178         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52179         ICONV_CONST.
52180         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52181
52182 2007-10-13  Albert Chin  <china@thewrittenword.com>
52183             Bruno Haible  <bruno@clisp.org>
52184
52185         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52186         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52187
52188 2007-10-13  Bruno Haible  <bruno@clisp.org>
52189
52190         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52191         defined, use the ISO C99 inline semantics.
52192         * lib/argp.h (ARGP_EI): Likewise.
52193
52194 2007-10-13  Bruno Haible  <bruno@clisp.org>
52195
52196         Handle 'inline' change in gcc 4.3.0.
52197         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52198         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52199         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52200         argp_fmtstream_point): Disable 'extern' declaration if the function
52201         definition is going to be provided inline.
52202         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52203         semantics, not the ISO C99 inline semantics.
52204         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52205         'extern' declaration if the function definition is going to be provided
52206         inline.
52207         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52208         the GNU C inline semantics, not the ISO C99 inline semantics. With
52209         GCC 4.2, avoid a warning.
52210
52211 2007-10-13  Bruno Haible  <bruno@clisp.org>
52212
52213         * lib/freading.h (freading): Enable the use of __freading for
52214         glibc >= 2.7.
52215         * lib/freading.c (freading): Likewise.
52216
52217 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52218
52219         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52220         "warning: C99 inline functions are not supported; using GNU89".
52221
52222 2007-10-12  Bruno Haible  <bruno@clisp.org>
52223
52224         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52225         of 2.
52226         * tests/test-ceilf2.c: New file.
52227         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52228
52229         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52230         * modules/ceilf-tests: Update.
52231
52232 2007-10-12  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52235         of 2.
52236         * tests/test-floorf2.c: New file.
52237         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52238
52239         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52240         * modules/floorf-tests: Update.
52241
52242 2007-10-12  Bruno Haible  <bruno@clisp.org>
52243
52244         * tests/test-trunc2.c: New file.
52245         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52246
52247         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52248         * modules/trunc-tests: Update.
52249
52250 2007-10-12  Bruno Haible  <bruno@clisp.org>
52251
52252         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52253         of 2.
52254         * tests/test-truncf2.c: New file.
52255         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52256
52257         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52258         * modules/truncf-tests: Update.
52259
52260 2007-10-11  Eric Blake  <ebb9@byu.net>
52261
52262         Don't claim strerror is broken on Interix.
52263         * doc/functions/strerror.texi (strerror): Known broken systems are
52264         now Solaris 8, and not Interix.
52265         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52266         Interix on cross-compile.
52267         Reported by Martin Koeppe in
52268         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52269
52270 2007-10-11  Bruno Haible  <bruno@clisp.org>
52271
52272         * modules/i-ring-tests: New file.
52273         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52274         instead of assert.
52275
52276 2007-10-11  Bruno Haible  <bruno@clisp.org>
52277
52278         * modules/filenamecat-tests: New file.
52279         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52280         * lib/filenamecat.c: Remove test code.
52281
52282 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52285
52286         * lib/strerror.c: Include <string.h> always, to test interface,
52287         and to remove the need for the dummy.
52288         Include intprops.h to compute width instead of doing it ourselves
52289         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52290         (strerror): Define it to return NULL if there's no system strerror.
52291         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52292         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52293         ancient pre-strerror Unix systems well any more.  Saying "unknown
52294         system error" is enough.
52295         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52296         simpler strerror.c implementation.
52297         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52298         Simplify the tests to reflect the simpler strerror implementation.
52299         * modules/strerror (Depends-on): Add intprops.
52300
52301 2007-10-09  Eric Blake  <ebb9@byu.net>
52302
52303         Silence test-fpending.
52304         * modules/fpending-tests (Files): Add wrapper script.
52305         * tests/test-fpending.sh: New file.
52306
52307 2007-10-09  Bruno Haible  <bruno@clisp.org>
52308
52309         * MODULES.html.sh (func_module): Don't create a hyperlink for
52310         function names like 'printf_frexp'.
52311         (Misc): Add crc, memxor.
52312         (Characteristics of floating types): New section.
52313         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52314         isnanf-nolibm, signbit, trunc, truncf, truncl.
52315         (Enhancements for ISO C 99 functions): New subsection Input/output.
52316         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52317         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52318         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52319         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52320         (Enhancements for POSIX:2001 functions): Add chdir-long.
52321         (File system functions): Add areadlink, chdir-safer, read-file.
52322         Remove cycle-check.
52323         (File system as inode set): New section.
52324         (Date and time): Add gethrxtime.
52325         (Multithreading): Add openmp.
52326         (Internationalization functions): Add localename.
52327         (Unicode string functions): Add unistr/u*-mbsnlen.
52328         (Support for maintaining and releasing projects): Add git-version-gen.
52329         (Lone files): Remove directories.
52330
52331 2007-10-08  Ben Pfaff  <blp@gnu.org>
52332
52333         * lib/xmalloca.h: Fix typo in comment.
52334
52335 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52336
52337         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52338         when avoiding problems with integer overflow.  Use a portable test
52339         instead.
52340
52341 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52342
52343         * modules/dummy (License): Change to LGPLv2+.
52344         * modules/float (License): Likewise
52345         * modules/realloc (License): Likewise
52346         * modules/stdlib (License): Likewise
52347
52348 2007-10-07  Bruno Haible  <bruno@clisp.org>
52349
52350         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52351         * floor.c (TWO_MANT_DIG): Likewise.
52352         * ceil.c (TWO_MANT_DIG): Likewise.
52353         Reported by Ben Pfaff.
52354
52355 2007-10-07  Bruno Haible  <bruno@clisp.org>
52356
52357         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52358         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52359         * lib/frexp.c (FUNC): Likewise.
52360         * lib/printf-frexp.h (printf_frexp): Likewise.
52361         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52362         * lib/printf-frexp.c (FUNC): Likewise.
52363         Suggested by Jim Meyering.
52364
52365 2007-10-07  Jim Meyering  <meyering@redhat.com>
52366
52367         Make xnanosleep's integer overflow test more robust.
52368         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52369         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52370
52371 2007-10-07  Bruno Haible  <bruno@clisp.org>
52372
52373         * NEWS: Mention the license change.
52374
52375         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52376         abbreviations in the modules files.
52377
52378         Change copyright notice from GPLv2+ to GPLv3+.
52379         * README: Change copyright notice.
52380         * MODULES.html.sh: Likewise.
52381         * build-aux/bootstrap.conf: Likewise.
52382         * build-aux/config.libpath: Likewise.
52383         * build-aux/csharpcomp.sh.in: Likewise.
52384         * build-aux/csharpexec.sh.in: Likewise.
52385         * build-aux/install-reloc: Likewise.
52386         * build-aux/javacomp.sh.in: Likewise.
52387         * build-aux/javaexec.sh.in: Likewise.
52388         * build-aux/ldd.sh.in: Likewise.
52389         * build-aux/reloc-ldflags: Likewise.
52390         * build-aux/relocatable.sh.in: Likewise.
52391         * build-aux/x-to-1.in: Likewise.
52392         * check-module: Likewise.
52393         * config/srclistvars.sh: Likewise.
52394         * gnulib-tool: Likewise.
52395         * lib/acl-internal.h: Likewise.
52396         * lib/acl.c: Likewise.
52397         * lib/acl.h: Likewise.
52398         * lib/acl_entries.c: Likewise.
52399         * lib/areadlink-with-size.c: Likewise.
52400         * lib/areadlink.c: Likewise.
52401         * lib/areadlink.h: Likewise.
52402         * lib/argmatch.c: Likewise.
52403         * lib/argmatch.h: Likewise.
52404         * lib/argp-ba.c: Likewise.
52405         * lib/argp-eexst.c: Likewise.
52406         * lib/argp-fmtstream.c: Likewise.
52407         * lib/argp-fmtstream.h: Likewise.
52408         * lib/argp-fs-xinl.c: Likewise.
52409         * lib/argp-help.c: Likewise.
52410         * lib/argp-namefrob.h: Likewise.
52411         * lib/argp-parse.c: Likewise.
52412         * lib/argp-pin.c: Likewise.
52413         * lib/argp-pv.c: Likewise.
52414         * lib/argp-pvh.c: Likewise.
52415         * lib/argp-xinl.c: Likewise.
52416         * lib/argp.h: Likewise.
52417         * lib/at-func.c: Likewise.
52418         * lib/atanl.c: Likewise.
52419         * lib/backupfile.c: Likewise.
52420         * lib/backupfile.h: Likewise.
52421         * lib/basename.c: Likewise.
52422         * lib/binary-io.h: Likewise.
52423         * lib/byteswap.in.h: Likewise.
52424         * lib/c-stack.c: Likewise.
52425         * lib/c-stack.h: Likewise.
52426         * lib/c-strcasestr.c: Likewise.
52427         * lib/c-strcasestr.h: Likewise.
52428         * lib/c-strstr.c: Likewise.
52429         * lib/c-strstr.h: Likewise.
52430         * lib/c-strtod.c: Likewise.
52431         * lib/calloc.c: Likewise.
52432         * lib/canon-host.c: Likewise.
52433         * lib/canon-host.h: Likewise.
52434         * lib/canonicalize-lgpl.c: Likewise.
52435         * lib/canonicalize.c: Likewise.
52436         * lib/canonicalize.h: Likewise.
52437         * lib/ceil.c: Likewise.
52438         * lib/ceilf.c: Likewise.
52439         * lib/ceill.c: Likewise.
52440         * lib/chdir-long.c: Likewise.
52441         * lib/chdir-long.h: Likewise.
52442         * lib/chdir-safer.c: Likewise.
52443         * lib/chdir-safer.h: Likewise.
52444         * lib/chown.c: Likewise.
52445         * lib/classpath.c: Likewise.
52446         * lib/classpath.h: Likewise.
52447         * lib/clean-temp.c: Likewise.
52448         * lib/clean-temp.h: Likewise.
52449         * lib/cloexec.c: Likewise.
52450         * lib/close-stream.c: Likewise.
52451         * lib/closein.c: Likewise.
52452         * lib/closein.h: Likewise.
52453         * lib/closeout.c: Likewise.
52454         * lib/closeout.h: Likewise.
52455         * lib/concat-filename.c: Likewise.
52456         * lib/copy-file.c: Likewise.
52457         * lib/copy-file.h: Likewise.
52458         * lib/count-one-bits.h: Likewise.
52459         * lib/crc.c: Likewise.
52460         * lib/crc.h: Likewise.
52461         * lib/creat-safer.c: Likewise.
52462         * lib/csharpcomp.c: Likewise.
52463         * lib/csharpcomp.h: Likewise.
52464         * lib/csharpexec.c: Likewise.
52465         * lib/csharpexec.h: Likewise.
52466         * lib/cycle-check.c: Likewise.
52467         * lib/cycle-check.h: Likewise.
52468         * lib/diacrit.c: Likewise.
52469         * lib/diacrit.h: Likewise.
52470         * lib/diffseq.h: Likewise.
52471         * lib/dirchownmod.c: Likewise.
52472         * lib/dirent.in.h: Likewise.
52473         * lib/dirfd.c: Likewise.
52474         * lib/dirfd.h: Likewise.
52475         * lib/dirname.c: Likewise.
52476         * lib/dirname.h: Likewise.
52477         * lib/dummy.c: Likewise.
52478         * lib/dup-safer.c: Likewise.
52479         * lib/dup2.c: Likewise.
52480         * lib/eealloc.h: Likewise.
52481         * lib/error.c: Likewise.
52482         * lib/error.h: Likewise.
52483         * lib/euidaccess.c: Likewise.
52484         * lib/exclude.c: Likewise.
52485         * lib/exclude.h: Likewise.
52486         * lib/execute.c: Likewise.
52487         * lib/execute.h: Likewise.
52488         * lib/exitfail.c: Likewise.
52489         * lib/exitfail.h: Likewise.
52490         * lib/expl.c: Likewise.
52491         * lib/fatal-signal.c: Likewise.
52492         * lib/fatal-signal.h: Likewise.
52493         * lib/fbufmode.c: Likewise.
52494         * lib/fbufmode.h: Likewise.
52495         * lib/fchdir.c: Likewise.
52496         * lib/fchmodat.c: Likewise.
52497         * lib/fchownat.c: Likewise.
52498         * lib/fcntl--.h: Likewise.
52499         * lib/fcntl-safer.h: Likewise.
52500         * lib/fcntl.in.h: Likewise.
52501         * lib/fd-safer.c: Likewise.
52502         * lib/fflush.c: Likewise.
52503         * lib/file-has-acl.c: Likewise.
52504         * lib/file-set.c: Likewise.
52505         * lib/file-type.c: Likewise.
52506         * lib/file-type.h: Likewise.
52507         * lib/fileblocks.c: Likewise.
52508         * lib/filemode.c: Likewise.
52509         * lib/filemode.h: Likewise.
52510         * lib/filename.h: Likewise.
52511         * lib/filenamecat.c: Likewise.
52512         * lib/filenamecat.h: Likewise.
52513         * lib/findprog.c: Likewise.
52514         * lib/findprog.h: Likewise.
52515         * lib/float.in.h: Likewise.
52516         * lib/floor.c: Likewise.
52517         * lib/floorf.c: Likewise.
52518         * lib/floorl.c: Likewise.
52519         * lib/fopen-safer.c: Likewise.
52520         * lib/fopen.c: Likewise.
52521         * lib/fpending.c: Likewise.
52522         * lib/fpending.h: Likewise.
52523         * lib/fprintf.c: Likewise.
52524         * lib/fprintftime.h: Likewise.
52525         * lib/fpucw.h: Likewise.
52526         * lib/fpurge.c: Likewise.
52527         * lib/fpurge.h: Likewise.
52528         * lib/freadable.c: Likewise.
52529         * lib/freadable.h: Likewise.
52530         * lib/freadahead.c: Likewise.
52531         * lib/freadahead.h: Likewise.
52532         * lib/freading.c: Likewise.
52533         * lib/freading.h: Likewise.
52534         * lib/free.c: Likewise.
52535         * lib/freopen.c: Likewise.
52536         * lib/frexp.c: Likewise.
52537         * lib/frexpl.c: Likewise.
52538         * lib/fseek.c: Likewise.
52539         * lib/fseterr.c: Likewise.
52540         * lib/fseterr.h: Likewise.
52541         * lib/fstatat.c: Likewise.
52542         * lib/fstrcmp.c: Likewise.
52543         * lib/fstrcmp.h: Likewise.
52544         * lib/fsusage.c: Likewise.
52545         * lib/fsusage.h: Likewise.
52546         * lib/ftell.c: Likewise.
52547         * lib/ftello.c: Likewise.
52548         * lib/fts-cycle.c: Likewise.
52549         * lib/fts.c: Likewise.
52550         * lib/fts_.h: Likewise.
52551         * lib/full-read.c: Likewise.
52552         * lib/full-read.h: Likewise.
52553         * lib/full-write.c: Likewise.
52554         * lib/full-write.h: Likewise.
52555         * lib/fwritable.c: Likewise.
52556         * lib/fwritable.h: Likewise.
52557         * lib/fwriteerror.c: Likewise.
52558         * lib/fwriteerror.h: Likewise.
52559         * lib/fwriting.c: Likewise.
52560         * lib/fwriting.h: Likewise.
52561         * lib/gcd.c: Likewise.
52562         * lib/gcd.h: Likewise.
52563         * lib/getcwd.c: Likewise.
52564         * lib/getdate.h: Likewise.
52565         * lib/getdate.y: Likewise.
52566         * lib/getdomainname.c: Likewise.
52567         * lib/getdomainname.h: Likewise.
52568         * lib/getgroups.c: Likewise.
52569         * lib/gethostname.c: Likewise.
52570         * lib/gethrxtime.c: Likewise.
52571         * lib/gethrxtime.h: Likewise.
52572         * lib/getloadavg.c: Likewise.
52573         * lib/getndelim2.c: Likewise.
52574         * lib/getndelim2.h: Likewise.
52575         * lib/getnline.c: Likewise.
52576         * lib/getnline.h: Likewise.
52577         * lib/getopt.c: Likewise.
52578         * lib/getopt.in.h: Likewise.
52579         * lib/getopt1.c: Likewise.
52580         * lib/getopt_int.h: Likewise.
52581         * lib/getpagesize.h: Likewise.
52582         * lib/getsubopt.c: Likewise.
52583         * lib/gettime.c: Likewise.
52584         * lib/getugroups.c: Likewise.
52585         * lib/getugroups.h: Likewise.
52586         * lib/getusershell.c: Likewise.
52587         * lib/gl_anyavltree_list1.h: Likewise.
52588         * lib/gl_anyavltree_list2.h: Likewise.
52589         * lib/gl_anyhash_list1.h: Likewise.
52590         * lib/gl_anyhash_list2.h: Likewise.
52591         * lib/gl_anylinked_list1.h: Likewise.
52592         * lib/gl_anylinked_list2.h: Likewise.
52593         * lib/gl_anyrbtree_list1.h: Likewise.
52594         * lib/gl_anyrbtree_list2.h: Likewise.
52595         * lib/gl_anytree_list1.h: Likewise.
52596         * lib/gl_anytree_list2.h: Likewise.
52597         * lib/gl_anytree_oset.h: Likewise.
52598         * lib/gl_anytreehash_list1.h: Likewise.
52599         * lib/gl_anytreehash_list2.h: Likewise.
52600         * lib/gl_array_list.c: Likewise.
52601         * lib/gl_array_list.h: Likewise.
52602         * lib/gl_array_oset.c: Likewise.
52603         * lib/gl_array_oset.h: Likewise.
52604         * lib/gl_avltree_list.c: Likewise.
52605         * lib/gl_avltree_list.h: Likewise.
52606         * lib/gl_avltree_oset.c: Likewise.
52607         * lib/gl_avltree_oset.h: Likewise.
52608         * lib/gl_avltreehash_list.c: Likewise.
52609         * lib/gl_avltreehash_list.h: Likewise.
52610         * lib/gl_carray_list.c: Likewise.
52611         * lib/gl_carray_list.h: Likewise.
52612         * lib/gl_linked_list.c: Likewise.
52613         * lib/gl_linked_list.h: Likewise.
52614         * lib/gl_linkedhash_list.c: Likewise.
52615         * lib/gl_linkedhash_list.h: Likewise.
52616         * lib/gl_list.c: Likewise.
52617         * lib/gl_list.h: Likewise.
52618         * lib/gl_oset.c: Likewise.
52619         * lib/gl_oset.h: Likewise.
52620         * lib/gl_rbtree_list.c: Likewise.
52621         * lib/gl_rbtree_list.h: Likewise.
52622         * lib/gl_rbtree_oset.c: Likewise.
52623         * lib/gl_rbtree_oset.h: Likewise.
52624         * lib/gl_rbtreehash_list.c: Likewise.
52625         * lib/gl_rbtreehash_list.h: Likewise.
52626         * lib/gl_sublist.c: Likewise.
52627         * lib/gl_sublist.h: Likewise.
52628         * lib/group-member.c: Likewise.
52629         * lib/group-member.h: Likewise.
52630         * lib/hard-locale.c: Likewise.
52631         * lib/hard-locale.h: Likewise.
52632         * lib/hash-pjw.c: Likewise.
52633         * lib/hash-pjw.h: Likewise.
52634         * lib/hash-triple.c: Likewise.
52635         * lib/hash.c: Likewise.
52636         * lib/hash.h: Likewise.
52637         * lib/human.c: Likewise.
52638         * lib/human.h: Likewise.
52639         * lib/i-ring.c: Likewise.
52640         * lib/i-ring.h: Likewise.
52641         * lib/idcache.c: Likewise.
52642         * lib/imaxabs.c: Likewise.
52643         * lib/imaxdiv.c: Likewise.
52644         * lib/inet_pton.c: Likewise.
52645         * lib/inet_pton.h: Likewise.
52646         * lib/intprops.h: Likewise.
52647         * lib/inttostr.c: Likewise.
52648         * lib/inttostr.h: Likewise.
52649         * lib/inttypes.in.h: Likewise.
52650         * lib/isapipe.c: Likewise.
52651         * lib/isdir.c: Likewise.
52652         * lib/isnan.c: Likewise.
52653         * lib/isnan.h: Likewise.
52654         * lib/isnanf.c: Likewise.
52655         * lib/isnanf.h: Likewise.
52656         * lib/isnanl-nolibm.h: Likewise.
52657         * lib/isnanl.c: Likewise.
52658         * lib/isnanl.h: Likewise.
52659         * lib/javacomp.c: Likewise.
52660         * lib/javacomp.h: Likewise.
52661         * lib/javaexec.c: Likewise.
52662         * lib/javaexec.h: Likewise.
52663         * lib/javaversion.c: Likewise.
52664         * lib/javaversion.h: Likewise.
52665         * lib/javaversion.java: Likewise.
52666         * lib/lbrkprop.h: Likewise.
52667         * lib/lchmod.h: Likewise.
52668         * lib/lchown.c: Likewise.
52669         * lib/ldexpl.c: Likewise.
52670         * lib/linebreak.c: Likewise.
52671         * lib/linebreak.h: Likewise.
52672         * lib/linebuffer.c: Likewise.
52673         * lib/linebuffer.h: Likewise.
52674         * lib/locale.in.h: Likewise.
52675         * lib/logl.c: Likewise.
52676         * lib/long-options.c: Likewise.
52677         * lib/long-options.h: Likewise.
52678         * lib/lstat.c: Likewise.
52679         * lib/lstat.h: Likewise.
52680         * lib/math.in.h: Likewise.
52681         * lib/mbchar.c: Likewise.
52682         * lib/mbchar.h: Likewise.
52683         * lib/mbfile.h: Likewise.
52684         * lib/mbiter.h: Likewise.
52685         * lib/mbscasecmp.c: Likewise.
52686         * lib/mbscasestr.c: Likewise.
52687         * lib/mbschr.c: Likewise.
52688         * lib/mbscspn.c: Likewise.
52689         * lib/mbslen.c: Likewise.
52690         * lib/mbsncasecmp.c: Likewise.
52691         * lib/mbsnlen.c: Likewise.
52692         * lib/mbspbrk.c: Likewise.
52693         * lib/mbspcasecmp.c: Likewise.
52694         * lib/mbsrchr.c: Likewise.
52695         * lib/mbssep.c: Likewise.
52696         * lib/mbsspn.c: Likewise.
52697         * lib/mbsstr.c: Likewise.
52698         * lib/mbstok_r.c: Likewise.
52699         * lib/mbswidth.c: Likewise.
52700         * lib/mbswidth.h: Likewise.
52701         * lib/mbuiter.h: Likewise.
52702         * lib/memcasecmp.c: Likewise.
52703         * lib/memcasecmp.h: Likewise.
52704         * lib/memchr.c: Likewise.
52705         * lib/memcmp.c: Likewise.
52706         * lib/memcoll.c: Likewise.
52707         * lib/memcoll.h: Likewise.
52708         * lib/memcpy.c: Likewise.
52709         * lib/memrchr.c: Likewise.
52710         * lib/mkancesdirs.c: Likewise.
52711         * lib/mkdir-p.c: Likewise.
52712         * lib/mkdir-p.h: Likewise.
52713         * lib/mkdir.c: Likewise.
52714         * lib/mkdirat.c: Likewise.
52715         * lib/mkdtemp.c: Likewise.
52716         * lib/mkstemp-safer.c: Likewise.
52717         * lib/mkstemp.c: Likewise.
52718         * lib/modechange.c: Likewise.
52719         * lib/modechange.h: Likewise.
52720         * lib/mountlist.c: Likewise.
52721         * lib/mountlist.h: Likewise.
52722         * lib/mpsort.c: Likewise.
52723         * lib/nanosleep.c: Likewise.
52724         * lib/obstack.c: Likewise.
52725         * lib/obstack.h: Likewise.
52726         * lib/open-safer.c: Likewise.
52727         * lib/open.c: Likewise.
52728         * lib/openat-die.c: Likewise.
52729         * lib/openat-priv.h: Likewise.
52730         * lib/openat-proc.c: Likewise.
52731         * lib/openat.c: Likewise.
52732         * lib/openat.h: Likewise.
52733         * lib/pagealign_alloc.c: Likewise.
52734         * lib/pagealign_alloc.h: Likewise.
52735         * lib/physmem.c: Likewise.
52736         * lib/physmem.h: Likewise.
52737         * lib/pipe-safer.c: Likewise.
52738         * lib/pipe.c: Likewise.
52739         * lib/pipe.h: Likewise.
52740         * lib/posixtm.c: Likewise.
52741         * lib/posixtm.h: Likewise.
52742         * lib/posixver.c: Likewise.
52743         * lib/printf-frexp.c: Likewise.
52744         * lib/printf-frexp.h: Likewise.
52745         * lib/printf-frexpl.c: Likewise.
52746         * lib/printf-frexpl.h: Likewise.
52747         * lib/printf.c: Likewise.
52748         * lib/progname.c: Likewise.
52749         * lib/progname.h: Likewise.
52750         * lib/progreloc.c: Likewise.
52751         * lib/putenv.c: Likewise.
52752         * lib/quote.c: Likewise.
52753         * lib/quote.h: Likewise.
52754         * lib/quotearg.c: Likewise.
52755         * lib/quotearg.h: Likewise.
52756         * lib/raise.c: Likewise.
52757         * lib/readline.c: Likewise.
52758         * lib/readline.h: Likewise.
52759         * lib/readlink.c: Likewise.
52760         * lib/readtokens.c: Likewise.
52761         * lib/readtokens.h: Likewise.
52762         * lib/readtokens0.c: Likewise.
52763         * lib/readtokens0.h: Likewise.
52764         * lib/readutmp.c: Likewise.
52765         * lib/readutmp.h: Likewise.
52766         * lib/realloc.c: Likewise.
52767         * lib/relocwrapper.c: Likewise.
52768         * lib/rename-dest-slash.c: Likewise.
52769         * lib/rename.c: Likewise.
52770         * lib/rmdir.c: Likewise.
52771         * lib/rpmatch.c: Likewise.
52772         * lib/safe-read.c: Likewise.
52773         * lib/safe-read.h: Likewise.
52774         * lib/safe-write.c: Likewise.
52775         * lib/safe-write.h: Likewise.
52776         * lib/same-inode.h: Likewise.
52777         * lib/same.c: Likewise.
52778         * lib/same.h: Likewise.
52779         * lib/save-cwd.c: Likewise.
52780         * lib/save-cwd.h: Likewise.
52781         * lib/savedir.c: Likewise.
52782         * lib/savedir.h: Likewise.
52783         * lib/savewd.c: Likewise.
52784         * lib/savewd.h: Likewise.
52785         * lib/search.in.h: Likewise.
52786         * lib/setenv.c: Likewise.
52787         * lib/setenv.h: Likewise.
52788         * lib/settime.c: Likewise.
52789         * lib/sh-quote.c: Likewise.
52790         * lib/sh-quote.h: Likewise.
52791         * lib/sig2str.c: Likewise.
52792         * lib/sig2str.h: Likewise.
52793         * lib/signal.in.h: Likewise.
52794         * lib/signbitd.c: Likewise.
52795         * lib/signbitf.c: Likewise.
52796         * lib/signbitl.c: Likewise.
52797         * lib/sigprocmask.c: Likewise.
52798         * lib/sincosl.c: Likewise.
52799         * lib/sleep.c: Likewise.
52800         * lib/sprintf.c: Likewise.
52801         * lib/sqrtl.c: Likewise.
52802         * lib/stat-time.h: Likewise.
52803         * lib/stdio--.h: Likewise.
52804         * lib/stdio-safer.h: Likewise.
52805         * lib/stdlib--.h: Likewise.
52806         * lib/stdlib-safer.h: Likewise.
52807         * lib/stdlib.in.h: Likewise.
52808         * lib/stpcpy.c: Likewise.
52809         * lib/stpncpy.c: Likewise.
52810         * lib/strchrnul.c: Likewise.
52811         * lib/strcspn.c: Likewise.
52812         * lib/strerror.c: Likewise.
52813         * lib/strftime.c: Likewise.
52814         * lib/strftime.h: Likewise.
52815         * lib/striconveh.c: Likewise.
52816         * lib/striconveh.h: Likewise.
52817         * lib/striconveha.c: Likewise.
52818         * lib/striconveha.h: Likewise.
52819         * lib/stripslash.c: Likewise.
52820         * lib/strnlen1.c: Likewise.
52821         * lib/strnlen1.h: Likewise.
52822         * lib/strtod.c: Likewise.
52823         * lib/strtoimax.c: Likewise.
52824         * lib/strtok_r.c: Likewise.
52825         * lib/strtol.c: Likewise.
52826         * lib/strtoll.c: Likewise.
52827         * lib/strtoul.c: Likewise.
52828         * lib/strtoull.c: Likewise.
52829         * lib/sysexits.in.h: Likewise.
52830         * lib/tempname.c: Likewise.
52831         * lib/tempname.h: Likewise.
52832         * lib/timespec.h: Likewise.
52833         * lib/tls.c: Likewise.
52834         * lib/tls.h: Likewise.
52835         * lib/tmpdir.c: Likewise.
52836         * lib/tmpdir.h: Likewise.
52837         * lib/tmpfile-safer.c: Likewise.
52838         * lib/tmpfile.c: Likewise.
52839         * lib/trigl.c: Likewise.
52840         * lib/trigl.h: Likewise.
52841         * lib/trim.c: Likewise.
52842         * lib/trim.h: Likewise.
52843         * lib/trunc.c: Likewise.
52844         * lib/truncf.c: Likewise.
52845         * lib/truncl.c: Likewise.
52846         * lib/tsearch.c: Likewise.
52847         * lib/unicodeio.c: Likewise.
52848         * lib/unicodeio.h: Likewise.
52849         * lib/unistd--.h: Likewise.
52850         * lib/unistd-safer.h: Likewise.
52851         * lib/unistdio/ulc-fprintf.c: Likewise.
52852         * lib/unistdio/ulc-vfprintf.c: Likewise.
52853         * lib/unlinkdir.c: Likewise.
52854         * lib/unlinkdir.h: Likewise.
52855         * lib/unlocked-io.h: Likewise.
52856         * lib/unsetenv.c: Likewise.
52857         * lib/userspec.c: Likewise.
52858         * lib/utime.c: Likewise.
52859         * lib/utimecmp.c: Likewise.
52860         * lib/utimecmp.h: Likewise.
52861         * lib/utimens.c: Likewise.
52862         * lib/verify.h: Likewise.
52863         * lib/verror.c: Likewise.
52864         * lib/verror.h: Likewise.
52865         * lib/version-etc-fsf.c: Likewise.
52866         * lib/version-etc.c: Likewise.
52867         * lib/version-etc.h: Likewise.
52868         * lib/vfprintf.c: Likewise.
52869         * lib/vprintf.c: Likewise.
52870         * lib/vsprintf.c: Likewise.
52871         * lib/w32spawn.h: Likewise.
52872         * lib/wait-process.c: Likewise.
52873         * lib/wait-process.h: Likewise.
52874         * lib/wcwidth.c: Likewise.
52875         * lib/write-any-file.c: Likewise.
52876         * lib/xalloc-die.c: Likewise.
52877         * lib/xalloc.h: Likewise.
52878         * lib/xasprintf.c: Likewise.
52879         * lib/xgetcwd.c: Likewise.
52880         * lib/xgetcwd.h: Likewise.
52881         * lib/xgetdomainname.c: Likewise.
52882         * lib/xgetdomainname.h: Likewise.
52883         * lib/xgethostname.c: Likewise.
52884         * lib/xmalloc.c: Likewise.
52885         * lib/xmalloca.c: Likewise.
52886         * lib/xmalloca.h: Likewise.
52887         * lib/xmemcoll.c: Likewise.
52888         * lib/xnanosleep.c: Likewise.
52889         * lib/xreadlink.c: Likewise.
52890         * lib/xreadlink.h: Likewise.
52891         * lib/xsetenv.c: Likewise.
52892         * lib/xsetenv.h: Likewise.
52893         * lib/xstriconv.c: Likewise.
52894         * lib/xstriconv.h: Likewise.
52895         * lib/xstrndup.c: Likewise.
52896         * lib/xstrndup.h: Likewise.
52897         * lib/xstrtod.c: Likewise.
52898         * lib/xstrtod.h: Likewise.
52899         * lib/xstrtol-error.c: Likewise.
52900         * lib/xstrtol.c: Likewise.
52901         * lib/xstrtol.h: Likewise.
52902         * lib/xtime.h: Likewise.
52903         * lib/xvasprintf.c: Likewise.
52904         * lib/xvasprintf.h: Likewise.
52905         * lib/yesno.c: Likewise.
52906         * lib/yesno.h: Likewise.
52907         * posix-modules: Likewise.
52908         * tests/test-alloca-opt.c: Likewise.
52909         * tests/test-arcfour.c: Likewise.
52910         * tests/test-arctwo.c: Likewise.
52911         * tests/test-argmatch.c: Likewise.
52912         * tests/test-argp-2.sh: Likewise.
52913         * tests/test-argp.c: Likewise.
52914         * tests/test-arpa_inet.c: Likewise.
52915         * tests/test-array_list.c: Likewise.
52916         * tests/test-array_oset.c: Likewise.
52917         * tests/test-atexit.c: Likewise.
52918         * tests/test-avltree_list.c: Likewise.
52919         * tests/test-avltree_oset.c: Likewise.
52920         * tests/test-avltreehash_list.c: Likewise.
52921         * tests/test-base64.c: Likewise.
52922         * tests/test-binary-io.c: Likewise.
52923         * tests/test-byteswap.c: Likewise.
52924         * tests/test-c-ctype.c: Likewise.
52925         * tests/test-c-strcasecmp.c: Likewise.
52926         * tests/test-c-strcasestr.c: Likewise.
52927         * tests/test-c-strncasecmp.c: Likewise.
52928         * tests/test-c-strstr.c: Likewise.
52929         * tests/test-canonicalize-lgpl.c: Likewise.
52930         * tests/test-canonicalize.c: Likewise.
52931         * tests/test-carray_list.c: Likewise.
52932         * tests/test-ceilf.c: Likewise.
52933         * tests/test-ceill.c: Likewise.
52934         * tests/test-count-one-bits.c: Likewise.
52935         * tests/test-crc.c: Likewise.
52936         * tests/test-dirname.c: Likewise.
52937         * tests/test-fbufmode.c: Likewise.
52938         * tests/test-fcntl.c: Likewise.
52939         * tests/test-fflush.c: Likewise.
52940         * tests/test-floorf.c: Likewise.
52941         * tests/test-floorl.c: Likewise.
52942         * tests/test-fopen.c: Likewise.
52943         * tests/test-fprintf-posix.c: Likewise.
52944         * tests/test-fprintf-posix.h: Likewise.
52945         * tests/test-fpurge.c: Likewise.
52946         * tests/test-freadable.c: Likewise.
52947         * tests/test-freadahead.c: Likewise.
52948         * tests/test-freading.c: Likewise.
52949         * tests/test-freopen.c: Likewise.
52950         * tests/test-frexp.c: Likewise.
52951         * tests/test-frexpl.c: Likewise.
52952         * tests/test-fseek.c: Likewise.
52953         * tests/test-fseeko.c: Likewise.
52954         * tests/test-fseterr.c: Likewise.
52955         * tests/test-fstrcmp.c: Likewise.
52956         * tests/test-ftell.c: Likewise.
52957         * tests/test-ftello.c: Likewise.
52958         * tests/test-fwritable.c: Likewise.
52959         * tests/test-fwriting.c: Likewise.
52960         * tests/test-getaddrinfo.c: Likewise.
52961         * tests/test-getpass.c: Likewise.
52962         * tests/test-gettimeofday.c: Likewise.
52963         * tests/test-hmac-md5.c: Likewise.
52964         * tests/test-hmac-sha1.c: Likewise.
52965         * tests/test-iconv.c: Likewise.
52966         * tests/test-iconvme.c: Likewise.
52967         * tests/test-inttypes.c: Likewise.
52968         * tests/test-isnan.c: Likewise.
52969         * tests/test-isnanf.c: Likewise.
52970         * tests/test-isnanl-nolibm.c: Likewise.
52971         * tests/test-isnanl.c: Likewise.
52972         * tests/test-isnanl.h: Likewise.
52973         * tests/test-ldexpl.c: Likewise.
52974         * tests/test-linked_list.c: Likewise.
52975         * tests/test-linkedhash_list.c: Likewise.
52976         * tests/test-locale.c: Likewise.
52977         * tests/test-localename.c: Likewise.
52978         * tests/test-lock.c: Likewise.
52979         * tests/test-lseek.c: Likewise.
52980         * tests/test-malloca.c: Likewise.
52981         * tests/test-math.c: Likewise.
52982         * tests/test-mbscasecmp.c: Likewise.
52983         * tests/test-mbscasestr1.c: Likewise.
52984         * tests/test-mbscasestr2.c: Likewise.
52985         * tests/test-mbscasestr3.c: Likewise.
52986         * tests/test-mbscasestr4.c: Likewise.
52987         * tests/test-mbschr.c: Likewise.
52988         * tests/test-mbscspn.c: Likewise.
52989         * tests/test-mbsncasecmp.c: Likewise.
52990         * tests/test-mbspbrk.c: Likewise.
52991         * tests/test-mbspcasecmp.c: Likewise.
52992         * tests/test-mbsrchr.c: Likewise.
52993         * tests/test-mbsspn.c: Likewise.
52994         * tests/test-mbsstr1.c: Likewise.
52995         * tests/test-mbsstr2.c: Likewise.
52996         * tests/test-mbsstr3.c: Likewise.
52997         * tests/test-md5.c: Likewise.
52998         * tests/test-memmem.c: Likewise.
52999         * tests/test-netinet_in.c: Likewise.
53000         * tests/test-open.c: Likewise.
53001         * tests/test-printf-frexp.c: Likewise.
53002         * tests/test-printf-frexpl.c: Likewise.
53003         * tests/test-printf-posix.c: Likewise.
53004         * tests/test-printf-posix.h: Likewise.
53005         * tests/test-rbtree_list.c: Likewise.
53006         * tests/test-rbtree_oset.c: Likewise.
53007         * tests/test-rbtreehash_list.c: Likewise.
53008         * tests/test-read-file.c: Likewise.
53009         * tests/test-rijndael.c: Likewise.
53010         * tests/test-search.c: Likewise.
53011         * tests/test-signbit.c: Likewise.
53012         * tests/test-sleep.c: Likewise.
53013         * tests/test-snprintf-posix.c: Likewise.
53014         * tests/test-snprintf-posix.h: Likewise.
53015         * tests/test-snprintf.c: Likewise.
53016         * tests/test-sprintf-posix.c: Likewise.
53017         * tests/test-sprintf-posix.h: Likewise.
53018         * tests/test-stat-time.c: Likewise.
53019         * tests/test-stdbool.c: Likewise.
53020         * tests/test-stdint.c: Likewise.
53021         * tests/test-stdio.c: Likewise.
53022         * tests/test-stdlib.c: Likewise.
53023         * tests/test-stpncpy.c: Likewise.
53024         * tests/test-strcasestr.c: Likewise.
53025         * tests/test-striconv.c: Likewise.
53026         * tests/test-striconveh.c: Likewise.
53027         * tests/test-striconveha.c: Likewise.
53028         * tests/test-string.c: Likewise.
53029         * tests/test-sys_select.c: Likewise.
53030         * tests/test-sys_socket.c: Likewise.
53031         * tests/test-sys_stat.c: Likewise.
53032         * tests/test-sys_time.c: Likewise.
53033         * tests/test-sysexits.c: Likewise.
53034         * tests/test-time.c: Likewise.
53035         * tests/test-tls.c: Likewise.
53036         * tests/test-trunc.c: Likewise.
53037         * tests/test-truncf.c: Likewise.
53038         * tests/test-truncl.c: Likewise.
53039         * tests/test-unistd.c: Likewise.
53040         * tests/test-vasnprintf-posix.c: Likewise.
53041         * tests/test-vasnprintf-posix2.c: Likewise.
53042         * tests/test-vasnprintf.c: Likewise.
53043         * tests/test-vasprintf-posix.c: Likewise.
53044         * tests/test-vasprintf.c: Likewise.
53045         * tests/test-verify.c: Likewise.
53046         * tests/test-vfprintf-posix.c: Likewise.
53047         * tests/test-vprintf-posix.c: Likewise.
53048         * tests/test-vsnprintf-posix.c: Likewise.
53049         * tests/test-vsnprintf.c: Likewise.
53050         * tests/test-vsprintf-posix.c: Likewise.
53051         * tests/test-wchar.c: Likewise.
53052         * tests/test-wctype.c: Likewise.
53053         * tests/test-wcwidth.c: Likewise.
53054         * tests/test-xstrtol.c: Likewise.
53055         * tests/test-xvasprintf.c: Likewise.
53056         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53057         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53058         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53059         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53060         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53061         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53062         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53063         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53064         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53065         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53066         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53067         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53068         * tests/uniname/test-uninames.c: Likewise.
53069         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53070         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53071         * tests/unistdio/test-u16-printf1.h: Likewise.
53072         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53073         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53074         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53075         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53076         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53077         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53078         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53079         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53080         * tests/unistdio/test-u32-printf1.h: Likewise.
53081         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53082         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53083         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53084         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53085         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53086         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53087         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53088         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53089         * tests/unistdio/test-u8-printf1.h: Likewise.
53090         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53091         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53092         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53093         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53094         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53095         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53096         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53097         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53098         * tests/unistdio/test-ulc-printf1.h: Likewise.
53099         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53100         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53101         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53102         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53103         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53104         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53105         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53106         * tests/uniwidth/test-u16-width.c: Likewise.
53107         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53108         * tests/uniwidth/test-u32-width.c: Likewise.
53109         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53110         * tests/uniwidth/test-u8-width.c: Likewise.
53111         * tests/uniwidth/test-uc_width.c: Likewise.
53112         * config/srclist-update: Likewise.
53113         (fixlicense): Update to GPLv3+.
53114
53115         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53116         * tests/test-tsearch.c: Change copyright notice.
53117
53118         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53119         * lib/c-strcaseeq.h: Change copyright notice.
53120         * lib/streq.h: Likewise.
53121         * lib/uniconv.h: Likewise.
53122         * lib/uniconv/u-conv-from-enc.h: Likewise.
53123         * lib/uniconv/u-conv-to-enc.h: Likewise.
53124         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53125         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53126         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53127         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53128         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53129         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53130         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53131         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53132         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53133         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53134         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53135         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53136         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53137         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53138         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53139         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53140         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53141         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53142         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53143         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53144         * lib/uniname.h: Likewise.
53145         * lib/uniname/uniname.c: Likewise.
53146         * lib/unistdio.h: Likewise.
53147         * lib/unistdio/u-asnprintf.h: Likewise.
53148         * lib/unistdio/u-asprintf.h: Likewise.
53149         * lib/unistdio/u-printf-args.c: Likewise.
53150         * lib/unistdio/u-printf-args.h: Likewise.
53151         * lib/unistdio/u-printf-parse.h: Likewise.
53152         * lib/unistdio/u-snprintf.h: Likewise.
53153         * lib/unistdio/u-sprintf.h: Likewise.
53154         * lib/unistdio/u-vasprintf.h: Likewise.
53155         * lib/unistdio/u-vsnprintf.h: Likewise.
53156         * lib/unistdio/u-vsprintf.h: Likewise.
53157         * lib/unistdio/u16-asnprintf.c: Likewise.
53158         * lib/unistdio/u16-asprintf.c: Likewise.
53159         * lib/unistdio/u16-printf-parse.c: Likewise.
53160         * lib/unistdio/u16-snprintf.c: Likewise.
53161         * lib/unistdio/u16-sprintf.c: Likewise.
53162         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53163         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53164         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53165         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53166         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53167         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53168         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53169         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53170         * lib/unistdio/u16-vasnprintf.c: Likewise.
53171         * lib/unistdio/u16-vasprintf.c: Likewise.
53172         * lib/unistdio/u16-vsnprintf.c: Likewise.
53173         * lib/unistdio/u16-vsprintf.c: Likewise.
53174         * lib/unistdio/u32-asnprintf.c: Likewise.
53175         * lib/unistdio/u32-asprintf.c: Likewise.
53176         * lib/unistdio/u32-printf-parse.c: Likewise.
53177         * lib/unistdio/u32-snprintf.c: Likewise.
53178         * lib/unistdio/u32-sprintf.c: Likewise.
53179         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53180         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53181         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53182         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53183         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53184         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53185         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53186         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53187         * lib/unistdio/u32-vasnprintf.c: Likewise.
53188         * lib/unistdio/u32-vasprintf.c: Likewise.
53189         * lib/unistdio/u32-vsnprintf.c: Likewise.
53190         * lib/unistdio/u32-vsprintf.c: Likewise.
53191         * lib/unistdio/u8-asnprintf.c: Likewise.
53192         * lib/unistdio/u8-asprintf.c: Likewise.
53193         * lib/unistdio/u8-printf-parse.c: Likewise.
53194         * lib/unistdio/u8-snprintf.c: Likewise.
53195         * lib/unistdio/u8-sprintf.c: Likewise.
53196         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53197         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53198         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53199         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53200         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53201         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53202         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53203         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53204         * lib/unistdio/u8-vasnprintf.c: Likewise.
53205         * lib/unistdio/u8-vasprintf.c: Likewise.
53206         * lib/unistdio/u8-vsnprintf.c: Likewise.
53207         * lib/unistdio/u8-vsprintf.c: Likewise.
53208         * lib/unistdio/ulc-asnprintf.c: Likewise.
53209         * lib/unistdio/ulc-asprintf.c: Likewise.
53210         * lib/unistdio/ulc-printf-parse.c: Likewise.
53211         * lib/unistdio/ulc-snprintf.c: Likewise.
53212         * lib/unistdio/ulc-sprintf.c: Likewise.
53213         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53214         * lib/unistdio/ulc-vasprintf.c: Likewise.
53215         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53216         * lib/unistdio/ulc-vsprintf.c: Likewise.
53217         * lib/unistr.h: Likewise.
53218         * lib/unistr/u-cpy-alloc.h: Likewise.
53219         * lib/unistr/u-cpy.h: Likewise.
53220         * lib/unistr/u-endswith.h: Likewise.
53221         * lib/unistr/u-move.h: Likewise.
53222         * lib/unistr/u-set.h: Likewise.
53223         * lib/unistr/u-startswith.h: Likewise.
53224         * lib/unistr/u-stpcpy.h: Likewise.
53225         * lib/unistr/u-stpncpy.h: Likewise.
53226         * lib/unistr/u-strcat.h: Likewise.
53227         * lib/unistr/u-strcpy.h: Likewise.
53228         * lib/unistr/u-strcspn.h: Likewise.
53229         * lib/unistr/u-strdup.h: Likewise.
53230         * lib/unistr/u-strlen.h: Likewise.
53231         * lib/unistr/u-strncat.h: Likewise.
53232         * lib/unistr/u-strncpy.h: Likewise.
53233         * lib/unistr/u-strnlen.h: Likewise.
53234         * lib/unistr/u-strpbrk.h: Likewise.
53235         * lib/unistr/u-strspn.h: Likewise.
53236         * lib/unistr/u-strstr.h: Likewise.
53237         * lib/unistr/u-strtok.h: Likewise.
53238         * lib/unistr/u16-check.c: Likewise.
53239         * lib/unistr/u16-chr.c: Likewise.
53240         * lib/unistr/u16-cmp.c: Likewise.
53241         * lib/unistr/u16-cpy-alloc.c: Likewise.
53242         * lib/unistr/u16-cpy.c: Likewise.
53243         * lib/unistr/u16-endswith.c: Likewise.
53244         * lib/unistr/u16-mblen.c: Likewise.
53245         * lib/unistr/u16-mbsnlen.c: Likewise.
53246         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53247         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53248         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53249         * lib/unistr/u16-mbtouc.c: Likewise.
53250         * lib/unistr/u16-mbtoucr.c: Likewise.
53251         * lib/unistr/u16-move.c: Likewise.
53252         * lib/unistr/u16-next.c: Likewise.
53253         * lib/unistr/u16-prev.c: Likewise.
53254         * lib/unistr/u16-set.c: Likewise.
53255         * lib/unistr/u16-startswith.c: Likewise.
53256         * lib/unistr/u16-stpcpy.c: Likewise.
53257         * lib/unistr/u16-stpncpy.c: Likewise.
53258         * lib/unistr/u16-strcat.c: Likewise.
53259         * lib/unistr/u16-strchr.c: Likewise.
53260         * lib/unistr/u16-strcmp.c: Likewise.
53261         * lib/unistr/u16-strcpy.c: Likewise.
53262         * lib/unistr/u16-strcspn.c: Likewise.
53263         * lib/unistr/u16-strdup.c: Likewise.
53264         * lib/unistr/u16-strlen.c: Likewise.
53265         * lib/unistr/u16-strmblen.c: Likewise.
53266         * lib/unistr/u16-strmbtouc.c: Likewise.
53267         * lib/unistr/u16-strncat.c: Likewise.
53268         * lib/unistr/u16-strncmp.c: Likewise.
53269         * lib/unistr/u16-strncpy.c: Likewise.
53270         * lib/unistr/u16-strnlen.c: Likewise.
53271         * lib/unistr/u16-strpbrk.c: Likewise.
53272         * lib/unistr/u16-strrchr.c: Likewise.
53273         * lib/unistr/u16-strspn.c: Likewise.
53274         * lib/unistr/u16-strstr.c: Likewise.
53275         * lib/unistr/u16-strtok.c: Likewise.
53276         * lib/unistr/u16-to-u32.c: Likewise.
53277         * lib/unistr/u16-to-u8.c: Likewise.
53278         * lib/unistr/u16-uctomb-aux.c: Likewise.
53279         * lib/unistr/u16-uctomb.c: Likewise.
53280         * lib/unistr/u32-check.c: Likewise.
53281         * lib/unistr/u32-chr.c: Likewise.
53282         * lib/unistr/u32-cmp.c: Likewise.
53283         * lib/unistr/u32-cpy-alloc.c: Likewise.
53284         * lib/unistr/u32-cpy.c: Likewise.
53285         * lib/unistr/u32-endswith.c: Likewise.
53286         * lib/unistr/u32-mblen.c: Likewise.
53287         * lib/unistr/u32-mbsnlen.c: Likewise.
53288         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53289         * lib/unistr/u32-mbtouc.c: Likewise.
53290         * lib/unistr/u32-mbtoucr.c: Likewise.
53291         * lib/unistr/u32-move.c: Likewise.
53292         * lib/unistr/u32-next.c: Likewise.
53293         * lib/unistr/u32-prev.c: Likewise.
53294         * lib/unistr/u32-set.c: Likewise.
53295         * lib/unistr/u32-startswith.c: Likewise.
53296         * lib/unistr/u32-stpcpy.c: Likewise.
53297         * lib/unistr/u32-stpncpy.c: Likewise.
53298         * lib/unistr/u32-strcat.c: Likewise.
53299         * lib/unistr/u32-strchr.c: Likewise.
53300         * lib/unistr/u32-strcmp.c: Likewise.
53301         * lib/unistr/u32-strcpy.c: Likewise.
53302         * lib/unistr/u32-strcspn.c: Likewise.
53303         * lib/unistr/u32-strdup.c: Likewise.
53304         * lib/unistr/u32-strlen.c: Likewise.
53305         * lib/unistr/u32-strmblen.c: Likewise.
53306         * lib/unistr/u32-strmbtouc.c: Likewise.
53307         * lib/unistr/u32-strncat.c: Likewise.
53308         * lib/unistr/u32-strncmp.c: Likewise.
53309         * lib/unistr/u32-strncpy.c: Likewise.
53310         * lib/unistr/u32-strnlen.c: Likewise.
53311         * lib/unistr/u32-strpbrk.c: Likewise.
53312         * lib/unistr/u32-strrchr.c: Likewise.
53313         * lib/unistr/u32-strspn.c: Likewise.
53314         * lib/unistr/u32-strstr.c: Likewise.
53315         * lib/unistr/u32-strtok.c: Likewise.
53316         * lib/unistr/u32-to-u16.c: Likewise.
53317         * lib/unistr/u32-to-u8.c: Likewise.
53318         * lib/unistr/u32-uctomb.c: Likewise.
53319         * lib/unistr/u8-check.c: Likewise.
53320         * lib/unistr/u8-chr.c: Likewise.
53321         * lib/unistr/u8-cmp.c: Likewise.
53322         * lib/unistr/u8-cpy-alloc.c: Likewise.
53323         * lib/unistr/u8-cpy.c: Likewise.
53324         * lib/unistr/u8-endswith.c: Likewise.
53325         * lib/unistr/u8-mblen.c: Likewise.
53326         * lib/unistr/u8-mbsnlen.c: Likewise.
53327         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53328         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53329         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53330         * lib/unistr/u8-mbtouc.c: Likewise.
53331         * lib/unistr/u8-mbtoucr.c: Likewise.
53332         * lib/unistr/u8-move.c: Likewise.
53333         * lib/unistr/u8-next.c: Likewise.
53334         * lib/unistr/u8-prev.c: Likewise.
53335         * lib/unistr/u8-set.c: Likewise.
53336         * lib/unistr/u8-startswith.c: Likewise.
53337         * lib/unistr/u8-stpcpy.c: Likewise.
53338         * lib/unistr/u8-stpncpy.c: Likewise.
53339         * lib/unistr/u8-strcat.c: Likewise.
53340         * lib/unistr/u8-strchr.c: Likewise.
53341         * lib/unistr/u8-strcmp.c: Likewise.
53342         * lib/unistr/u8-strcpy.c: Likewise.
53343         * lib/unistr/u8-strcspn.c: Likewise.
53344         * lib/unistr/u8-strdup.c: Likewise.
53345         * lib/unistr/u8-strlen.c: Likewise.
53346         * lib/unistr/u8-strmblen.c: Likewise.
53347         * lib/unistr/u8-strmbtouc.c: Likewise.
53348         * lib/unistr/u8-strncat.c: Likewise.
53349         * lib/unistr/u8-strncmp.c: Likewise.
53350         * lib/unistr/u8-strncpy.c: Likewise.
53351         * lib/unistr/u8-strnlen.c: Likewise.
53352         * lib/unistr/u8-strpbrk.c: Likewise.
53353         * lib/unistr/u8-strrchr.c: Likewise.
53354         * lib/unistr/u8-strspn.c: Likewise.
53355         * lib/unistr/u8-strstr.c: Likewise.
53356         * lib/unistr/u8-strtok.c: Likewise.
53357         * lib/unistr/u8-to-u16.c: Likewise.
53358         * lib/unistr/u8-to-u32.c: Likewise.
53359         * lib/unistr/u8-uctomb-aux.c: Likewise.
53360         * lib/unistr/u8-uctomb.c: Likewise.
53361         * lib/unitypes.h: Likewise.
53362         * lib/uniwidth.h: Likewise.
53363         * lib/uniwidth/cjk.h: Likewise.
53364         * lib/uniwidth/u16-strwidth.c: Likewise.
53365         * lib/uniwidth/u16-width.c: Likewise.
53366         * lib/uniwidth/u32-strwidth.c: Likewise.
53367         * lib/uniwidth/u32-width.c: Likewise.
53368         * lib/uniwidth/u8-strwidth.c: Likewise.
53369         * lib/uniwidth/u8-width.c: Likewise.
53370         * lib/uniwidth/width.c: Likewise.
53371
53372 2007-10-07  Bruno Haible  <bruno@clisp.org>
53373
53374         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53375         The file is still under LGPL (see modules/inttypes).
53376
53377 2007-10-06  Bruno Haible  <bruno@clisp.org>
53378
53379         * modules/trunc (Dependencies): Add 'extensions'.
53380         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53381         Reported by Ben Pfaff <blp@gnu.org>.
53382
53383 2007-10-06  Bruno Haible  <bruno@clisp.org>
53384
53385         * modules/freopen-tests: New file.
53386         * tests/test-freopen.c: New file.
53387
53388         * modules/fopen-tests: New file.
53389         * tests/test-fopen.c: New file.
53390
53391         * modules/fopen: New file.
53392         * lib/fopen.c: New file.
53393         * m4/fopen.m4: New file.
53394         * modules/freopen: New file.
53395         * lib/freopen.c: New file.
53396         * m4/freopen.m4: New file.
53397         * lib/stdio.in.h (fopen, freopen): New declarations.
53398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53399         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53400         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53401         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53402         * doc/functions/fopen.texi: Mention the 'fopen' module.
53403         * doc/functions/freopen.texi: Mention the 'freopen' module.
53404
53405 2007-10-06  Bruno Haible  <bruno@clisp.org>
53406
53407         * modules/open-tests: New file.
53408         * tests/test-open.c: New file.
53409
53410         * modules/open: New file.
53411         * lib/open.c: New file.
53412         * m4/open.m4: New file.
53413         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53414         lib/open.c does.
53415         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53416         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53417         macros.
53418         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53419         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53420         REPLACE_OPEN.
53421         * doc/functions/open.texi: Mention the 'open' module.
53422
53423 2007-10-04  Bruno Haible  <bruno@clisp.org>
53424
53425         * modules/ceill-tests: New file.
53426         * tests/test-ceill.c: New file.
53427
53428         * modules/ceill: New file.
53429         * lib/ceill.c: Replace entire file.
53430         * m4/ceill.m4: New file.
53431         * lib/math.in.h (ceill): Replace declaration.
53432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53433         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53434         * doc/functions/ceill.texi: Mention the 'ceill' module.
53435         * modules/mathl (Files): Remove lib/ceill.c.
53436         (Depends-on): Add ceill.
53437
53438 2007-10-04  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/ceilf-tests: New file.
53441         * tests/test-ceilf.c: New file.
53442
53443         * modules/ceilf: New file.
53444         * lib/ceil.c: New file.
53445         * lib/ceilf.c: New file.
53446         * m4/ceilf.m4: New file.
53447         * lib/math.in.h (ceilf): New declaration.
53448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53449         HAVE_DECL_CEILF.
53450         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53451         HAVE_DECL_CEILF.
53452         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53453
53454 2007-10-04  Bruno Haible  <bruno@clisp.org>
53455
53456         * modules/floorl-tests: New file.
53457         * tests/test-floorl.c: New file.
53458
53459         * modules/floorl: New file.
53460         * lib/floorl.c: Replace entire file.
53461         * m4/floorl.m4: New file.
53462         * lib/math.in.h (floorl): Replace declaration.
53463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53464         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53465         * doc/functions/floorl.texi: Mention the 'floorl' module.
53466         * modules/mathl (Files): Remove lib/floorl.c.
53467         (Depends-on): Add floorl.
53468
53469 2007-10-04  Bruno Haible  <bruno@clisp.org>
53470
53471         * modules/floorf-tests: New file.
53472         * tests/test-floorf.c: New file.
53473
53474         * modules/floorf: New file.
53475         * lib/floor.c: New file.
53476         * lib/floorf.c: New file.
53477         * m4/floorf.m4: New file.
53478         * lib/math.in.h (floorf): New declaration.
53479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53480         HAVE_DECL_FLOORF.
53481         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53482         HAVE_DECL_FLOORF.
53483         * doc/functions/floorf.texi: Mention the 'floorf' module.
53484
53485 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53486             Bruno Haible  <bruno@clisp.org>
53487
53488         Advertise for the Git server instead of the CVS server.
53489         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53490         repository instead of the CVS one.
53491         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53492         about all VCS systems generically.
53493         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53494
53495 2007-10-04  Bruno Haible  <bruno@clisp.org>
53496
53497         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53498         means.
53499         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53500
53501 2007-10-04  Bruno Haible  <bruno@clisp.org>
53502
53503         * modules/truncl-tests: New file.
53504         * tests/test-truncl.c: New file.
53505
53506         * modules/truncl: New file.
53507         * lib/truncl.c: New file.
53508         * m4/truncl.m4: New file.
53509         * lib/math.in.h (truncl): New declaration.
53510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53511         HAVE_DECL_TRUNCL.
53512         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53513         HAVE_DECL_TRUNCL.
53514         * doc/functions/truncl.texi: Mention the 'truncl' module.
53515
53516 2007-10-04  Bruno Haible  <bruno@clisp.org>
53517
53518         * modules/truncf-tests: New file.
53519         * tests/test-truncf.c: New file.
53520
53521         * modules/truncf: New file.
53522         * lib/trunc.c: Make paramerizable through USE_* macros.
53523         * lib/truncf.c: New file.
53524         * m4/truncf.m4: New file.
53525         * lib/math.in.h (truncf): New declaration.
53526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53527         HAVE_DECL_TRUNCF.
53528         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53529         HAVE_DECL_TRUNCF.
53530         * doc/functions/truncf.texi: Mention the 'truncf' module.
53531
53532 2007-10-03  Bruno Haible  <bruno@clisp.org>
53533
53534         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53535         augmentation also for tests modules.
53536         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53537         * modules/atexit-tests (Makefile.am): Likewise.
53538         * modules/binary-io-tests (Makefile.am): Likewise.
53539         * modules/c-strcase-tests (Makefile.am): Likewise.
53540         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53541         * modules/canonicalize-tests (Makefile.am): Likewise.
53542         * modules/closein-tests (Makefile.am): Likewise.
53543         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53544         * modules/freadahead-tests (Makefile.am): Likewise.
53545         * modules/fseek-tests (Makefile.am): Likewise.
53546         * modules/fseeko-tests (Makefile.am): Likewise.
53547         * modules/ftell-tests (Makefile.am): Likewise.
53548         * modules/ftello-tests (Makefile.am): Likewise.
53549         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53550         * modules/isnanl-tests (Makefile.am): Likewise.
53551         * modules/lseek-tests (Makefile.am): Likewise.
53552         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53553         * modules/mbscasestr-tests (Makefile.am): Likewise.
53554         * modules/mbschr-tests (Makefile.am): Likewise.
53555         * modules/mbscspn-tests (Makefile.am): Likewise.
53556         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53557         * modules/mbspbrk-tests (Makefile.am): Likewise.
53558         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53559         * modules/mbsrchr-tests (Makefile.am): Likewise.
53560         * modules/mbsspn-tests (Makefile.am): Likewise.
53561         * modules/mbsstr-tests (Makefile.am): Likewise.
53562         * modules/printf-posix-tests (Makefile.am): Likewise.
53563         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53564         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53565         * modules/tsearch-tests (Makefile.am): Likewise.
53566         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53567         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53568         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53569         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53570         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53571         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53572         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53573         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53574         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53575         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53576         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53577         * modules/xstrtol-tests (Makefile.am): Likewise.
53578         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53579         * modules/yesno-tests (Makefile.am): Likewise.
53580
53581 2007-10-03  Bruno Haible  <bruno@clisp.org>
53582
53583         * modules/trunc-tests: New file.
53584         * tests/test-trunc.c: New file.
53585
53586         * modules/trunc: New file.
53587         * lib/trunc.c: New file.
53588         * m4/trunc.m4: New file.
53589         * lib/math.in.h (trunc): New declaration.
53590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53591         HAVE_DECL_TRUNC.
53592         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53593         HAVE_DECL_TRUNC.
53594         * doc/functions/trunc.texi: Mention the 'trunc' module.
53595
53596 2007-10-03  Bruno Haible  <bruno@clisp.org>
53597
53598         * tests/test-fpending.c: New file, mostly copied
53599         from coreutils/lib/t-fpending.c.
53600         * modules/fpending-tests: New file.
53601
53602 2007-10-03  Bruno Haible  <bruno@clisp.org>
53603
53604         Port the stdio extensions to QNX (untested).
53605         * lib/fseterr.c (fseterr): Add support for QNX.
53606         * lib/fbufmode.c (fbufmode): Likewise.
53607         * lib/freadable.c (freadable): Likewise.
53608         * lib/fwritable.c (fwritable): Likewise.
53609         * lib/freading.c (freading): Likewise.
53610         * lib/fwriting.c (fwriting): Likewise.
53611         * lib/freadahead.c (freadahed): Likewise.
53612         * lib/fpurge.c (fpurge): Likewise.
53613         * lib/fseeko.c (rpl_fseeko): Likewise.
53614
53615 2007-10-03  Bruno Haible  <bruno@clisp.org>
53616             Jim Meyering  <jim@meyering.net>
53617             Eric Blake  <ebb9@byu.net>
53618
53619         * doc/relocatable.texi: Use @command instead of @program.
53620
53621 2007-10-02  Jim Meyering  <jim@meyering.net>
53622
53623         Perform one more "_.h" -> ".in.h" substitution.
53624         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53625         instead of unistd_.h here, too.
53626
53627 2007-10-01  Bruno Haible  <bruno@clisp.org>
53628
53629         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53630         Needed for the alloca-opt module.
53631
53632 2007-09-30  Bruno Haible  <bruno@clisp.org>
53633
53634         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53635         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53636         alloca_.h.
53637         * lib/argz.in.h: Renamed from lib/argz_.h.
53638         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53639         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53640         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53641         byteswap_.h.
53642         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53643         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53644         dirent_.h.
53645         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53646         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53647         fcntl_.h.
53648         * lib/float.in.h: Renamed from lib/float_.h.
53649         * modules/float (Files, Makefile.am): Use float.in.h instead of
53650         float_.h.
53651         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53652         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53653         fnmatch_.h.
53654         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53655         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53656         getopt_.h.
53657         * lib/glob.in.h: Renamed from lib/glob_.h.
53658         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53659         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53660         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53661         iconv_.h.
53662         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53663         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53664         inttypes_.h.
53665         * lib/locale.in.h: Renamed from lib/locale_.h.
53666         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53667         locale_.h.
53668         * lib/math.in.h: Renamed from lib/math_.h.
53669         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53670         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53671         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53672         of netinet_in_.h. Add dependency.
53673         * lib/poll.in.h: Renamed from lib/poll_.h.
53674         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53675         * lib/search.in.h: Renamed from lib/search_.h.
53676         * modules/search (Files, Makefile.am): Use search.in.h instead of
53677         search_.h.
53678         * lib/signal.in.h: Renamed from lib/signal_.h.
53679         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53680         _signal.h.
53681         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53682         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53683         stdbool_.h.
53684         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53685         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53686         stdint_.h.
53687         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53688         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53689         stdio_.h.
53690         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53691         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53692         stdlib_.h.
53693         * lib/string.in.h: Renamed from lib/string_.h.
53694         * modules/string (Files, Makefile.am): Use string.in.h instead of
53695         string_.h.
53696         * doc/gnulib-tool.texi (Initial import): Update.
53697         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53698         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53699         of sys_select_.h. Add dependency.
53700         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53701         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53702         of sys_socket_.h.
53703         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53704         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53705         sys_stat_.h.
53706         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53707         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53708         sys_time_.h.
53709         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53710         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53711         sysexits_.h.
53712         * lib/time.in.h: Renamed from lib/time_.h.
53713         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53714         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53715         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53716         unistd_.h.
53717         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53718         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53719         wchar_.h.
53720         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53721         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53722         wctype_.h.
53723         * build-aux/bootstrap (slurp): Update.
53724         * lib/.cppi-disable: Update.
53725
53726 2007-09-30  Bruno Haible  <bruno@clisp.org>
53727
53728         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53729         Needed on BeOS.
53730
53731 2007-09-30  Bruno Haible  <bruno@clisp.org>
53732
53733         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53734
53735 2007-09-29  Bruno Haible  <bruno@clisp.org>
53736
53737         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53738
53739 2007-09-29  Bruno Haible  <bruno@clisp.org>
53740
53741         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53742         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53743         * build-aux/install-reloc: Compile also areadlink.c.
53744         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53745
53746 2007-09-29  Bruno Haible  <bruno@clisp.org>
53747
53748         * gnulib-tool (func_emit_initmacro_done): Indentation.
53749
53750 2007-09-29  Bruno Haible  <bruno@clisp.org>
53751
53752         * README: Add CVS checkout update instructions.
53753         Info from Bob Proulx <bob@proulx.com>.
53754
53755 2007-09-28  Eric Blake  <ebb9@byu.net>
53756
53757         Provide move-if-change.
53758         * build-aux/move-if-change: New file, based on best practice
53759         rather than any canonical upstream location.
53760
53761 2007-09-28  Jim Meyering  <jim@meyering.net>
53762
53763         Fix canonicalize loop-detection corner case.
53764         Do not attempt to stat the symlink values stored via seen_triple.
53765         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53766         on linux-2.6.18, (but not 2.6.22).
53767         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53768         triple_compare.  The former compares dev,ino,filename, while the latter
53769         would actually stat dirname(filename) when dev and ino were equal.
53770         * lib/hash-triple.c: Install <string.h>.
53771         (STREQ): Define.
53772         (triple_compare_ino_str): New function.
53773         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53774
53775 2007-09-28  Eric Blake  <ebb9@byu.net>
53776
53777         Enforce that AC_REPLACE_FUNCS files exist.
53778         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53779         override check for typos.
53780
53781         Fix test-closein on Solaris 10.
53782         * tests/test-closein.c (main): Don't assume stdin can be inherited
53783         closed on all systems.
53784         * tests/test-closein.sh: Likewise.
53785         Reported by Piotr Tarnowski.
53786
53787 2007-09-28  Jim Meyering  <jim@meyering.net>
53788
53789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53790
53791 2007-09-27  Jim Meyering  <jim@meyering.net>
53792
53793         canonicalize: Avoid a false-positive cycle failure.
53794         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53795         Sort.  Remove cycle-check.
53796         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53797         not cycle-check.h.
53798         (seen_triple): New function.
53799         (canonicalize_filename_mode): Use it instead of cycle-check.
53800         * tests/test-canonicalize.c: Add a test for this bug.
53801         * tests/test-canonicalize.sh: Set up and run the test.
53802
53803         New module, file-set, from coreutils.
53804         * modules/file-set: Define it.
53805         * lib/file-set.c, lib/file-set.h: Implement.
53806
53807         New module, hash-triple, from coreutils.
53808         * modules/hash-triple: Define it.
53809         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53810
53811 2007-09-25  Eric Blake  <ebb9@byu.net>
53812
53813         Fix strerror on Interix.
53814         * lib/string_.h (strerror): Declare replacement.
53815         * doc/functions/strerror.texi (strerror): Document the Interix
53816         shortcoming.
53817         * modules/string (Makefile.am): Support new hooks.
53818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53819         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53820         gl_FUNC_STRERROR_SEPARATE.
53821         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53822         * lib/strerror.c (rpl_strerror): Provide replacement.
53823         * modules/strerror (Depends-on): Add string.
53824         (configure.ac): Detect use of module.
53825         * tests/test-strerror.c: New file.
53826         * modules/strerror-tests: New test module.
53827         * modules/argp (Depends-on): Add strerror.
53828         * modules/error (Depends-on): Likewise.
53829         Reported by Martin Koeppe.
53830
53831 2007-09-24  Bruno Haible  <bruno@clisp.org>
53832
53833         * README: Update git instructions.
53834
53835 2007-09-24  Eric Blake  <ebb9@byu.net>
53836
53837         Revert fpending breakage from 2007-09-08.
53838         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53839         __fpending.c.
53840
53841 2007-09-24  Jim Meyering  <jim@meyering.net>
53842
53843         filenamecat.c: Add a test.
53844         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53845         showing how the function works when DIR is the empty string.
53846
53847 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53848
53849         * tests/test-canonicalize.sh: Turn on executable bit.
53850
53851 2007-09-19  Eric Blake  <ebb9@byu.net>
53852
53853         * README: Update CVS instructions.
53854
53855 2007-09-18  Bruno Haible  <bruno@clisp.org>
53856
53857         * modules/areadlink: New file.
53858         * lib/areadlink.h (areadlink): New declaration.
53859         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53860
53861 2007-09-17  Jim Meyering  <jim@meyering.net>
53862
53863         * lib/savewd.c (ESTALE) [!defined]: Define.
53864         Reported to be required on Interix by Martin Koeppe.
53865
53866 2007-09-17  Bruno Haible  <bruno@clisp.org>
53867
53868         * gnulib-tool (func_version): Use $version.
53869
53870 2007-09-16  Bruno Haible  <bruno@clisp.org>
53871
53872         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53873         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53874         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53875         Reported by Greg Schafer <gschafer@zip.com.au>.
53876
53877 2007-09-15  Bruno Haible  <bruno@clisp.org>
53878
53879         * gnulib-tool (sed): Try a little harder to make bash understand the
53880         alias.
53881         Reported by Bruce Korb <bruce.korb@gmail.com>.
53882
53883 2007-09-13  Eric Blake  <ebb9@byu.net>
53884
53885         * ChangeLog: Remove conflict markers.
53886
53887 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53888
53889         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53890         Reported by Bruno Haible <bruno@clisp.org>.
53891
53892 2007-09-12  Bruno Haible  <bruno@clisp.org>
53893
53894         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53895         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53896         is not defined.
53897
53898 2007-09-12  Eric Blake  <ebb9@byu.net>
53899
53900         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53901         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53902         Autoconf definition.
53903         * modules/euidaccess (Depends-on): Add extensions, for
53904         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53905         * modules/fnmatch (Depends-on): Likewise.
53906         * modules/getaddrinfo (Depends-on): Likewise.
53907         * modules/getdelim (Depends-on): Likewise.
53908         * modules/getline (Depends-on): Likewise.
53909         * modules/getsubopt (Depends-on): Likewise.
53910         * modules/gettext (Depends-on): Likewise.
53911         * modules/group-member (Depends-on): Likewise.
53912         * modules/mbchar (Depends-on): Likewise.
53913         * modules/memmem (Depends-on): Likewise.
53914         * modules/mempcpy (Depends-on): Likewise.
53915         * modules/memrchr (Depends-on): Likewise.
53916         * modules/pagealign_alloc (Depends-on): Likewise.
53917         * modules/readutmp (Depends-on): Likewise.
53918         * modules/stpcpy (Depends-on): Likewise.
53919         * modules/stpncpy (Depends-on): Likewise.
53920         * modules/strchrnul (Depends-on): Likewise.
53921         * modules/strndup (Depends-on): Likewise.
53922         * modules/strsep (Depends-on): Likewise.
53923         * modules/strverscmp (Depends-on): Likewise.
53924         * modules/vasprintf (Depends-on): Likewise.
53925         * modules/wcwidth (Depends-on): Likewise.
53926         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53927         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53928         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53929         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53930         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53931         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53932         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53933         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53934         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53935         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53937         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53938         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53939         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53940         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53941         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53942         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53943         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53944         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53945         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53946         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53947         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53948         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53949         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53950         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53952         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53953         so that lock.m4 can be used in gettext without extensions module.
53954
53955 2007-09-11  Bruno Haible  <bruno@clisp.org>
53956
53957         * m4/isc-posix.m4: Remove file.
53958         Suggested by Eric Blake.
53959
53960 2007-09-11  Eric Blake  <ebb9@byu.net>
53961
53962         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53963
53964 2007-09-10  Bruno Haible  <bruno@clisp.org>
53965
53966         * posix-modules: Fix typo in error message.
53967         Reported by Matt <mkraai@beckman.com>.
53968
53969 2007-09-09  Bruno Haible  <bruno@clisp.org>
53970
53971         * doc/functions/getdelim.texi: Update list of platforms lacking the
53972         function.
53973         * doc/functions/getline.texi: Likewise.
53974
53975 2007-09-09  Jim Meyering  <jim@meyering.net>
53976
53977         * lib/hash.c (hash_initialize): Detect calloc failure.
53978         Reported by Bruno Haible.
53979
53980 2007-09-09  Bruno Haible  <bruno@clisp.org>
53981
53982         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53983         malloc or realloc fails.
53984
53985 2007-09-09  Bruno Haible  <bruno@clisp.org>
53986
53987         * modules/getcwd (Depends-on): Add malloc-posix.
53988         * modules/glob (Depends-on): Likewise.
53989         * modules/putenv (Depends-on): Likewise.
53990         * modules/strdup (Depends-on): Likewise.
53991         * modules/getdelim (Depends-on): Add realloc-posix.
53992         * modules/read-file (Depends-on): Likewise.
53993
53994 2007-09-09  Bruno Haible  <bruno@clisp.org>
53995
53996         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53997         (gl_FUNC_MALLOC_POSIX): Require it.
53998         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53999         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54000         * modules/realloc (Files): Add m4/malloc.m4.
54001         * modules/calloc (Files): Likewise.
54002
54003 2007-09-09  Bruno Haible  <bruno@clisp.org>
54004
54005         * modules/malloc-posix: New file.
54006         * modules/malloc (Depends-on): Add malloc-posix.
54007         * lib/malloc.c: Include errno.h.
54008         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54009         and a POSIX-compatible malloc into a single function. Set ENOMEM
54010         when returning NULL.
54011         * m4/malloc.m4: New file.
54012         * doc/functions/malloc.texi: Mention the malloc-posix module.
54013         * lib/stdlib_.h (malloc): New declaration.
54014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54015         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54016         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54017         and HAVE_MALLOC_POSIX.
54018
54019 2007-09-09  Bruno Haible  <bruno@clisp.org>
54020
54021         * modules/realloc-posix: New file.
54022         * modules/realloc (Depends-on): Add realloc-posix.
54023         * lib/realloc.c: Include errno.h.
54024         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54025         and a POSIX-compatible realloc into a single function. Set ENOMEM
54026         when returning NULL.
54027         * m4/realloc.m4: New file.
54028         * doc/functions/realloc.texi: Mention the realloc-posix module.
54029         * lib/stdlib_.h (realloc): New declaration.
54030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54031         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54032         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54033         and HAVE_REALLOC_POSIX.
54034
54035 2007-09-09  Bruno Haible  <bruno@clisp.org>
54036
54037         * modules/calloc-posix: New file.
54038         * modules/calloc (Depends-on): Add calloc-posix.
54039         * lib/calloc.c: Include errno.h.
54040         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54041         and a POSIX-compatible calloc into a single function. Set ENOMEM
54042         when returning NULL.
54043         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54044         * doc/functions/calloc.texi: Mention the calloc-posix module.
54045         * lib/stdlib_.h (calloc): New declaration.
54046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54047         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54048         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54049         and HAVE_CALLOC_POSIX.
54050
54051 2007-09-09  Bruno Haible  <bruno@clisp.org>
54052
54053         Allow for modules to show an arbitrary notice.
54054         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54055         * gnulib-tool: New option --extract-notice.
54056         (func_usage): Document it.
54057         (sed_extract_prog): Update.
54058         (func_get_notice): New function.
54059         (func_modules_notice): New function.
54060         (func_import, func_create_testdir): Invoke it.
54061         Suggested by Jim Meyering.
54062
54063 2007-09-09  Bruno Haible  <bruno@clisp.org>
54064
54065         * gnulib-tool: New options --verbose, --quiet.
54066         (func_usage): Document them.
54067         (verbose): New variable.
54068         (func_execute_command): New function.
54069         (func_import): Don't show the module list and the file list if
54070         $verbose < 0.
54071         (func_create_testdir): Likewise. Use func_execute_command.
54072         (func_create_megatestdir): Use func_execute_command.
54073
54074 2007-09-08  Bruno Haible  <bruno@clisp.org>
54075
54076         * gnulib-tool (func_import): Prefer rsync over wget when available,
54077         for fetching the PO files.
54078
54079 2007-09-08  Bruno Haible  <bruno@clisp.org>
54080
54081         * posix-modules: New file. Portions copied from gnulib-tool.
54082         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54083
54084 2007-09-08  Jim Meyering  <jim@meyering.net>
54085
54086         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54087         * lib/fpending.h: Rename from __fpending.h.
54088         * lib/fpending.c: Rename from __fpending.c.
54089         Include "fpending.h", not "__fpending.h".
54090         * lib/__fpending.h, lib/__fpending.c: Remove files.
54091         * modules/fpending (Files): Reflect new file names.
54092         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54093
54094 2007-09-08  Bruno Haible  <bruno@clisp.org>
54095
54096         * m4/inttypes-h.m4: Remove stub file.
54097
54098 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54099
54100         * doc/headers/stdint.texi: Discuss #include_next issue.
54101
54102 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54103
54104         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54105
54106 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54107
54108         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54109         in variable name.
54110
54111 2007-09-03  Jim Meyering  <jim@meyering.net>
54112
54113         New module: git-version-gen.
54114         * modules/git-version-gen: New file.
54115
54116         Import changes from coreutils for bootstrap script.
54117
54118         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54119
54120         bootstrap: uses rsync to download the .po files
54121         * build-aux/bootstrap (po_download_command_format): New global.
54122         (download_po_files): Use rsync.
54123         (update_po_files): Don't remove .po files after download,
54124         so future rsync runs can take advantage of the copies.
54125
54126         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54127
54128         Solve the unnecessary-.po-file-regeneration problem once and for all.
54129         * build-aux/bootstrap (download_po_files): New function, renamed from
54130         get_translations.  Now, downloads, but doesn't update LINGUAS.
54131         (update_po_files): New function.
54132
54133         bootstrap: Ignore more.
54134         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54135         uniwidth to e.g., lib/.gitignore.
54136         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54137
54138         * build-aux/bootstrap: New setting: vc_ignore.
54139         (insert_sorted_if_absent): Create $file if absent.
54140         Adapt to new, possibly empty, list: $vc_ignore.
54141
54142         bootstrap: generate more ignorable names
54143         * build-aux/bootstrap (slurp): When generating ignorable names,
54144         also map .sin to .sed, .gperf to .c, and .y to .c.
54145
54146 2007-09-03  Jim Meyering  <jim@meyering.net>
54147
54148         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54149         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54150
54151 2007-09-02  Bruno Haible  <bruno@clisp.org>
54152
54153         Fix mis-recognition of 'mcs' on QNX 6.
54154         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54155         output contains the string "Mono".
54156         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54157         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54158
54159 2007-09-01  Bruno Haible  <bruno@clisp.org>
54160
54161         Fix collision between uniwidth/* and linebreak modules.
54162         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54163         u32_width): Remove declarations.
54164         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54165         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54166         streq3, streq2, streq1, streq0): Remove functions.
54167         (STREQ): Remove macro.
54168         (is_cjk_encoding): Remove function.
54169         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54170         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54171         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54172         * NEWS: Document the change.
54173
54174 2007-09-01  Bruno Haible  <bruno@clisp.org>
54175
54176         * lib/streq.h: Add double-inclusion guard.
54177
54178 2007-09-01  Karl Berry  <karl@gnu.org>
54179
54180         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54181
54182 2007-08-28  Jim Meyering  <jim@meyering.net>
54183
54184         Rename mreadlink_with_size to areadlink_with_size.
54185         * NEWS: Document the change.
54186         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54187         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54188         * lib/mreadlink.h: Rename this to...
54189         * lib/areadlink.h: ...this.
54190         * modules/mreadlink-with-size: Rename this to...
54191         * modules/areadlink-with-size: ...this.
54192         * lib/canonicalize.c: Reflect the renaming.
54193         * modules/canonicalize: Likewise.
54194
54195 2007-08-26  Bruno Haible  <bruno@clisp.org>
54196
54197         * gnulib-tool (func_import): When deciding which files to remove,
54198         consider also dangling symbolic links.
54199         Reported by Eric Blake.
54200
54201 2007-08-26  Bruno Haible  <bruno@clisp.org>
54202
54203         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54204
54205 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54206
54207         * lib/readline.c: Don't include getline.h, the prototype is now
54208         found in stdio.h.
54209
54210 2007-08-23  Jim Meyering  <jim@meyering.net>
54211
54212         Getdelim touchup.
54213         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54214         around the funlockfile call, since funlockfile never sets errno.
54215         Don't set errno upon failed realloc.
54216
54217 2007-08-22  Eric Blake  <ebb9@byu.net>
54218
54219         Getline touchups.
54220         * lib/getdelim.c (getdelim): Revert regression that required *n to
54221         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54222         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54223         getdelim, rather than whether implementation is missing.
54224         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54225         * lib/stdio_.h (getline): Also declare if replacement is
54226         required.
54227         * doc/functions/getdelim.texi: New file.
54228         * doc/functions/getline.texi: Likewise.
54229         * doc/gnulib.texi (Function Substitutes): Add new files.
54230         Reported by Bruno Haible.
54231
54232 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54233
54234         * users.txt: Add Guile.
54235
54236 2007-08-22  Eric Blake  <ebb9@byu.net>
54237
54238         * tests/test-getdelim.c (main): Use remove, not unlink.
54239         * tests/test-getline.c (main): Likewise.
54240
54241         Move getline and getdelim into stdio.h, per POSIX 200x.
54242         * modules/getline (Files): Remove getline.h.
54243         (Depends-on): Add stdio.
54244         (configure.ac): Add module indicator.
54245         * modules/getdelim (Files): Remove getdelim.h.
54246         (Depends-on): Add stdio.
54247         (configure.ac): Add module indicator.
54248         * modules/stdio (Makefile.am): Work with new indicators.
54249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54250         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54251         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54252         * lib/getdelim.h: Delete.
54253         * lib/getline.h: Delete.
54254         * lib/stdio_.h (getdelim, getline): Declare.
54255         * modules/getdelim-tests: New module.
54256         * modules/getline-tests: Likewise.
54257         * tests/test-getdelim.c: New file.
54258         * tests/test-getline.c: Likewise.
54259         * NEWS: Document the change.
54260         * lib/getline.c: Update choice of header.
54261         * lib/csharpcomp.c: Likewise.
54262         * lib/getpass.c: Likewise.
54263         * lib/javacomp.c: Likewise.
54264         * lib/javaversion.c: Likewise.
54265         * lib/yesno.c: Likewise.
54266         * lib/getdelim.c: Likewise.
54267         (getdelim): Set errno on failure, and avoid memory leak.
54268
54269 2007-08-19  Bruno Haible  <bruno@clisp.org>
54270
54271         * modules/closein (Depends-on): Add freadahead.
54272         * lib/closein.c: Include freadahead.h.
54273         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54274         is zero.
54275
54276 2007-08-19  Bruno Haible  <bruno@clisp.org>
54277
54278         * modules/freadahead-tests: New file.
54279         * tests/test-freadahead.sh: New file.
54280         * tests/test-freadahead.c: New file.
54281
54282         * modules/freadahead: New file.
54283         * lib/freadahead.h: New file.
54284         * lib/freadahead.c: New file.
54285         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54286         fbufmode, fpurge, freadable, fwritable.
54287
54288 2007-08-19  Eric Blake  <ebb9@byu.net>
54289
54290         Test yesno in combination with closein.
54291         * lib/yesno.c (yesno): Document use of stdin.
54292         * modules/yesno-tests (Files): New module.
54293         * tests/test-yesno.c (main): New file.
54294         * tests/test-yesno.sh: Likewise.
54295
54296 2007-08-19  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54299         * lib/fseeko.c (rpl_fseeko): Likewise.
54300         * lib/fseterr.c (fseterr): Likewise.
54301
54302 2007-08-19  Bruno Haible  <bruno@clisp.org>
54303
54304         * tests/test-lseek.c (main): Disable a test for BeOS.
54305         * doc/functions/lseek.texi: Document the BeOS bug.
54306
54307 2007-08-19  Bruno Haible  <bruno@clisp.org>
54308             Eric Blake  <ebb9@byu.net>
54309
54310         * lib/lseek.c: Include <sys/stat.h>.
54311         (rpl_lseek): Add workaround code also for Unix platforms.
54312         Needed for BeOS.
54313         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54314         * doc/functions/lseek.texi: Document BeOS definiency.
54315
54316 2007-08-18  Bruno Haible  <bruno@clisp.org>
54317
54318         * modules/fstrcmp-tests: New file.
54319         * tests/test-fstrcmp.c: New file.
54320
54321 2007-08-18  Bruno Haible  <bruno@clisp.org>
54322
54323         * modules/fstrcmp: New file, from GNU gettext with modifications.
54324         * lib/fstrcmp.h: New file, from GNU gettext.
54325         * lib/fstrcmp.c: New file, from GNU gettext.
54326         * MODULES.html.sh (String handling): Add fstrcmp.
54327
54328 2007-08-18  Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54331         'bool'.
54332         (diag, compareseq): Remove const from the ctxt argument.
54333         (USE_HEURISTIC): Undefine at the end.
54334
54335 2007-08-18  Jim Meyering  <jim@meyering.net>
54336
54337         New file: lib/idcache.h
54338         * NEWS: Mention the addition.
54339         * modules/idcache (Files): Add lib/idcache.h
54340         * lib/idcache.c: Include "idcache.h".
54341         Don't include <sys/types.h>.
54342         Add a FIXME comment.
54343         Move file-scoped "static" declarations to the top.
54344         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54345
54346 2007-08-17  Bruno Haible  <bruno@clisp.org>
54347         and Paul Eggert  <eggert@cs.ucla.edu>
54348
54349         * MODULES.html.sh: Add diffseq.
54350         * modules/diffseq: New file.
54351         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54352         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54353
54354 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         Import changes from coreutils for bootstrap script.
54357
54358         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54359
54360         * build-aux/bootstrap (slurp): Work even in environments where
54361         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54362         current code does not slurp files whose names start with ".", and
54363         this looks like it might be a troublesome area.
54364
54365         2007-07-11  Jim Meyering  <jim@meyering.net>
54366
54367         If there's a GPL vN copyright comment, require that N == 3.
54368
54369         2007-07-08  Jim Meyering  <jim@meyering.net>
54370
54371         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54372         * build-aux/bootstrap (mam_template): Move definition out of loop.
54373
54374         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54375
54376         * build-aux/bootstrap (symlink_to_dir): Rename function from
54377         symlink_to_gnulib.  Add a directory parameter.  Update all
54378         callers.
54379         (cp_mark_as_generated): Also check for -- and link to -- files in
54380         gl/.
54381
54382         2007-07-08  Jim Meyering  <jim@meyering.net>
54383
54384         Adapt to deeper hierarchy in gnulib.
54385         * build-aux/bootstrap (symlink_to_dir): If the destination
54386         directory doesn't exist, create it. This is required at least for
54387         "lib/uniwidth/cjk.h".
54388
54389         2007-05-15  Jim Meyering  <jim@meyering.net>
54390
54391         * build-aux/bootstrap: Now that generated Makefile.am files
54392         are no longer under version control, they must be created at
54393         bootstrap time.
54394
54395 2007-08-14  Ben Pfaff  <blp@gnu.org>
54396
54397         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54398
54399 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54402         given the changes below.
54403         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54404         even on hosts that have padding bits beyond the supported 64.
54405
54406 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54407
54408         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54409         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54410         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54411         depends on it.
54412         (xstrtol_error): Remove.
54413         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54414         but with a different signature.
54415         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54416         * lib/xstrtol-error.c: Include exitfail.h.
54417         (xstrtol_fatal): New function, with a different signature from the
54418         old xstrtol_error, so that the caller need not worry about passing
54419         in an exit status, or about storage management of the option argument.
54420         (xstrtol_error): Now a static function.  Redo signature to
54421         implement xstrtol_fatal.  Output the correct number of hyphens in
54422         front of the option so that the caller need not worry about
54423         storage management.
54424         (N_): New macro.
54425         (_): Remove; not used now.
54426         * modules/xstrtol: Depend on getopt.
54427         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54428         of old STRTOL_FATAL_ERROR macro.
54429         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54430         of test program.
54431         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54432         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54433
54434 2007-08-08  Eric Blake  <ebb9@byu.net>
54435
54436         * lib/xstrtol-error.c: Add missing include.
54437
54438         Move xstrtol messages into gnulib domain, when --pobase is used.
54439         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54440         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54441         * modules/xstrtol (Files): Distribute new file.
54442         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54443         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54444         * tests/test-xstrtol.c: ...into new file.
54445         * tests/test-xstrtoul.c: Also test xstrtoul.
54446         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54447         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54448         * tests/test-xstrtol.sh: Drive the tests.
54449         * tests/test-xstrtoimax.sh: Likewise.
54450         * tests/test-xstrtoumax.sh: Likewise.
54451         * modules/xstrtol-tests: New module.
54452         * modules/xstrtoimax-tests: Likewise.
54453         * modules/xstrtoumax-tests: Likewise.
54454
54455 2007-08-08  Jim Meyering  <jim@meyering.net>
54456
54457         New function: mfile_name_concat.
54458         * lib/filenamecat.c (mfile_name_concat): New function, just like
54459         file_name_concat, but return NULL upon failure rather than exiting
54460         with a diagnostic.
54461         * lib/filenamecat.h: Declare it.
54462
54463 2007-08-07  Bruno Haible  <bruno@clisp.org>
54464
54465         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54466         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54467         warning from gcc.
54468         Reported by Eric Blake.
54469
54470 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54471
54472         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54473         * modules/crypto/arcfour (License): Likewise.
54474         * modules/crypto/des-tests (License): Likewise.
54475         * modules/crypto/gc-arctwo-tests (License): Likewise.
54476         * modules/crypto/gc-des-tests (License): Likewise.
54477         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54478         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54479         * modules/crypto/gc-md2-tests (License): Likewise.
54480         * modules/crypto/gc-md4-tests (License): Likewise.
54481         * modules/crypto/gc-md5-tests (License): Likewise.
54482         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54483         * modules/crypto/gc-rijndael-tests (License): Likewise.
54484         * modules/crypto/gc-sha1-tests (License): Likewise.
54485         * modules/crypto/gc-tests (License): Likewise.
54486         * modules/crypto/hmac-md5 (License): Likewise.
54487         * modules/crypto/hmac-sha1 (License): Likewise.
54488         * modules/crypto/md2-tests (License): Likewise.
54489         * modules/crypto/md4-tests (License): Likewise.
54490         * modules/crypto/md5 (License): Likewise.
54491         * modules/crypto/rijndael (License): Likewise.
54492         * modules/crypto/sha1 (License): Likewise.
54493         * modules/memxor (License): Likewise.
54494
54495 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54496         and Bruno Haible  <bruno@clisp.org>
54497
54498         * NEWS: Describe interface changes to human, xstrtol.
54499         * lib/human.h: Include <xstrtol.h>.
54500         (human_options): Return enum strtol_error, not int.  Remove
54501         bool arg; take int * instead.
54502         * lib/human.c: Don't include "gettext.h".
54503         (_): Remove; no longer used.
54504         Don't include <xstrtol.h>, since human.h does it.
54505         (human_options): Adjust to abovementioned interface changes.
54506         Do not report error to stderr; that's now the caller's
54507         responsibility.
54508         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54509         interface change.
54510         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54511         Str, Argument_type_string.  All uses changed.  Put " argument"
54512         in diagnostics to make them clearer.  Change wording of suffix
54513         message for clarity.
54514         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54515         Argument_type_string.
54516         (STRTOL_FATAL_WARN): Remove; no longer used.
54517         * modules/human (Depends-on): Remove gettext-h.
54518
54519 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54520
54521         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54522
54523 2007-07-31  Bruno Haible  <bruno@clisp.org>
54524
54525         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54526         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54527         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54528
54529 2007-07-31  Bruno Haible  <bruno@clisp.org>
54530
54531         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54532         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54533
54534 2007-07-30  Bruno Haible  <bruno@clisp.org>
54535
54536         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54537         * modules/c-ctype (License): Likewise.
54538         * modules/c-strcase (License): Likewise.
54539         * modules/check-version (License): Likewise.
54540         * modules/iconv (License): Likewise.
54541         * modules/iconv_open (License): Likewise.
54542         * modules/read-file (License): Likewise.
54543         * modules/striconv (License): Likewise.
54544         * modules/strverscmp (License): Likewise.
54545         * modules/vasprintf (License): Likewise.
54546         * modules/crypto/des (License): Likewise.
54547         * modules/crypto/gc (License): Likewise.
54548         * modules/crypto/gc-arcfour (License): Likewise.
54549         * modules/crypto/gc-arctwo (License): Likewise.
54550         * modules/crypto/gc-des (License): Likewise.
54551         * modules/crypto/gc-hmac-md5 (License): Likewise.
54552         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54553         * modules/crypto/gc-md2 (License): Likewise.
54554         * modules/crypto/gc-md4 (License): Likewise.
54555         * modules/crypto/gc-md5 (License): Likewise.
54556         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54557         * modules/crypto/gc-random (License): Likewise.
54558         * modules/crypto/gc-rijndael (License): Likewise.
54559         * modules/crypto/gc-sha1 (License): Likewise.
54560         * modules/crypto/md2 (License): Likewise.
54561         * modules/crypto/md4 (License): Likewise.
54562
54563 2007-07-30  Jim Meyering  <jim@meyering.net>
54564
54565         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54566         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54567         it has valid stat data.  This bug would cause du not to count the
54568         sizes of inaccessible directories.
54569         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54570         in <http://bugzilla.redhat.com/250077>.
54571
54572 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54573             Bruno Haible  <bruno@clisp.org>
54574
54575         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54576         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54577         #include_next, gives a diagnostic about it, but reports no error in
54578         the exit code.
54579         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54580
54581 2007-07-24  Ben Pfaff  <blp@gnu.org>
54582
54583         Improve name: "count-one-bits" is better than "popcount".
54584         * MODULES.html.sh: Update name.
54585         * lib/popcount.h: Renamed lib/count-one-bits.h.
54586         (popcount): Renamed count_one_bits.
54587         (popcountl): Renamed count_one_bits_l.
54588         (popcountll): Renamed count_one_bits_ll.
54589         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54590         * modules/popcount: Renamed module/count-one-bits.
54591         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54592         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54593
54594 2007-07-23  Ben Pfaff  <blp@gnu.org>
54595
54596         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54597         better code generation, and add U to large constants to avoid
54598         warnings, in non-GCC case.
54599         Suggested by Bruno Haible.
54600
54601 2007-07-23  Ben Pfaff  <blp@gnu.org>
54602
54603         * lib/popcount.h: Use verify_true instead of if...abort.
54604         * modules/popcount: Depend on verify module.
54605         Suggested by Jim Meyering.
54606
54607 2007-07-23  Bruno Haible  <bruno@clisp.org>
54608
54609         * gnulib-tool (func_import): Create a .cvsignore file also when the
54610         directory is not yet in CVS but the toplevel directory is. When
54611         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54612         Reported by Karl Berry.
54613
54614 2007-07-22  Ben Pfaff  <blp@gnu.org>
54615
54616         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54617         case.
54618         Suggested by Eric Blake.
54619
54620 2007-07-22  Ben Pfaff  <blp@gnu.org>
54621
54622         New module: popcount.
54623         * MODULES.html.sh: Add popcount.
54624         * modules/popcount: New file.
54625         * modules/popcount-tests: New file.
54626         * tests/test-popcount.c: New file.
54627         * lib/popcount.h: New file.
54628         * m4/popcount.m4: New file.
54629
54630 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54631
54632         * build-aux/announce-gen: Update to GPLv3.
54633
54634         * build-aux/config.guess: Update from config.
54635
54636 2007-07-21  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54639         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54640
54641 2007-07-20  Jim Meyering  <jim@meyering.net>
54642
54643         * check-module: Diagnose a self-dependency.
54644
54645 2007-07-19  Bruno Haible  <bruno@clisp.org>
54646
54647         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54648         empty.
54649         Reported by Eric Blake.
54650
54651 2007-07-18  Bruno Haible  <bruno@clisp.org>
54652
54653         * gnulib-tool: New options --po-base, --po-domain.
54654         (func_usage): Document them.
54655         (pobase, po_domain): New variables.
54656         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54657         DEFAULT_TEXT_DOMAIN.
54658         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54659         (func_import): Consider pobase and po_domain. Create a po/ directory.
54660         (func_create_testdir): Set pobase and po_domain to empty.
54661         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54662         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54663
54664 2007-07-18  Bruno Haible  <bruno@clisp.org>
54665
54666         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54667         EXTRA_DIST augmentation for files in build-aux/.
54668
54669 2007-07-16  Bruno Haible  <bruno@clisp.org>
54670
54671         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54672         * modules/getdelim (License): Likewise.
54673
54674 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54675
54676         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54677         * modules/d-type (License): Likewise.
54678         * modules/extensions (License): Likewise.
54679         * modules/fnmatch (License): Likewise.
54680         * modules/fseeko (License): Likewise.
54681         * modules/getaddrinfo (License): Likewise.
54682         * modules/getline (License): Likewise.
54683         * modules/getlogin_r (License): Likewise.
54684         * modules/getpass (License): Likewise.
54685         * modules/gettimeofday (License): Likewise.
54686         * modules/glob (License): Likewise.
54687         * modules/inet_ntop (License): Likewise.
54688         * modules/malloc (License): Likewise.
54689         * modules/malloca (License): Likewise.
54690         * modules/memmem (License): Likewise.
54691         * modules/mempcpy (License): Likewise.
54692         * modules/memset (License): Likewise.
54693         * modules/minmax (License): Likewise.
54694         * modules/mktime (License): Likewise.
54695         * modules/netinet_in (License): Likewise.
54696         * modules/pathmax (License): Likewise.
54697         * modules/poll (License): Likewise.
54698         * modules/regex (License): Likewise.
54699         * modules/snprintf (License): Likewise.
54700         * modules/stdbool (License): Likewise.
54701         * modules/stdint (License): Likewise.
54702         * modules/stdio (License): Likewise.
54703         * modules/strcase (License): Likewise.
54704         * modules/strcasestr (License): Likewise.
54705         * modules/strdup (License): Likewise.
54706         * modules/string (License): Likewise.
54707         * modules/strndup (License): Likewise.
54708         * modules/strnlen (License): Likewise.
54709         * modules/strpbrk (License): Likewise.
54710         * modules/strptime (License): Likewise.
54711         * modules/strsep (License): Likewise.
54712         * modules/sys_select (License): Likewise.
54713         * modules/sys_socket (License): Likewise.
54714         * modules/sys_stat (License): Likewise.
54715         * modules/sys_time (License): Likewise.
54716         * modules/time (License): Likewise.
54717         * modules/time_r (License): Likewise.
54718         * modules/timegm (License): Likewise.
54719         * modules/unistd (License): Likewise.
54720         * modules/vsnprintf (License): Likewise.
54721         * modules/wctype (License): Likewise.
54722
54723 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54724
54725         * modules/argz (License): LGPLv2+.
54726
54727 2007-07-15  Karl Berry  <karl@gnu.org>
54728
54729         * doc/gnulib.texi: revise node structure per new fdl.texi.
54730
54731 2007-07-14  Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54734         the output file.
54735         * lib/uniname/uninames.h: Regenerated.
54736
54737 2007-07-14  Karl Berry  <karl@gnu.org>
54738
54739         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54740         omitting sectioning and index commands.
54741
54742 2007-07-13  Bruno Haible  <bruno@clisp.org>
54743
54744         New gnulib-tool option --more-symlinks.
54745         * gnulib-tool (func_usage): Document --more-symlinks.
54746         (do_copyrights): New variable.
54747         Recognize option --more-symlinks.
54748         (func_import): Don't add a copyright notice transform to
54749         sed_transform_lib_file if do_copyrights is empty.
54750
54751 2007-07-13  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/vasnprintf.c (decimal_point_char): Define also if
54754         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54755         && !NEED_PRINTF_DIRECTIVE_A.
54756         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54757         Gary V. Vaughan <gary@gnu.org>.
54758
54759 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * lib/inttypes_.h: Undo previous change, since it was fixed
54762         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54763
54764 2007-07-13  Bruno Haible  <bruno@clisp.org>
54765
54766         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54767         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54768
54769 2007-07-13  Jim Meyering  <jim@meyering.net>
54770
54771         df: Don't fail for Tru64's "file-on-file mount".
54772         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54773         so we fall through and use statfs instead.  Details here:
54774         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54775         Reported by Albert Chin.
54776
54777 2007-07-13  Bruno Haible  <bruno@clisp.org>
54778
54779         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54780         * modules/configmake (License): Likewise.
54781         * modules/gettext (License): Likewise.
54782         * modules/gettext-h (License): Likewise.
54783         * modules/include_next (License): Likewise.
54784         * modules/link-warning (License): Likewise.
54785         * modules/localcharset (License): Likewise.
54786         * modules/localename (License): Likewise.
54787         * modules/lock (License): Likewise.
54788         * modules/relocatable-lib-lgpl (License): Likewise.
54789         * modules/size_max (License): Likewise.
54790         * modules/vasnprintf (License): Likewise.
54791         * modules/wchar (License): Likewise.
54792         * modules/xsize (License): Likewise.
54793
54794 2007-07-13  Bruno Haible  <bruno@clisp.org>
54795
54796         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54797         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54798
54799 2007-07-12  Bruno Haible  <bruno@clisp.org>
54800
54801         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54802         in the modules files.
54803
54804 2007-07-11  Karl Berry  <karl@gnu.org>
54805
54806         * MODULES.html.sh (func_module): use
54807          sed -e '\|^'"${includefile}"'$|d'
54808          instead of /.../d, to avoid errors on $includefile's containing /.
54809
54810 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54811
54812         * gnulib-tool (func_import): Avoid duplication of --avoid
54813         statements
54814         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54815         names to `_' in variable names.
54816
54817 2007-07-10  Eric Blake  <ebb9@byu.net>
54818
54819         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54820         * NEWS: Document this change.
54821
54822 2007-07-08  Bruno Haible  <bruno@clisp.org>
54823
54824         Update to Unicode 5.0.
54825         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54826         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54827         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54828         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54829         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54830         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54831         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54832         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54833         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54834         U+10A3F, U+1D242..U+1D244.
54835         (nonspacing_table_ind): Update.
54836         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54837         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54838
54839 2007-07-08  Bruno Haible  <bruno@clisp.org>
54840
54841         Update to Unicode 5.0.
54842         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54843         code transform. Extend the name index field of unicode_name_to_code and
54844         unicode_code_to_name from 16 to 24 bits.
54845         * lib/uniname/uniname.c (unicode_character_name,
54846         unicode_name_character): Add the range 0x12xxx to the code transform.
54847         * lib/uniname/uninames.h: Regenerated.
54848         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54849
54850 2007-07-07  Bruno Haible  <bruno@clisp.org>
54851
54852         * modules/wcwidth-tests: New file.
54853         * tests/test-wcwidth.c: New file.
54854
54855         Work around MacOS X wcwidth() bug.
54856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54857         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54858         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54859         original wcwidth in non-UTF-8 locales.
54860         * modules/wcwidth (Depends-on): Add localcharset, streq,
54861         uniwidth/width.
54862         * doc/functions/wcwidth.texi: Update.
54863
54864 2007-07-07  Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54867         (wcwidth): New declaration.
54868         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54869         macros.
54870         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54871         here. Prepare for creating <wchar.h> unconditionally.
54872         * modules/wchar (Depends-on): Add link-warning.
54873         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54874         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54875         * lib/wcwidth.h: Remove file.
54876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54877         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54878         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54879         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54880         (Include): Replace wcwidth.h with <wchar.h>.
54881         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54882         * lib/mbchar.h: Don't include wcwidth.h.
54883         * lib/mbswidth.c: Likewise.
54884         * NEWS: Mention the change.
54885
54886 2007-07-07  Bruno Haible  <bruno@clisp.org>
54887
54888         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54889         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54890         definition with an external declaration.
54891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54892         defined as a function. Remove AC_C_INLINE requirement.
54893         * modules/wcwidth (Files): Add lib/wcwidth.c.
54894         (Makefile.am): Remove redundant statement.
54895
54896 2007-07-07  Bruno Haible  <bruno@clisp.org>
54897
54898         * MODULES.html.sh (Unicode string functions): Add the new modules.
54899
54900         * tests/uniwidth/test-u32-strwidth.c: New file.
54901         * modules/uniwidth/u32-strwidth-tests: New file.
54902
54903         * lib/uniwidth/u32-strwidth.c: New file.
54904         * modules/uniwidth/u32-strwidth: New file.
54905
54906         * tests/uniwidth/test-u16-strwidth.c: New file.
54907         * modules/uniwidth/u16-strwidth-tests: New file.
54908
54909         * lib/uniwidth/u16-strwidth.c: New file.
54910         * modules/uniwidth/u16-strwidth: New file.
54911
54912         * tests/uniwidth/test-u8-strwidth.c: New file.
54913         * modules/uniwidth/u8-strwidth-tests: New file.
54914
54915         * lib/uniwidth/u8-strwidth.c: New file.
54916         * modules/uniwidth/u8-strwidth: New file.
54917
54918         * tests/uniwidth/test-u32-width.c: New file.
54919         * modules/uniwidth/u32-width-tests: New file.
54920
54921         * lib/uniwidth/u32-width.c: New file.
54922         * modules/uniwidth/u32-width: New file.
54923
54924         * tests/uniwidth/test-u16-width.c: New file.
54925         * modules/uniwidth/u16-width-tests: New file.
54926
54927         * lib/uniwidth/u16-width.c: New file.
54928         * modules/uniwidth/u16-width: New file.
54929
54930         * tests/uniwidth/test-u8-width.c: New file.
54931         * modules/uniwidth/u8-width-tests: New file.
54932
54933         * lib/uniwidth/u8-width.c: New file.
54934         * modules/uniwidth/u8-width: New file.
54935
54936         * tests/uniwidth/test-uc_width.c: New file.
54937         * modules/uniwidth/width-tests: New file.
54938
54939         * lib/uniwidth/width.c: New file, from GNU libiconv.
54940         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54941         * modules/uniwidth/width: New file.
54942
54943         * lib/uniwidth.h: New file, from GNU libiconv.
54944         * modules/uniwidth/base: New file.
54945
54946 2007-07-07  Bruno Haible  <bruno@clisp.org>
54947
54948         * lib/uniname.h: New file, from GNU gettext.
54949         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54950         * lib/uniname/uninames.h: New file, from GNU gettext.
54951         * lib/uniname/uniname.c: New file, from GNU gettext.
54952         * tests/uniname/test-uninames.sh: New file.
54953         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54954         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54955         * modules/uniname/base: New file.
54956         * modules/uniname/uniname: New file.
54957         * modules/uniname/uniname-tests: New file.
54958         * MODULES.html.sh (Unicode string functions): Add the new modules.
54959
54960 2007-07-06  Bruno Haible  <bruno@clisp.org>
54961
54962         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54963
54964 2007-07-06  Bruno Haible  <bruno@clisp.org>
54965
54966         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54967         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54968         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54969         include <sys/time.h>.
54970         Reported by Eric Blake.
54971
54972 2007-07-06  Eric Blake  <ebb9@byu.net>
54973
54974         Fix testing canonicalize on cygwin.
54975         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54976         Revert patch from 2007-06-19.
54977         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54978         canonicalize module is also in use.
54979         * tests/test-canonicalize.c: New file.
54980         * tests/test-canonicalize.sh: Likewise.
54981         * modules/canonicalize-tests: Likewise.
54982
54983 2007-07-06  Jim Meyering  <jim@meyering.net>
54984
54985         * lib/getugroups.c (getugroups): Detect getgrent failure.
54986         Adjust comment to reflect reality: this function may return -1.
54987
54988 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54989
54990         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54991         the new TP address.
54992         (usage): Fix typo
54993         (gnulib_mk): New variable.
54994
54995 2007-07-05  Jim Meyering  <jim@meyering.net>
54996
54997         Don't let endgrent clobber errno, no matter how improbable.
54998         * lib/getugroups.c (getugroups): Save and restore errno around
54999         endgrent call.
55000
55001         Close the group DB even when failing with 2^31 or more members.
55002         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55003
55004 2007-07-04  Jim Meyering  <jim@meyering.net>
55005
55006         * lib/getugroups.h: New file.
55007         * lib/getugroups.c: Include "getugroups.h".
55008         Remove uses of "register" keyword.
55009         Move local variable, "cp", down into scope where used.
55010         Give "username" parameter the "const" attribute.
55011         * modules/getugroups (Files): Add lib/getugroups.h
55012
55013 2007-07-04  Karl Berry  <karl@gnu.org>
55014
55015         * MODULES.html.sh (func_all_modules): Complete rename of
55016         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55017
55018 2007-07-02  Bruno Haible  <bruno@clisp.org>
55019
55020         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55021         mode, when inttypes.h comes from gnulib.
55022         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55023
55024 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55025
55026         * NEWS: Mention lgpl module name change.
55027
55028         * modules/lgpl-2.1: Renamed from lgpl.
55029
55030         * NEWS: Mention gpl module name change.
55031
55032         * modules/gpl-3.0: New file, based on gpl-2.0.
55033
55034         * modules/gpl-2.0: Renamed from gpl.
55035
55036         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55037         doc/gpl-2.0.texi.
55038
55039 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55042         #define __STDC_LIMIT_MACROS temporarily while including
55043         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55044         Problem reported by Joel E. Denny in
55045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55046
55047 2007-07-01  Bruno Haible  <bruno@clisp.org>
55048
55049         * lib/unistdio.h: New file.
55050         * lib/unistdio/u-asnprintf.h: New file.
55051         * lib/unistdio/u-asprintf.h: New file.
55052         * lib/unistdio/u-printf-args.c: New file.
55053         * lib/unistdio/u-printf-args.h: New file.
55054         * lib/unistdio/u-printf-parse.h: New file.
55055         * lib/unistdio/u-snprintf.h: New file.
55056         * lib/unistdio/u-sprintf.h: New file.
55057         * lib/unistdio/u-vasprintf.h: New file.
55058         * lib/unistdio/u-vsnprintf.h: New file.
55059         * lib/unistdio/u-vsprintf.h: New file.
55060         * lib/unistdio/ulc-asnprintf.c: New file.
55061         * lib/unistdio/ulc-asprintf.c: New file.
55062         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55063         * lib/unistdio/ulc-printf-parse.c: New file.
55064         * lib/unistdio/ulc-snprintf.c: New file.
55065         * lib/unistdio/ulc-sprintf.c: New file.
55066         * lib/unistdio/ulc-vasnprintf.c: New file.
55067         * lib/unistdio/ulc-vasprintf.c: New file.
55068         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55069         * lib/unistdio/ulc-vsnprintf.c: New file.
55070         * lib/unistdio/ulc-vsprintf.c: New file.
55071         * lib/unistdio/u8-asnprintf.c: New file.
55072         * lib/unistdio/u8-asprintf.c: New file.
55073         * lib/unistdio/u8-printf-parse.c: New file.
55074         * lib/unistdio/u8-snprintf.c: New file.
55075         * lib/unistdio/u8-sprintf.c: New file.
55076         * lib/unistdio/u8-vasnprintf.c: New file.
55077         * lib/unistdio/u8-vasprintf.c: New file.
55078         * lib/unistdio/u8-vsnprintf.c: New file.
55079         * lib/unistdio/u8-vsprintf.c: New file.
55080         * lib/unistdio/u8-u8-asnprintf.c: New file.
55081         * lib/unistdio/u8-u8-asprintf.c: New file.
55082         * lib/unistdio/u8-u8-snprintf.c: New file.
55083         * lib/unistdio/u8-u8-sprintf.c: New file.
55084         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55085         * lib/unistdio/u8-u8-vasprintf.c: New file.
55086         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55087         * lib/unistdio/u8-u8-vsprintf.c: New file.
55088         * lib/unistdio/u16-asnprintf.c: New file.
55089         * lib/unistdio/u16-asprintf.c: New file.
55090         * lib/unistdio/u16-printf-parse.c: New file.
55091         * lib/unistdio/u16-snprintf.c: New file.
55092         * lib/unistdio/u16-sprintf.c: New file.
55093         * lib/unistdio/u16-vasnprintf.c: New file.
55094         * lib/unistdio/u16-vasprintf.c: New file.
55095         * lib/unistdio/u16-vsnprintf.c: New file.
55096         * lib/unistdio/u16-vsprintf.c: New file.
55097         * lib/unistdio/u16-u16-asnprintf.c: New file.
55098         * lib/unistdio/u16-u16-asprintf.c: New file.
55099         * lib/unistdio/u16-u16-snprintf.c: New file.
55100         * lib/unistdio/u16-u16-sprintf.c: New file.
55101         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55102         * lib/unistdio/u16-u16-vasprintf.c: New file.
55103         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55104         * lib/unistdio/u16-u16-vsprintf.c: New file.
55105         * lib/unistdio/u32-asnprintf.c: New file.
55106         * lib/unistdio/u32-asprintf.c: New file.
55107         * lib/unistdio/u32-printf-parse.c: New file.
55108         * lib/unistdio/u32-snprintf.c: New file.
55109         * lib/unistdio/u32-sprintf.c: New file.
55110         * lib/unistdio/u32-vasnprintf.c: New file.
55111         * lib/unistdio/u32-vasprintf.c: New file.
55112         * lib/unistdio/u32-vsnprintf.c: New file.
55113         * lib/unistdio/u32-vsprintf.c: New file.
55114         * lib/unistdio/u32-u32-asnprintf.c: New file.
55115         * lib/unistdio/u32-u32-asprintf.c: New file.
55116         * lib/unistdio/u32-u32-snprintf.c: New file.
55117         * lib/unistdio/u32-u32-sprintf.c: New file.
55118         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55119         * lib/unistdio/u32-u32-vasprintf.c: New file.
55120         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55121         * lib/unistdio/u32-u32-vsprintf.c: New file.
55122         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55123         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55124         * tests/unistdio/test-ulc-printf1.h: New file.
55125         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55126         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55127         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55128         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55129         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55130         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55131         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55132         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55133         * tests/unistdio/test-u8-asnprintf1.c: New file.
55134         * tests/unistdio/test-u8-asnprintf1.h: New file.
55135         * tests/unistdio/test-u8-printf1.h: New file.
55136         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55137         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55138         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55139         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55140         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55141         * tests/unistdio/test-u8-vasprintf1.c: New file.
55142         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55143         * tests/unistdio/test-u8-vsprintf1.c: New file.
55144         * tests/unistdio/test-u16-asnprintf1.c: New file.
55145         * tests/unistdio/test-u16-asnprintf1.h: New file.
55146         * tests/unistdio/test-u16-printf1.h: New file.
55147         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55148         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55149         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55150         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55151         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55152         * tests/unistdio/test-u16-vasprintf1.c: New file.
55153         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55154         * tests/unistdio/test-u16-vsprintf1.c: New file.
55155         * tests/unistdio/test-u32-asnprintf1.c: New file.
55156         * tests/unistdio/test-u32-asnprintf1.h: New file.
55157         * tests/unistdio/test-u32-printf1.h: New file.
55158         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55159         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55160         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55161         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55162         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55163         * tests/unistdio/test-u32-vasprintf1.c: New file.
55164         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55165         * tests/unistdio/test-u32-vsprintf1.c: New file.
55166         * modules/unistdio/base: New file.
55167         * modules/unistdio/u-printf-args: New file.
55168         * modules/unistdio/ulc-asnprintf: New file.
55169         * modules/unistdio/ulc-asprintf: New file.
55170         * modules/unistdio/ulc-fprintf: New file.
55171         * modules/unistdio/ulc-printf-parse: New file.
55172         * modules/unistdio/ulc-snprintf: New file.
55173         * modules/unistdio/ulc-sprintf: New file.
55174         * modules/unistdio/ulc-vasnprintf: New file.
55175         * modules/unistdio/ulc-vasprintf: New file.
55176         * modules/unistdio/ulc-vfprintf: New file.
55177         * modules/unistdio/ulc-vsnprintf: New file.
55178         * modules/unistdio/ulc-vsprintf: New file.
55179         * modules/unistdio/u8-asnprintf: New file.
55180         * modules/unistdio/u8-asprintf: New file.
55181         * modules/unistdio/u8-printf-parse: New file.
55182         * modules/unistdio/u8-snprintf: New file.
55183         * modules/unistdio/u8-sprintf: New file.
55184         * modules/unistdio/u8-vasnprintf: New file.
55185         * modules/unistdio/u8-vasprintf: New file.
55186         * modules/unistdio/u8-vsnprintf: New file.
55187         * modules/unistdio/u8-vsprintf: New file.
55188         * modules/unistdio/u8-u8-asnprintf: New file.
55189         * modules/unistdio/u8-u8-asprintf: New file.
55190         * modules/unistdio/u8-u8-snprintf: New file.
55191         * modules/unistdio/u8-u8-sprintf: New file.
55192         * modules/unistdio/u8-u8-vasnprintf: New file.
55193         * modules/unistdio/u8-u8-vasprintf: New file.
55194         * modules/unistdio/u8-u8-vsnprintf: New file.
55195         * modules/unistdio/u8-u8-vsprintf: New file.
55196         * modules/unistdio/u16-asnprintf: New file.
55197         * modules/unistdio/u16-asprintf: New file.
55198         * modules/unistdio/u16-printf-parse: New file.
55199         * modules/unistdio/u16-snprintf: New file.
55200         * modules/unistdio/u16-sprintf: New file.
55201         * modules/unistdio/u16-vasnprintf: New file.
55202         * modules/unistdio/u16-vasprintf: New file.
55203         * modules/unistdio/u16-vsnprintf: New file.
55204         * modules/unistdio/u16-vsprintf: New file.
55205         * modules/unistdio/u16-u16-asnprintf: New file.
55206         * modules/unistdio/u16-u16-asprintf: New file.
55207         * modules/unistdio/u16-u16-snprintf: New file.
55208         * modules/unistdio/u16-u16-sprintf: New file.
55209         * modules/unistdio/u16-u16-vasnprintf: New file.
55210         * modules/unistdio/u16-u16-vasprintf: New file.
55211         * modules/unistdio/u16-u16-vsnprintf: New file.
55212         * modules/unistdio/u16-u16-vsprintf: New file.
55213         * modules/unistdio/u32-asnprintf: New file.
55214         * modules/unistdio/u32-asprintf: New file.
55215         * modules/unistdio/u32-printf-parse: New file.
55216         * modules/unistdio/u32-snprintf: New file.
55217         * modules/unistdio/u32-sprintf: New file.
55218         * modules/unistdio/u32-vasnprintf: New file.
55219         * modules/unistdio/u32-vasprintf: New file.
55220         * modules/unistdio/u32-vsnprintf: New file.
55221         * modules/unistdio/u32-vsprintf: New file.
55222         * modules/unistdio/u32-u32-asnprintf: New file.
55223         * modules/unistdio/u32-u32-asprintf: New file.
55224         * modules/unistdio/u32-u32-snprintf: New file.
55225         * modules/unistdio/u32-u32-sprintf: New file.
55226         * modules/unistdio/u32-u32-vasnprintf: New file.
55227         * modules/unistdio/u32-u32-vasprintf: New file.
55228         * modules/unistdio/u32-u32-vsnprintf: New file.
55229         * modules/unistdio/u32-u32-vsprintf: New file.
55230         * modules/unistdio/ulc-asnprintf-tests: New file.
55231         * modules/unistdio/ulc-vasnprintf-tests: New file.
55232         * modules/unistdio/ulc-vasprintf-tests: New file.
55233         * modules/unistdio/ulc-vsnprintf-tests: New file.
55234         * modules/unistdio/ulc-vsprintf-tests: New file.
55235         * modules/unistdio/u8-asnprintf-tests: New file.
55236         * modules/unistdio/u8-vasnprintf-tests: New file.
55237         * modules/unistdio/u8-vasprintf-tests: New file.
55238         * modules/unistdio/u8-vsnprintf-tests: New file.
55239         * modules/unistdio/u8-vsprintf-tests: New file.
55240         * modules/unistdio/u16-asnprintf-tests: New file.
55241         * modules/unistdio/u16-vasnprintf-tests: New file.
55242         * modules/unistdio/u16-vasprintf-tests: New file.
55243         * modules/unistdio/u16-vsnprintf-tests: New file.
55244         * modules/unistdio/u16-vsprintf-tests: New file.
55245         * modules/unistdio/u32-asnprintf-tests: New file.
55246         * modules/unistdio/u32-vasnprintf-tests: New file.
55247         * modules/unistdio/u32-vasprintf-tests: New file.
55248         * modules/unistdio/u32-vsnprintf-tests: New file.
55249         * modules/unistdio/u32-vsprintf-tests: New file.
55250         * MODULES.html.sh (Unicode string functions): Add the new modules.
55251
55252 2007-07-01  Bruno Haible  <bruno@clisp.org>
55253
55254         * lib/sprintf.c (sprintf): Limit the available length estimation,
55255         to avoid address wraparound.
55256         * lib/vsprintf.c (vsprintf): Likewise.
55257         * modules/sprintf-posix (Dependencies): Add stdint.
55258         * modules/vsprintf-posix (Dependencies): Likewise.
55259
55260 2007-07-01  Bruno Haible  <bruno@clisp.org>
55261
55262         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55263         Windows PATH as well. Conservative double-quoting. Comments.
55264
55265 2007-07-01  Bruno Haible  <bruno@clisp.org>
55266             Eric Blake  <ebb9@byu.net>
55267             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55268
55269         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55270         empty components in $PATH, denoting '.'.
55271
55272 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55273
55274         * gnulib-tool: Fix indentation.
55275         (func_create_megatestdir): Likewise.
55276         Report by Bruno Haible.
55277
55278 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55279
55280         Sync from Automake.
55281         * build-aux/gnupload: Fix shell portability issues with for loops.
55282         Report by Karl Berry.
55283
55284 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55285
55286         * build-aux/maint.mk (POURL): Use translationproject.org.
55287
55288 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55289             Bruno Haible  <bruno@clisp.org>
55290
55291         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55292         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55293         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55294         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55295         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55296
55297 2007-06-27  Bruno Haible  <bruno@clisp.org>
55298
55299         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55300         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55301
55302 2007-06-26  Karl Berry  <karl@gnu.org>
55303
55304         * MODULES.html.sh: remove xreadlink-with-size.
55305
55306 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55307
55308         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55309         method that I hope also handles the double-include problem noted
55310         by Bruno Haible in
55311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55312
55313 2007-06-23  Bruno Haible  <bruno@clisp.org>
55314
55315         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55316         Don't let the 'mostlyclean' target fail if the last subdirectory could
55317         not be removed.
55318         Reported by Karl Berry.
55319
55320 2007-06-23  Bruno Haible  <bruno@clisp.org>
55321
55322         * gnulib-tool (echo): Add a speedier workaround for ksh.
55323         * tests/test-echo.sh: Likewise.
55324
55325 2007-06-23  Bruno Haible  <bruno@clisp.org>
55326
55327         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55328         * tests/test-echo.sh: Likewise.
55329
55330 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55331
55332         * gnulib-tool (IFS): Initialize early, so we don't set it to
55333         empty later.
55334         (self_abspathname): Rewrite algorithm to set it, reindent.
55335         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55336         (func_create_megatestdir): Merge some sed scripts.
55337
55338 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55341         exposed by Sun Studio 11 cc on Solaris 8.
55342
55343 2007-06-22  Bruno Haible  <bruno@clisp.org>
55344
55345         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55346         backslashes.
55347         * tests/test-echo.sh: New file.
55348
55349 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55350
55351         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55352         simplify `sed_replace_build_aux' scripts, they are portable but
55353         echoing them with `echo' is not.
55354         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55355
55356 2007-06-21  Karl Berry  <karl@gnu.org>
55357
55358         * config/srclist.txt: guess we can't handle the licenses via
55359         srclist at the moment.
55360
55361 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         * MODULES.html.sh: Add include_next.
55364         * modules/include_next: New file.
55365
55366 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55367
55368         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55369         INCLUDE_NEXT.
55370         (gl_CHECK_NEXT_HEADERS): New macro.
55371         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55372         the obsolescent gl_ABSOLUTE_HEADER.
55373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55374         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55375         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55376         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55377         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55378         * m4/math_h.m4 (gl_MATH_H): Likewise.
55379         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55380         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55381         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55382         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55383         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55384         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55385         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55386         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55387         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55388         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55389         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55390         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55391         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55392         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55393         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55394         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55395         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55396         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55397         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55398         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55399         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55400         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55401         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55402         * lib/float_.h: Likewise.
55403         * lib/inttypes_.h: Likewise.
55404         * lib/math_.h: Likewise.
55405         * lib/search_.h: Likewise.
55406         * lib/signal_.h: Likewise.
55407         * lib/stdint_.h: Likewise.
55408         * lib/stdio_.h: Likewise.
55409         * lib/stdlib_.h: Likewise.
55410         * lib/string_.h: Likewise.
55411         * lib/sys_stat_.h: Likewise.
55412         * lib/sys_time_.h: Likewise.
55413         * lib/time_.h: Likewise.
55414         * lib/unistd_.h: Likewise.
55415         * lib/wchar_.h: Likewise.
55416         * lib/wctype_.h: Likewise.
55417         * lib/dirent_.h: Likewise.
55418         * lib/iconv_.h: Likewise.
55419         * lib/locale_.h: Likewise.
55420         * lib/netinet_in_.h: Likewise.
55421         * lib/sys_select_.h: Likewise.
55422         * lib/sys_socket_.h: Likewise.
55423         * lib/sysexits_.h: Likewise.
55424         * modules/fcntl (Depends-on): Depend on include_next, not
55425         absolute_header.
55426         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55427         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55428         * modules/fchdir: Likewise.
55429         * modules/float: Likewise.
55430         * modules/iconv_open: Likewise.
55431         * modules/inttypes: Likewise.
55432         * modules/locale: Likewise.
55433         * modules/math: Likewise.
55434         * modules/netinet_in: Likewise.
55435         * modules/search: Likewise.
55436         * modules/signal: Likewise.
55437         * modules/stdint: Likewise.
55438         * modules/stdio: Likewise.
55439         * modules/stdlib: Likewise.
55440         * modules/string: Likewise.
55441         * modules/sys_select: Likewise.
55442         * modules/sys_socket: Likewise.
55443         * modules/sys_stat: Likewise.
55444         * modules/sys_time: Likewise.
55445         * modules/sysexits: Likewise.
55446         * modules/time: Likewise.
55447         * modules/unistd: Likewise.
55448         * modules/wchar: Likewise.
55449         * modules/wctype: Likewise.
55450         * modules/sys_stat: Change maintainer to "all".
55451         * modules/unistd: Likewise.
55452
55453 2007-06-20  Karl Berry  <karl@gnu.org>
55454
55455         * config/srclist.txt: track www changes in license files.
55456
55457 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55458
55459         * build-aux/bootstrap: Remove stray dot.
55460         Make sure build_aux settings are honored when linking
55461         gnulib_extra_files.
55462
55463 2007-06-19  Eric Blake  <ebb9@byu.net>
55464
55465         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55466         Allow compilation on cygwin.
55467
55468 2007-06-19  Jim Meyering  <jim@meyering.net>
55469
55470         xreadlink-with-size: Remove module.  No longer used.
55471         Ex-callers now use xreadlink or mreadlink-with-size.
55472         * modules/xreadlink-with-size: Remove module.
55473         * lib/xreadlink-with-size.c: Remove file.
55474         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55475         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55476         just before the function definition *is* accurate.
55477
55478         Eliminate one way canonicalize_filename_mode could exit.
55479         * lib/canonicalize.c (canonicalize_filename_mode):
55480         Use mreadlink_with_size, not xreadlink_with_size.
55481
55482 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55483
55484         Detect porting problems to FreeBSD/arm, which has time_t wider than
55485         long int.  Original problem reported for GNU diff by Xin Li in
55486         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55487         * modules/getdate (Depends-on): Add intprops, verify.
55488         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55489         is an integer type no wider than long int.
55490
55491 2007-06-18  Jim Meyering  <jim@meyering.net>
55492
55493         New module: mreadlink-with-size.
55494         * MODULES.html.sh: Add mreadlink-with-size.
55495         * modules/mreadlink-with-size: New module
55496         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55497         not xreadlink-with-size.
55498         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55499
55500 2007-06-16  Bruno Haible  <bruno@clisp.org>
55501
55502         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55503         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55504         Reported by Gary V. Vaughan <gary@gnu.org>.
55505
55506 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55507
55508         Revamp lchown so that it lives in unistd.h where it belongs.
55509         * lib/lchown.h: Remove.
55510         * lib/dirchownmod.c: Don't include lib/lchown.h.
55511         * lib/fchownat.c: Likewise.
55512         * lib/openat.c: Likewise.
55513         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55514         does not follow symlinks.
55515         (EOPNOTSUPP): Define if not defined.
55516         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55517         is defined to 0.
55518         (lchown): New decl.
55519         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55520         Do not check for lchown decl.
55521         Set REPLACE_LCHOWN.
55522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55523         REPLACE_LCHOWN.
55524         * modules/chown: Make it clear it follows symlinks.
55525         * modules/lchown: Make it clear it doesn't follow symlinks.
55526         (Files): Remove lib/lchown.h
55527         (Depends-on): Add unistd.
55528         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55529         (Include): Include <unistd.h>, not "lchown.h".
55530         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55531         REPLACE_LCHOWN.
55532
55533 2007-06-15  Jim Meyering  <jim@meyering.net>
55534
55535         Change license (GPL to LGPL) of fsusage and dependents.
55536         * modules/fsusage (License): Change to LGPL.
55537         * modules/full-read (License): Likewise.
55538         * modules/full-write (License): Likewise.
55539         * modules/safe-read (License): Likewise.
55540         * modules/safe-write (License): Likewise.
55541
55542 2007-06-14  Ben Pfaff  <blp@gnu.org>
55543
55544         Missing part of allocsa -> malloca transition.
55545         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55546         gl_MALLOCA.
55547
55548 2007-06-12  Bruno Haible  <bruno@clisp.org>
55549
55550         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55551         to ia64, x86_64, i386.
55552         Reported by Eric Blake.
55553
55554 2007-06-12  Bruno Haible  <bruno@clisp.org>
55555
55556         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55557         cross-compiling to x86_64.
55558
55559 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55562         glitch reported by Ralf Wildenhues in
55563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55564
55565         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55566         Vin Shelton.
55567
55568 2007-06-11  Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55571         replacement string.
55572         Reported by Eric Blake.
55573
55574 2007-06-10  Bruno Haible  <bruno@clisp.org>
55575
55576         Prepare vasnprintf code for use with Unicode strings.
55577         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55578         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55579         TYPE_U32_STRING.
55580         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55581         a_u32_string variants.
55582         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55583         * lib/printf-args.c: Don't include config.h and the specification
55584         header if PRINTF_FETCHARGS is already defined.
55585         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55586         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55587         TYPE_U16_STRING, TYPE_U32_STRING.
55588         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55589         u16_directive, u16_directives, u32_directive, u32_directives): New
55590         types.
55591         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55592         New declarations.
55593         * lib/printf-parse.c: Don't include config.h and the specification
55594         header if PRINTF_PARSE is already defined. Eliminate the set of
55595         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55596         them now. Include c-ctype.h.
55597         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55598         directive and CHAR_T_ONLY_ASCII.
55599         * lib/vasnprintf.c: Don't include config.h and the specification header
55600         if VASNPRINTF is already defined.
55601         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55602         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55603         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55604         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55605         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55606         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55607         code accordingly.
55608         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55609         pad_ourselves also in this case, with the 'c' and 's' directives, and
55610         with a different notion of "width".
55611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55612
55613 2007-06-10  Bruno Haible  <bruno@clisp.org>
55614
55615         * modules/unistr/u32-mbsnlen: New file.
55616         * lib/unistr/u32-mbsnlen.c: New file.
55617
55618         * modules/unistr/u16-mbsnlen: New file.
55619         * lib/unistr/u16-mbsnlen.c: New file.
55620
55621         * modules/unistr/u8-mbsnlen: New file.
55622         * lib/unistr/u8-mbsnlen.c: New file.
55623
55624         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55625         declarations.
55626
55627 2007-06-10  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/string_.h (mbsnlen): New declaration.
55630         * lib/mbsnlen.c: New file.
55631         * m4/mbsnlen.m4: New file.
55632         * modules/mbsnlen: New file.
55633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55634         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55635         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55636
55637 2007-06-10  Bruno Haible  <bruno@clisp.org>
55638
55639         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55640
55641 2007-06-10  Bruno Haible  <bruno@clisp.org>
55642
55643         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55644         * lib/mbuiter.h: Likewise.
55645
55646 2007-06-10  Bruno Haible  <bruno@clisp.org>
55647
55648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55649         declaration.
55650
55651 2007-06-10  Karl Berry  <karl@gnu.org>
55652
55653         * config/srclist.txt: remove gettext entries, Bruno prefers
55654         to update individually.
55655
55656 2007-06-10  Bruno Haible  <bruno@clisp.org>
55657
55658         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55659         'maxlen'. Ensure only length + width bytes are allocated, not
55660         length + 1 + width.
55661
55662 2007-06-09  Bruno Haible  <bruno@clisp.org>
55663
55664         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55665         (CHAR_T): Remove macro.
55666         (VASNPRINTF): Update.
55667
55668 2007-06-09  Bruno Haible  <bruno@clisp.org>
55669
55670         * MODULES.html.sh (Unicode string functions): Add the new modules.
55671
55672         * modules/uniconv/u32-conv-to-enc: New file.
55673         * lib/uniconv/u32-conv-to-enc.c: New file.
55674         * modules/uniconv/u32-conv-to-enc-tests: New file.
55675         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55676
55677         * modules/uniconv/u16-conv-to-enc: New file.
55678         * lib/uniconv/u16-conv-to-enc.c: New file.
55679         * lib/uniconv/u-conv-to-enc.h: New file.
55680         * modules/uniconv/u16-conv-to-enc-tests: New file.
55681         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55682
55683         * modules/uniconv/u8-conv-to-enc: New file.
55684         * lib/uniconv/u8-conv-to-enc.c: New file.
55685         * modules/uniconv/u8-conv-to-enc-tests: New file.
55686         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55687
55688         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55689         u32_conv_to_encoding): New declarations.
55690
55691 2007-06-09  Bruno Haible  <bruno@clisp.org>
55692
55693         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55694
55695 2007-06-09  Bruno Haible  <bruno@clisp.org>
55696
55697         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55698         * modules/malloca: Renamed from modules/allocsa, updated.
55699         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55700         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55701         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55702         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55703         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55704         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55705         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55706         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55707         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55708         * modules/c-strcasestr (Depends-on): Update.
55709         * lib/c-strcasestr.c: Update.
55710         * modules/c-strstr (Depends-on): Update.
55711         * lib/c-strstr.c: Update.
55712         * modules/canonicalize-lgpl (Depends-on): Update.
55713         * lib/canonicalize-lgpl.c: Update.
55714         * modules/clean-temp (Depends-on): Update.
55715         * lib/clean-temp.c: Update.
55716         * modules/csharpcomp (Depends-on): Update.
55717         * lib/csharpcomp.c: Update.
55718         * modules/csharpexec (Depends-on): Update.
55719         * lib/csharpexec.c: Update.
55720         * modules/javacomp (Depends-on): Update.
55721         * lib/javacomp.c: Update.
55722         * modules/javaexec (Depends-on): Update.
55723         * lib/javaexec.c: Update.
55724         * modules/mbscasestr (Depends-on): Update.
55725         * lib/mbscasestr.c: Update.
55726         * modules/mbsstr (Depends-on): Update.
55727         * lib/mbsstr.c: Update.
55728         * modules/setenv (Depends-on): Update.
55729         * lib/setenv.c: Update.
55730         * modules/strcasestr (Depends-on): Update.
55731         * lib/strcasestr.c: Update.
55732         * modules/striconveha (Depends-on): Update.
55733         * lib/striconveha.c: Update.
55734         * modules/relocatable-prog-wrapper (Files): Update.
55735         * lib/relocwrapper.c: Update.
55736         * build-aux/install-reloc: Update.
55737         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55738
55739 2007-06-08  Bruno Haible  <bruno@clisp.org>
55740
55741         Port to uClibc.
55742         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55743         * lib/fpurge.c (fpurge): Likewise.
55744         * lib/freading.c (freading): Likewise.
55745         * lib/fseeko.c (rpl_fseeko): Likewise.
55746         * lib/fseterr.c (fseterr): Likewise.
55747         * lib/fwriting.c (fwriting): Likewise.
55748         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55749
55750 2007-06-08  Bruno Haible  <bruno@clisp.org>
55751
55752         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55753         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55754         * modules/gettext (Files): Add m4/intlmacosx.m4.
55755
55756 2007-06-07  Bruno Haible  <bruno@clisp.org>
55757
55758         * modules/localename-tests: New file.
55759         * tests/test-localename.c: New file.
55760
55761         New module 'localename'.
55762         * lib/localename.h: New file.
55763         * lib/localename.c: New file, from GNU gettext.
55764         * m4/localename.m4: New file.
55765         * modules/localename: New file.
55766
55767 2007-06-07  Bruno Haible  <bruno@clisp.org>
55768
55769         Work around the lack of <wchar.h> on some builds of uClibc.
55770         * doc/headers/wchar.texi: Update.
55771         * lib/wchar_.h: Include <wchar.h> only if it exists.
55772         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55773         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55774         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55775         doesn't exist.
55776         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55777         * modules/mbfile (Depends-on): Add wchar.
55778         * modules/mbiter (Depends-on): Likewise.
55779         * modules/mbuiter (Depends-on): Likewise.
55780         Reported by Simon Josefsson.
55781
55782 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55783
55784         Work around problem reported by Steven M. Schweda in
55785         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55786         Tru64 5.1B with the Compaq compiler environment installed declares
55787         an 'isblank' function but does not define it in the C library.
55788         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55789         * lib/regex_internal.h (isblank): Likewise.
55790         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55791         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55792
55793 2007-06-05  Bruno Haible  <bruno@clisp.org>
55794
55795         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55796         ia64.
55797         * modules/printf-safe: New file.
55798         * modules/fprintf-posix (Depends-on): Add printf-safe.
55799         * modules/printf-posix (Depends-on): Likewise.
55800         * modules/snprintf-posix (Depends-on): Likewise.
55801         * modules/sprintf-posix (Depends-on): Likewise.
55802         * modules/vasnprintf-posix (Depends-on): Likewise.
55803         * modules/vasprintf-posix (Depends-on): Likewise.
55804         * modules/vfprintf-posix (Depends-on): Likewise.
55805         * modules/vprintf-posix (Depends-on): Likewise.
55806         * modules/vsnprintf-posix (Depends-on): Likewise.
55807         * modules/vsprintf-posix (Depends-on): Likewise.
55808         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55809         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55810         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55811         "no" on i386, x86_64, ia64.
55812         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55813         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55814         on i386, x86_64, ia64.
55815         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55816         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55817         on i386, x86_64, ia64.
55818         * tests/test-vasnprintf-posix.c: Include float.h.
55819         (LDBL80_WORDS): New macro.
55820         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55821         on i386, x86_64, ia64.
55822         * tests/test-vasprintf-posix.c: Include float.h.
55823         (LDBL80_WORDS): New macro.
55824         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55825         on i386, x86_64, ia64.
55826         * tests/test-snprintf-posix.c: Include float.h.
55827         * tests/test-sprintf-posix.c: Likewise.
55828         * tests/test-vsnprintf-posix.c: Likewise.
55829         * tests/test-vsprintf-posix.c: Likewise.
55830
55831 2007-06-05  Bruno Haible  <bruno@clisp.org>
55832
55833         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55834         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55835         non-IEEE numbers on i386, x86_64, ia64.
55836         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55837         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55838         * tests/test-isnanl.h: Include float.h.
55839         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55840
55841 2007-06-05  Bruno Haible  <bruno@clisp.org>
55842
55843         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55844         also the %a / %A. Handle the %a / %A code before this extra handling.
55845
55846 2007-06-05  Bruno Haible  <bruno@clisp.org>
55847
55848         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55849         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55850
55851 2007-06-05  Bruno Haible  <bruno@clisp.org>
55852
55853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55854         typo in variable name.
55855
55856 2007-06-05  Eric Blake  <ebb9@byu.net>
55857
55858         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55859         Reported by Simon Josefsson.
55860
55861 2007-06-04  Bruno Haible  <bruno@clisp.org>
55862
55863         Avoid test failures on some PowerPC platforms.
55864         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55865         Define differently for PowerPC.
55866         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55867         Reported by Gary V. Vaughan <gary@gnu.org>.
55868
55869 2007-06-02  Bruno Haible  <bruno@clisp.org>
55870
55871         Fix test-stdint failure on FreeBSD/ia64.
55872         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55873         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55874         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55875         * doc/headers/stdint.texi: Update.
55876
55877 2007-06-01  Bruno Haible  <bruno@clisp.org>
55878
55879         * tests/test-binary-io.c (main): Pass a third argument to open().
55880         Reported by Gary V. Vaughan <gary@gnu.org>.
55881
55882 2007-06-01  Bruno Haible  <bruno@clisp.org>
55883
55884         * doc/functions/frexpl.texi: Update for mingw.
55885
55886 2007-06-01  Bruno Haible  <bruno@clisp.org>
55887
55888         * tests/test-lseek.c (main): Disable test of errno for invalid third
55889         argument.
55890         * doc/functions/lseek.texi: Update.
55891         Reported by Gary V. Vaughan <gary@gnu.org>.
55892
55893 2007-05-28  Bruno Haible  <bruno@clisp.org>
55894
55895         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55896
55897 2007-05-31  Eric Blake  <ebb9@byu.net>
55898
55899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55900         cross compiling.
55901
55902 2007-05-30  Eric Blake  <ebb9@byu.net>
55903         and Bruno Haible  <bruno@clisp.org>
55904
55905         Work around mingw test failures exposed by m4-1.4.9b.
55906         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55907         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55908         moment.
55909
55910 2007-05-30  Bruno Haible  <bruno@clisp.org>
55911
55912         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55913         assuming that they are closed. Needed on HP-UX 11.
55914
55915 2007-05-29  Bruno Haible  <bruno@clisp.org>
55916
55917         Fix a problem with #include_next.
55918         * lib/dirent_.h: Split the double-inclusion guard.
55919         * lib/fcntl_.h: Likewise.
55920         * lib/float_.h: Likewise.
55921         * lib/iconv_.h: Likewise.
55922         * lib/inttypes_.h: Likewise.
55923         * lib/locale_.h: Likewise.
55924         * lib/math_.h: Likewise.
55925         * lib/netinet_in_.h: Likewise.
55926         * lib/search_.h: Likewise.
55927         * lib/signal_.h: Likewise.
55928         * lib/stdint_.h: Likewise.
55929         * lib/stdio_.h: Likewise.
55930         * lib/stdlib_.h: Likewise.
55931         * lib/string_.h: Likewise.
55932         * lib/sys_select_.h: Likewise.
55933         * lib/sys_socket_.h: Likewise.
55934         * lib/sys_stat_.h: Likewise.
55935         * lib/sys_time_.h: Likewise.
55936         * lib/sysexits_.h: Likewise.
55937         * lib/time_.h: Likewise.
55938         * lib/unistd_.h: Likewise.
55939         * lib/wchar_.h: Likewise.
55940         * lib/wctype_.h: Likewise.
55941
55942 2007-05-29  Bruno Haible  <bruno@clisp.org>
55943
55944         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55945         for the moment.
55946
55947 2007-05-29  Bruno Haible  <bruno@clisp.org>
55948
55949         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55950         invocation.
55951         Reported by Eric Blake.
55952
55953 2007-05-29  Bruno Haible  <bruno@clisp.org>
55954
55955         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55956         compiling case.
55957
55958 2007-05-29  Eric Blake  <ebb9@byu.net>
55959             Bruno Haible  <bruno@clisp.org>
55960
55961         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55962         cross compiles.
55963
55964 2007-05-28  Eric Blake  <ebb9@byu.net>
55965
55966         * modules/closein-tests (test_closein_LDADD): Support test on
55967         cygwin with libtool.
55968
55969 2007-05-28  Bruno Haible  <bruno@clisp.org>
55970
55971         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55972         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55973         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55974         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55975         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55976         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55977         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55978         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55979         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55980
55981 2007-05-28  Eric Blake  <ebb9@byu.net>
55982
55983         Unconditionally include <config.h> in unit tests.
55984         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55985         * tests/test-allocsa.c, tests/test-arcfour.c,
55986         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55987         tests/test-array_list.c, tests/test-array_oset.c,
55988         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55989         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55990         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55991         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55992         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55993         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55994         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55995         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55996         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55997         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55998         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55999         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56000         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56001         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56002         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56003         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56004         test-md5.c, test-memmem.c, test-printf-posix.c,
56005         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56006         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56007         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56008         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56009         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56010         test-vasnprintf-posix2.c, test-vasnprintf.c,
56011         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56012         test-vfprintf-posix.c, test-vprintf-posix.c,
56013         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56014         test-xvasprintf.c: Likewise.
56015
56016 2007-05-28  Bruno Haible  <bruno@clisp.org>
56017
56018         * gnulib-tool (func_import): Remember the --with-tests command-line
56019         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56020         Reported by Eric Blake.
56021
56022 2007-05-28  Bruno Haible  <bruno@clisp.org>
56023
56024         * modules/ftell-tests: New file.
56025         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56026         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56027
56028         * lib/ftell.c: New file.
56029         * modules/ftell: New file.
56030         * m4/ftell.m4: New file.
56031         * doc/functions/ftell.texi: Update.
56032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56033         REPLACE_FTELL.
56034         * lib/stdio_.h (rpl_ftell): New declaration.
56035         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56036         REPLACE_FTELL.
56037
56038 2007-05-28  Eric Blake  <ebb9@byu.net>
56039
56040         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56041
56042 2007-05-28  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/fseek-tests: New file.
56045         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56046         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56047
56048         * lib/fseek.c: New file.
56049         * modules/fseek: New file.
56050         * m4/fseek.m4: New file.
56051         * doc/functions/fseek.texi: Update.
56052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56053         REPLACE_FSEEK.
56054         * lib/stdio_.h (rpl_fseek): New declaration.
56055         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56056         REPLACE_FSEEK.
56057
56058 2007-05-28  Bruno Haible  <bruno@clisp.org>
56059
56060         * lib/stdio_.h (fflush): More comments.
56061
56062 2007-05-28  Bruno Haible  <bruno@clisp.org>
56063
56064         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56065         runtime test.
56066
56067 2007-05-28  Eric Blake  <ebb9@byu.net>
56068
56069         Improve lseek module.
56070         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56071         * lib/unistd_.h (lseek): Scale back link warning message.
56072         * tests/test-lseek.c: Beef up test.
56073         * tests/test-lseek.sh: Exercise more facets of lseek.
56074         Reported by Bruno Haible.
56075
56076 2007-05-28  Bruno Haible  <bruno@clisp.org>
56077
56078         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56079         to define.
56080
56081 2007-05-27  Bruno Haible  <bruno@clisp.org>
56082
56083         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56084
56085 2007-05-27  Bruno Haible  <bruno@clisp.org>
56086
56087         * modules/openmp: New file.
56088         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56089         Noah Misch.
56090
56091 2007-05-26  Bruno Haible  <bruno@clisp.org>
56092
56093         * modules/chdir-long (Depends-on): Add fchdir.
56094         * modules/chdir-safer (Depends-on): Likewise.
56095         * modules/fts (Depends-on): Likewise.
56096         * modules/fts-lgpl (Depends-on): Likewise.
56097         * modules/openat (Depends-on): Likewise.
56098         * modules/savewd (Depends-on): Likewise.
56099
56100 2007-05-24  Eric Blake  <ebb9@byu.net>
56101
56102         Fix lseek on mingw.
56103         * modules/lseek: New module.
56104         * m4/lseek.m4: New file.
56105         * lib/lseek.c: New file.
56106         * modules/lseek-tests: New file.
56107         * tests/test-lseek.c: New file.
56108         * tests/test-lseek.sh: New file.
56109         * MODULES.html.sh: Document lseek module.
56110         * modules/fflush (Depends-on): Add lseek, fseeko.
56111         * modules/fseeko (Depends-on): Likewise.
56112         * modules/ftello (Depends-on): Likewise.
56113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56114         broken.
56115         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56116         broken.
56117         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56118         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56119         * lib/ftello.c (rpl_ftello): Likewise.
56120         * tests/test-fseeko.c (main): Test this.
56121         * tests/test-fseeko.sh: Likewise.
56122         * tests/test-ftello.c (main): Likewise.
56123         * tests/test-ftello.sh: Likewise.
56124         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56125         implies replacing fseek.
56126         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56127         HAVE_FTELLO.
56128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56129         * modules/unistd (Makefile.am): Likewise.
56130         * lib/unistd_.h (lseek): Declare a replacement.
56131         * doc/functions/lseek.texi (lseek): Document this fix.
56132         * doc/functions/fseek.texi (fseek): Likewise.
56133         * doc/functions/ftell.texi (ftell): Likewise.
56134
56135 2007-05-24  Bruno Haible  <bruno@clisp.org>
56136
56137         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56138         in the printed representation of a NaN.
56139         * tests/test-vasprintf-posix.c (test_function): Likewise.
56140         * tests/test-snprintf-posix.h (test_function): Likewise.
56141         * tests/test-sprintf-posix.h (test_function): Likewise.
56142         Reported by Eric Blake.
56143
56144 2007-05-23  Eric Blake  <ebb9@byu.net>
56145
56146         Fix fseeko/ftello on cygwin 1.5.24.
56147         * doc/functions/fseeko.texi (fseeko): Document the fix.
56148         * doc/functions/ftello.texi (ftello): Document the fix.
56149         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56150         * doc/functions/stdout.text (stdout): New file.
56151         * doc/functions/stderr.text (stderr): New file.
56152         * doc/gnulib.texi (Function Substitutes): Use new files.
56153         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56154         prior to 1.7.0.
56155         * tests/test-ftello.c (main): Likewise for ftello.
56156         * tests/test-fseeko.sh: New file.
56157         * tests/test-ftello.sh: New file.
56158         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56159         with seekable stdin.
56160         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56161         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56162         (gl_REPLACE_FSEEKO): New macro.
56163         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56164         * modules/fseeko (Files): Distribute fseeko.c.
56165         * modules/ftello (Files): Distribute ftello.c.
56166         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56167         mode.
56168         * lib/ftello.c (rpl_ftello): New file.
56169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56170         fseeko, ftello.
56171         (gl_STDIN_LARGE_OFFSET): New macro.
56172         * modules/stdio (Makefile.am): Perform the replacement.
56173         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56174
56175 2007-05-23  Bruno Haible  <bruno@clisp.org>
56176
56177         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56178         GNULIB_POSIXCHECK is defined.
56179
56180 2007-05-21  Bruno Haible  <bruno@clisp.org>
56181
56182         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56183         Check also the output for NaN arguments. When cross-compiling, guess
56184         no on IRIX.
56185         * lib/vasnprintf.c: Update comments.
56186         * tests/test-vasnprintf-posix.c (strisnan): New function.
56187         (test_function): Use it.
56188         * tests/test-vasprintf-posix.c (strisnan): New function.
56189         (test_function): Use it.
56190         * tests/test-snprintf-posix.h (strisnan): New function.
56191         (test_function): Use it.
56192         * tests/test-sprintf-posix.h (strisnan): New function.
56193         (test_function): Use it.
56194         Reported by Eric Blake.
56195
56196 2007-05-20  Bruno Haible  <bruno@clisp.org>
56197
56198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56199         numbers that fails on BeOS.
56200         * doc/functions/frexpl.texi: Update.
56201
56202 2007-05-20  Jim Meyering  <jim@meyering.net>
56203
56204         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56205         forced upon us by glibc-2.6.
56206
56207 2007-05-20  Bruno Haible  <bruno@clisp.org>
56208
56209         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56210         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56211         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56212         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56213         NEED_PRINTF_INFINITE.
56214         (is_infinitel): New function.
56215         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56217         gl_PREREQ_VASNPRINTF_INFINITE.
56218         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56219         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56220         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56221         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56222         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56223         gl_PREREQ_VASNPRINTF_INFINITE.
56224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56225         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56226         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56228         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56231         * doc/functions/fprintf.texi: Update.
56232         * doc/functions/printf.texi: Update.
56233         * doc/functions/snprintf.texi: Update.
56234         * doc/functions/sprintf.texi: Update.
56235         * doc/functions/vfprintf.texi: Update.
56236         * doc/functions/vprintf.texi: Update.
56237         * doc/functions/vsnprintf.texi: Update.
56238         * doc/functions/vsprintf.texi: Update.
56239
56240 2007-05-20  Bruno Haible  <bruno@clisp.org>
56241
56242         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56243         was not found in libc.
56244         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56245
56246 2007-05-20  Bruno Haible  <bruno@clisp.org>
56247
56248         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56249         printed as "-nan" instead of "nan".
56250         * tests/test-vasprintf-posix.c (test_function): Likewise.
56251         * tests/test-snprintf-posix.h (test_function): Likewise.
56252         * tests/test-sprintf-posix.h (test_function): Likewise.
56253         Needed for HP-UX 11.
56254
56255 2007-05-20  Jim Meyering  <jim@meyering.net>
56256
56257         Fix buggy test for the fchownat-deref bug.
56258         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56259         symlink required for the run-test.  Without it, this test would
56260         always declare that fchownat doesn't work, and client code would
56261         unnecessarily use the replacement function with fixed libc.
56262         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56263         Reported by Greg Schafer.
56264
56265 2007-05-19  Bruno Haible  <bruno@clisp.org>
56266
56267         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56268         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56269         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56270         Needed for IRIX 6.5 and Solaris 2.5.1.
56271
56272 2007-05-19  Bruno Haible  <bruno@clisp.org>
56273
56274         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56275         (test_function): Skip tests involving -0.0 on platforms where
56276         -0.0 = 0.0.
56277         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56278         (test_function): Skip tests involving -0.0 on platforms where
56279         -0.0 = 0.0.
56280         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56281         (test_function): Skip tests involving -0.0 on platforms where
56282         -0.0 = 0.0.
56283         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56284         (test_function): Skip tests involving -0.0 on platforms where
56285         -0.0 = 0.0.
56286         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56287         tests.
56288         * tests/test-printf-posix.h (test_function): Likewise.
56289         * tests/test-printf-posix.output: Remove all -0.0 related results.
56290         Needed for IRIX 6.5.
56291
56292 2007-05-19  Bruno Haible  <bruno@clisp.org>
56293
56294         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56295         printed as "nan0x7fffffff" instead of "nan".
56296         * tests/test-vasprintf-posix.c (test_function): Likewise.
56297         * tests/test-snprintf-posix.h (test_function): Likewise.
56298         * tests/test-sprintf-posix.h (test_function): Likewise.
56299         * tests/test-fprintf-posix.h (NaN): Remove macro.
56300         (test_function): Remove all NaN related tests.
56301         * tests/test-printf-posix.h (NaN): Remove macro.
56302         (test_function): Remove all NaN related tests.
56303         * tests/test-printf-posix.output: Remove all NaN related results.
56304         Needed for IRIX 6.5.
56305
56306 2007-05-19  Bruno Haible  <bruno@clisp.org>
56307
56308         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56310
56311 2007-05-19  Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/float_.h: New file.
56314         * m4/float_h.m4: New file.
56315         * modules/float: New file.
56316         * modules/isnanl (Dependencies): Add float.
56317         * modules/isnanl-nolibm (Dependencies): Likewise.
56318         * modules/mathl (Dependencies): Likewise.
56319         * modules/printf-frexpl (Dependencies): Likewise.
56320         * modules/signbit (Dependencies): Likewise.
56321         * modules/vasnprintf (Dependencies): Likewise.
56322         * doc/headers/float.texi: Update.
56323
56324 2007-05-19  Jim Meyering  <jim@meyering.net>
56325
56326         * lib/utimens.c (gl_futimens): Rename from futimens,
56327         now that glibc-2.6 declares futimens.
56328         * lib/utimens.h: Likewise.
56329
56330 2007-05-19  Bruno Haible  <bruno@clisp.org>
56331
56332         Avoid test failures on mingw.
56333         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56334         * tests/test-printf-posix.sh: Likewise.
56335         * tests/test-vfprintf-posix.sh: Likewise.
56336         * tests/test-vprintf-posix.sh: Likewise.
56337
56338 2007-05-19  Bruno Haible  <bruno@clisp.org>
56339
56340         Fix *printf result for NaN, Inf, -0.0 on mingw.
56341         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56342         * lib/vasnprintf.c: Include math.h and isnan.h.
56343         (is_infinite_or_zero): New function.
56344         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56345         values in the %f, %F, %e, %E, %g, %G directives.
56346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56347         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56348         gl_PRINTF_INFINITE and test its result. Invoke
56349         gl_PREREQ_VASNPRINTF_INFINITE.
56350         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56351         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56352         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56353         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56354         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56355         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56356         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56357         * doc/functions/fprintf.texi: Update.
56358         * doc/functions/printf.texi: Update.
56359         * doc/functions/snprintf.texi: Update.
56360         * doc/functions/sprintf.texi: Update.
56361         * doc/functions/vfprintf.texi: Update.
56362         * doc/functions/vprintf.texi: Update.
56363         * doc/functions/vsnprintf.texi: Update.
56364         * doc/functions/vsprintf.texi: Update.
56365
56366 2007-05-19  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56369         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56370         Instead of multiplying with 10^k, set extra_zeroes to k.
56371         (scale10_round_long_double): Remove function.
56372
56373 2007-05-18  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56376         introduced on 2007-05-06.
56377
56378 2007-05-18  Bruno Haible  <bruno@clisp.org>
56379
56380         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56381         %g directives.
56382         * tests/test-vasprintf-posix.c (test_function): Likewise.
56383         * tests/test-snprintf-posix.h (test_function): Likewise.
56384         * tests/test-sprintf-posix.h (test_function): Likewise.
56385
56386 2007-05-18  Bruno Haible  <bruno@clisp.org>
56387
56388         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56389         (strmatch): New function.
56390         (test_function): Test the %f directive on numbers of various exponents.
56391         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56392         (strmatch): New function.
56393         (test_function): Test the %f directive on numbers of various exponents.
56394         * tests/test-snprintf-posix.h (strmatch): New function.
56395         (test_function): Test the %f directive on numbers of various exponents.
56396         * tests/test-sprintf-posix.h (strmatch): New function.
56397         (test_function): Test the %f directive on numbers of various exponents.
56398         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56399         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56400         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56401         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56402
56403 2007-05-18  Bruno Haible  <bruno@clisp.org>
56404
56405         Add support for 'long double' number output.
56406         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56407         * lib/vasnprintf.c: Include math.h and float+.h.
56408         (mp_limb_t): New type.
56409         (GMP_LIMB_BITS): New macro.
56410         (mp_twolimb_t): New type.
56411         (GMP_TWOLIMB_BITS): New macro.
56412         (mpn_t): New type.
56413         (multiply, divide, convert_to_decimal, decode_long_double,
56414         scale10_round_long_double, scale10_round_decimal_long_double,
56415         floorlog10l): New functions.
56416         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56417         for the %f, %F, %e, %E, %g, %G directives.
56418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56419         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56420         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56421         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56423         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56424         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56425         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56426         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56427         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56428         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56429         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56430         * modules/snprintf-posix (Depends-on): Likewise.
56431         * modules/sprintf-posix (Depends-on): Likewise.
56432         * modules/vasnprintf-posix (Depends-on): Likewise.
56433         * modules/vasprintf-posix (Depends-on): Likewise.
56434         * modules/vfprintf-posix (Depends-on): Likewise.
56435         * modules/vsnprintf-posix (Depends-on): Likewise.
56436         * modules/vsprintf-posix (Depends-on): Likewise.
56437         * modules/vasnprintf (Files): Add lib/float+.h.
56438         * doc/functions/fprintf.texi: Update.
56439         * doc/functions/printf.texi: Update.
56440         * doc/functions/snprintf.texi: Update.
56441         * doc/functions/sprintf.texi: Update.
56442         * doc/functions/vfprintf.texi: Update.
56443         * doc/functions/vprintf.texi: Update.
56444         * doc/functions/vsnprintf.texi: Update.
56445         * doc/functions/vsprintf.texi: Update.
56446
56447 2007-05-18  Bruno Haible  <bruno@clisp.org>
56448
56449         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56450
56451 2007-05-18  Bruno Haible  <bruno@clisp.org>
56452
56453         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56454         for printing 64-bit integers. Needed for mingw.
56455
56456 2007-05-18  Bruno Haible  <bruno@clisp.org>
56457
56458         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56459         gl_FUNC_FREXPL_WORKS.
56460         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56461
56462 2007-05-18  Bruno Haible  <bruno@clisp.org>
56463
56464         * modules/frexpl-nolibm-tests: New file.
56465
56466         * modules/frexpl-nolibm: New file.
56467         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56468
56469 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56472         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56473         GCC 4.2, which otherwise issues a lot of warnings.
56474         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56475         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56476         Likewise.
56477         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56478         * modules/iconv_open (iconv.h): Likewise.
56479         * modules/locale (locale.h): Likewise.
56480         * modules/netinet_in (netinet/in.h): Likewise.
56481         * modules/sys_select (sys_select.h): Likewise.
56482         * modules/sys_socket (sys/socket.h): Likewise.
56483         * modules/sys_stat (sys/stat.h): Likewise.
56484         * modules/sysexits (sysexits.h): Likewise.
56485         * modules/unistd (unistd.h): Likewise.
56486
56487 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56488
56489         * modules/closein-tests (Makefile.am): Distribute
56490         `test-closein.sh'.
56491
56492 2007-05-17  Bruno Haible  <bruno@clisp.org>
56493
56494         * tests/test-printf-posix.output: Renamed from
56495         tests/test-fprintf-posix.out.
56496         * modules/fprintf-posix-tests: Update.
56497         * modules/printf-posix-tests: Update.
56498         * modules/vfprintf-posix-tests: Update.
56499         * modules/vprintf-posix-tests: Update.
56500         * tests/test-fprintf-posix.sh: Update.
56501         * tests/test-printf-posix.sh: Update.
56502         * tests/test-vfprintf-posix.sh: Update.
56503         * tests/test-vprintf-posix.sh: Update.
56504         Reported by Ralf Wildenhues.
56505
56506 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56507
56508         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56509         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56510         GCC 4.2, which otherwise issues a lot of warnings.
56511         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56512         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56513         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56514         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56515         it should no longer be needed.
56516         * lib/string_.h: Likewise.
56517         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56518         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56519         * modules/inttypes (inttypes.h): Likewise.
56520         * modules/math (math.h): Likewise.
56521         * modules/search (search.h): Likewise.
56522         * modules/signal (signal.h): Likewise.
56523         * modules/stdint (stdint.h): Likewise.
56524         * modules/stdio (stdio.h): Likewise.
56525         * modules/stdlib (stdlib.h): Likewise.
56526         * modules/string (string.h): Likewise.
56527         * modules/sys_time (sys/time.h): Likewise.
56528         * modules/time (time.h): Likewise.
56529         * modules/wchar (wchar.h): Likewise.
56530         * modules/wctype (wtype.h): Likewise.
56531
56532 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56533
56534         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56535
56536 2007-05-13  Bruno Haible  <bruno@clisp.org>
56537
56538         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56539         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56540         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56541         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56542         (gl_PREREQ_STRTOK_R): Don't require it here.
56543
56544 2007-05-13  Bruno Haible  <bruno@clisp.org>
56545
56546         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56547         when used in C++ mode.
56548
56549 2007-05-12  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/linebuffer.h: Tweak doc.
56552         * lib/linebuffer.c: Likewise.
56553
56554 2007-05-12  James Youngman  <jay@gnu.org>
56555
56556         * lib/linebuffer.c (readlinebuffer_delim): New function,
56557         like readlinebuffer, but use a caller-specified delimiter.
56558         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56559         as the delimiter.
56560         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56561
56562 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56563
56564         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56565         * modules/openat (Files): Remove openat-die.c.
56566         (Depends-on): Add openat-die.
56567         * modules/openat-die: New module.
56568
56569 2007-05-06  Bruno Haible  <bruno@clisp.org>
56570
56571         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56572         Update with info about Cygwin.
56573         * doc/functions/fprintf.texi: Update.
56574         * doc/functions/printf.texi: Update.
56575         * doc/functions/snprintf.texi: Update.
56576         * doc/functions/sprintf.texi: Update.
56577         * doc/functions/vfprintf.texi: Update.
56578         * doc/functions/vprintf.texi: Update.
56579         * doc/functions/vsnprintf.texi: Update.
56580         * doc/functions/vsprintf.texi: Update.
56581         Reported by Eric Blake.
56582
56583 2007-05-06  Bruno Haible  <bruno@clisp.org>
56584
56585         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56586         padding ourselves for the floating-point directives.
56587         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56590         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56591         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56593         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56594         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56595         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56596         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56598         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56599         * tests/test-snprintf-posix.h (test_function): Also check the width
56600         and some flags in the %f directive.
56601         * tests/test-sprintf-posix.h (test_function): Likewise.
56602         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56603         * tests/test-vasprintf-posix.c (test_function): Likewise.
56604         * doc/functions/fprintf.texi: Update.
56605         * doc/functions/printf.texi: Update.
56606         * doc/functions/snprintf.texi: Update.
56607         * doc/functions/sprintf.texi: Update.
56608         * doc/functions/vfprintf.texi: Update.
56609         * doc/functions/vprintf.texi: Update.
56610         * doc/functions/vsnprintf.texi: Update.
56611         * doc/functions/vsprintf.texi: Update.
56612
56613 2007-05-06  Bruno Haible  <bruno@clisp.org>
56614
56615         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56616         pass the ' flag character to sprintf or snprintf.
56617         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56619         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56620         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56621         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56624         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56625         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56626         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56627         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56628         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56629         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56630         flag.
56631         * tests/test-sprintf-posix.h (test_function): Likewise.
56632         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56633         * tests/test-vasprintf-posix.c (test_function): Likewise.
56634         * doc/functions/fprintf.texi: Update.
56635         * doc/functions/printf.texi: Update.
56636         * doc/functions/snprintf.texi: Update.
56637         * doc/functions/sprintf.texi: Update.
56638         * doc/functions/vfprintf.texi: Update.
56639         * doc/functions/vprintf.texi: Update.
56640         * doc/functions/vsnprintf.texi: Update.
56641         * doc/functions/vsprintf.texi: Update.
56642
56643 2007-05-01  Bruno Haible  <bruno@clisp.org>
56644
56645         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56646
56647 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56648
56649         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56650         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56651
56652 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56653
56654         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56655         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56657
56658 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56659
56660         * lib/argp-help.c (struct hol_entry): New member `ord'.
56661         (HOL_ENTRY_PTRCMP): Use ord for comparison
56662         (hol_sort): Initialize ord.
56663
56664 2007-05-01  Bruno Haible  <bruno@clisp.org>
56665
56666         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56667         Reported by Eric Blake.
56668         * doc/gnulib.texi (Function Substitutes): Update.
56669
56670 2007-05-01  Bruno Haible  <bruno@clisp.org>
56671
56672         * doc/functions.texi: Remove file, now redundant through
56673         doc/functions/*.texi.
56674
56675 2007-05-01  Bruno Haible  <bruno@clisp.org>
56676
56677         * modules/argp (Depends-on): Add sleep.
56678
56679 2007-05-01  Bruno Haible  <bruno@clisp.org>
56680
56681         * modules/sleep-tests: New file.
56682         * tests/test-sleep.c: New file.
56683
56684         * modules/sleep: New file.
56685         * lib/sleep.c: New file.
56686         * m4/sleep.m4: New file.
56687         * lib/unistd_.h (sleep): New declaration.
56688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56689         HAVE_SLEEP.
56690         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56691         * doc/functions/sleep.texi: Document the sleep module.
56692
56693 2007-05-01  Bruno Haible  <bruno@clisp.org>
56694
56695         * lib/sigprocmask.h: Remove file.
56696         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56697         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56698         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56699         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56700         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56701         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56702         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56703         HAVE_SIGSET_T as a shell variable.
56704         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56705         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56706         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56707         (Depends-on): Add signal. Remove verify.
56708         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56709         (Include): Mention <signal.h> instead of sigprocmask.h.
56710         * NEWS: Mention the change.
56711         * lib/fatal-signal.c: Don't include sigprocmask.h.
56712
56713 2007-05-01  Bruno Haible  <bruno@clisp.org>
56714
56715         * modules/signal: New file.
56716         * lib/signal_.h: New file.
56717         * m4/signal_h.m4: New file.
56718
56719 2007-05-01  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56722         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56723         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56724         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56725
56726 2007-05-01  Bruno Haible  <bruno@clisp.org>
56727
56728         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56729         configure time.
56730         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56731         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56732         * modules/sys_stat (Makefile.am): Substitute their values into
56733         sys/stat.h.
56734
56735 2007-05-01  Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56738         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56739         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56740
56741 2007-05-01  Bruno Haible  <bruno@clisp.org>
56742
56743         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56744         'assert' module here.
56745
56746 2007-05-01  Bruno Haible  <bruno@clisp.org>
56747
56748         * doc/functions/*.texi: New files.
56749         * doc/functions/google-ranking.txt: New file.
56750         * doc/gnulib.texi (Function Substitutes): New chapter.
56751         (ctime, inet_ntoa): Remove sections.
56752         * doc/ctime.texi: Remove file.
56753         * doc/inet_ntoa.texi: Remove file.
56754         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56755         dependencies.
56756         (%.info): New rule, specifying a --reference-limit.
56757
56758 2007-05-01  Bruno Haible  <bruno@clisp.org>
56759
56760         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56761
56762 2007-05-01  Bruno Haible  <bruno@clisp.org>
56763
56764         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56765         the portability of 'mkdir' to mingw systems.
56766
56767 2007-05-01  Bruno Haible  <bruno@clisp.org>
56768
56769         * doc/headers/google-ranking.txt: New file.
56770
56771 2007-04-30  Eric Blake  <ebb9@byu.net>
56772
56773         Prefer fseeko to fseek.
56774         * modules/getpass (Depends-on): Add fseeko.
56775         * lib/getpass.c (getpass): Use fseeko, not fseek.
56776
56777 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56778
56779         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56780         assumes the sorting is stable, while most qsort implementations
56781         are not.  Use argument addresses to ensure they never compare as
56782         equal.
56783
56784         * tests/test-argp-2.sh (usage-indent test): Fix output
56785         (func_compare): Restore diff options
56786         * tests/test-argp.c: Restore #include "progname.h"
56787
56788 2007-04-29  Bruno Haible  <bruno@clisp.org>
56789
56790         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56792         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56793         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56794         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56795         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56796         (TESTS, check_PROGRAMS): Add test-snprintf.
56797         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56798         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56799         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56800         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56801         assertions that fail on HP-UX, OSF/1, or IRIX.
56802         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56803
56804 2007-04-29  Bruno Haible  <bruno@clisp.org>
56805
56806         * MODULES.html.sh (posix_functions): Remove 'contents'.
56807
56808 2007-04-29  Karl Berry  <karl@gnu.org>
56809
56810         * config/srclist.txt (gendocs_template_min): new entry.
56811
56812 2007-04-29  Bruno Haible  <bruno@clisp.org>
56813
56814         Work around fpurge bug on BSD systems.
56815         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56816         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56817         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56818         fpurge to rpl_fpurge if the system already has this function.
56819         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56820         the case where the system already has this function. Correct invariants
56821         on BSD systems.
56822         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56823         BSD systems.
56824
56825 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56826
56827         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56828         proposed by Sven Verdoolaege.
56829
56830         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56831         options.
56832         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56833         (usage and help tests): Update
56834
56835 2007-04-29  Bruno Haible  <bruno@clisp.org>
56836
56837         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56838         Print more information in case of failure. Disable a test on BeOS.
56839
56840 2007-04-29  Bruno Haible  <bruno@clisp.org>
56841
56842         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56843         This helps debugging on systems on which no gdb is available.
56844
56845 2007-04-29  Bruno Haible  <bruno@clisp.org>
56846
56847         * lib/freading.h: Improve comments.
56848         * lib/fwriting.h: Likewise.
56849         * tests/test-freading.c (main): Don't check freading immediately after
56850         repositioning. Needed for glibc.
56851
56852 2007-04-29  Bruno Haible  <bruno@clisp.org>
56853
56854         * lib/freading.c (freading): Trivial simplification.
56855
56856 2007-04-28  Bruno Haible  <bruno@clisp.org>
56857
56858         * tests/test-fwriting.c (main): Also test the interaction between
56859         fflush and fwriting.
56860         * modules/fwriting-tests (Depends-on): Add fflush.
56861
56862         * tests/test-freading.c (main): Also test the interaction between
56863         fflush and freading.
56864         * modules/freading-tests (Depends-on): Add fflush.
56865
56866 2007-04-28  Bruno Haible  <bruno@clisp.org>
56867
56868         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56869         fseeko and ftello.
56870         Suggested by Eric Blake.
56871
56872 2007-04-28  Jim Meyering  <jim@meyering.net>
56873
56874         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56875         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56876         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56877
56878 2007-04-27  Eric Blake  <ebb9@byu.net>
56879
56880         * doc/headers/assert.texi (assert.h): Document assert module use.
56881
56882 2007-04-27  Bruno Haible  <bruno@clisp.org>
56883
56884         * doc/headers/*.texi: New files.
56885         * doc/gnulib.texi (Header File Substitutes): New chapter.
56886         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56887         dependencies.
56888         (standards.info ,standards.html, standards.dvi): Update dependencies.
56889         (mostlyclean, clean): New targets.
56890
56891 2007-04-27  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56894         * modules/sysexits (Files, Makefile.am): Update.
56895
56896         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56897         * modules/sys_socket (Files, Makefile.am): Update.
56898
56899         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56900         * modules/sys_stat (Files, Makefile.am): Update.
56901
56902 2007-04-27  Eric Blake  <ebb9@byu.net>
56903
56904         * lib/freading.h: Improve comments.
56905         * lib/fwriting.h: Likewise.
56906         * lib/fflush.c: Likewise.
56907
56908         Fix closein for mingw.
56909         * modules/closein-tests: Add tests for closein.
56910         * tests/test-closein.c: New file.
56911         * tests/test-closein.sh: Likewise.
56912         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56913         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56914
56915 2007-04-27  Bruno Haible  <bruno@clisp.org>
56916
56917         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56918         version is < 6.
56919         * lib/math_.h [__DECC]: Likewise.
56920         * lib/stdio_.h [__DECC]: Likewise.
56921         * lib/stdlib_.h [__DECC]: Likewise.
56922         * lib/string_.h [__DECC]: Likewise.
56923         * lib/time_.h [__DECC]: Likewise.
56924         * lib/wchar_.h [__DECC]: Likewise.
56925         * lib/wctype_.h [__DECC]: Likewise.
56926
56927 2007-04-27  Bruno Haible  <bruno@clisp.org>
56928
56929         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56930
56931 2007-04-27  Bruno Haible  <bruno@clisp.org>
56932
56933         * lib/fflush.c: Add comments.
56934         * modules/fpurge-tests (Depends-on): Add fflush.
56935         * modules/freadable-tests (Depends-on): Likewise.
56936         * modules/fwritable-tests (Depends-on): Likewise.
56937
56938 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56939
56940         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56941         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56942         Report by Bruno Haible <bruno@clisp.org>.
56943
56944 2007-04-26  Eric Blake  <ebb9@byu.net>
56945
56946         Fix fflush on mingw.
56947         * modules/fflush (Depends-on): Add freading.
56948         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56949         but unread data.
56950
56951 2007-04-26  Eric Blake  <ebb9@byu.net>
56952         and Bruno Haible  <bruno@clisp.org>
56953
56954         Implement freading and fwriting.
56955         * lib/freading.c: New file.
56956         * lib/freading.h: Likewise.
56957         * m4/freading.m4: Likewise.
56958         * modules/freading: Likewise.
56959         * modules/freading-tests: Likewise.
56960         * tests/test-freading.c: Likewise.
56961         * lib/fwriting.c: New file.
56962         * lib/fwriting.h: Likewise.
56963         * m4/fwriting.m4: Likewise.
56964         * modules/fwriting: Likewise.
56965         * modules/fwriting-tests: Likewise.
56966         * tests/test-fwriting.c: Likewise.
56967         * MODULES.html.sh (File stream based Input/Output): Mention them.
56968
56969 2007-04-26  Bruno Haible  <bruno@clisp.org>
56970
56971         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56972         'long' when we assume it.
56973         Suggested by Eric Blake.
56974
56975 2007-04-26  Bruno Haible  <bruno@clisp.org>
56976
56977         Ensure fseeko, ftello are declared on glibc systems.
56978         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56979         * modules/fseeko (configure.ac-early): Likewise.
56980         * modules/ftello (configure.ac-early): Likewise.
56981         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56982         AC_FUNC_FSEEKO for this.
56983         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56984         (gl_CHECK_FSEEKO): Remove macro.
56985
56986 2007-04-26  Bruno Haible  <bruno@clisp.org>
56987
56988         * tests/test-fflush.c (main): Also check the ftell result after
56989         fflush and fseek/fseeko.
56990         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56991         file descriptor position cache in the stream.
56992         * lib/fseeko.c (rpl_fseeko): Likewise.
56993
56994 2007-04-26  Bruno Haible  <bruno@clisp.org>
56995
56996         * modules/fflush-tests (Depends-on): Add fseeko.
56997
56998 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56999             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57000
57001         * lib/argz_.h: ensure error_t definition is obtained in same
57002         mechanism system argz.h would have.
57003         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57004         argz facilities are known bad.  Err on the side of caution if
57005         cross-compiling.
57006
57007 2007-04-25  Eric Blake  <ebb9@byu.net>
57008
57009         * lib/fpurge.c (includes): Use stdlib.h for free.
57010         * tests/test-fflush.c (main): Also test fflush-fseeko.
57011
57012 2007-04-25  Bruno Haible  <bruno@clisp.org>
57013
57014         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57015         * lib/fseeko.c: New file.
57016         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57017         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57018         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57019         gl_FUNC_FSEEKO.
57020         (gl_FUNC_FSEEKO): Invoke it.
57021         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57022         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57023         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57024
57025 2007-04-25  Bruno Haible  <bruno@clisp.org>
57026
57027         * modules/fflush (Depends-on): Add ftello.
57028
57029 2007-04-25  Bruno Haible  <bruno@clisp.org>
57030
57031         * modules/ftello-tests: New file.
57032         * tests/test-ftello.c: New file.
57033
57034         * modules/ftello: New file.
57035         * m4/ftello.m4: New file.
57036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57037         HAVE_FTELLO.
57038         * lib/stdio_.h (ftello): New declaration.
57039         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57040         HAVE_FTELLO.
57041
57042 2007-04-25  Bruno Haible  <bruno@clisp.org>
57043
57044         * modules/fseeko-tests: New file.
57045         * tests/test-fseeko.c: New file.
57046
57047         * modules/fseeko: New file.
57048         * m4/fseeko.m4: New file.
57049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57050         HAVE_FSEEKO.
57051         * lib/stdio_.h (fseeko): New declaration.
57052         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57053         HAVE_FSEEKO.
57054
57055 2007-04-25  Bruno Haible  <bruno@clisp.org>
57056
57057         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57058
57059 2007-04-25  Bruno Haible  <bruno@clisp.org>
57060
57061         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57062         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57063         * tests/test-unistd.c: Likewise.
57064         * tests/test-fcntl.c: Likewise.
57065
57066 2007-04-23  Eric Blake  <ebb9@byu.net>
57067
57068         * lib/fflush.c: Fix missing include.
57069         Reported by Bruno Haible.
57070
57071 2007-04-23  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57074         Reported by Eric Blake.
57075
57076 2007-04-23  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57079
57080 2007-04-23  Bruno Haible  <bruno@clisp.org>
57081
57082         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57083
57084 2007-04-23  Bruno Haible  <bruno@clisp.org>
57085
57086         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57087         Needed on HP-UX 11.
57088
57089 2007-04-16  Eric Blake  <ebb9@byu.net>
57090
57091         Make fflush rely on fpurge.
57092         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57093         open coding all variants.
57094         * modules/fflush (Depends-on): Add fpurge and unistd.
57095         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57096         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57097
57098         Fix --with-tests compilation on cygwin.
57099         * modules/argmatch-tests (Makefile.am): List gnulib library first
57100         in LDADD.
57101         * modules/argp-tests (Makefile.am): Likewise.
57102         * modules/array-list-tests (Makefile.am): Likewise.
57103         * modules/array-oset-tests (Makefile.am): Likewise.
57104         * modules/avltree-list-tests (Makefile.am): Likewise.
57105         * modules/avltree-oset-tests (Makefile.am): Likewise.
57106         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57107         * modules/carray-list-tests (Makefile.am): Likewise.
57108         * modules/dirname-tests (Makefile.am): Likewise.
57109         * modules/frexp-tests (Makefile.am): Likewise.
57110         * modules/isnanl-tests (Makefile.am): Likewise.
57111         * modules/linked-list-tests (Makefile.am): Likewise.
57112         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57113         * modules/lock-tests (Makefile.am): Likewise.
57114         * modules/rbtree-list-tests (Makefile.am): Likewise.
57115         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57116         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57117         * modules/tls-tests (Makefile.am): Likewise.
57118         * modules/tsearch-tests (Makefile.am): Likewise.
57119         * modules/xvasprintf-tests (Makefile.am): Likewise.
57120
57121         Fix fpurge for cygwin.
57122         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57123         value.
57124         * modules/fpurge-tests (Depends-on): Clean up trash.
57125
57126 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57127
57128         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57129
57130         * m4/autobuild.m4: Re-indent.
57131
57132 2007-04-13  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/fpurge-tests: New file.
57135         * tests/test-fpurge.c: New file.
57136
57137         * modules/fpurge: New file.
57138         * lib/fpurge.h: New file.
57139         * lib/fpurge.c: New file.
57140         * m4/fpurge.m4: New file.
57141
57142 2007-04-13  Bruno Haible  <bruno@clisp.org>
57143
57144         * modules/fbufmode-tests: New file.
57145         * tests/test-fbufmode.c: New file.
57146
57147         * modules/fbufmode: New file.
57148         * lib/fbufmode.h: New file.
57149         * lib/fbufmode.c: New file.
57150         * m4/fbufmode.m4: New file.
57151
57152 2007-04-13  Bruno Haible  <bruno@clisp.org>
57153
57154         * modules/fwritable-tests: New file.
57155         * tests/test-fwritable.c: New file.
57156
57157         * modules/fwritable: New file.
57158         * lib/fwritable.h: New file.
57159         * lib/fwritable.c: New file.
57160         * m4/fwritable.m4: New file.
57161
57162 2007-04-13  Bruno Haible  <bruno@clisp.org>
57163
57164         * modules/freadable-tests: New file.
57165         * tests/test-freadable.c: New file.
57166
57167         * modules/freadable: New file.
57168         * lib/freadable.h: New file.
57169         * lib/freadable.c: New file.
57170         * m4/freadable.m4: New file.
57171
57172 2007-04-13  Bruno Haible  <bruno@clisp.org>
57173
57174         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57175         MOSTLYCLEANFILES.
57176
57177 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57178
57179         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57180         gzip bootstrap.conf to avoid dragging in i18n machinery.
57181         (gnulib_tool_option): Use it.
57182
57183 2007-04-13  Bruno Haible  <bruno@clisp.org>
57184
57185         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57186         %F directives.
57187         * tests/test-vasprintf-posix.c (test_function): Likewise.
57188         * tests/test-snprintf-posix.h (test_function): Likewise.
57189         * tests/test-sprintf-posix.h (test_function): Likewise.
57190         * tests/test-fprintf-posix.h (test_function): Likewise.
57191         * tests/test-printf-posix.h (test_function): Likewise.
57192         * tests/test-fprintf-posix.out: Likewise.
57193
57194 2007-04-13  Bruno Haible  <bruno@clisp.org>
57195
57196         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57197         * modules/tls-tests (configure.ac): Likewise.
57198         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57199
57200 2007-04-13  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/tls.c (glthread_tls_get): Fix return type.
57203         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57204
57205 2007-04-12  Eric Blake  <ebb9@byu.net>
57206
57207         * modules/gettime (Depends-on): Remove gettime.
57208         Reported by Dmitry V. Levin.
57209
57210 2007-04-12  Bruno Haible  <bruno@clisp.org>
57211
57212         * modules/fflush (Include): Mention <stdio.h>.
57213         * modules/strtoimax (Include): Mention <inttypes.h>.
57214         * modules/strtoumax (Include): Likewise.
57215
57216 2007-04-12  Eric Blake  <ebb9@byu.net>
57217
57218         * .cvsignore: New file.
57219         * .gitignore: Likewise.
57220
57221 2007-04-12  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57224         not before, since $(LDADD) often contains libgnu.a.
57225         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57226         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57227         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57228         Needed on Cygwin.
57229
57230 2007-04-12  Eric Blake  <ebb9@byu.net>
57231
57232         Work around glibc's failure to flush stdin on fclose.
57233         * lib/closein.c (close_stdin): Flush stdin before closing.
57234
57235         Work around glibc's failure to reset seekable stdin on exit.
57236         * modules/closein: New module.
57237         * lib/closein.c: New file.
57238         * lib/closein.h: Likewise.
57239         * m4/closein.m4: Likewise.
57240         * MODULES.html.sh (File stream based Input/Output): Document it.
57241
57242 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57243
57244         * gnulib-tool: Rename generated 'autobuild' script to
57245         'do-autobuild' in --create-megatestdir output.
57246
57247         * doc/gnulib.texi (Build robot for gnulib): Fix.
57248
57249 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57250
57251         * modules/sysexits (Depends-on): Add absolute-header.
57252
57253 2007-04-12  Eric Blake  <ebb9@byu.net>
57254
57255         No need to preserve errno on success.
57256         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57257         Reported by Bruno Haible.
57258
57259 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57260
57261         * MODULES.html.sh (Support for maintaining and releasing
57262         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57263
57264 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57265
57266         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57267
57268 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57269
57270         * modules/autobuild: New module.
57271
57272         * m4/autobuild.m4: New file.
57273
57274 2007-04-11  Bruno Haible  <bruno@clisp.org>
57275
57276         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57277         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57281         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57282         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57283         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57284         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57285         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57286         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57287         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57288         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57289         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57290         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57291         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57293         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57294         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57295         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57296         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57297         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57299         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57300         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57301         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57302         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57303         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57304         Reported by Eric Blake.
57305
57306 2007-04-11  Bruno Haible  <bruno@clisp.org>
57307
57308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57309
57310 2007-04-10  Bruno Haible  <bruno@clisp.org>
57311
57312         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57313         for NaN and Infinity. Needed on FreeBSD 6.1.
57314         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57315         regarding results for "%010a" of Infinity and NaN.
57316         * tests/test-vasprintf-posix.c (test_function): Likewise.
57317         * tests/test-snprintf-posix.h (test_function): Likewise.
57318         * tests/test-sprintf-posix.h (test_function): Likewise.
57319         * tests/test-fprintf-posix.h (test_function): Likewise.
57320         * tests/test-printf-posix.h (test_function): Likewise.
57321         * tests/test-fprintf-posix.out: Likewise.
57322
57323 2007-04-10  Bruno Haible  <bruno@clisp.org>
57324
57325         * modules/locale-tests: New file.
57326         * tests/test-locale.c: New file.
57327
57328         * modules/locale: New file.
57329         * lib/locale_.h: New file.
57330         * m4/locale_h.m4: New file.
57331
57332 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57333             Bruno Haible  <bruno@clisp.org>
57334
57335         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57336         be determined, test for availability of the copysignf, copysign,
57337         copysignl functions.
57338         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57339         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57340         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57341
57342 2007-04-09  Eric Blake  <ebb9@byu.net>
57343
57344         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57345         * modules/stdio (Makefile.am): Support fflush.
57346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57347         * modules/fflush: New file.
57348         * lib/fflush.c: Likewise.
57349         * m4/fflush.m4: Likewise.
57350         * modules/fflush-tests: New test.
57351         * tests/test-fflush.c: Likewise.
57352         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57353
57354 2007-04-06  Bruno Haible  <bruno@clisp.org>
57355
57356         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57357         (VASNPRINTF): Use signbit for faster determination whether to print a
57358         minus sign.
57359         * modules/vasnprintf (Files): Remove lib/float+.h.
57360         * modules/fprintf-posix (Depends-on): Add signbit.
57361         * modules/snprintf-posix (Depends-on): Likewise.
57362         * modules/sprintf-posix (Depends-on): Likewise.
57363         * modules/vasnprintf-posix (Depends-on): Likewise.
57364         * modules/vasprintf-posix (Depends-on): Likewise.
57365         * modules/vfprintf-posix (Depends-on): Likewise.
57366         * modules/vsnprintf-posix (Depends-on): Likewise.
57367         * modules/vsprintf-posix (Depends-on): Likewise.
57368
57369 2007-04-06  Bruno Haible  <bruno@clisp.org>
57370
57371         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57372         * tests/test-frexpl.c (main): Likewise.
57373         * tests/test-ldexpl.c (main): Likewise.
57374         * modules/frexp-tests (Depends-on): Add signbit.
57375         * modules/frexpl-tests (Depdends-on): Likewise.
57376         * modules/ldexpl-tests (Depdends-on): Likewise.
57377
57378 2007-04-06  Bruno Haible  <bruno@clisp.org>
57379
57380         * modules/signbit-tests: New file.
57381         * tests/test-signbit.c: New file.
57382
57383         * modules/signbit: New file.
57384         * lib/signbitf.c: New file.
57385         * lib/signbitd.c: New file.
57386         * lib/signbitl.c: New file.
57387         * m4/signbit.m4: New file.
57388         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57389         (signbit): New macro.
57390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57391         REPLACE_SIGNBIT.
57392         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57393         REPLACE_FREXPL into math.h.
57394
57395 2007-04-06  Bruno Haible  <bruno@clisp.org>
57396
57397         * modules/isnanf-nolibm-tests: New file.
57398         * tests/test-isnanf.c: New file.
57399
57400         * modules/isnanf-nolibm: New file.
57401         * lib/isnanf.h: New file.
57402         * lib/isnanf.c: New file.
57403         * lib/isnan.c: Consider the USE_FLOAT macro.
57404         * m4/isnanf.m4: New file.
57405
57406 2007-04-06  Bruno Haible  <bruno@clisp.org>
57407
57408         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57409         (Link): New section.
57410
57411         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57412
57413 2007-04-06  Bruno Haible  <bruno@clisp.org>
57414
57415         Assume the 'long double' type.
57416         * m4/longdouble.m4: Remove file.
57417         * config/srclist.txt: Don't mention longdouble.m4.
57418         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57419         * lib/float+.h: Likewise.
57420         * lib/frexp.c: Likewise.
57421         * lib/printf-args.h: Likewise.
57422         * lib/printf-args.c: Likewise.
57423         * lib/printf-frexp.c: Likewise.
57424         * lib/printf-parse.c: Likewise.
57425         * lib/vasnprintf.c: Likewise.
57426         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57427         * m4/intl.m4: Likewise.
57428         * m4/isnanl.m4: Likewise.
57429         * m4/printf.m4: Likewise.
57430         * m4/printf-frexpl.m4: Likewise.
57431         * m4/vasnprintf.m4: Likewise.
57432         * modules/allocsa (Files): Remove m4/longdouble.m4.
57433         * modules/gettext (Files): Likewise.
57434         * modules/relocatable-prog-wrapper (Files): Likewise.
57435         * modules/vasnprintf (Files): Likewise.
57436         * modules/isnanl (Files): Likewise.
57437         (Include): Simplify.
57438         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57439         (Include): Simplify.
57440         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57441         (Include): Simplify.
57442         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57443         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57444         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57445         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57446         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57447         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57448         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57449         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57450         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57451         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57452         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57453         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57454         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57455         * tests/test-isnanl.c: Likewise.
57456         * tests/test-snprintf-posix.h: Likewise.
57457         * tests/test-sprintf-posix.h: Likewise.
57458         * tests/test-vasnprintf-posix.c: Likewise.
57459         * tests/test-vasnprintf-posix2.c: Likewise.
57460         * tests/test-vasprintf-posix.c: Likewise.
57461
57462 2007-04-06  Bruno Haible  <bruno@clisp.org>
57463
57464         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57465         * lib/math_.h [__DECC]: Include the overridden include file through
57466         #include_next, outside the double-inclusion guard.
57467         * lib/stdio_.h [__DECC]: Likewise.
57468         * lib/stdlib_.h [__DECC]: Likewise.
57469         * lib/string_.h [__DECC]: Likewise.
57470         * lib/time_.h [__DECC]: Likewise.
57471         * lib/wchar_.h [__DECC]: Likewise.
57472         * lib/wctype_.h [__DECC]: Likewise.
57473         * lib/inttypes_.h [__DECC]: Likewise.
57474         Reported by Albert Chin <china@thewrittenword.com> in
57475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57476
57477 2007-04-04  Eric Blake  <ebb9@byu.net>
57478
57479         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57480         1.5.x.
57481
57482 2007-04-04  Bruno Haible  <bruno@clisp.org>
57483
57484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57485         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57486
57487 2007-04-04  Bruno Haible  <bruno@clisp.org>
57488
57489         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57490         results for "%010a" of Infinity and NaN.
57491         * tests/test-vasprintf-posix.c (test_function): Likewise.
57492         * tests/test-snprintf-posix.h (test_function): Likewise.
57493         * tests/test-sprintf-posix.h (test_function): Likewise.
57494         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57495         * tests/test-printf-posix.h (test_function): Likewise.
57496         * tests/test-fprintf-posix.out: Update.
57497         Needed for FreeBSD 6.1.
57498
57499 2007-04-04  Bruno Haible  <bruno@clisp.org>
57500
57501         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57502         directly used by the gnulib modules nor by gnulib-tool.
57503
57504 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57505
57506         * DEPENDENCIES: Give overall description of version dependency
57507         desirability.  Use more-typical names for apps.
57508         Add shell, coreutils, diffutils, grep, tar, gzip.
57509
57510 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57511
57512         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57513
57514 2007-04-04  Karl Berry  <karl@gnu.org>
57515
57516         * MODULES.html.sh (func_module): missing '.
57517
57518 2007-04-03  Bruno Haible  <bruno@clisp.org>
57519
57520         * modules/argmatch-tests (Makefile.am): New variable
57521         test_argmatch_LDADD.
57522         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57523         * modules/array-list-tests (Makefile.am): New variable
57524         test_array_list_LDADD.
57525         * modules/array-oset-tests (Makefile.am): New variable
57526         test_array_oset_LDADD.
57527         * modules/avltree-list-tests (Makefile.am): New variable
57528         test_avltree_list_LDADD.
57529         * modules/avltree-oset-tests (Makefile.am): New variable
57530         test_avltree_oset_LDADD.
57531         * modules/avltreehash-list-tests (Makefile.am): New variable
57532         test_avltreehash_list_LDADD.
57533         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57534         test_canonicalize_lgpl_LDADD.
57535         * modules/carray-list-tests (Makefile.am): New variable
57536         test_carray_list_LDADD.
57537         * modules/dirname-tests (Makefile.am): New variable
57538         test_dirname_LDADD.
57539         * modules/linked-list-tests (Makefile.am): New variable
57540         test_linked_list_LDADD.
57541         * modules/linkedhash-list-tests (Makefile.am): New variable
57542         test_linkedhash_list_LDADD.
57543         * modules/rbtree-list-tests (Makefile.am): New variable
57544         test_rbtree_list_LDADD.
57545         * modules/rbtree-oset-tests (Makefile.am): New variable
57546         test_rbtree_oset_LDADD.
57547         * modules/rbtreehash-list-tests (Makefile.am): New variable
57548         test_rbtreehash_list_LDADD.
57549         * modules/xvasprintf-tests (Makefile.am): New variable
57550         test_xvasprintf_LDADD.
57551         Reported by Eric Blake.
57552
57553 2007-04-03  Eric Blake  <ebb9@byu.net>
57554
57555         * DEPENDENCIES: Weaken m4 requirements.
57556
57557 2007-04-03  Bruno Haible  <bruno@clisp.org>
57558
57559         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57560         * modules/isnanl-tests (configure.ac): Likewise.
57561
57562 2007-04-03  Ben Pfaff  <blp@gnu.org>
57563
57564         * modules/iconv_open: Add $(srcdir)/ to source directory
57565         references in Makefile fragments that call gperf, to fix VPATH
57566         builds.
57567
57568 2007-04-03  Bruno Haible  <bruno@clisp.org>
57569
57570         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57571         * lib/ldexpl.c: Undo last change.
57572
57573 2007-04-03  Bruno Haible  <bruno@clisp.org>
57574
57575         * modules/printf-frexpl (Depends-on): Undo last change.
57576         (Files): Add m4/ldexpl.m4.
57577
57578 2007-04-03  Bruno Haible  <bruno@clisp.org>
57579
57580         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57581         * modules/isnanl (Link): New section.
57582
57583         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57584         * modules/frexp (Link): New section.
57585
57586         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57587         * modules/frexpl (Link): New section.
57588
57589         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57590         * modules/ldexpl (Link): New section.
57591
57592 2007-04-03  Bruno Haible  <bruno@clisp.org>
57593
57594         * modules/TEMPLATE-EXTENDED: New file.
57595         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57596
57597 2007-04-03  Bruno Haible  <bruno@clisp.org>
57598
57599         * DEPENDENCIES: New file.
57600         Suggested by Simon Josefsson.
57601
57602 2007-04-03  Bruno Haible  <bruno@clisp.org>
57603
57604         * doc/gnulib.texi: Escape @.
57605
57606 2007-04-03  James Youngman  <jay@gnu.org>
57607         and Paul Eggert  <eggert@cs.ucla.edu>
57608
57609         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57610         birthtime on all systems that have birthtime, not just those which
57611         use st_birthtimensec rather than st_birthtim.  Putting zero in
57612         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57613         that the birth time is not available for files on an NFS mount.
57614
57615 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57616
57617         * modules/memxor: Move back from crypto/, suggested by Bruno.
57618         * modules/crypto/hmac-sha1: Fix memxor dependency.
57619
57620         * modules/crypto/gc: Moved from ../.
57621
57622 2007-04-02  Eric Blake  <ebb9@byu.net>
57623
57624         * lib/ldexpl.c (includes): Avoid libm.
57625
57626         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57627
57628 2007-04-02  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57631         on IRIX.
57632
57633 2007-04-02  Bruno Haible  <bruno@clisp.org>
57634
57635         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57636         x86 or x86_64 platforms running MacOS X.
57637         Reported by Ryan Schmidt <@ryandesign.com>.
57638
57639 2007-04-02  Bruno Haible  <bruno@clisp.org>
57640
57641         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57642         i386.
57643
57644 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57645
57646         * modules/crypto/arcfour: Moved from ../.
57647         * modules/crypto/arcfour-tests: Moved from ../.
57648         * modules/crypto/arctwo: Moved from ../.
57649         * modules/crypto/arctwo-tests: Moved from ../.
57650         * modules/crypto/des: Moved from ../.
57651         * modules/crypto/des-tests: Moved from ../.
57652         * modules/crypto/gc-arcfour: Moved from ../.
57653         * modules/crypto/gc-arcfour-tests: Moved from ../.
57654         * modules/crypto/gc-arctwo: Moved from ../.
57655         * modules/crypto/gc-arctwo-tests: Moved from ../.
57656         * modules/crypto/gc-des: Moved from ../.
57657         * modules/crypto/gc-des-tests: Moved from ../.
57658         * modules/crypto/gc-hmac-md5: Moved from ../.
57659         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57660         * modules/crypto/gc-hmac-sha1: Moved from ../.
57661         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57662         * modules/crypto/gc-md2: Moved from ../.
57663         * modules/crypto/gc-md2-tests: Moved from ../.
57664         * modules/crypto/gc-md4: Moved from ../.
57665         * modules/crypto/gc-md4-tests: Moved from ../.
57666         * modules/crypto/gc-md5: Moved from ../.
57667         * modules/crypto/gc-md5-tests: Moved from ../.
57668         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57669         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57670         * modules/crypto/gc-random: Moved from ../.
57671         * modules/crypto/gc-rijndael: Moved from ../.
57672         * modules/crypto/gc-rijndael-tests: Moved from ../.
57673         * modules/crypto/gc-sha1: Moved from ../.
57674         * modules/crypto/gc-sha1-tests: Moved from ../.
57675         * modules/crypto/gc-tests: Moved from ../.
57676         * modules/crypto/hmac-md5: Moved from ../.
57677         * modules/crypto/hmac-md5-tests: Moved from ../.
57678         * modules/crypto/hmac-sha1: Moved from ../.
57679         * modules/crypto/hmac-sha1-tests: Moved from ../.
57680         * modules/crypto/md2: Moved from ../.
57681         * modules/crypto/md2-tests: Moved from ../.
57682         * modules/crypto/md4: Moved from ../.
57683         * modules/crypto/md4-tests: Moved from ../.
57684         * modules/crypto/md5: Moved from ../.
57685         * modules/crypto/md5-tests: Moved from ../.
57686         * modules/crypto/memxor: Moved from ../.
57687         * modules/crypto/rijndael: Moved from ../.
57688         * modules/crypto/rijndael-tests: Moved from ../.
57689         * modules/crypto/sha1: Moved from ../.
57690
57691 2007-03-30  James Youngman  <jay@gnu.org>
57692
57693         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57694         rename() to change the ctime of a file (because ctime is unaffected
57695         by rename on jfs2 on AIX 5.1).
57696         (main): Start by doing cleanup, in case a previous run failed leaving
57697         test files behind.
57698
57699 2007-03-31  Bruno Haible  <bruno@clisp.org>
57700
57701         Support old proprietary implementations of iconv.
57702         * modules/iconv_open: New file.
57703         * lib/iconv_.h: New file.
57704         * m4/iconv_h.m4: New file.
57705         * lib/iconv_open.c: New file.
57706         * lib/iconv_open-aix.gperf: New file.
57707         * lib/iconv_open-hpux.gperf: New file.
57708         * lib/iconv_open-irix.gperf: New file.
57709         * lib/iconv_open-osf.gperf: New file.
57710         * m4/iconv_open.m4: New file.
57711         * modules/linebreak (Depends-on): Add iconv_open.
57712         * modules/striconv (Depends-on): Likewise.
57713         * modules/striconveh (Depends-on): Likewise.
57714         * modules/unicodeio (Depends-on): Likewise.
57715         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57716         (iconv_t)(-1).
57717         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57718         conversion if cd is (iconv_t)(-1).
57719         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57720         is not possible.
57721
57722 2007-03-31  Bruno Haible  <bruno@clisp.org>
57723
57724         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57725         work on Solaris either. Protect also second use of "autodetect_jp".
57726
57727 2007-03-31  Bruno Haible  <bruno@clisp.org>
57728
57729         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57730         the function is not present.
57731
57732 2007-03-31  Bruno Haible  <bruno@clisp.org>
57733
57734         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57735         the function is not present.
57736
57737 2007-03-31  Bruno Haible  <bruno@clisp.org>
57738
57739         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57740         a bug in HP-UX iconv_open().
57741
57742 2007-03-31  Bruno Haible  <bruno@clisp.org>
57743
57744         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57745         (Mathematics <math.h>): New section, add fpieee.
57746         (Input/output <stdio.h>): Add fseterr.
57747         (Mathematics <math.h>): New section, add printf-frexp.
57748         (Container data structures): Add sublist.
57749         (Core language properties): Add fpucw, inline.
57750         (Functions for greatest-width integer types <inttypes.h>): Add
57751         imaxabs, imaxdiv, inttypes.
57752         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57753         isnanl-nolibm, ldexp.
57754         (Mathematics <math.h>): New section, add printf-frexpl.
57755         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57756         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57757         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57758         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57759         (Unicode string functions): Add unistr/u*-mbtoucr.
57760         (Java): Add javacomp-script, javaexec-script.
57761         (C#): Add csharpcomp-script, csharpexec-script.
57762         (Support for building libraries and executables): Add havelib,
57763         relocatable-*.
57764         (Support for maintaining and releasing projects): Renamed from
57765         'Support for maintaining and release projects'. Add announce-gen.
57766
57767 2007-03-31  Bruno Haible  <bruno@clisp.org>
57768
57769         * README: Talk primarily about git.
57770         (git and CVS): Renamed from CVS.
57771         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57772         gnulib is available through git.
57773         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57774
57775 2007-03-30  Bruno Haible  <bruno@clisp.org>
57776
57777         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57778         * lib/poll_.h: Likewise.
57779         * lib/stat_.h: Likewise.
57780         * lib/sys_time_.h: Likewise.
57781         * lib/sysexit_.h: Likewise.
57782         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57783         * lib/stdbool_.h: Likewise.
57784         * lib/byteswap_.h: Add double-inclusion guard.
57785
57786 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57787
57788         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57789
57790 2007-03-30  Karl Berry  <karl@gnu.org>
57791
57792         * config/srclist-update: double space after USA in the license
57793         substitution, since that's how it's usually (?) written.
57794
57795 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57796
57797         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57798         reported by Bruno Haible.
57799
57800 2007-03-29  Bruno Haible  <bruno@clisp.org>
57801
57802         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57803         a bug in AIX iconv().
57804
57805 2007-03-29  Bruno Haible  <bruno@clisp.org>
57806
57807         * modules/ldexpl-tests: New file.
57808         * tests/test-ldexpl.c: New file.
57809
57810 2007-03-29  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/ldexpl.c: Include fpucw.h.
57813         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57814         multiplication.
57815         * modules/ldexpl (Depends-on): Add fpucw.
57816
57817 2007-03-29  Bruno Haible  <bruno@clisp.org>
57818
57819         * modules/ldexpl: New file.
57820         * m4/ldexpl.m4: New file.
57821         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57822         set.
57823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57824         REPLACE_LDEXPL.
57825         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57826         REPLACE_LDEXPL.
57827         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57828         gl_FUNC_LDEXPL_WORKS.
57829         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57830         * modules/mathl (Files): Remove lib/ldexpl.c.
57831         (Depends-on): Add ldexpl.
57832
57833 2007-03-29  Bruno Haible  <bruno@clisp.org>
57834
57835         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57836
57837 2007-03-29  Bruno Haible  <bruno@clisp.org>
57838
57839         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57840         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57841         and possibly also HP-UX.
57842         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57843         work on AIX, IRIX, HP-UX, OSF/1.
57844         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57845         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57846         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57847         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57848         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57849         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57850
57851 2007-03-29  Bruno Haible  <bruno@clisp.org>
57852
57853         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57854
57855 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57856
57857         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57858         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57859
57860 2007-03-29  Eric Blake  <ebb9@byu.net>
57861
57862         * lib/acl-internal.h: Remove redundant include.
57863         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57864         Cygwin when a file is locked.
57865
57866 2007-03-29  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57869         file.
57870         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57871
57872 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57873
57874         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57875         try to remove a parent directory if the child couldn't be removed
57876         (except for the first rmdir, which could fail because the child
57877         doesn't exist).  Problem reported by Jeff Blaine in
57878         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57879
57880 2007-03-28  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/striconveh.c (utf8conv_carefully): New function.
57883         (mem_cd_iconveh_internal): Invoke it.
57884
57885 2007-03-28  Bruno Haible  <bruno@clisp.org>
57886
57887         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57888         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57889         input.
57890         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57891         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57892         unistr/u8-uctomb.
57893
57894 2007-03-28  Bruno Haible  <bruno@clisp.org>
57895
57896         * modules/unistr/u8-mbtoucr: New file.
57897         * lib/unistr/u8-mbtoucr.c: New file.
57898         * modules/unistr/u16-mbtoucr: New file.
57899         * lib/unistr/u16-mbtoucr.c: New file.
57900         * modules/unistr/u16-mbtoucr: New file.
57901         * lib/unistr/u16-mbtoucr.c: New file.
57902         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57903
57904 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57905             Bruno Haible  <bruno@clisp.org>
57906
57907         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57908         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57909         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57910
57911         * m4/stdio_h.m4: Add stubs for vasprintf too.
57912
57913         * modules/stdio: Support vasprintf in sed command.
57914
57915         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57916         vasprintf.h.  Add stdio module indicator.
57917
57918         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57919         vasprintf.h.
57920
57921         * lib/vasprintf.h: File removed.
57922
57923         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57924         * lib/vasprintf.c: Ditto.
57925         * lib/xvasprintf.c: Ditto.
57926         * tests/test-vasprintf-posix.c: Ditto.
57927         * tests/test-vasprintf.c: Ditto.
57928
57929 2007-03-27  Bruno Haible  <bruno@clisp.org>
57930
57931         Make vasnprintf multithread-safe.
57932         * lib/vasnprintf.c (decimal_point_char): New function.
57933         (VASNPRINTF): Use it.
57934         Suggested by Simon Josefsson.
57935
57936 2007-03-27  Eric Blake  <ebb9@byu.net>
57937
57938         Support sub-second birthtime on cygwin.
57939         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57940         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57941         (get_stat_birthtime): Also work with st_birthtim.
57942
57943 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57944
57945         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57946         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57947         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57948         (get_stat_birthtime_ns): Simplify compile-time tests.
57949         (get_stat_birthtime): Change the API to look like
57950         get_stat_mtime etc., except return a negative tv_nsec on error.
57951         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57952         Don't check for "spare" fields.
57953         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57954         or for struct stat.st_birthtime, as these tests aren't used.
57955         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57956
57957 2007-03-27  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/stat-time.h: Include <sys/stat.h>.
57960
57961 2007-03-27  James Youngman  <jay@gnu.org>
57962
57963         * lib/stat-time.h (get_stat_birthtime): New function for
57964           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57965         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57966           and its variants.
57967         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57968         * modules/stat-time-test: New file.
57969         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57970
57971 2007-03-26  Bruno Haible  <bruno@clisp.org>
57972
57973         Better support of signalling NaNs.
57974         * lib/atanl.c: Include isnanl.h.
57975         (atanl): Perform test for NaN at the beginning of the function and
57976         through a call to isnanl.
57977         * lib/cosl.c: Include isnanl.h.
57978         (cosl): Perform test for NaN at the beginning of the function and
57979         through a call to isnanl.
57980         * lib/ldexpl.c: Include isnanl.h.
57981         (ldexpl): Perform test for NaN through a call to isnanl.
57982         * lib/logl.c: Include isnanl.h.
57983         (logl): Perform test for NaN at the beginning of the function and
57984         through a call to isnanl.
57985         * lib/sinl.c: Include isnanl.h.
57986         (sinl): Perform test for NaN at the beginning of the function and
57987         through a call to isnanl.
57988         * lib/sqrtl.c: Include isnanl.h.
57989         (sqrtl): Perform test for NaN at the beginning of the function and
57990         through a call to isnanl.
57991         * lib/tanl.c: Include isnanl.h.
57992         (tanl): Perform test for NaN at the beginning of the function and
57993         through a call to isnanl.
57994         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57995         * modules/mathl (Depends-on): Add isnanl.
57996
57997 2007-03-26  Eric Blake  <ebb9@byu.net>
57998
57999         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58000         regression in logic sense of previous patch.
58001
58002 2007-03-26  Bruno Haible  <bruno@clisp.org>
58003
58004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58005         unportable shell command "if ! ...".
58006         Reported by Ralf Wildenhues.
58007
58008 2007-03-25  Bruno Haible  <bruno@clisp.org>
58009
58010         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58011         <sysexits.h> file, and only add EX_CONFIG.
58012         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58013         absolute file name and whether it is sufficient. Substitute also
58014         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58015         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58016         ABSOLUTE_SYSEXITS_H into sysexits.h.
58017
58018 2007-03-25  Bruno Haible  <bruno@clisp.org>
58019
58020         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58021         hints is NULL.
58022
58023 2007-03-25  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58026         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58027
58028 2007-03-25  Bruno Haible  <bruno@clisp.org>
58029
58030         * lib/vasnprintf.c: Include langinfo.h.
58031         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58032         multithread-safe.
58033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58034         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58036         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58037         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58039         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58040         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58042         Reported by Simon Josefsson.
58043
58044 2007-03-25  Bruno Haible  <bruno@clisp.org>
58045
58046         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58047         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58048         * modules/vasnprintf (Depends-on): Add stdint.
58049
58050 2007-03-25  Bruno Haible  <bruno@clisp.org>
58051
58052         * modules/fpieee: New file.
58053         * m4/fpieee.m4: New file.
58054         * modules/isnan-nolibm (Depends-on): Add fpieee.
58055         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58056         * modules/isnanl (Depends-on): Add fpieee.
58057
58058 2007-03-25  Bruno Haible  <bruno@clisp.org>
58059
58060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58061
58062 2007-03-25  Bruno Haible  <bruno@clisp.org>
58063
58064         Avoid test failures on IRIX 6.5.
58065         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58066         (main): Use it.
58067         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58068         macros.
58069         (main): Use them.
58070
58071 2007-03-25  Bruno Haible  <bruno@clisp.org>
58072
58073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58074         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58075         exists but doesn't work.
58076         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58077         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58079         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58080         math.h.
58081
58082 2007-03-25  Bruno Haible  <bruno@clisp.org>
58083
58084         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58085         returns inf. Needed on IRIX 6.5.
58086
58087 2007-03-25  Bruno Haible  <bruno@clisp.org>
58088
58089         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58090         (main): Use isnanl instead of x != x idiom.
58091         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58092
58093         * tests/test-frexp.c: Include isnan.h.
58094         (main): Use isnan instead of x != x idiom.
58095         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58096
58097 2007-03-25  Bruno Haible  <bruno@clisp.org>
58098
58099         * tests/test-frexp.c (NaN): New function/macro.
58100         (main): Use it instead of 0.0 / 0.0.
58101         * tests/test-isnan.c (NaN): New function/macro.
58102         (main): Use it instead of 0.0 / 0.0.
58103         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58104         (test_function): Use it instead of 0.0 / 0.0.
58105         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58106         (test_function): Use it instead of 0.0 / 0.0.
58107         * tests/test-snprintf-posix.h (NaN): New function/macro.
58108         (test_function): Use it instead of 0.0 / 0.0.
58109         * tests/test-sprintf-posix.h (NaN): New function/macro.
58110         (test_function): Use it instead of 0.0 / 0.0.
58111         * tests/test-fprintf-posix.h (NaN): New function/macro.
58112         (test_function): Use it instead of 0.0 / 0.0.
58113         * tests/test-printf-posix.h (NaN): New function/macro.
58114         (test_function): Use it instead of 0.0 / 0.0.
58115
58116         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58117
58118 2007-03-25  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58121
58122 2007-03-25  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/regexec.c (merge_state_with_log): Make static.
58125
58126 2007-03-25  Bruno Haible  <bruno@clisp.org>
58127
58128         * lib/trigl.c (kernel_rem_pio2): Make static.
58129
58130 2007-03-25  Bruno Haible  <bruno@clisp.org>
58131
58132         * lib/sincosl.c (sincosl_table): Make static.
58133
58134 2007-03-25  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58137         if the compiler does not support C99.
58138
58139 2007-03-25  Bruno Haible  <bruno@clisp.org>
58140
58141         * modules/time (Makefile.am): Ensure all rule action lines start with a
58142         tab.
58143
58144 2007-03-24  Bruno Haible  <bruno@clisp.org>
58145
58146         * modules/tsearch-tests: New file.
58147         * tests/test-tsearch.sh: New file.
58148         * tests/test-tsearch.c: New file, mostly copied from glibc.
58149
58150         * modules/search-tests: New file.
58151         * tests/test-search.c: New file.
58152
58153         * modules/search: New file.
58154         * lib/search_.h: New file, incorporating lib/tsearch.h.
58155         * m4/search_h.m4: New file.
58156         * lib/tsearch.h: Remove file.
58157         * lib/tsearch.c: Include search.h instead of tsearch.h.
58158         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58159         HAVE_TSEARCH.
58160         * modules/tsearch (Files): Remove lib/tsearch.h.
58161         (Depends-on): Add search.
58162         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58163         (Include): Change tsearch.h into search.h.
58164
58165 2007-03-24  Bruno Haible  <bruno@clisp.org>
58166
58167         * modules/fpucw: New file.
58168         * lib/fpucw.h: New file.
58169         * lib/frexp.c: Include fpucw.h.
58170         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58171         (FUNC): Use them.
58172         * lib/printf-frexp.c: Include fpucw.h.
58173         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58174         (FUNC): Use them.
58175         * lib/vasnprintf.c: Include fpucw.h.
58176         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58177         'long double' calculations.
58178         * tests/test-frexpl.c: Include fpucw.h.
58179         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58180         * tests/test-printf-frexpl.c: Include fpucw.h.
58181         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58182         * modules/frexpl (Depends-on): Add fpucw.
58183         * modules/printf-frexpl (Depends-on): Likewise.
58184         * modules/fprintf-posix (Depends-on): Likewise.
58185         * modules/snprintf-posix (Depends-on): Likewise.
58186         * modules/sprintf-posix (Depends-on): Likewise.
58187         * modules/vasnprintf-posix (Depends-on): Likewise.
58188         * modules/vasprintf-posix (Depends-on): Likewise.
58189         * modules/vfprintf-posix (Depends-on): Likewise.
58190         * modules/vsnprintf-posix (Depends-on): Likewise.
58191         * modules/vsprintf-posix (Depends-on): Likewise.
58192         * modules/frexpl-tests (Depends-on): Likewise.
58193         * modules/printf-frexpl-tests (Depends-on): Likewise.
58194
58195 2007-03-24  Bruno Haible  <bruno@clisp.org>
58196
58197         * lib/float+.h: New file.
58198         * lib/isnan.c: Include float+.h.
58199         (SIZE): New macro.
58200         (FUNC): Compare only SIZE bytes of the value.
58201         * lib/vasnprintf.c: Include float+.h.
58202         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58203         SIZEOF_LDBL or SIZEOF_DBL bytes.
58204         * modules/isnan-nolibm (Files): Add lib/float+.h.
58205         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58206         * modules/isnanl (Files): Add lib/float+.h.
58207         * modules/vasnprintf (Files): Add lib/float+.h.
58208
58209 2007-03-24  Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58212         include isnanl-nolibm.h.
58213
58214 2007-03-24  Bruno Haible  <bruno@clisp.org>
58215
58216         * tests/test-read-file.c (main): Don't produce spurious output for
58217         expected situations. Make the test fail if it encountered unexpected
58218         results.
58219
58220 2007-03-24  Bruno Haible  <bruno@clisp.org>
58221
58222         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58223         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58224
58225 2007-03-24  Bruno Haible  <bruno@clisp.org>
58226
58227         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58228
58229 2007-03-24  Bruno Haible  <bruno@clisp.org>
58230
58231         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58232         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58233
58234         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58235         * modules/utf8-ucs4: Turn into a symbolic link to module
58236         unistr/u8-mbtouc.
58237
58238         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58239         utf8-ucs4-unsafe.
58240         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58241         unistr/u8-mbtouc-unsafe.
58242
58243         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58244         * modules/utf16-ucs4: Turn into a symbolic link to module
58245         unistr/u16-mbtouc.
58246
58247         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58248         utf16-ucs4-unsafe.
58249         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58250         unistr/u16-mbtouc-unsafe.
58251
58252         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58253         * modules/ucs4-utf8: Turn into a symbolic link to module
58254         unistr/u8-ubtomb.
58255
58256         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58257         * modules/ucs4-utf16: Turn into a symbolic link to module
58258         unistr/u16-ubtomb.
58259
58260 2007-03-24  Bruno Haible  <bruno@clisp.org>
58261
58262         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58263         Enable the function only if HAVE_INLINE.
58264         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58265         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58266         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58267         Enable the function only if HAVE_INLINE.
58268         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58269         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58270         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58271         Enable the function only if HAVE_INLINE.
58272         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58273         Enable the function only if HAVE_INLINE.
58274         * modules/utf8-ucs4: Update.
58275         * modules/utf8-ucs4-unsafe: Update.
58276         * modules/utf16-ucs4: Update.
58277         * modules/utf16-ucs4-unsafe: Update.
58278         * modules/ucs4-utf8: Update.
58279         * modules/ucs4-utf16: Update.
58280
58281 2007-03-24  Bruno Haible  <bruno@clisp.org>
58282
58283         * lib/utf8-ucs4.h: Remove file.
58284         * lib/utf8-ucs4-unsafe.h: Remove file.
58285         * lib/utf16-ucs4.h: Remove file.
58286         * lib/utf16-ucs4-unsafe.h: Remove file.
58287         * lib/ucs4-utf8.h: Remove file.
58288         * lib/ucs4-utf16.h: Remove file.
58289         * lib/unistr.h: Include their previous contents.
58290         * m4/utf-ucs4.m4: Remove file.
58291         * m4/ucs4-utf.m4: Remove file.
58292         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58293         (Depends-on): Add unistr/base.
58294         (configure.ac): Remove gl_UTF_UCS4.
58295         (Makefile.am): Update.
58296         (Include): Change to unistr.h.
58297         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58298         (Depends-on): Add unistr/base.
58299         (configure.ac): Remove gl_UTF_UCS4.
58300         (Makefile.am): Update.
58301         (Include): Change to unistr.h.
58302         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58303         (Depends-on): Add unistr/base.
58304         (configure.ac): Remove gl_UTF_UCS4.
58305         (Makefile.am): Update.
58306         (Include): Change to unistr.h.
58307         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58308         (Depends-on): Add unistr/base.
58309         (configure.ac): Remove gl_UTF_UCS4.
58310         (Makefile.am): Update.
58311         (Include): Change to unistr.h.
58312         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58313         (Depends-on): Add unistr/base.
58314         (configure.ac): Remove gl_UCS4_UTF.
58315         (Makefile.am): Update.
58316         (Include): Change to unistr.h.
58317         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58318         (Depends-on): Add unistr/base.
58319         (configure.ac): Remove gl_UCS4_UTF.
58320         (Makefile.am): Update.
58321         (Include): Change to unistr.h.
58322         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58323         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58324         utf8-ucs4-unsafe.h.
58325         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58326         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58327         utf16-ucs4-unsafe.h.
58328         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58329         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58330         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58331         * lib/unistr/u8-strchr.c: Likewise.
58332         * lib/unistr/u8-strrchr.c: Likewise.
58333         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58334         * lib/unistr/u16-strchr.c: Likewise.
58335         * lib/unistr/u16-strrchr.c: Likewise.
58336         * lib/striconveh.c: Update.
58337         * lib/linebreak.c: Update.
58338
58339 2007-03-24  Bruno Haible  <bruno@clisp.org>
58340
58341         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58342         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58343
58344 2007-03-22  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58347
58348 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * MODULES.html.sh (File system functions): New module write-any-file.
58351         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58352         * m4/write-any-file.m4: New files.
58353
58354 2007-03-23  Eric Blake  <ebb9@byu.net>
58355
58356         * gnulib-tool: Rearrange space-tab sequences, since some editors
58357         like to eat them.
58358
58359 2007-03-23  Eric Blake  <ebb9@byu.net>
58360
58361         * lib/version-etc.c (version_etc_va): Update license wording to
58362         be more concise.  Recommended by Richard Stallman.
58363
58364 2007-03-22  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/poll.c (MSG_PEEK): New fallback definition.
58367
58368 2007-03-22  Bruno Haible  <bruno@clisp.org>
58369
58370         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58371         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58372         (main): Update.
58373         Fixes a compilation error on BeOS.
58374
58375 2007-03-22  Bruno Haible  <bruno@clisp.org>
58376
58377         * modules/frexpl-tests: New file.
58378         * tests/test-frexpl.c: New file.
58379
58380         * modules/frexpl: New file.
58381         * m4/frexpl.m4: New file.
58382         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58383         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58385         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58386         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58387         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58388
58389 2007-03-22  Bruno Haible  <bruno@clisp.org>
58390
58391         * lib/frexpl.c: Share code with lib/frexp.c.
58392         * modules/mathl (Files): Add lib/frexp.c.
58393         (Depends-on): Add isnanl-nolibm.
58394
58395 2007-03-22  Bruno Haible  <bruno@clisp.org>
58396
58397         * modules/printf-frexp (Files): Add m4/frexp.m4.
58398         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58399         only if the found frexp function actually works.
58400
58401 2007-03-22  Bruno Haible  <bruno@clisp.org>
58402
58403         * lib/frexp.c: Remove older implementation that uses divisions.
58404
58405 2007-03-21  Bruno Haible  <bruno@clisp.org>
58406
58407         * modules/frexp-tests: New file.
58408         * tests/test-frexp.c: New file.
58409
58410         * modules/frexp: New file.
58411         * lib/frexp.c: New file.
58412         * m4/frexp.m4: New file.
58413         * lib/math_.h (frexp): New declaration.
58414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58415         REPLACE_FREXP.
58416         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58417
58418 2007-03-21  Bruno Haible  <bruno@clisp.org>
58419
58420         * modules/isnanl-tests: New file.
58421         * tests/test-isnanl.c: New file.
58422
58423         * modules/isnanl: New file.
58424         * lib/isnanl.h: New file.
58425         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58426         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58427         gl_FUNC_ISNANL_WORKS.
58428         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58429         New macros.
58430
58431 2007-03-21  Bruno Haible  <bruno@clisp.org>
58432
58433         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58434         lib/isnanl.h.
58435         (Include): Update.
58436         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58437         * lib/vasnprintf.c: Update.
58438         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58439         tests/test-isnanl.h, remove tests/test-isnanl.c.
58440         (Makefile.am): Update.
58441         * tests/test-isnanl-nolibm.c: New file.
58442         * tests/test-isnanl.h: New file.
58443         * tests/test-isnanl.c: Remove file.
58444
58445 2007-03-21  Jim Meyering  <jim@meyering.net>
58446
58447         When trying to open ".", treat ESTALE like EACCES.
58448         * lib/savewd.c (savewd_save): Resort to forking not just upon
58449         failure with EACCES, but also when errno is ESTALE.
58450
58451 2007-03-20  Bruno Haible  <bruno@clisp.org>
58452
58453         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58454         Needed on AIX 5.1. Reported by Matthew Woehlke.
58455
58456 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         Suggestions by Bruno Haible:
58459         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58460         our own.
58461         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58462         * modules/acl (Depends-on): Add gettext.
58463
58464 2007-03-19  Bruno Haible  <bruno@clisp.org>
58465
58466         * modules/iconvme: Remove file.
58467         * lib/iconvme.h: Remove file.
58468         * lib/iconvme.c: Remove file.
58469         * m4/iconvme.m4: Remove file.
58470
58471 2007-03-19  Bruno Haible  <bruno@clisp.org>
58472
58473         * doc/relocatable-maint.texi: Break long shell script line.
58474         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58475
58476 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58477
58478         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58479         handle file_has_acl.
58480         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58481         * lib/acl.c: Move header inclusions and related macro defns into
58482         lib/acl-internal.h.
58483         (S_ISLNK): Remove defn, since that's now done for us.
58484         (file_has_acl): Move to lib/file-has-acl.c.
58485         Call acl_trivial if available.  This is the crucial part of the fix.
58486         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58487         shared within the library.  Rewrite a bit, partly to make it compatible
58488         with the GNU coding style.
58489         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58490         Remove unnecessary double-quotes.
58491         Don't test for acl_to_text; the build will catch that.
58492         Replace acl_entries if it doesn't exist and it is needed.
58493         Check for -lsec and acl_trivial (as used on Solaris 10).
58494         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58495         lib/file-has-acl.c.
58496         (Depends-on): Add sys_stat, for S_ISLNK.
58497
58498 2007-03-19  Ben Pfaff  <blp@gnu.org>
58499
58500         * doc/gnulib.texi: Fix typos.
58501         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58502
58503 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58504
58505         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58506         If size is zero here, buf must be zero.
58507
58508 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58509
58510         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58511         <bruno@clisp.org>.
58512
58513 2007-03-18  Bruno Haible  <bruno@clisp.org>
58514
58515         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58516         Suggested by Eric Blake.
58517
58518 2007-03-18  Ben Pfaff  <blp@gnu.org>
58519
58520         * doc/relocatable.texi: Recommend using as prefix a directory
58521         that does not exist and will never be created.  Based on
58522         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58523         and others.
58524
58525 2007-03-17  Bruno Haible  <bruno@clisp.org>
58526
58527         * lib/fchownat.c: Include lchown.h.
58528
58529 2007-03-17  Bruno Haible  <bruno@clisp.org>
58530
58531         Fix endless loop when the given allocated size was > INT_MAX.
58532         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58533         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58534         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58535         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58536         * lib/sprintf.c (sprintf): Likewise.
58537
58538 2007-03-17  Bruno Haible  <bruno@clisp.org>
58539
58540         * tests/test-argp-2.sh (func_compare): Output a context diff.
58541
58542 2007-03-17  Bruno Haible  <bruno@clisp.org>
58543
58544         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58545         locale's decimal-point character.
58546
58547 2007-03-17  Bruno Haible  <bruno@clisp.org>
58548
58549         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58550         before comparing it. Needed because on some platforms (e.g. x86) a
58551         'long double' occupies less bytes than sizeof (long double).
58552
58553 2007-03-17  Bruno Haible  <bruno@clisp.org>
58554
58555         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58556         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58557         * tests/test-getaddrinfo.c (simple): Likewise.
58558         * tests/test-read-file.c (main): Likewise.
58559
58560 2007-03-17  Bruno Haible  <bruno@clisp.org>
58561
58562         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58563
58564 2007-03-17  Bruno Haible  <bruno@clisp.org>
58565
58566         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58567         unused variable.
58568
58569 2007-03-17  Bruno Haible  <bruno@clisp.org>
58570
58571         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58572         * tests/test-c-strncasecmp.c: Likewise.
58573
58574 2007-03-17  Bruno Haible  <bruno@clisp.org>
58575
58576         * modules/stdlib (Depends-on): Add unistd.
58577         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58578         Needed for MacOS X 10.3.
58579
58580 2007-03-17  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58583
58584 2007-03-17  Bruno Haible  <bruno@clisp.org>
58585
58586         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58587
58588 2007-03-17  Bruno Haible  <bruno@clisp.org>
58589
58590         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58591         to reflect files copied from gnulib (with or without modifications).
58592         Suggested by Jim Meyering.
58593
58594 2007-03-17  Eric Blake  <ebb9@byu.net>
58595
58596         * NEWS: Document stdlib change from 2007-02-18.
58597
58598 2007-03-17  Jim Meyering  <jim@meyering.net>
58599
58600         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58601         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58602         someone uses a name containing shell meta-characters.
58603         Reported by Alfred M. Szmidt.
58604
58605         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58606
58607 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58608
58609         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58610         and copy gettext configuration files only if configure.ac contains
58611         a use of AM_GNU_GETTEXT_VERSION.
58612
58613 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58614
58615         * build-aux/bootstrap (gnulib_name): New variable.
58616         (gnulib_tool_options): Use it.
58617
58618 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58619
58620         * tests/test-des.c: Use new namespace.
58621
58622 2007-03-15  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58625         Reported by James Youngman <jay@gnu.org>.
58626
58627 2007-03-15  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58630         declared prototype. Needed with cc on OSF/1 5.1.
58631
58632 2007-03-15  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58635         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58636         (struct gl_list_implementation): Add dispose_fn argument to the
58637         'create_empty', 'create' methods.
58638         (struct gl_list_impl_base): Add field 'dispose_fn'.
58639         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58640         argument.
58641         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58642         dispose_fn argument.
58643         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58644         dispose_fn on the dropped values.
58645         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58646         dispose_fn argument.
58647         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58648         dropped values.
58649         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58650         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58651         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58652         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58653         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58654         argument.
58655         (gl_tree_list_free): Call dispose_fn on the dropped values.
58656         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58657         the dropped values.
58658         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58659         Add dispose_fn argument.
58660         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58661         Call dispose_fn on the dropped values.
58662         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58663         Add dispose_fn argument.
58664         (gl_sublist_create): Initialize the 'dispose_fn' field.
58665         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58666         * tests/test-array_list.c (main): Update.
58667         * tests/test-carray_list.c (main): Update.
58668         * tests/test-avltree_list.c (main): Update.
58669         * tests/test-rbtree_list.c (main): Update.
58670         * tests/test-avltreehash_list.c (main): Update.
58671         * tests/test-rbtreehash_list.c (main): Update.
58672         * tests/test-linked_list.c (main): Update.
58673         * tests/test-linkedhash_list.c (main): Update.
58674         * tests/test-array_oset.c (main): Update.
58675
58676 2007-03-15  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58679         (gl_oset_create_empty): Add dispose_fn argument.
58680         (struct gl_oset_implementation): Add dispose_fn argument to
58681         'create_empty' method.
58682         (struct gl_oset_impl_base): Add dispose_fn field.
58683         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58684         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58685         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58686         values.
58687         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58688         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58689         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58690         dropped value.
58691         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58692         dropped value.
58693         * tests/test-array_oset.c (main): Update.
58694         * tests/test-avltree_oset.c (main): Update.
58695         * tests/test-rbtree_oset.c (main): Update.
58696         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58697
58698 2007-03-13  Bruno Haible  <bruno@clisp.org>
58699
58700         * tests/test-stdbool.c (i): Update after last patch.
58701
58702 2007-03-12  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58705         the iswprint macro. Needed on Solaris 2.5.1.
58706
58707 2007-03-12  Bruno Haible  <bruno@clisp.org>
58708
58709         * tests/test-printf-frexp.c (main): Declare x as volatile.
58710
58711 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58712
58713         * doc/gnulib.texi (Build robot for gnulib): New section.
58714
58715 2007-03-12  Jim Meyering  <jim@meyering.net>
58716
58717         * build-aux/bootstrap: New file.
58718         * build-aux/bootstrap.conf: New file, from coreutils.
58719
58720 2007-03-11  Bruno Haible  <bruno@clisp.org>
58721
58722         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58723
58724 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58725
58726         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58727         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58728         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58729
58730 2007-03-11  Bruno Haible  <bruno@clisp.org>
58731
58732         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58733         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58734
58735 2007-03-11  Bruno Haible  <bruno@clisp.org>
58736
58737         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58738         formula. Needed for SunPRO C 5.0.
58739
58740 2007-03-11  Bruno Haible  <bruno@clisp.org>
58741
58742         * modules/long-options (Depends-on): Add getopt.
58743
58744 2007-03-11  Bruno Haible  <bruno@clisp.org>
58745
58746         * modules/modechange (Depends-on): Add stdbool.
58747
58748 2007-03-11  Bruno Haible  <bruno@clisp.org>
58749
58750         * modules/i-ring (Depends-on): Add stdbool.
58751
58752 2007-03-11  Bruno Haible  <bruno@clisp.org>
58753
58754         * modules/gc-des (Depends-on): Add stdbool.
58755
58756 2007-03-11  Bruno Haible  <bruno@clisp.org>
58757
58758         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58759
58760 2007-03-11  Bruno Haible  <bruno@clisp.org>
58761
58762         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58763
58764 2007-03-11  Bruno Haible  <bruno@clisp.org>
58765
58766         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58767
58768 2007-03-11  Bruno Haible  <bruno@clisp.org>
58769
58770         * lib/vasnprintf.c (sprintf): Undefine.
58771
58772 2007-03-11  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58775         initializers in SunPRO C and Compaq C compilers.
58776
58777 2007-03-11  Bruno Haible  <bruno@clisp.org>
58778
58779         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58780         decrementing code ANSI C compliant.
58781
58782 2007-03-11  Bruno Haible  <bruno@clisp.org>
58783
58784         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58785         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58786
58787 2007-03-11  Bruno Haible  <bruno@clisp.org>
58788
58789         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58790         <stdbool.h> substitute doesn't pass.
58791
58792 2007-03-11  Bruno Haible  <bruno@clisp.org>
58793
58794         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58795
58796 2007-03-11  Bruno Haible  <bruno@clisp.org>
58797
58798         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58799         script, for submission to autobuild.josefsson.org.
58800
58801 2007-03-10  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/canonicalize-lgpl-tests: New file.
58804         * tests/test-canonicalize-lgpl.sh: New file.
58805         * tests/test-canonicalize-lgpl.c: New file.
58806
58807         * modules/c-strcase-tests: New file.
58808         * tests/test-c-strcase.sh: New file.
58809         * tests/test-c-strcasecmp.c: New file.
58810         * tests/test-c-strncasecmp.c: New file.
58811
58812         * modules/atexit-tests: New file.
58813         * tests/test-atexit.sh: New file.
58814         * tests/test-atexit.c: New file.
58815
58816 2007-03-10  Bruno Haible  <bruno@clisp.org>
58817
58818         * tests/test-binary-io.sh: Use temporary filenames that are not so
58819         likely to clash with those of other tests (in a parallel make).
58820         * tests/test-binary-io.c: Likewise.
58821
58822 2007-03-10  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58825         fallback; use #error instead.
58826         Suggested by Simon Josefsson.
58827
58828 2007-03-10  Bruno Haible  <bruno@clisp.org>
58829
58830         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58831         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58832         first and the last.
58833
58834 2007-03-10  Bruno Haible  <bruno@clisp.org>
58835
58836         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58837
58838 2007-03-10  Bruno Haible  <bruno@clisp.org>
58839
58840         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58841         "make distcheck".
58842         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58843         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58844         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58845
58846 2007-03-10  Bruno Haible  <bruno@clisp.org>
58847
58848         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58849         variable.
58850         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58851         variable.
58852
58853 2007-03-09  Eric Blake  <ebb9@byu.net>
58854         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58855
58856         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58857         types are not being provided by gnulib.
58858         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58859         types are supported.
58860
58861 2007-03-10  Bruno Haible  <bruno@clisp.org>
58862
58863         * lib/stdio_.h (__attribute__): New macro.
58864         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58865         vsprintf): Specify __attribute__ __format__ for GCC.
58866         Suggested by Eric Blake.
58867
58868 2007-03-09  Bruno Haible  <bruno@clisp.org>
58869
58870         * modules/printf-posix-tests: New file.
58871         * tests/test-printf-posix.sh: New file.
58872         * tests/test-printf-posix.c: New file.
58873
58874         * modules/printf-posix: New file.
58875         * lib/printf.c: New file.
58876         * m4/printf-posix-rpl.m4: New file.
58877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58878         REPLACE_PRINTF.
58879         * lib/stdio_.h (printf): New declaration.
58880         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58881         ____strfmon____): New macros.
58882         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58883         REPLACE_PRINTF.
58884
58885 2007-03-09  Bruno Haible  <bruno@clisp.org>
58886
58887         * tests/test-vasnprintf-posix2.sh: New file.
58888         * tests/test-vasnprintf-posix2.c: New file.
58889         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58890         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58891         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58892
58893         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58894         a locale dependent decimal point, rather than always '.'.
58895
58896 2007-03-09  Eric Blake  <ebb9@byu.net>
58897
58898         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58899         spite of platforms like Tandem/NSK that define it to -1.
58900
58901 2007-03-08  Bruno Haible  <bruno@clisp.org>
58902
58903         * modules/vprintf-posix-tests: New file.
58904         * tests/test-vprintf-posix.sh: New file.
58905         * tests/test-vprintf-posix.c: New file.
58906         * tests/test-printf-posix.h: New file.
58907
58908         * modules/vprintf-posix: New file.
58909         * lib/vprintf.c: New file.
58910         * m4/vprintf-posix.m4: New file.
58911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58912         REPLACE_VPRINTF.
58913         * lib/stdio_.h (vprintf): New declaration.
58914         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58915         REPLACE_VPRINTF.
58916
58917 2007-03-08  Bruno Haible  <bruno@clisp.org>
58918
58919         * modules/fprintf-posix-tests: New file.
58920         * tests/test-fprintf-posix.sh: New file.
58921         * tests/test-fprintf-posix.c: New file.
58922
58923         * modules/fprintf-posix: New file.
58924         * lib/fprintf.c: New file.
58925         * m4/fprintf-posix.m4: New file.
58926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58927         REPLACE_FPRINTF.
58928         * lib/stdio_.h (fprintf): New declaration.
58929         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58930         REPLACE_FPRINTF.
58931
58932 2007-03-08  Bruno Haible  <bruno@clisp.org>
58933
58934         * modules/vfprintf-posix-tests: New file.
58935         * tests/test-vfprintf-posix.sh: New file.
58936         * tests/test-vfprintf-posix.c: New file.
58937         * tests/test-fprintf-posix.h: New file.
58938         * tests/test-fprintf-posix.out: New file.
58939
58940         * modules/vfprintf-posix: New file.
58941         * lib/vfprintf.c: New file.
58942         * m4/vfprintf-posix.m4: New file.
58943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58944         REPLACE_VFPRINTF.
58945         * lib/stdio_.h (vfprintf): New declaration.
58946         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58947         REPLACE_VFPRINTF.
58948
58949 2007-03-08  Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58952
58953 2007-03-08  Bruno Haible  <bruno@clisp.org>
58954
58955         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58956         instead of 'expr' invocations.
58957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58958         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58959         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58961         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58962         Suggested by Paul Eggert.
58963
58964 2007-03-08  Bruno Haible  <bruno@clisp.org>
58965
58966         * modules/fseterr-tests: New file.
58967         * tests/test-fseterr.c: New file.
58968
58969         * modules/fseterr: New file.
58970         * lib/fseterr.h: New file.
58971         * lib/fseterr.c: New file.
58972
58973 2007-03-08  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58976         * lib/getopt_.h: Likewise.
58977         * lib/mbswidth.h: Likewise.
58978         * lib/setenv.h: Likewise.
58979         * lib/vasnprintf.h: Likewise.
58980         * lib/vasprintf.h: Likewise.
58981         * lib/verror.h: Likewise.
58982         * lib/xsetenv.h: Likewise.
58983         * lib/xvasprintf.h: Likewise.
58984
58985 2007-03-08  Jim Meyering  <jim@meyering.net>
58986
58987         * users.txt: Add parted.
58988
58989         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58990
58991 2007-03-07  Bruno Haible  <bruno@clisp.org>
58992
58993         * m4/printf.m4: Make the shell script snippets copy&pastable.
58994
58995 2007-03-02  Bruno Haible  <bruno@clisp.org>
58996
58997         * lib/netinet_in_.h: New file.
58998         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58999         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59000         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59001         (Depends-on): Add absolute-header.
59002         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59003         into netinet/in.h.
59004
59005 2007-03-03  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/sys_select_.h: New file.
59008         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59009         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59010         * modules/sys_select (Files): Add lib/sys_select_.h.
59011         (Depends-on): Add absolute-header.
59012         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59013         into sys/select.h.
59014
59015 2007-03-02  Bruno Haible  <bruno@clisp.org>
59016
59017         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59018         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59019         values.
59020         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59021         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59022         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59023         * modules/sys_socket (Depends-on): Add absolute-header.
59024         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59025         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59026         (Include): Remove requirement of inclusion of <sys/types.h>.
59027
59028 2007-03-02  Bruno Haible  <bruno@clisp.org>
59029
59030         * lib/byteswap_.h (bswap_32): Fix formula.
59031
59032 2007-03-06  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/sprintf-posix-tests: New file.
59035         * tests/test-sprintf-posix.c: New file.
59036
59037         * modules/sprintf-posix: New file.
59038         * lib/sprintf.c: New file.
59039         * m4/sprintf-posix.m4: New file.
59040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59041         REPLACE_SPRINTF.
59042         * lib/stdio_.h (sprintf): New declaration.
59043         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59044         REPLACE_SPRINTF.
59045
59046 2007-03-06  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/vsprintf-posix-tests: New file.
59049         * tests/test-vsprintf-posix.c: New file.
59050         * tests/test-sprintf-posix.h: New file.
59051
59052         * modules/vsprintf-posix: New file.
59053         * lib/vsprintf.c: New file.
59054         * m4/vsprintf-posix.m4: New file.
59055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59056         REPLACE_VSPRINTF.
59057         * lib/stdio_.h (vsprintf): New declaration.
59058         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59059         REPLACE_VSPRINTF.
59060
59061 2007-03-06  Bruno Haible  <bruno@clisp.org>
59062
59063         * modules/vsnprintf (Depend-on): Remove minmax.
59064
59065 2007-03-06  Bruno Haible  <bruno@clisp.org>
59066
59067         * modules/snprintf-posix-tests: New file.
59068         * tests/test-snprintf-posix.c: New file.
59069
59070         * modules/snprintf-posix: New file.
59071         * m4/snprintf-posix.m4: New file.
59072         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59073         gl_FUNC_SNPRINTF.
59074         (gl_FUNC_SNPRINTF): Invoke it.
59075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59076         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59077         is set.
59078         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59079
59080 2007-03-06  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/vsnprintf-posix-tests: New file.
59083         * tests/test-vsnprintf-posix.c: New file.
59084         * tests/test-snprintf-posix.h: New file.
59085
59086         * modules/vsnprintf-posix: New file.
59087         * m4/vsnprintf-posix.m4: New file.
59088         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59089         gl_FUNC_VSNPRINTF.
59090         (gl_FUNC_VSNPRINTF): Invoke it.
59091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59092         * lib/stdio_.h (vsnprintf): Define as a replacement if
59093         REPLACE_VSNPRINTF is set.
59094         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59095
59096 2007-03-06  Bruno Haible  <bruno@clisp.org>
59097
59098         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59100
59101 2007-03-06  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59104         (asinl): Declare also if HAVE_DECL_ASINL is set.
59105         (atanl): Declare also if HAVE_DECL_ATANL is set.
59106         (ceill): Declare also if HAVE_DECL_CEILL is set.
59107         (cosl): Declare also if HAVE_DECL_COSL is set.
59108         (expl): Declare also if HAVE_DECL_EXPL is set.
59109         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59110         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59111         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59112         (logl): Declare also if HAVE_DECL_LOGL is set.
59113         (sinl): Declare also if HAVE_DECL_SINL is set.
59114         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59115         (tanl): Declare also if HAVE_DECL_TANL is set.
59116         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59118         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59119         declaration of frexpl, ldexpl.
59120         * modules/printf-frexpl (Depends-on): Add math.
59121         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59122
59123 2007-03-05  Bruno Haible  <bruno@clisp.org>
59124
59125         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59126         frexpl and ldexpl are declared.
59127         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59128
59129 2007-03-05  Bruno Haible  <bruno@clisp.org>
59130
59131         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59132         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59133
59134 2007-03-05  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/stdio_.h: Include <stddef.h>.
59137
59138 2007-03-05  Bruno Haible  <bruno@clisp.org>
59139
59140         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59141
59142 2007-03-05  Bruno Haible  <bruno@clisp.org>
59143
59144         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59145         NetBSD 4, from Ralf Wildenhues.
59146
59147 2007-03-04  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/vasprintf.h: Update #if logic for the case when the functions
59150         exist but are overridden.
59151
59152 2007-03-04  Bruno Haible  <bruno@clisp.org>
59153
59154         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59155         implementations: glibc-2.4 and MacOS X 10.3.
59156         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59157         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59158         * tests/test-vasprintf-posix.c (test_function): Likewise.
59159
59160 2007-03-04  Bruno Haible  <bruno@clisp.org>
59161
59162         * modules/vasprintf-posix-tests: New file.
59163         * tests/test-vasprintf-posix.c: New file.
59164
59165         * modules/vasprintf-posix: New file.
59166         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59167         defined.
59168         * m4/vasprintf-posix.m4: New file.
59169         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59170         gl_FUNC_VASPRINTF.
59171         (gl_FUNC_VASPRINTF): Invoke it.
59172         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59173         here.
59174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59175
59176 2007-03-04  Bruno Haible  <bruno@clisp.org>
59177
59178         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59179         REPLACE_GETTIMEOFDAY.
59180         * modules/sys_time (Makefile.am): Likewise.
59181         * m4/sys_time_h.m4: Likewise.
59182         * m4/gettimeofday.m4: Likewise.
59183
59184 2007-03-04  Bruno Haible  <bruno@clisp.org>
59185
59186         * modules/vasnprintf-posix-tests: New file.
59187         * tests/test-vasnprintf-posix.c: New file.
59188
59189         * modules/vasnprintf-posix: New file.
59190         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59191         printf-frexpl.h.
59192         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59193         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59194         REPLACE_VASNPRINTF is defined.
59195         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59196         gl_FUNC_VASNPRINTF.
59197         (gl_FUNC_VASNPRINTF): Invoke it.
59198         * m4/vasnprintf-posix.m4: New file.
59199         * m4/printf.m4: New file.
59200
59201 2007-03-04  Bruno Haible  <bruno@clisp.org>
59202
59203         Compile progreloc.c only if --enable-relocatable is specified.
59204         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59205         if --enable-relocatable was specified.
59206         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59207         lib_SOURCES.
59208
59209 2007-03-04  Jim Meyering  <jim@meyering.net>
59210
59211         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59212         Use it consistently, rather than enumerating errno constants.
59213
59214 2007-03-04  Bruno Haible  <bruno@clisp.org>
59215
59216         * modules/xvasprintf-tests: New file.
59217         * tests/test-xvasprintf.c: New file.
59218
59219         * modules/vasprintf-tests: New file.
59220         * tests/test-vasprintf.c: New file.
59221
59222         * modules/vasnprintf-tests: New file.
59223         * tests/test-vasnprintf.c: New file.
59224
59225         * modules/vsnprintf-tests: New file.
59226         * tests/test-vsnprintf.c: New file.
59227
59228         * modules/snprintf-tests: New file.
59229         * tests/test-snprintf.c: New file.
59230
59231 2007-03-04  Bruno Haible  <bruno@clisp.org>
59232
59233         Compile relocatable.c only if --enable-relocatable is specified.
59234         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59235         gl_RELOCATABLE_LIBRARY.
59236         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59237         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59238         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59239         gl_RELOCATABLE_LIBRARY.
59240         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59241         (Makefile.am): Remove lib_SOURCES.
59242         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59243         gl_RELOCATABLE_LIBRARY.
59244         (Makefile.am): Remove lib_SOURCES.
59245         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59246         always.
59247         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59248         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59249
59250 2007-03-04  Bruno Haible  <bruno@clisp.org>
59251
59252         * modules/argmatch-tests: New file.
59253         * tests/test-argmatch.c: New file.
59254
59255         * tests/test-allocsa.c (main): Halve the number of loop runs.
59256
59257         * modules/alloca-opt-tests: New file.
59258         * tests/test-alloca-opt.c: New file.
59259
59260 2007-03-04  Jim Meyering  <jim@meyering.net>
59261
59262         Work around difference between Linux ACLs and Solaris 10 ZFS.
59263         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59264         for EINVAL.
59265
59266 2007-03-03  Bruno Haible  <bruno@clisp.org>
59267
59268         * modules/relocatable-prog (Depends-on): Add back progreloc's
59269         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59270
59271 2007-03-03  Bruno Haible  <bruno@clisp.org>
59272
59273         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59274         * modules/relocatable-lib: New file.
59275
59276 2007-03-03  Bruno Haible  <bruno@clisp.org>
59277
59278         * modules/relocatable-prog: Renamed from modules/relocatable.
59279         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59280
59281 2007-03-03  Bruno Haible  <bruno@clisp.org>
59282
59283         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59284         m4/relocatable-lib.m4.
59285         (Depends-on): Remove 'relocatable'.
59286         (configure.ac): Add gl_RELOCATABLE_NOP.
59287
59288 2007-03-03  Bruno Haible  <bruno@clisp.org>
59289
59290         * modules/relocatable-prog-wrapper: New file.
59291         * modules/relocatable (Depends-on): Add it. Remove all other
59292         dependencies except progname.
59293         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59294
59295         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59296         (gl_FUNC_STRERROR): Nop.
59297         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59298
59299         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59300         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59301
59302         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59303         (gl_FUNC_READLINK): Update.
59304
59305         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59306
59307 2007-03-03  Bruno Haible  <bruno@clisp.org>
59308
59309         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59310         * modules/xreadlink (Depends-on): Add unistd.
59311         * modules/xreadlink-with-size (Depends-on): Likewise.
59312
59313 2007-03-03  Bruno Haible  <bruno@clisp.org>
59314
59315         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59316         extracted from gt_FUNC_SETENV.
59317         (gt_FUNC_SETENV): Remove macro.
59318         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59319         remove gt_FUNC_SETENV.
59320
59321 2007-03-03  Bruno Haible  <bruno@clisp.org>
59322
59323         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59324         ENABLE_RELOCATABLE here.
59325         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59326
59327 2007-03-03  Bruno Haible  <bruno@clisp.org>
59328
59329         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59330         * tests/test-rbtreehash_list.c: Include progname.h.
59331         (main): Call set_program_name.
59332
59333         * modules/rbtree-oset-tests (Depends-on): Add progname.
59334         * tests/test-rbtree_oset.c: Include progname.h.
59335         (main): Call set_program_name.
59336
59337         * modules/rbtree-list-tests (Depends-on): Add progname.
59338         * tests/test-rbtree_list.c: Include progname.h.
59339         (main): Call set_program_name.
59340
59341         * modules/linked-list-tests (Depends-on): Add progname.
59342         * tests/test-linked_list.c: Include progname.h.
59343         (main): Call set_program_name.
59344
59345 2007-03-03  Bruno Haible  <bruno@clisp.org>
59346
59347         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59348         All uses of __restrict changed to _Restrict_.
59349         * lib/glob_.h (__restrict): Remove macro.
59350
59351 2007-03-02  Bruno Haible  <bruno@clisp.org>
59352
59353         * modules/gettext (configure.ac): Require gettext infrastructure
59354         from version 0.16.1.
59355
59356 2007-03-02  Bruno Haible  <bruno@clisp.org>
59357
59358         * modules/linkedhash-list-tests (Depends-on): Add progname.
59359         * tests/test-linkedhash_list.c: Include progname.h.
59360         (main): Call set_program_name.
59361
59362         * modules/carray-list-tests (Depends-on): Add progname.
59363         * tests/test-carray_list.c: Include progname.h.
59364         (main): Call set_program_name.
59365
59366         * modules/avltreehash-list-tests (Depends-on): Add progname.
59367         * tests/test-avltreehash_list.c: Include progname.h.
59368         (main): Call set_program_name.
59369
59370         * modules/avltree-oset-tests (Depends-on): Add progname.
59371         * tests/test-avltree_oset.c: Include progname.h.
59372         (main): Call set_program_name.
59373
59374         * modules/avltree-list-tests (Depends-on): Add progname.
59375         * tests/test-avltree_list.c: Include progname.h.
59376         (main): Call set_program_name.
59377
59378         * modules/array-oset-tests (Depends-on): Add progname.
59379         * tests/test-array_oset.c: Include progname.h.
59380         (main): Call set_program_name.
59381
59382         * modules/array-list-tests (Depends-on): Add progname.
59383         * tests/test-array_list.c: Include progname.h.
59384         (main): Call set_program_name.
59385
59386         * modules/argp-tests (Depends-on): Add progname.
59387         * tests/test-argp.c: Include argp.h first. Include progname.h.
59388         (main): Call set_program_name.
59389
59390 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59391
59392         * doc/gnulib-tool.texi (Initial import): Reword description of
59393         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59394         limited effect even if defined after the first system include.
59395
59396 2007-03-01  Bruno Haible  <bruno@clisp.org>
59397
59398         * build-aux/config.libpath: Update to libtool-1.5.22.
59399         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59400
59401 2007-03-01  Bruno Haible  <bruno@clisp.org>
59402
59403         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59404         foo_CFLAGS.
59405         Reported by Ralf Wildenhues.
59406
59407 2007-03-01  Bruno Haible  <bruno@clisp.org>
59408
59409         * build-aux/install-reloc: Remove object files left over by some
59410         compilers.
59411         Reported by Ralf Wildenhues.
59412
59413 2007-03-01  Bruno Haible  <bruno@clisp.org>
59414
59415         * build-aux/install-reloc: Break long lines.
59416
59417 2007-03-01  Bruno Haible  <bruno@clisp.org>
59418
59419         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59420         Reported by Ralf Wildenhues.
59421
59422 2007-03-01  Bruno Haible  <bruno@clisp.org>
59423
59424         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59425         include ordering constraints.
59426
59427 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59428
59429         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59430         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59431         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59432         as another example.
59433         * lib/time_.h: Fix misspelling.
59434         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59435         Require gl_HEADER_TIME_H_DEFAULTS.
59436         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59437         * m4/time_r.m4 (gl_TIME_R): Likewise.
59438         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59439
59440 2007-03-01  Bruno Haible  <bruno@clisp.org>
59441
59442         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59443         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59444
59445 2007-03-01  Jim Meyering  <jim@meyering.net>
59446
59447         * modules/xreadlink (Maintainer): Add my name.
59448         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59449
59450 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59451             Bruno Haible  <bruno@clisp.org>
59452
59453         * build-aux/install-reloc: Compile also c-ctype.c.
59454         * build-aux/relocatable.sh.in: New file.
59455         * doc/relocatable.texi: New file.
59456         * doc/relocatable-maint.texi: New file.
59457         * doc/gnulib.texi: Include relocatable-maint.texi.
59458         * lib/progreloc.c: Include unistd.h unconditionally.
59459         * lib/relocwrapper.c: Include unistd.h unconditionally.
59460         Include c-ctype.h.
59461         (add_dotbin): Use c_tolower.
59462         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59463         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59464         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59465         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59466         to m4/relocatable-lib.m4.
59467         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59468         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59469         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59470         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59471         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59472         * modules/relocatable: New file.
59473         * modules/relocatable-lib: New file.
59474         * modules/relocatable-script: New file.
59475
59476 2007-02-28  Bruno Haible  <bruno@clisp.org>
59477
59478         Import --enable-relocatable infrastructure.
59479         * build-aux/config.libpath: New file, from GNU gettext.
59480         * build-aux/install-reloc: New file, from GNU gettext.
59481         * build-aux/reloc-ldflags: New file, from GNU gettext.
59482         * lib/relocatable.h: New file, from GNU gettext.
59483         * lib/relocatable.c: New file, from GNU gettext.
59484         * lib/relocwrapper.c: New file, from GNU gettext.
59485         * m4/relocatable.m4: New file, from GNU gettext.
59486
59487 2007-02-28  Bruno Haible  <bruno@clisp.org>
59488
59489         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59490
59491         * modules/xreadlink: New file, from GNU gettext with modifications.
59492         * lib/xreadlink.c: New file, from GNU gettext.
59493         * lib/xreadlink.h: Add comments.
59494         (xreadlink): New declaration.
59495
59496         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59497         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59498         lib/xreadlink-with-size.c.
59499         (configure.ac): Remove gl_XREADLINK invocation.
59500         (Makefile.am): Augment lib_SOURCES.
59501         * m4/xreadlink.m4: Remove file.
59502         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59503         (xreadlink_with_size): Renamed from xreadink.
59504         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59505         * modules/canonicalize (Depends-on): Replace xreadlink with
59506         xreadlink-with-size.
59507         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59508
59509 2007-02-25  Jim Meyering  <jim@meyering.net>
59510
59511         * build-aux/announce-gen: When complaining about excess arguments,
59512         list them.
59513
59514 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         * README: Document signed integer overflow situation more
59517         accurately.
59518
59519 2007-02-25  Bruno Haible  <bruno@clisp.org>
59520
59521         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59522         'a' or 'A' conversion.
59523
59524 2007-02-25  Bruno Haible  <bruno@clisp.org>
59525
59526         * modules/filename: Renamed from modules/pathname.
59527         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59528         lib/concatpath.c with lib/concat-filename.c.
59529         (Makefile.am): Update.
59530         (Include): Replace pathname.h with filename.h.
59531         * lib/filename.h: Renamed from lib/pathname.h.
59532         (concatenated_filename): Renamed from concatenated_pathname.
59533         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59534         (concatenated_filename): Renamed from concatenated_pathname.
59535         * lib/findprog.c: Include filename.h instead of pathname.h.
59536         (find_in_path): Update.
59537         * lib/javacomp.c: Include filename.h instead of pathname.h.
59538         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59539         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59540         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59541         is_oldgcj_14_13_usable, is_javac_usable): Update.
59542         * lib/javaexec.c: Include filename.h instead of pathname.h.
59543         (execute_java_class): Update.
59544         * modules/findprog: Update.
59545         * modules/javacomp: Update.
59546         * modules/javaexec: Update.
59547         * MODULES.html.sh (File system functions): Add 'filename', remove
59548         'pathname'.
59549
59550 2007-02-25  Bruno Haible  <bruno@clisp.org>
59551
59552         * modules/printf-frexpl-tests: New file.
59553         * tests/test-printf-frexpl.c: New file.
59554
59555         * modules/printf-frexpl: New file.
59556         * lib/printf-frexpl.h: New file.
59557         * lib/printf-frexpl.c: New file.
59558         * m4/printf-frexpl.m4: New file.
59559
59560 2007-02-25  Bruno Haible  <bruno@clisp.org>
59561
59562         * modules/printf-frexp-tests: New file.
59563         * tests/test-printf-frexp.c: New file.
59564
59565         * modules/printf-frexp: New file.
59566         * lib/printf-frexp.h: New file.
59567         * lib/printf-frexp.c: New file.
59568         * m4/printf-frexp.m4: New file.
59569
59570 2007-02-25  Bruno Haible  <bruno@clisp.org>
59571
59572         Assume automake >= 1.10 for the tests.
59573         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59574         * modules/arctwo-tests: Likewise.
59575         * modules/argp-tests: Likewise.
59576         * modules/avltree-list-tests: Likewise.
59577         * modules/avltree-oset-tests: Likewise.
59578         * modules/avltreehash-list-tests: Likewise.
59579         * modules/carray-list-tests: Likewise.
59580         * modules/crc-tests: Likewise.
59581         * modules/des-tests: Likewise.
59582         * modules/gc-arcfour-tests: Likewise.
59583         * modules/gc-arctwo-tests: Likewise.
59584         * modules/gc-des-tests: Likewise.
59585         * modules/gc-hmac-md5-tests: Likewise.
59586         * modules/gc-hmac-sha1-tests: Likewise.
59587         * modules/gc-md2-tests: Likewise.
59588         * modules/gc-md4-tests: Likewise.
59589         * modules/gc-md5-tests: Likewise.
59590         * modules/gc-pbkdf2-sha1-tests: Likewise.
59591         * modules/gc-rijndael-tests: Likewise.
59592         * modules/gc-sha1-tests: Likewise.
59593         * modules/gc-tests: Likewise.
59594         * modules/getaddrinfo-tests: Likewise.
59595         * modules/hmac-md5-tests: Likewise.
59596         * modules/hmac-sha1-tests: Likewise.
59597         * modules/linked-list-tests: Likewise.
59598         * modules/linkedhash-list-tests: Likewise.
59599         * modules/lock-tests: Likewise.
59600         * modules/md2-tests: Likewise.
59601         * modules/md4-tests: Likewise.
59602         * modules/md5-tests: Likewise.
59603         * modules/rbtree-list-tests: Likewise.
59604         * modules/rbtree-oset-tests: Likewise.
59605         * modules/rbtreehash-list-tests: Likewise.
59606         * modules/read-file-tests: Likewise.
59607         * modules/rijndael-tests: Likewise.
59608         * modules/stdint-tests: Likewise.
59609         * modules/tls-tests: Likewise.
59610
59611 2007-02-24  Bruno Haible  <bruno@clisp.org>
59612
59613         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59614         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59615         function; instead check whether isnan with a double argument links.
59616         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59617         function; instead check whether isnan with a 'long double' argument
59618         links.
59619         Reported by Eric Blake <ebb9@byu.net>.
59620
59621 2007-02-24  Bruno Haible  <bruno@clisp.org>
59622
59623         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59624         defined.
59625         * lib/isnanl.c: Remove all code. Just include isnan.c.
59626         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59627
59628 2007-02-25  Jim Meyering  <jim@meyering.net>
59629
59630         Avoid conflicting types for 'unsetenv' on FreeBSD.
59631         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59632         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59633         in stdlib.h.
59634
59635 2007-02-24  Bruno Haible  <bruno@clisp.org>
59636
59637         * modules/isnanl-nolibm-tests: New file.
59638         * tests/test-isnanl.c: New file.
59639
59640         * modules/isnanl-nolibm: New file.
59641         * lib/isnanl.h: New file.
59642         * lib/isnanl.c: New file.
59643         * m4/isnanl.m4: New file.
59644
59645 2007-02-24  Bruno Haible  <bruno@clisp.org>
59646
59647         * modules/isnan-nolibm-tests: New file.
59648         * tests/test-isnan.c: New file.
59649
59650         * modules/isnan-nolibm: New file.
59651         * lib/isnan.h: New file.
59652         * lib/isnan.c: New file.
59653         * m4/isnan.m4: New file.
59654
59655 2007-02-24  Bruno Haible  <bruno@clisp.org>
59656
59657         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59658         assume that an exponent fits in 20 bits.
59659
59660 2007-02-24  Jim Meyering  <jim@meyering.net>
59661
59662         * m4/regex.m4: Update the description of the configure-time option,
59663         --without-included-regex, to state accurately what the defaults are,
59664         and perhaps to give people an idea why using this option is risky.
59665
59666 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59667
59668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59669         loops on small arguments.  This attempts to avoid the problem
59670         Bruno Haible reported for AIX 4.3.2 in
59671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59672
59673 2007-02-23  Bruno Haible  <bruno@clisp.org>
59674
59675         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59676         Needed for help2man.
59677
59678 2007-02-23  Karl Berry  <karl@gnu.org>
59679
59680         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59681         exists, foo.h should be cvs-ignored, not committed.
59682
59683 2007-02-23  Eric Blake  <ebb9@byu.net>
59684
59685         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59686         * lib/stat-time.h (includes): Likewise.
59687         * lib/utimecmp.c (includes): Likewise.
59688         * lib/utimens.h (includes): Likewise.
59689         * lib/getdate.y (includes): Also include "timespec.h" for use
59690         internal to the module.
59691         * modules/utimens (Depends-on): Revert yesterday's patch.
59692         * modules/nanosleep (Depends-on): Add missing dependency.
59693
59694 2007-02-22  Bruno Haible  <bruno@clisp.org>
59695
59696         * lib/glob.c: Don't include getlogin_r.h.
59697
59698 2007-02-22  Jim Meyering  <jim@meyering.net>
59699
59700         * modules/utimens (Depends-on): Add timespec, required for
59701         utimens.h's inclusion of timespec.h.
59702
59703 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59704
59705         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59706         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59707         Schwab in
59708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59709         I'll try to think of a better way to fix the Solaris problem.
59710
59711         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59712         like glibc; on Solaris 10, it fails with errno == EINVAL.
59713         POSIX says the behavior is unspecified if the first argument is NULL,
59714         so play it safe and never pass NULL to the system getcwd.
59715
59716 2007-02-21  Jim Meyering  <jim@meyering.net>
59717
59718         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59719         of gettimeofday.  It would conflict with the one now always
59720         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59721         an IRIX 6.5 build failure.
59722
59723 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         Minor fixups to port to Solaris 10 with Sun C 5.8.
59726         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59727         * modules/getcwd (Depends-on): Add dirfd.
59728         * lib/putenv.c (putenv): #undef it.
59729         (rpl_putenv): New decl.
59730         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59731
59732 2007-02-20  Bruno Haible  <bruno@clisp.org>
59733
59734         * modules/stdio-tests: New file.
59735         * tests/test-stdio.c: New file.
59736
59737         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59738         (Depends-on): Add stdio.
59739         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59740         (Include): Use <stdio.h> instead of vsnprintf.h.
59741         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59742         HAVE_DECL_VSNPRINTF.
59743         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59744
59745         * modules/snprintf (Files): Remove lib/snprintf.h.
59746         (Depends-on): Add stdio.
59747         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59748         (Include): Use <stdio.h> instead of snprintf.h.
59749         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59750         HAVE_DECL_SNPRINTF.
59751         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59752         * lib/getaddrinfo.c: Likewise.
59753
59754         * modules/stdio: New file.
59755         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59756         * lib/snprintf.h: Remove file.
59757         * lib/vsnprintf.h: Remove file.
59758         * lib/.cppi-disable: Remove snprintf.h.
59759         * m4/stdio_h.m4: New file.
59760         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59761
59762 2007-02-20  Jim Meyering  <jim@meyering.net>
59763
59764         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59765         used by e.g., mingw.  From Bruno Haible.
59766
59767 2007-02-19  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59770         warnings.
59771         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59772
59773 2007-02-19  Bruno Haible  <bruno@clisp.org>
59774
59775         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59776         from mingw users.
59777
59778 2007-02-19  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59781         warnings.
59782         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59783
59784 2007-02-19  Jim Meyering  <jim@meyering.net>
59785
59786         Don't use FD after a successful "fdopendir (fd)".
59787         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59788         Reset it by calling dirfd on the just-obtained DIR*.
59789
59790         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59791         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59792
59793 2007-02-18  Bruno Haible  <bruno@clisp.org>
59794
59795         * lib/readlink.c: Include <unistd.h>.
59796         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59797         HAVE_READLINK.
59798         * modules/readlink (Depends-on): Add unistd.
59799         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59800         (Include): Add <unistd.h>.
59801
59802         * lib/getlogin_r.h: Remove file.
59803         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59804         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59805         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59806         HAVE_DECL_GETLOGIN_R.
59807         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59809         (Include): Use <unistd.h> instead of getlogin_r.h.
59810
59811         * lib/getcwd.h: Remove file.
59812         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59813         * lib/xgetcwd.c: Likewise.
59814         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59815         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59816         * modules/getcwd (Files): Remove lib/getcwd.h.
59817         (Depends-on): Add unistd.
59818         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59819         (Include): Use <unistd.h> instad of getcwd.h.
59820
59821         * lib/ftruncate.c: Include <unistd.h> first.
59822         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59823         Set HAVE_FTRUNCATE.
59824         * modules/ftruncate (Depends-on): Add unistd.
59825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59826
59827         * lib/fchdir.c: Include <unistd.h> first.
59828         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59830         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59831         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59832         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59833
59834         * lib/dup2.c: Include <unistd.h> first.
59835         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59836         HAVE_DUP2.
59837         * modules/dup2 (Depends-on): Add unistd.
59838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59839
59840         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59841         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59842         REPLACE_CHOWN. Don't define chown as a macro here.
59843         * modules/chown (Depends-on): Add unistd.
59844         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59845
59846         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59847         Add definition for GL_LINK_WARNING.
59848         (chown, dup2): New declarations.
59849         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59850         link warning.
59851         (ftruncate): New declaration.
59852         (getcwd): New declaration, taken from old getcwd.h.
59853         (getlogin_r): New declaration, taken from old getlogin_r.h.
59854         (readlink): New declaration.
59855         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59856         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59857         (gl_PREREQ_UNISTD): Remove macro.
59858         (gl_UNISTD_MODULE_INDICATOR): New macro.
59859         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59860         many new variables. Don't set UNISTD_H.
59861         * modules/unistd (Description): Change.
59862         (Depends-on): Add link-warning.
59863         (configure.ac): Update.
59864         (Makefile.am): Create unistd.h always. Substitute many new variables
59865         into it.
59866
59867 2007-02-18  Bruno Haible  <bruno@clisp.org>
59868
59869         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59870         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59871         HAVE_GETSUBOPT.
59872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59873         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59874         * lib/getsubopt.h: Remove file.
59875         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59876         (Depends-on): Add stdlib.
59877         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59878         (Includes): Use <stdlib.h> instead of getsubopt.h.
59879         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59880         Set HAVE_GETSUBOPT.
59881         * lib/getsubopt.c: Don't include getsubopt.h.
59882
59883 2007-02-18  Bruno Haible  <bruno@clisp.org>
59884
59885         * modules/fchdir (Depends-on): Add dup2.
59886
59887 2007-02-18  Bruno Haible  <bruno@clisp.org>
59888
59889         * lib/stdlib_.h: Handle glibc's special invocation convention
59890         specially.
59891
59892 2007-02-18  Bruno Haible  <bruno@clisp.org>
59893
59894         * modules/stdlib-tests: New file.
59895         * tests/test-stdlib.c: New file.
59896
59897         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59898         (Depends-on): Add stdlib.
59899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59900         (Includes): Use <stdlib.h> instead of mkstemp.h.
59901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59902         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59903         * lib/mkstemp.c: Don't include mkstemp.h.
59904         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59905         * lib/stdlib--.h: Don't include mkstemp.h.
59906
59907         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59908         (Depends-on): Add stdlib.
59909         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59910         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59911         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59912         HAVE_MKDTEMP.
59913         * lib/mkdtemp.c: Don't include mkdtemp.h.
59914         * lib/clean-temp.c: Don't include mkdtemp.h.
59915
59916         * modules/exit (Files): Remove lib/exit.h.
59917         (Depends-on): Add stdlib.
59918         (Makefile.am): Remove lib_SOURCES.
59919         (Include): Use <stdlib.h> instead of exit.h.
59920         * lib/argmatch.c: Don't include exit.h.
59921         * lib/execute.c: Likewise.
59922         * lib/pagealign_alloc.c: Likewise.
59923         * lib/pipe.c: Likewise.
59924         * lib/wait-process.c: Likewise.
59925         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59926         * lib/exitfail.c: Likewise.
59927         * lib/savewd.c: Likewise.
59928         * lib/xsetenv.c: Likewise.
59929
59930         * modules/stdlib: New file.
59931         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59932         and extra comments about mkstemp().
59933         * lib/exit.h: Remove file.
59934         * lib/mkdtemp.h: Remove file.
59935         * lib/mkstemp.h: Remove file.
59936         * m4/stdlib_h.m4: New file.
59937         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59938
59939 2007-02-18  Bruno Haible  <bruno@clisp.org>
59940
59941         * modules/math-tests: New file.
59942         * tests/test-math.c: New file.
59943
59944         * modules/math: New file.
59945         * modules/mathl (Files): Remove lib/mathl.h.
59946         (Depends-on): Add math.
59947         (Makefile.am): Don't mention mathl.h.
59948         (Include): Use <math.h> instead of mathl.h.
59949         * lib/math_.h: New file.
59950         * lib/mathl.h: Remove file.
59951         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59952         mathl.h.
59953         * lib/asinl.c: Likewise.
59954         * lib/atanl.c: Likewise.
59955         * lib/ceill.c: Likewise.
59956         * lib/cosl.c: Likewise.
59957         * lib/expl.c: Likewise.
59958         * lib/floorl.c: Likewise.
59959         * lib/frexpl.c: Likewise.
59960         * lib/ldexpl.c: Likewise.
59961         * lib/logl.c: Likewise.
59962         * lib/sincosl.c: Likewise.
59963         * lib/sinl.c: Likewise.
59964         * lib/sqrtl.c: Likewise.
59965         * lib/tanl.c: Likewise.
59966         * lib/trigl.c: Likewise.
59967         * m4/math_h.m4: New file.
59968         * MODULES.html.sh (Mathematics): Add math.
59969
59970 2007-02-17  Bruno Haible  <bruno@clisp.org>
59971
59972         * modules/wctype-tests: New file.
59973         * tests/test-wctype.c: New file.
59974
59975         * modules/wchar-tests: New file.
59976         * tests/test-wchar.c: New file.
59977
59978         * modules/unistd-tests: New file.
59979         * tests/test-unistd.c: New file.
59980
59981         * modules/time-tests: New file.
59982         * tests/test-time.c: New file.
59983
59984         * modules/sysexits-tests: New file.
59985         * tests/test-sysexits.c: New file.
59986
59987         * modules/sys_time-tests: New file.
59988         * tests/test-sys_time.c: New file.
59989
59990         * modules/sys_stat-tests: New file.
59991         * tests/test-sys_stat.c: New file.
59992
59993         * modules/sys_socket-tests: New file.
59994         * tests/test-sys_socket.c: New file.
59995
59996         * modules/sys_select-tests: New file.
59997         * tests/test-sys_select.c: New file.
59998
59999         * modules/string-tests: New file.
60000         * tests/test-string.c: New file.
60001
60002         * modules/stdbool-tests: New file.
60003         * tests/test-stdbool.c: New file.
60004
60005         * modules/netinet_in-tests: New file.
60006         * tests/test-netinet_in.c: New file.
60007
60008         * modules/inttypes-tests: New file.
60009         * tests/test-inttypes.c: New file.
60010
60011         * modules/fcntl-tests: New file.
60012         * tests/test-fcntl.c: New file.
60013
60014         * modules/byteswap-tests: New file.
60015         * tests/test-byteswap.c: New file.
60016
60017         * modules/arpa_inet-tests: New file.
60018         * tests/test-arpa_inet.c: New file.
60019
60020 2007-02-17  Bruno Haible  <bruno@clisp.org>
60021
60022         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60023         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60024         if the corresponding module is not enabled. Emit link warnings if
60025         the function is used nevertheless.
60026         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60027         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60028         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60029         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60030         * modules/inttypes (Depends-on): Add link-warning.
60031         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60032         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60033         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60034         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60035         * modules/imaxdiv (configure.ac): Likewise.
60036         * modules/strtoimax (configure.ac): Likewise.
60037         * modules/strtoumax (configure.ac): Likewise.
60038
60039 2007-02-17  Bruno Haible  <bruno@clisp.org>
60040
60041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60042         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60043         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60044         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60045
60046 2007-02-17  Bruno Haible  <bruno@clisp.org>
60047
60048         * modules/link-warning: New file.
60049         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60050         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60051         * modules/string (Depends-on): Add link-warning.
60052         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60053         string.h.
60054         * MODULES.html.sh (Support for building libraries and executables): Add
60055         link-warning.
60056
60057 2007-02-17  Bruno Haible  <bruno@clisp.org>
60058
60059         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60060         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60061         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60062         long lines.
60063
60064 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60065             Bruno Haible  <bruno@clisp.org>
60066
60067         * modules/tmpfile: New file.
60068         * lib/tmpfile.c: New file.
60069         * m4/tmpfile.m4: New file.
60070         * MODULES.html.sh (func_all_modules): New section "Input/output".
60071
60072 2007-02-15  Bruno Haible  <bruno@clisp.org>
60073
60074         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60075         (supports_delete_on_close): New function.
60076         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60077
60078 2007-02-14  Bruno Haible  <bruno@clisp.org>
60079
60080         * modules/mbspcasecmp-tests: New file.
60081         * tests/test-mbspcasecmp.sh: New file.
60082         * tests/test-mbspcasecmp.c: New file.
60083
60084         New module mbspcasecmp.
60085         * modules/mbspcasecmp: New file.
60086         * lib/mbspcasecmp.c: New file.
60087         * lib/string_.h (strncasecmp): Change warning message.
60088         (mbspcasecmp): New declaration.
60089         * m4/mbspcasecmp.m4: New file.
60090         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60091         GNULIB_MBSPCASECMP.
60092         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60093         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60094
60095 2007-02-14  Bruno Haible  <bruno@clisp.org>
60096
60097         * modules/mbsncasecmp-tests: New file.
60098         * tests/test-mbsncasecmp.sh: New file.
60099         * tests/test-mbsncasecmp.c: New file.
60100
60101         New module mbsncasecmp.
60102         * modules/mbsncasecmp: New file.
60103         * lib/mbsncasecmp.c: New file.
60104         * lib/string_.h (mbsncasecmp): New declaration.
60105         * m4/mbsncasecmp.m4: New file.
60106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60107         GNULIB_MBSNCASECMP.
60108         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60109         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60110
60111 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60112
60113         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60114         Verify that it doesn't overlap with our flags.
60115         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60116         do not have the desired effect in multibyte locales; instead, use
60117         mbscasecmp.
60118         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60119         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60120         we don't require GNU fnmatch ourselves (if our users require it, they
60121         should do so explicitly).
60122
60123         Fix regex code so it doesn't rely on strcasecmp.
60124         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60125         Otherwise, include gnulib's langinfo.h.
60126         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60127         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60128         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60129         * modules/regex (FILES): Remove m4/codeset.m4.
60130         (Depends-on): Add localcharset.  Remove strcase.
60131
60132 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60133
60134         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60135         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60136
60137 2007-02-13  Bruno Haible  <bruno@clisp.org>
60138
60139         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60141
60142 2007-02-12  Bruno Haible  <bruno@clisp.org>
60143
60144         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60145         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60146         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60147         time warning rather than a link error.
60148
60149 2007-02-12  Bruno Haible  <bruno@clisp.org>
60150
60151         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60152         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60154
60155 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60158         args, not 2.
60159
60160 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60161
60162         New module 'time', so that apps can include <time.h> as per
60163         POSIX and GNU instead of separate include files like time_r.h
60164         and timegm.h.  This implementation tries out a simpler approach
60165         for replacing decls in standard include files (as compared to
60166         the string module), somewhat as an experiment.
60167
60168         * config/srclist.txt: Comment out mktime.c for now.
60169         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60170         since it doesn't apply any more.  Use generic wording instead.
60171         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60172         'time'.
60173         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60174         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60175         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60176         Don't include <sys/types.h>; no longer needed since we assume C89.
60177         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60178         * lib/strftime.c: Likewise.
60179         * lib/time_r.c: Likewise.
60180         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60181         * lib/nanosleep.c: Include <time.h> first, to check interface.
60182         * lib/strptime.c: Likewise.
60183         * lib/time_r.c: Likewise.
60184         * lib/timegm.c: Likewise.
60185         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60186         needed.
60187         * lib/timegm.c: Don't include timegm.h; no longer needed.
60188         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60189         time.h now handles any problems in that area.
60190         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60191         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60192         that time.h defines struct timespec.
60193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60194         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60195         handles that.
60196         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60197         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60198         needed.  Set REPLACE_LOCALTIME.
60199         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60200         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60201         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60202         nanosleep; time_h.m4 now does that.  Don't require
60203         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60204         module handles this now.
60205         * modules/getdate (Depends-on): Remove timespec.  Add time.
60206         * modules/nanosleep (Depends-on): Likewise.
60207         * modules/stat-time (Depends-on): Likewise.
60208         * modules/nanosleep (Include): Include time.h, not timespec.h.
60209         * modules/strptime (Files): Remove lib/strptime.h.
60210         (Depends-on): Add extensions, time.
60211         (Include): Include time.h, not strptime.h.
60212         * modules/time_r (Files): Remove lib/time_r.h.
60213         (Depends-on): Add time.
60214         (Include): Include time.h, not time_r.h.
60215         * modules/timegm: Likewise.
60216         * modules/timespec (Description): Now does timespec-related decls
60217         of our own, instead of struct timespec itself.
60218         (Depends-on): Add time; remove extensions.
60219         (Maintainer): Add self.
60220         * modules/utimecmp (Depends-on): Add time; remove timespec.
60221         * modules/utimens (Depends-on): Likewise.
60222         * modules/xnanosleep (Depends-on): Likewise.
60223
60224 2007-02-11  Bruno Haible  <bruno@clisp.org>
60225
60226         * lib/c-strstr.c: Include allocsa.h.
60227         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60228         * lib/c-strcasestr.c: Include allocsa.h.
60229         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60230         * lib/strcasestr.c: Include allocsa.h.
60231         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60232         * lib/mbsstr.c: Include allocsa.h.
60233         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60234         allocsa/freesa instead of malloc/free.
60235         * lib/mbscasestr.c: Include allocsa.h.
60236         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60237         allocsa/freesa instead of malloc/free.
60238         * modules/c-strstr (Depends-on): Add allocsa.
60239         * modules/c-strcasestr (Depends-on): Likewise.
60240         * modules/strcasestr (Depends-on): Likewise.
60241         * modules/mbsstr (Depends-on): Likewise.
60242         * modules/mbscasestr (Depends-on): Likewise.
60243
60244 2007-02-11  Bruno Haible  <bruno@clisp.org>
60245
60246         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60247
60248         * modules/mbsspn-tests: New file.
60249         * tests/test-mbsspn.sh: New file.
60250         * tests/test-mbsspn.c: New file.
60251
60252 2007-02-11  Bruno Haible  <bruno@clisp.org>
60253
60254         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60255
60256         * modules/mbspbrk-tests: New file.
60257         * tests/test-mbspbrk.sh: New file.
60258         * tests/test-mbspbrk.c: New file.
60259
60260 2007-02-11  Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60263         unneeded cast.
60264
60265         * modules/mbscspn-tests: New file.
60266         * tests/test-mbscspn.sh: New file.
60267         * tests/test-mbscspn.c: New file.
60268
60269 2007-02-11  Bruno Haible  <bruno@clisp.org>
60270
60271         * modules/mbscasecmp-tests: New file.
60272         * tests/test-mbscasecmp.sh: New file.
60273         * tests/test-mbscasecmp.c: New file.
60274
60275 2007-02-11  Bruno Haible  <bruno@clisp.org>
60276
60277         Ensure O(n) worst-case complexity of mbscasestr.
60278         * lib/mbscasestr.c: Include stdbool.h.
60279         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60280         functions.
60281         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60282         the bookkeeping indicates that it's worth it.
60283         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60284
60285         * modules/mbscasestr-tests: New file.
60286         * tests/test-mbscasestr1.c: New file.
60287         * tests/test-mbscasestr2.sh: New file.
60288         * tests/test-mbscasestr2.c: New file.
60289         * tests/test-mbscasestr3.sh: New file.
60290         * tests/test-mbscasestr3.c: New file.
60291         * tests/test-mbscasestr4.sh: New file.
60292         * tests/test-mbscasestr4.c: New file.
60293         * m4/locale-tr.m4: New file.
60294
60295 2007-02-11  Bruno Haible  <bruno@clisp.org>
60296
60297         Ensure O(n) worst-case complexity of mbsstr.
60298         * lib/mbsstr.c: Include stdbool.h.
60299         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60300         functions.
60301         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60302         bookkeeping indicates that it's worth it.
60303         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60304
60305         * modules/mbsstr-tests: New file.
60306         * tests/test-mbsstr1.c: New file.
60307         * tests/test-mbsstr2.sh: New file.
60308         * tests/test-mbsstr2.c: New file.
60309         * tests/test-mbsstr3.sh: New file.
60310         * tests/test-mbsstr3.c: New file.
60311         * m4/locale-fr.m4: New file.
60312
60313 2007-02-11  Bruno Haible  <bruno@clisp.org>
60314
60315         * lib/mbsrchr.c (mbsrchr): Fix bug.
60316
60317         * modules/mbsrchr-tests: New file.
60318         * tests/test-mbsrchr.sh: New file.
60319         * tests/test-mbsrchr.c: New file.
60320
60321 2007-02-11  Bruno Haible  <bruno@clisp.org>
60322
60323         * lib/mbschr.c (mbschr): Fix bug.
60324
60325         * modules/mbschr-tests: New file.
60326         * tests/test-mbschr.sh: New file.
60327         * tests/test-mbschr.c: New file.
60328         * m4/locale-zh.m4: New file.
60329
60330 2007-02-11  Bruno Haible  <bruno@clisp.org>
60331
60332         Support for copying multibyte string iterators.
60333         * lib/mbiter.h: Include <string.h>.
60334         (mbiter_multi_copy): New function.
60335         (mbi_copy): New macro.
60336         * lib/mbuiter.h: Include <string.h>.
60337         (mbuiter_multi_copy): New function.
60338         (mbui_copy): New macro.
60339
60340 2007-02-11  Bruno Haible  <bruno@clisp.org>
60341
60342         New module mbslen.
60343         * modules/mbslen: New file.
60344         * lib/mbslen.c: New file.
60345         * lib/string_.h (mbslen): New declaration.
60346         * m4/mbslen.m4: New file.
60347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60348         GNULIB_MBSLEN.
60349         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60350         * MODULES.html.sh (Internationalization functions): Add mbslen.
60351
60352 2007-02-11  Bruno Haible  <bruno@clisp.org>
60353
60354         Ensure O(n) worst-case complexity of strcasestr substitute.
60355         * lib/strcasestr.c: Include stdbool.h.
60356         (knuth_morris_pratt): New function.
60357         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60358         bookkeeping indicates that it's worth it.
60359         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60360
60361         * modules/strcasestr-tests: New file.
60362         * tests/test-strcasestr.c: New file.
60363
60364 2007-02-11  Bruno Haible  <bruno@clisp.org>
60365
60366         Ensure O(n) worst-case complexity of c_strcasestr.
60367         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60368         (knuth_morris_pratt): New function.
60369         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60370         the bookkeeping indicates that it's worth it.
60371         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60372
60373         * modules/c-strcasestr-tests: New file.
60374         * tests/test-c-strcasestr.c: New file.
60375
60376 2007-02-11  Bruno Haible  <bruno@clisp.org>
60377
60378         Ensure O(n) worst-case complexity of c_strstr.
60379         * lib/c-strstr.c: Include stdbool.h, string.h.
60380         (knuth_morris_pratt): New function.
60381         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60382         bookkeeping indicates that it's worth it.
60383         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60384
60385         * lib/c-strstr.c: Complete rewrite for maintainability.
60386
60387         * modules/c-strstr-tests: New file.
60388         * tests/test-c-strstr.c: New file.
60389
60390 2007-02-11  Bruno Haible  <bruno@clisp.org>
60391
60392         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60393         5.2.1 and earlier, whereby \055 was treated just like the range
60394         delimiter '-'.
60395         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60396
60397 2007-02-08  Bruno Haible  <bruno@clisp.org>
60398
60399         * modules/regex (Depends-on): Add stdbool.
60400         Reported by Dalibor Topic <robilad@kaffe.org>.
60401
60402 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60403
60404         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60405         Prefer returning from main to exiting from it.
60406         Remove unnecessary parens after sizeof.
60407
60408 2007-02-05  Bruno Haible  <bruno@clisp.org>
60409
60410         New module mbssep.
60411         * modules/mbssep: New file.
60412         * lib/mbssep.c: New file.
60413         * lib/string_.h (strsep): Add a conditional link warning.
60414         (mbssep): New declaration.
60415         * m4/mbssep.m4: New file.
60416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60417         GNULIB_MBSSEP.
60418         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60419         * MODULES.html.sh (Internationalization functions): Add mbssep.
60420
60421 2007-02-05  Bruno Haible  <bruno@clisp.org>
60422
60423         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60424         Optimize search in case of 1 delimiter.
60425
60426 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60427
60428         * lib/acl.h: Include sys/types.h before sys/acl.h.
60429
60430 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60431
60432         Merge upstream fix for glibc bugzilla #3957:
60433
60434         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60435
60436         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60437         bit for RE_HAT_LISTS_NOT_NEWLINE.
60438         (build_charclass_op): Remove bogus comment.
60439
60440 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60441
60442         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60443
60444 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60445
60446         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60447         * lib/memmem.c [!defined _LIBC]: Include config.h.
60448
60449 2007-02-04  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60452         warning message.
60453
60454 2007-02-04  Bruno Haible  <bruno@clisp.org>
60455
60456         New module mbstok_r.
60457         * modules/mbstok_r: New file.
60458         * lib/mbstok_r.c: New file.
60459         * lib/string_.h (strtok_r): Change argument names to match the
60460         comments. Add a conditional link warning.
60461         (mbstok_r): New declaration.
60462         * m4/mbstok_r.m4: New file.
60463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60464         GNULIB_MBSTOK_R.
60465         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60466         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60467
60468 2007-02-04  Bruno Haible  <bruno@clisp.org>
60469
60470         New module mbsspn.
60471         * modules/mbsspn: New file.
60472         * lib/mbsspn.c: New file.
60473         * lib/string_.h (strspn): Add a conditional link warning.
60474         (mbsspn): New declaration.
60475         * m4/mbsspn.m4: New file.
60476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60477         GNULIB_MBSSPN.
60478         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60479         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60480
60481 2007-02-04  Bruno Haible  <bruno@clisp.org>
60482
60483         New module mbspbrk.
60484         * modules/mbspbrk: New file.
60485         * lib/mbspbrk.c: New file.
60486         * lib/string_.h (strpbrk): Add a conditional link warning.
60487         (mbspbrk): New declaration.
60488         * m4/mbspbrk.m4: New file.
60489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60490         GNULIB_MBSPBRK.
60491         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60492         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60493
60494 2007-02-04  Bruno Haible  <bruno@clisp.org>
60495
60496         New module mbscspn.
60497         * modules/mbscspn: New file.
60498         * lib/mbscspn.c: New file.
60499         * lib/string_.h (strcspn): Add a conditional link warning.
60500         (mbscspn): New declaration.
60501         * m4/mbscspn.m4: New file.
60502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60503         GNULIB_MBSCSPN.
60504         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60505         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60506
60507 2007-02-04  Bruno Haible  <bruno@clisp.org>
60508
60509         New module mbscasestr, reduced goal of strcasestr.
60510         * modules/mbscasestr: New file.
60511         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60512         (mbscasestr): Renamed from strcasestr.
60513         * lib/strcasestr.c: Don't include mbuiter.h.
60514         (strcasestr): Remove support for multibyte locales.
60515         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60516         Change the conditional link warning.
60517         (mbscasestr): New declaration.
60518         * m4/mbscasestr.m4: New file.
60519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60520         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60521         REPLACE_STRCASESTR.
60522         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60524         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60525         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60526         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60527         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60528         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60529         (Depends-on): Remove mbuiter.
60530         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60531
60532 2007-02-04  Bruno Haible  <bruno@clisp.org>
60533
60534         Simplify handling of strncasecmp.
60535         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60536         the conditional link warning.
60537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60538         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60539         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60540         * modules/strcase (configure.ac): Don't invoke
60541         gl_STRING_MODULE_INDICATOR.
60542         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60543
60544 2007-02-04  Bruno Haible  <bruno@clisp.org>
60545
60546         New module mbscasecmp, reduced goal of strcasecmp.
60547         * modules/mbscasecmp: New file.
60548         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60549         (mbscasecmp): Renamed from strcasecmp.
60550         * lib/strcasecmp.c: Don't include mbuiter.h.
60551         (strcasecmp): Remove support for multibyte locales.
60552         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60553         Change the conditional link warning.
60554         (mbscasecmp): New declaration.
60555         * m4/mbscasecmp.m4: New file.
60556         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60557         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60558         REPLACE_STRCASECMP.
60559         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60561         GNULIB_MBSCASECMP.
60562         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60563         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60564         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60565         (Depends-on): Remove mbuiter.
60566         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60567
60568 2007-02-04  Bruno Haible  <bruno@clisp.org>
60569
60570         New module mbsstr. Remove module strstr.
60571         * modules/mbsstr: New file.
60572         * modules/strstr: Remove file.
60573         * lib/mbsstr.c: Renamed from lib/strstr.c.
60574         (mbsstr): Renamed from strstr.
60575         * lib/string_.h (strstr): Remove declaration. Change the conditional
60576         link warning.
60577         (mbsstr): New declaration.
60578         * m4/mbsstr.m4: New file.
60579         * m4/strstr.m4: Remove file.
60580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60581         REPLACE_STRSTR.
60582         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60583         Don't initialize GNULIB_STRSTR.
60584         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60585         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60586         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60587         (Support for systems lacking ANSI C 89): Remove strstr.
60588
60589 2007-02-04  Bruno Haible  <bruno@clisp.org>
60590
60591         New module mbsrchr.
60592         * modules/mbsrchr: New file.
60593         * lib/mbsrchr.c: New file.
60594         * lib/string_.h (strrchr): Add a conditional link warning.
60595         (mbsrchr): New declaration.
60596         * m4/mbsrchr.m4: New file.
60597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60598         GNULIB_MBSRCHR.
60599         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60600         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60601
60602 2007-02-04  Bruno Haible  <bruno@clisp.org>
60603
60604         New module mbschr.
60605         * modules/mbschr: New file.
60606         * lib/mbschr.c: New file.
60607         * lib/string_.h (strchr): Add a conditional link warning.
60608         (mbschr): New declaration.
60609         * m4/mbschr.m4: New file.
60610         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60611         GNULIB_MBSCHR.
60612         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60613         * MODULES.html.sh (Internationalization functions): Add mbschr.
60614
60615 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60616
60617         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60618
60619         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60620
60621 2007-02-04  Bruno Haible  <bruno@clisp.org>
60622
60623         New module description section 'configure.ac-early'.
60624         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60625         (func_get_autoconf_early_snippet): New function.
60626         (func_import, func_create_testdir): Use it. Remove special cases for
60627         modules 'extensions' and 'lock'.
60628         * modules/extensions (configure.ac-early): Require
60629         gl_USE_SYSTEM_EXTENSIONS.
60630         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60631
60632 2007-02-04  Bruno Haible  <bruno@clisp.org>
60633
60634         Make use of gcj-4.3's -fsource and -ftarget option.
60635         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60636         and if so try the options -fsource and -ftarget.
60637         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60638         source_version, ftarget_option, target_version arguments.
60639         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60640         (is_envjavac_oldgcj_14_14_usable): Renamed from
60641         is_envjavac_gcj_14_14_usable.
60642         (is_envjavac_oldgcj_14_13_usable): Renamed from
60643         is_envjavac_gcj_14_13_usable.
60644         (is_gcj_present): Update.
60645         (is_gcj_43, is_gcj43_usable): New functions.
60646         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60647         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60648         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60649         try the options -fsource and -ftarget.
60650
60651 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60652
60653         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60654         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60655         larger value.
60656
60657 2007-02-03  Jim Meyering  <jim@meyering.net>
60658
60659         Give tools a better chance to allocate space for very large buffers.
60660         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60661
60662         Make pwd and readlink work also when run with an unreadable parent dir
60663         on systems with openat support.
60664         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60665         provided getcwd function, even when we have openat support.
60666         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60667
60668 2007-02-02  Bruno Haible  <bruno@clisp.org>
60669
60670         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60671         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60672         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60673         portability problems if one of these functions is only used on specific
60674         platforms.
60675         Reported by Paul Eggert.
60676
60677 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60678
60679         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60680         is causing more trouble than it's curing.
60681         * lib/regex_internal.h (__mempcpy): Remove.
60682         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60683         (and make the code a tad smaller to boot).
60684         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60685
60686 2007-02-02  Jim Meyering  <jim@meyering.net>
60687
60688         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60689         section, not in the Makefile.am: one.
60690
60691 2007-02-02  Eric Blake  <ebb9@byu.net>
60692
60693         * lib/strchrnul.c: Always include config.h first.
60694
60695         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60696         gnulib strstr is not necessary here.
60697
60698 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60699
60700         * m4/socklen.m4: Fix typo.
60701
60702 2007-02-02  Eric Blake  <ebb9@byu.net>
60703
60704         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60705         * modules/netinet_in (Makefile.am): Likewise.
60706
60707 2007-02-01  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/string_.h (GL_LINK_WARNING): New macro.
60710         (strcasecmp, strstr, strcasestr): If provided by the system,
60711         conditionally define as a macro that leads to a warning instead of to
60712         an error.
60713         (strncasecmp): Conditionally define as a macro that leads to a warning.
60714
60715 2007-02-01  Karl Berry  <karl@gnu.org>
60716
60717         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60718
60719 2007-02-01  Bruno Haible  <bruno@clisp.org>
60720
60721         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60722         renamings.
60723
60724 2007-02-01  Eric Blake  <ebb9@byu.net>
60725
60726         * modules/regex (Depends-on): Revert dependence on mempcpy.
60727         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60728         module's definition of mempcpy.
60729         Reported by Paul Eggert.
60730
60731 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60732
60733         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60734         the symbol XYZ before redefining it.  This fixes a problem with
60735         programs that don't use XYZ, when compiled on systems that define
60736         XYZ to something else.
60737
60738 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60739
60740         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60741         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60742         writeable to group or other and (2) is intended to have a special
60743         mode bit that is set or cleared.  In such a case, the directory
60744         should be neither group- nor other-writeable until the special
60745         mode bits are right.
60746
60747 2007-01-31  Eric Blake  <ebb9@byu.net>
60748
60749         * modules/mountlist (Depends-on): Add strstr.
60750
60751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60752         bug.
60753         * modules/string (Makefile.am): Remove redundant replacement.
60754         * modules/regex (Depends-on): Add mempcpy.
60755
60756 2007-01-31  Bruno Haible  <bruno@clisp.org>
60757
60758         New module description field 'Link'.
60759         * gnulib-tool (func_usage): Document --extract-link-directive.
60760         (sed_extract_prog): Recognize 'Link' directive.
60761         (func_get_link_directive): New function.
60762         (func_import): Show summary of link directives.
60763         Handle --extract-link-directive option.
60764         * modules/acl (Link): New section.
60765         * modules/clock-time (Link): New section.
60766         * modules/euidaccess (Link): New section.
60767         * modules/gettext (Link): New section.
60768         * modules/iconv (Link): New section.
60769         * modules/lock (Link): New section.
60770         * modules/nanosleep (Link): New section.
60771         * modules/readline (Link): New section.
60772
60773 2007-01-27  Bruno Haible  <bruno@clisp.org>
60774
60775         Enforce the use of gnulib modules for unportable <string.h> functions.
60776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60777         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60778         (gl_HEADER_STRING_H_BODY): Require it.
60779         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60780         the symbol XYZ to one that gives a link error.
60781         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60782         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60783         * modules/mempcpy (configure.ac): Likewise.
60784         * modules/memrchr (configure.ac): Likewise.
60785         * modules/stpcpy (configure.ac): Likewise.
60786         * modules/stpncpy (configure.ac): Likewise.
60787         * modules/strcase (configure.ac): Likewise.
60788         * modules/strcasestr (configure.ac): Likewise.
60789         * modules/strchrnul (configure.ac): Likewise.
60790         * modules/strdup (configure.ac): Likewise.
60791         * modules/strndup (configure.ac): Likewise.
60792         * modules/strnlen (configure.ac): Likewise.
60793         * modules/strpbrk (configure.ac): Likewise.
60794         * modules/strsep (configure.ac): Likewise.
60795         * modules/strstr (configure.ac): Likewise.
60796         * modules/strtok_r (configure.ac): Likewise.
60797
60798 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60799
60800         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60801
60802 2007-01-30  Jim Meyering  <jim@meyering.net>
60803
60804         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60805
60806 2007-01-29  Bruno Haible  <bruno@clisp.org>
60807
60808         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60809         * lib/execute.c: Likewise.
60810         * lib/pipe.c: Likewise.
60811         * lib/printf-args.h: Likewise.
60812         * lib/printf-args.c: Likewise.
60813         * lib/printf-parse.c: Likewise.
60814         * lib/vasnprintf.c: Likewise.
60815
60816 2007-01-29  Eric Blake  <ebb9@byu.net>
60817
60818         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60819         declaration.
60820
60821 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60822
60823         * lib/strptime.h (strptime): Use 'restrict' for args where
60824         POSIX requires this.
60825         * lib/strptime.c (strptime): Likewise.
60826         Change license notice from LGPL to GPL, since gnulib-tool will
60827         change this as needed.
60828         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60829         defined.
60830         Include "strptime.h" first, to check interface.
60831         Do not #undef _LIBC and _NL_CURRENT.
60832         Do not include <stdlib.h>; no longer needed.
60833         Include "time_r.h" and declare ptime_locale_status
60834         only if _LIBC is not defined.
60835         (__P): Remove unused macro.
60836         (match_string): Bring back glibc version, but use it only if _LIBC
60837         is defined.
60838         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60839         Remove unnecessary assertion and abort() call.
60840         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60841         * m4/strptime.m4: Fix serial number comment.
60842         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60843         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60844         (Depends-on): Add time_r.
60845
60846 2007-01-29  Bruno Haible  <bruno@clisp.org>
60847
60848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60849         strptime.
60850         * modules/strptime (Depends-on): Add stdbool.
60851         * lib/strptime.h: Include <time.h> always. Add comments.
60852
60853 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60854
60855         * modules/strptime: New file.
60856         * lib/strptime.h: New file.
60857         * lib/strptime.c: New file.
60858         * m4/strptime.m4: New file.
60859
60860 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60861
60862         * MODULES.html.sh: New module mpsort.
60863         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60864
60865         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60866         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60868         All uses changed.
60869         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60870         All uses changed.
60871         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60872         to _Restrict_.
60873         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60874         the parameter matches the prototype.
60875
60876 2007-01-28  Jim Meyering  <jim@meyering.net>
60877
60878         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60879         sys/time.h here, reverting that part of the previous patch:
60880         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60881
60882 2007-01-28  Bruno Haible  <bruno@clisp.org>
60883
60884         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60885         value of $(SYS_TIME_H).
60886         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60887         remove it conditionally, too. [added by Jim Meyering]
60888         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60890         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60891         GETTIMEOFDAY_REPLACEMENT to 1.
60892
60893 2007-01-28  Bruno Haible  <bruno@clisp.org>
60894
60895         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60896         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60898         Set UNISTD_H instead of UNISTD_H2.
60899         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60900
60901 2007-01-28  Bruno Haible  <bruno@clisp.org>
60902
60903         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60904         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60905
60906 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60907
60908         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60909         (func_create_testdir): Ensure C locale for `grep' and `tr'
60910         character ranges.
60911         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60912         ACLOCAL_AMFLAGS parsing state machine.
60913
60914 2007-01-27  Bruno Haible  <bruno@clisp.org>
60915
60916         * modules/unistr/base: Update.
60917
60918 2007-01-27  Bruno Haible  <bruno@clisp.org>
60919
60920         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60921         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60922         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60923         modules/unistr/u32-mbtouc.
60924         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60925         * lib/unistr.h: Update.
60926         * lib/linebreak.c: Update.
60927         * modules/unistr/u32-mbtouc: Renamed from
60928         modules/unistr/u32-mbtouc-safe.
60929         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60930         * lib/unistr.h: Update.
60931         * lib/unistr/u32-to-u8.c: Update.
60932         * lib/unistr/u32-to-u16.c: Update.
60933
60934 2007-01-27  Bruno Haible  <bruno@clisp.org>
60935
60936         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60937         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60938         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60939         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60940         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60941         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60942         modules/unistr/u16-mbtouc.
60943         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60944         * lib/unistr.h: Update.
60945         * lib/linebreak.c: Update.
60946         * modules/linebreak: Update.
60947         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60948         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60949         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60950         * modules/unistr/u16-mbtouc: Renamed from
60951         modules/unistr/u16-mbtouc-safe.
60952         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60953         * lib/unistr.h: Update.
60954         * lib/unistr/u16-to-u8.c: Update.
60955         * modules/unistr/u16-to-u8: Update.
60956         * lib/unistr/u16-to-u32.c: Update.
60957         * modules/unistr/u16-to-u32: Update.
60958
60959 2007-01-27  Bruno Haible  <bruno@clisp.org>
60960
60961         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60962         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60963         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60964         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60965         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60966         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60967         modules/unistr/u8-mbtouc.
60968         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60969         * lib/unistr.h: Update.
60970         * lib/striconveh.c: Update.
60971         * modules/striconveh: Update.
60972         * lib/linebreak.c: Update.
60973         * modules/linebreak: Update.
60974         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60975         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60976         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60977         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60978         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60979         * lib/unistr.h: Update.
60980         * lib/striconveh.c: Update.
60981         * modules/striconveh: Update.
60982         * lib/unistr/u8-to-u16.c: Update.
60983         * modules/unistr/u8-to-u16: Update.
60984         * lib/unistr/u8-to-u32.c: Update.
60985         * modules/unistr/u8-to-u32: Update.
60986
60987 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60988
60989         Sync from Libtool.
60990         * lib/argz.c: Do not include strings.h nor memory.h, include
60991         string.h unconditionally.  Patch by Simon Josefsson.
60992
60993 2007-01-27  Bruno Haible  <bruno@clisp.org>
60994
60995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60996         from gl_HEADER_STRING_H_BODY.
60997         (gl_HEADER_STRING_H_BODY): Require it.
60998         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60999         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61000         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61001         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61002         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61003         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61005         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61006         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61007         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61008         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61009         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61010         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61011         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61012         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61013
61014 2007-01-27  Bruno Haible  <bruno@clisp.org>
61015
61016         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61017         check_PROGRAMS into noinst_PROGRAMS.
61018         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61019         check_PROGRAMS in this case.
61020         (func_import): Set for_test to false.
61021         (func_create_testdir): Set for_test to true.
61022
61023 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61024             Bruno Haible  <bruno@clisp.org>
61025
61026         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61027         (Depends-on): Add string.
61028         (Includes): Use <string.h> instead of strcasestr.h.
61029         * modules/string (Makefile.am): Also substitute the value of
61030         REPLACE_STRCASESTR.
61031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61032         assume strcasestr is declared in <string.h> not <strings.h>. Also
61033         set REPLACE_STRCASESTR.
61034         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61035         REPLACE_STRCASESTR.
61036         * lib/strcasestr.h: Remove file.
61037         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61038         * lib/string_.h (strcasestr): New declaration.
61039
61040 2007-01-27  Bruno Haible  <bruno@clisp.org>
61041
61042         * lib/string_.h: Use 'extern'.
61043
61044 2007-01-27  Jim Meyering  <jim@meyering.net>
61045
61046         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61047         of set-but-not-used local, "q".
61048
61049         * lib/mempcpy.c: Include <config.h> before <string.h>.
61050         This fixes a compilation error on HP-UX, due to the system's
61051         "restrict"-using mempcpy prototype.
61052
61053 2007-01-26  Bruno Haible  <bruno@clisp.org>
61054
61055         Small optimization.
61056         * lib/javacomp.c: Include c-strstr.h.
61057          (is_envjavac_gcj): Use c_strstr instead of strstr.
61058         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61059
61060 2007-01-26  Bruno Haible  <bruno@clisp.org>
61061
61062         * MODULES.html.sh (Unicode string functions): Add the new modules.
61063
61064         * modules/uniconv/u32-strconv-to-locale: New file.
61065         * lib/uniconv/u32-strconv-to-locale.c: New file.
61066
61067         * modules/uniconv/u16-strconv-to-locale: New file.
61068         * lib/uniconv/u16-strconv-to-locale.c: New file.
61069
61070         * modules/uniconv/u8-strconv-to-locale: New file.
61071         * lib/uniconv/u8-strconv-to-locale.c: New file.
61072
61073         * modules/uniconv/u32-strconv-from-locale: New file.
61074         * lib/uniconv/u32-strconv-from-locale.c: New file.
61075
61076         * modules/uniconv/u16-strconv-from-locale: New file.
61077         * lib/uniconv/u16-strconv-from-locale.c: New file.
61078
61079         * modules/uniconv/u8-strconv-from-locale: New file.
61080         * lib/uniconv/u8-strconv-from-locale.c: New file.
61081
61082         * modules/uniconv/u32-strconv-to-enc: New file.
61083         * lib/uniconv/u32-strconv-to-enc.c: New file.
61084         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61085         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61086
61087         * modules/uniconv/u16-strconv-to-enc: New file.
61088         * lib/uniconv/u16-strconv-to-enc.c: New file.
61089         * lib/uniconv/u-strconv-to-enc.h: New file.
61090         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61091         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61092
61093         * modules/uniconv/u8-strconv-to-enc: New file.
61094         * lib/uniconv/u8-strconv-to-enc.c: New file.
61095         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61096         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61097
61098         * modules/uniconv/u32-strconv-from-enc: New file.
61099         * lib/uniconv/u32-strconv-from-enc.c: New file.
61100         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61101         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61102
61103         * modules/uniconv/u16-strconv-from-enc: New file.
61104         * lib/uniconv/u16-strconv-from-enc.c: New file.
61105         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61106         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61107
61108         * modules/uniconv/u8-strconv-from-enc: New file.
61109         * lib/uniconv/u8-strconv-from-enc.c: New file.
61110         * lib/uniconv/u-strconv-from-enc.h: New file.
61111         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61112         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61113
61114         * modules/uniconv/u32-conv-from-enc: New file.
61115         * lib/uniconv/u32-conv-from-enc.c: New file.
61116         * modules/uniconv/u32-conv-from-enc-tests: New file.
61117         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61118
61119         * modules/uniconv/u16-conv-from-enc: New file.
61120         * lib/uniconv/u16-conv-from-enc.c: New file.
61121         * lib/uniconv/u-conv-from-enc.h: New file.
61122         * modules/uniconv/u16-conv-from-enc-tests: New file.
61123         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61124
61125         * modules/uniconv/u8-conv-from-enc: New file.
61126         * lib/uniconv/u8-conv-from-enc.c: New file.
61127         * modules/uniconv/u8-conv-from-enc-tests: New file.
61128         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61129
61130         * modules/uniconv/base: New file.
61131         * lib/uniconv.h: New file.
61132
61133 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61134
61135         * doc/gnulib-tool.texi (Initial import): Update to match current
61136         behavior with strdup module.
61137         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61138         * lib/memmem.h: Remove; all uses removed.  This is now done
61139         by <string.h>.
61140         * lib/mempcpy.h: Likewise.
61141         * lib/memrchr.h: Likewise.
61142         * lib/stpcpy.h: Likewise.
61143         * lib/stpncpy.h: Likewise.
61144         * lib/strcase.h: Likewise.
61145         * lib/strchrnul.h: Likewise.
61146         * lib/strdup.h: Likewise.
61147         * lib/strndup.h: Likewise.
61148         * lib/strnlen.h: Likewise.
61149         * lib/strpbrk.h: Likewise.
61150         * lib/strsep.h: Likewise.
61151         * lib/strstr.h: Likewise.
61152         * lib/strtok_r.h: Likewise.
61153         * lib/string_.h: New file.
61154         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61155         Rely on <string.h> instead.
61156         * lib/canon-host.c: Likewise.
61157         * lib/chdir-long.c: Likewise.
61158         * lib/concatpath.c: Likewise.
61159         * lib/exclude.c: Likewise.
61160         * lib/fchdir.c: Likewise.
61161         * lib/getaddrinfo.c: Likewise.
61162         * lib/getcwd.c: Likewise.
61163         * lib/getsubopt.c: Likewise.
61164         * lib/glob.c: Likewise.
61165         * lib/hard-locale.c: Likewise.
61166         * lib/iconvme.c: Likewise.
61167         * lib/javacomp.c: Likewise.
61168         * lib/mempcpy.c: Likewise.
61169         * lib/memrchr.c: Likewise.
61170         * lib/regex_internal.h: Likewise.
61171         * lib/stpncpy.c: Likewise.
61172         * lib/strcasecmp.c: Likewise.
61173         * lib/strchrnul.c: Likewise.
61174         * lib/strdup.c: Likewise.
61175         * lib/striconv.c: Likewise.
61176         * lib/striconveh.c: Likewise.
61177         * lib/striconveha.c: Likewise.
61178         * lib/strncasecmp.c: Likewise.
61179         * lib/strndup.c: Likewise.
61180         * lib/strnlen.c: Likewise.
61181         * lib/strsep.c: Likewise.
61182         * lib/strstr.c: Likewise.
61183         * lib/strtok_r.c: Likewise.
61184         * lib/userspec.c: Likewise.
61185         * lib/w32spawn.h: Likewise.
61186         * lib/xstrndup.c: Likewise.
61187         * lib/mountlist.c (strstr): Remove decl.
61188         * m4/string_h.m4: New file.
61189         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61190         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61191         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61192         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61193         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61194         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61195         Set REPLACE_STRCASECMP if necessary.
61196         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61197         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61198         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61199         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61200         HAVE_DECL_STRDUP if necessary.
61201         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61202         since gl_FUNC_STRNDUP does that now.
61203         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61204         Check for decl here...
61205         (gl_PREREQ_STRNLEN): ... not here.
61206         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61207         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61208         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61209         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61210         necessary.
61211         * modules/string: New file.
61212         * modules/memmem (Files): Remove special-purpose include file.
61213         (Depends-on): Add string.
61214         (Include): Include <string.h>, not the removed file.
61215         * modules/mempcpy: Likewise.
61216         * modules/memrchr: Likewise.
61217         * modules/stpcpy: Likewise.
61218         * modules/stpncpy: Likewise.
61219         * modules/strcase: Likewise.
61220         * modules/strchrnul: Likewise.
61221         * modules/strdup: Likewise.
61222         * modules/strndup: Likewise.
61223         * modules/strnlen: Likewise.
61224         * modules/strpbrk: Likewise.
61225         * modules/strsep: Likewise.
61226         * modules/strstr: Likewise.
61227         * modules/strtok_r: Likewise.
61228         * tests/test-dirname.c: Don't include "strdup.h", since
61229         <string.h> now suffices.
61230         * tests/test-memmem.c: Don't include "memmem.h", since
61231         <string.h> now suffices.
61232
61233 2007-01-25  Bruno Haible  <bruno@clisp.org>
61234
61235         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61236         *resultp is 0.
61237
61238         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61239         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61240         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61241         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61242
61243         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61244         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61245         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61246         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61247         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61248         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61249
61250 2007-01-24  Bruno Haible  <bruno@clisp.org>
61251
61252         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61253         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61254         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61255         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61256         gl_FUNC_FTS_CORE.
61257         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61258         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61259         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61260         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61261         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61262         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61263         gl_FUNC_FCHOWNAT.
61264         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61265         gl_FUNC_STRFTIME.
61266         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61267         Reported by Ralf Wildenhues.
61268
61269 2007-01-24  Bruno Haible  <bruno@clisp.org>
61270
61271         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61272         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61273         gl_GETADDRINFO.
61274         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61275         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61276         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61277
61278 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61281         Don't use 'exit'; just return from 'main'.
61282         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61283
61284         * lib/fnmatch_.h: Readjust white space and comments to match
61285         glibc, to avoid spurious diffs.
61286
61287 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61288
61289         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61290         2004-12-01 change by Jakub Jelinek, since this code won't compile
61291         if !LIBC.  Problem reported by Bob Proulx.
61292
61293 2007-01-23  Bruno Haible  <bruno@clisp.org>
61294
61295         * lib/striconveh.c: Include c-strcaseeq.h.
61296         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61297         * modules/striconveh (Depends-on): Add c-strcaseeq.
61298
61299 2007-01-23  Bruno Haible  <bruno@clisp.org>
61300
61301         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61302
61303         * modules/c-strcaseeq: New file.
61304         * lib/c-strcaseeq.h: New file.
61305
61306         * modules/streq: New file.
61307         * lib/streq.h: New file.
61308
61309 2007-01-23  Bruno Haible  <bruno@clisp.org>
61310
61311         * modules/striconveha-tests: New file.
61312         * tests/test-striconveha.c: New file.
61313
61314         * lib/striconveha.h: Include <stdbool.h>.
61315         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61316         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61317         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61318         (mem_iconveha): New function.
61319         (str_iconveha_notranslit): Renamed from str_iconveha.
61320         (str_iconveha): New function.
61321         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61322         c-strcase.
61323
61324 2007-01-23  Bruno Haible  <bruno@clisp.org>
61325
61326         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61327         encodings without forgiving before trying any encoding with handler.
61328         (str_iconveha): Try all encodings without forgiving before trying any
61329         encoding with handler.
61330
61331 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61332
61333         Import the following changes from libc.
61334
61335         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61336
61337         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61338
61339         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61340
61341         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61342         normal_bracket label.
61343
61344         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61345
61346         [BZ #361]
61347         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61348         to normal_bracket after fetching the next character.
61349
61350 2007-01-22  Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61353         argument.
61354         * lib/striconveh.c (iconv_carefully_1): New function.
61355         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61356         argument.
61357         (str_cd_iconveh): Update.
61358         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61359         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61360         * tests/test-striconveh.c (MAGIC): New macro.
61361         (new_offsets): New function.
61362         (main): Test call with and without offsets.
61363
61364 2007-01-22  Bruno Haible  <bruno@clisp.org>
61365
61366         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61367         * modules/sys_select (Makefile.am): Likewise.
61368         * modules/sys_socket (Makefile.am): Likewise.
61369         * modules/sys_time (Makefile.am): Likewise.
61370
61371 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         * modules/gettimeofday (License): Change from GPL to LGPL, since
61374         gettimeofday is a library function.
61375
61376 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61377
61378         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61379
61380 2007-01-21  Bruno Haible  <bruno@clisp.org>
61381
61382         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61383
61384 2007-01-21  Bruno Haible  <bruno@clisp.org>
61385
61386         * modules/striconveha: New file.
61387         * lib/striconveha.h: New file.
61388         * lib/striconveha.c: New file.
61389         * MODULES.html.sh (Internationalization functions): Add striconveha.
61390         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61391         string.
61392         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61393
61394 2007-01-21  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61397         * lib/striconveh.c (str_iconveh): Likewise.
61398
61399 2007-01-21  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/striconveh.h (mem_iconveh): New declaration.
61402         * lib/striconveh.c (mem_iconveh): New function.
61403         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61404
61405 2007-01-21  Bruno Haible  <bruno@clisp.org>
61406
61407         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61408
61409         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61410         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61411         original result buffer.
61412         (str_cd_iconveh): Update.
61413         * tests/test-striconveh.c (main): Update.
61414
61415         * lib/striconv.h (mem_cd_iconv): Change specification.
61416         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61417         result buffer.
61418         (str_cd_iconv): Update.
61419         * tests/test-striconv.c (main): Update.
61420
61421 2007-01-21  Bruno Haible  <bruno@clisp.org>
61422
61423         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61424
61425 2007-01-20  Jim Meyering  <jim@meyering.net>
61426
61427         * lib/userspec.c (parse_with_separator): If a user or group string
61428         starts with "+", skip the corresponding name-to-ID look-up, since
61429         such a look-up must fail: user and group names may not include "+".
61430
61431 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61432
61433         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61434         since we now assume the sys_time module.
61435         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61436         check for sys/time.h; no longer needed.
61437         * modules/poll (Depends-on): Depend on sys_time.
61438
61439 2007-01-18  Bruno Haible  <bruno@clisp.org>
61440
61441         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61442         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61443
61444         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61445         gettimeofday.
61446
61447         * tests/test-gettimeofday.c: Include <time.h>.
61448         (dummy): Remove variable.
61449
61450         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61451         gl_HEADER_SYS_TIME_H.
61452         (gl_HEADER_SYS_TIME_H): New macro.
61453
61454         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61455         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61457         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61458         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61459         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61460         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61461         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61462         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61463         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61464         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61465
61466         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61467         last change; it caused a compilation error when cross-compiling to
61468         Cygwin.
61469
61470 2007-01-18  Jim Meyering  <jim@meyering.net>
61471
61472         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61473         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61474         than the race-prone "test -d sys || mkdir sys".
61475         (configure.ac): Use AC_PROG_MKDIR_P.
61476         * modules/sys_select: Likewise.
61477         * modules/sys_socket: Likewise.
61478         * modules/sys_time: Likewise.
61479
61480 2007-01-18  Eric Blake  <ebb9@byu.net>
61481
61482         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61483         replace gettimeofday.
61484         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61485         name, to avoid infinite recursion.
61486
61487 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61488
61489         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61490         module sys_time.
61491         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61492         assume timespec.h defines struct timeval.
61493         * lib/settime.c: Likewise.
61494         * lib/utimens.c: Likewise.
61495         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61496         since we now assume the gettimeofday module.
61497         * lib/tempname.c (__gen_tempname): Likewise.
61498         * lib/gettimeofday.h: Remove.
61499         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61500         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61501         Include <time.h>, for 'time()'.
61502         (localtime_buffer_addr): Also use this workaround if
61503         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61504         to simplify the uses.  All uses changed.
61505         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61506         that #undef is inside {}, and 'const' follows type name consistently.
61507         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61508         (gettimeofday): Do not use the maximum possible value for
61509         tv->tv_usec, since that might break usages other than ls.c.
61510         Instead, we'll leave ls.c alone.  This undoes today's patch
61511         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61512         we've never observed the problem but might as well keep the
61513         canary.
61514         * lib/nanosleep.c: Include timespec.h first, for interface check.
61515         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61516         now assume the sys_time module.
61517         * lib/tempname.c: Likewise.
61518         * lib/timespec.h: Likewise.
61519         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61520         needed.
61521         * lib/strftime.c: Likewise.
61522         * lib/timespec.h: Likewise.
61523         * lib/posixtm.c: Include posixtm.h first, for interface check.
61524         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61525         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61526         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61527         * lib/sys_time_.h: New file.
61528         * lib/timespec.h (struct timespec): Use long int, not long.
61529         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61530         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61531         Remove obsolescent call to AC_HEADER_TIME.
61532         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61533         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61534         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61535         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61536         Likewise.
61537         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61538         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61539         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61540         into the sys_time module.  Check for gettimeofday just once.
61541         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61542         for gettimeofday signature to just check the signature.  Merely
61543         compile it, since linking doesn't test signature.  Improve test for
61544         whether gettimeofday.o is actually needed.
61545         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61546         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61547         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61548         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61549         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61550         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61551         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61552         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61553         than worrying about sys/time.h.
61554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61555         Don't bother worrying about TIME_WITH_SYS_TIME.
61556         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61557         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61558         * m4/sys_time_h.m4: New file.
61559         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61560         Don't include sys/time.h.  Return from main rather than exiting.
61561         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61562         all uses changed.
61563         * modules/gethrxtime (Depends-on): Add sys_time.
61564         * modules/gettime (Depends-on): Likewise.
61565         * modules/gettimeofday (Depends-on): Likewise.
61566         * modules/nanosleep (Depends-on): Likewise.
61567         * modules/settime (Depends-on): Likewise.
61568         * modules/tempname (Depends-on): Likewise.
61569         * modules/utimens (Depends-on): Likewise.
61570         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61571         (Include): Change back to <sys/time.h>.
61572         (Maintainer): Add self.
61573         * modules/sys_time: New file.
61574         * modules/tempname (Depends-on): Add gettimeofday.
61575         * tests/test-gettimeofday.c: Include <sys/time.h>
61576         rather than gettimeofday.h.
61577
61578 2007-01-17  Bruno Haible  <bruno@clisp.org>
61579
61580         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61581         the license default to GPL.
61582         (func_create_testdir): Don't complain if a module is LGPL and its
61583         tests module depends on GPLed modules.
61584
61585 2007-01-17  Bruno Haible  <bruno@clisp.org>
61586
61587         * lib/gettimeofday.c (gettimeofday): Add code for the case
61588         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61589         maximum possible value for tv->tv_usec, rather than the minimum one.
61590
61591 2005-10-08  Martin Lambers  <marlam@marlam.de>
61592 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61593 2007-01-16  Bruno Haible  <bruno@clisp.org>
61594
61595         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61596         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61597         gl_FUNC_GETTIMEOFDAY.
61598         (Include): Add gettimeofday.h.
61599         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61600         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61601         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61602         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61603         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61604         * lib/gettimeofday.h: New file.
61605         * lib/gettimeofday.c: Include <sys/timeb.h>.
61606         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61607         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61608         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61609         fall back on time().
61610
61611         * tests/test-gettimeofday.c: New file.
61612         * modules/gettimeofday-tests: New file.
61613
61614 2007-01-16  Eric Blake  <ebb9@byu.net>
61615
61616         * modules/fnmatch (Depends-on): Depend on wchar.
61617         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61618         * m4/fnmatch.m4: Likewise.
61619         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61620         * m4/mbchar.m4: Likewise.
61621         * modules/mbswidth (Depends-on): Depend on wchar.
61622         * lib/mbswidth.c: Assume <wchar.h>.
61623         * m4/mbswidth.m4: Likewise.
61624         * modules/quotearg (Depends-on): Depend on wchar.
61625         * lib/quotearg.c: Assume <wchar.h>.
61626         * m4/quotearg.m4: Likewise.
61627         * modules/regex (Depends-on): Depend on wchar.
61628         * lib/regex_internal.h: Assume <wchar.h>.
61629         * m4/regex.m4: Likewise.
61630         * modules/stdint (Depends-on): Depend on wchar.
61631         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61632         * m4/stdint.m4: Likewise.
61633         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61634         * modules/strftime (Depends-on): Depend on wchar.
61635         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61636         * modules/strtol (Depends-on): Depend on wchar.
61637         * lib/strtol.c: Assume <wchar.h>.
61638         * modules/wcwidth (Depends-on): Depend on wchar.
61639         * lib/wcwidth.h: Assume <wchar.h>.
61640         * m4/wcwidth.m4: Likewise.
61641
61642 2007-01-16  Bruno Haible  <bruno@clisp.org>
61643
61644         * modules/csharpexec-script: New, created from...
61645         * modules/csharpexec: ... this.
61646
61647 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61648
61649         * modules/javaexec-script: New, created from...
61650         * modules/javaexec: ... this.
61651
61652 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61653
61654         * modules/poll (Dependencies): Add sys_select.
61655
61656 2007-01-15  Jim Meyering  <jim@meyering.net>
61657
61658         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61659         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61660         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61661         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61662
61663 2007-01-15  Bruno Haible  <bruno@clisp.org>
61664
61665         * modules/striconveh: New file.
61666         * lib/striconveh.h: New file.
61667         * lib/striconveh.c: New file.
61668         * MODULES.html.sh (Internationalization functions): Add striconveh.
61669
61670         * modules/striconveh-tests: New file.
61671         * tests/test-striconveh.c: New file.
61672
61673 2007-01-15  Bruno Haible  <bruno@clisp.org>
61674
61675         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61676         not from GNU libiconv or GNU libc.
61677
61678 2007-01-15  Bruno Haible  <bruno@clisp.org>
61679
61680         * doc/gnulib-intro.texi (Copyright): Explain the different license
61681         terms for module descriptions, autoconf macros, tests, documentation.
61682
61683 2007-01-14  Bruno Haible  <bruno@clisp.org>
61684
61685         * modules/striconv-tests: New file.
61686         * tests/test-striconv.c: New file.
61687
61688 2007-01-14  Bruno Haible  <bruno@clisp.org>
61689
61690         * modules/iconv-tests: New file.
61691         * tests/test-iconv.c: New file.
61692
61693 2007-01-14  Bruno Haible  <bruno@clisp.org>
61694
61695         * gnulib-tool (func_get_license): For test modules, use the license of
61696         the main module.
61697
61698 2007-01-14  Bruno Haible  <bruno@clisp.org>
61699
61700         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61701         if iconv is found to exist.
61702
61703 2007-01-14  Bruno Haible  <bruno@clisp.org>
61704
61705         * modules/c-ctype-tests: New file.
61706         * tests/test-c-ctype.c: New file.
61707
61708 2007-01-14  Bruno Haible  <bruno@clisp.org>
61709
61710         * modules/binary-io-tests: New file.
61711         * tests/test-binary-io.sh: New file.
61712         * tests/test-binary-io.c: New file.
61713
61714 2007-01-14  Bruno Haible  <bruno@clisp.org>
61715
61716         * modules/array-oset-tests: New file.
61717         * tests/test-array_oset.c: New file.
61718
61719 2007-01-14  Bruno Haible  <bruno@clisp.org>
61720
61721         * modules/array-list-tests: New file.
61722         * tests/test-array_list.c: New file.
61723
61724 2007-01-14  Bruno Haible  <bruno@clisp.org>
61725
61726         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61727         and make.
61728         Reported by Simon Josefsson in
61729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61730
61731 2007-01-14  Bruno Haible  <bruno@clisp.org>
61732
61733         * modules/allocsa-tests: New file.
61734         * tests/test-allocsa.c: New file.
61735
61736 2007-01-14  Bruno Haible  <bruno@clisp.org>
61737
61738         * modules/fchdir (Depends-on): Add absolute-header.
61739         * modules/unistd (Depends-on): Likewise.
61740
61741 2006-12-30  Bruno Haible  <bruno@clisp.org>
61742
61743         * modules/fchdir: New file.
61744         * modules/unistd (Files): Add lib/unistd_.h.
61745         (Makefile.am): Generate unistd.h from unistd_.h.
61746         * lib/fchdir.c: New file.
61747         * lib/dirent_.h: New file.
61748         * lib/unistd_.h: New file.
61749         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61750         * m4/fchdir.m4: New file.
61751         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61752         (gl_HEADER_UNISTD): Invoke it.
61753         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61754         function.
61755         * lib/backupfile.c (opendir, closedir): Undefine.
61756         * lib/chown.c (open, close): Undefine.
61757         * lib/clean-temp.c (open, close): Undefine.
61758         * lib/copy-file.c (open, close): Undefine.
61759         * lib/execute.c (open, close): Undefine.
61760         * lib/fsusage.c (open, close): Undefine.
61761         * lib/gc-gnulib.c (open, close): Undefine.
61762         * lib/getcwd.c (opendir, closedir): Undefine.
61763         * lib/glob.c (opendir, closedir): Undefine.
61764         * lib/javacomp.c (open, close): Undefine.
61765         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61766         * lib/openat-proc.c (open, close): Undefine.
61767         * lib/pagealign_alloc.c (open, close): Undefine.
61768         * lib/pipe.c (open, close): Undefine.
61769         * lib/progreloc.c (open, close): Undefine.
61770         * lib/savedir.c (opendir, closedir): Undefine.
61771         * lib/utime.c (open, close): Undefine.
61772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61773
61774 2007-01-10  Bruno Haible  <bruno@clisp.org>
61775
61776         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61777
61778 2007-01-12  Eric Blake  <ebb9@byu.net>
61779
61780         Provide a robust <wchar.h>.  Further simplifications are now
61781         possible in other modules, but not included here.
61782         * modules/wchar: New module.
61783         * m4/wchar.m4: New file.
61784         * lib/wchar_.h: Likewise.
61785         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61786         of the new module.
61787         * MODULES.html.sh (Extended multibyte and wide character utilities):
61788         New section.
61789
61790 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61791
61792         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61793         to a reasonable default for memory allocation.
61794         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61795         file system that reports garbage st_size values for symlinks.
61796         Problem reported by Liyang Hu.
61797
61798 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61799
61800         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61801         Emacs .#* auto-save files).
61802
61803 2007-01-11  Bruno Haible  <bruno@clisp.org>
61804
61805         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61806         directory.
61807
61808 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         Use @...@ consistently in lib/wctype_.h.
61811         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61812         on it being set to 1 or 0.
61813         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61814         go back to AC_SUBSTing it.
61815         * modules/wctype (Makefile.am): Undo previous change.
61816
61817 2007-01-10  Eric Blake  <ebb9@byu.net>
61818
61819         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61820         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61821         * modules/wctype (Makefile.am): Likewise.
61822         Reported by Chris McGuire.
61823
61824 2007-01-10  Jim Meyering  <jim@meyering.net>
61825
61826         fts.c: a small readability/maintainability improvement
61827         * lib/fts.c (fts_read): Make this code slightly more readable and
61828         maintainable by hoisting the "sp->fts_cur = p" assignments to
61829         immediately follow the statements that set P.  Derived from
61830         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61831
61832 2007-01-10  Eric Blake  <ebb9@byu.net>
61833
61834         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61835         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61837         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61838         Reported by Chris McGuire.
61839
61840 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61841
61842         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61843         in sed script.
61844
61845 2007-01-09  Bruno Haible  <bruno@clisp.org>
61846
61847         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61848         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61849         variables.
61850         (func_module): Use them.
61851
61852 2007-01-09  Bruno Haible  <bruno@clisp.org>
61853
61854         * modules/unistr/base: New file.
61855         * lib/unistr.h: New file.
61856
61857         * modules/unistr/u8-to-u16: New file.
61858         * lib/unistr/u8-to-u16.c: New file.
61859
61860         * modules/unistr/u8-to-u32: New file.
61861         * lib/unistr/u8-to-u32.c: New file.
61862
61863         * modules/unistr/u16-to-u8: New file.
61864         * lib/unistr/u16-to-u8.c: New file.
61865
61866         * modules/unistr/u16-to-u32: New file.
61867         * lib/unistr/u16-to-u32.c: New file.
61868
61869         * modules/unistr/u32-to-u8: New file.
61870         * lib/unistr/u32-to-u8.c: New file.
61871
61872         * modules/unistr/u32-to-u16: New file.
61873         * lib/unistr/u32-to-u16.c: New file.
61874
61875         * modules/unistr/u8-check: New file.
61876         * modules/unistr/u16-check: New file.
61877         * modules/unistr/u32-check: New file.
61878         * lib/unistr/u8-check.c: New file.
61879         * lib/unistr/u16-check.c: New file.
61880         * lib/unistr/u32-check.c: New file.
61881
61882         * modules/unistr/u8-chr: New file.
61883         * modules/unistr/u16-chr: New file.
61884         * modules/unistr/u32-chr: New file.
61885         * lib/unistr/u8-chr.c: New file.
61886         * lib/unistr/u16-chr.c: New file.
61887         * lib/unistr/u32-chr.c: New file.
61888
61889         * modules/unistr/u8-cmp: New file.
61890         * modules/unistr/u16-cmp: New file.
61891         * modules/unistr/u32-cmp: New file.
61892         * lib/unistr/u8-cmp.c: New file.
61893         * lib/unistr/u16-cmp.c: New file.
61894         * lib/unistr/u32-cmp.c: New file.
61895
61896         * modules/unistr/u8-cpy: New file.
61897         * modules/unistr/u16-cpy: New file.
61898         * modules/unistr/u32-cpy: New file.
61899         * lib/unistr/u8-cpy.c: New file.
61900         * lib/unistr/u16-cpy.c: New file.
61901         * lib/unistr/u32-cpy.c: New file.
61902         * lib/unistr/u-cpy.h: New file.
61903
61904         * modules/unistr/u8-cpy-alloc: New file.
61905         * modules/unistr/u16-cpy-alloc: New file.
61906         * modules/unistr/u32-cpy-alloc: New file.
61907         * lib/unistr/u8-cpy-alloc.c: New file.
61908         * lib/unistr/u16-cpy-alloc.c: New file.
61909         * lib/unistr/u32-cpy-alloc.c: New file.
61910         * lib/unistr/u-cpy-alloc.h: New file.
61911
61912         * modules/unistr/u8-endswith: New file.
61913         * modules/unistr/u16-endswith: New file.
61914         * modules/unistr/u32-endswith: New file.
61915         * lib/unistr/u8-endswith.c: New file.
61916         * lib/unistr/u16-endswith.c: New file.
61917         * lib/unistr/u32-endswith.c: New file.
61918         * lib/unistr/u-endswith.h: New file.
61919
61920         * modules/unistr/u8-mblen: New file.
61921         * modules/unistr/u16-mblen: New file.
61922         * modules/unistr/u32-mblen: New file.
61923         * lib/unistr/u8-mblen.c: New file.
61924         * lib/unistr/u16-mblen.c: New file.
61925         * lib/unistr/u32-mblen.c: New file.
61926
61927         * modules/unistr/u8-mbtouc: New file.
61928         * modules/unistr/u16-mbtouc: New file.
61929         * modules/unistr/u32-mbtouc: New file.
61930         * lib/unistr/u8-mbtouc.c: New file.
61931         * lib/unistr/u16-mbtouc.c: New file.
61932         * lib/unistr/u32-mbtouc.c: New file.
61933
61934         * modules/unistr/u8-mbtouc-safe: New file.
61935         * modules/unistr/u16-mbtouc-safe: New file.
61936         * modules/unistr/u32-mbtouc-safe: New file.
61937         * lib/unistr/u8-mbtouc-safe.c: New file.
61938         * lib/unistr/u16-mbtouc-safe.c: New file.
61939         * lib/unistr/u32-mbtouc-safe.c: New file.
61940
61941         * modules/unistr/u8-move: New file.
61942         * modules/unistr/u16-move: New file.
61943         * modules/unistr/u32-move: New file.
61944         * lib/unistr/u8-move.c: New file.
61945         * lib/unistr/u16-move.c: New file.
61946         * lib/unistr/u32-move.c: New file.
61947         * lib/unistr/u-move.h: New file.
61948
61949         * modules/unistr/u8-next: New file.
61950         * modules/unistr/u16-next: New file.
61951         * modules/unistr/u32-next: New file.
61952         * lib/unistr/u8-next.c: New file.
61953         * lib/unistr/u16-next.c: New file.
61954         * lib/unistr/u32-next.c: New file.
61955
61956         * modules/unistr/u8-prev: New file.
61957         * modules/unistr/u16-prev: New file.
61958         * modules/unistr/u32-prev: New file.
61959         * lib/unistr/u8-prev.c: New file.
61960         * lib/unistr/u16-prev.c: New file.
61961         * lib/unistr/u32-prev.c: New file.
61962
61963         * modules/unistr/u8-set: New file.
61964         * modules/unistr/u16-set: New file.
61965         * modules/unistr/u32-set: New file.
61966         * lib/unistr/u8-set.c: New file.
61967         * lib/unistr/u16-set.c: New file.
61968         * lib/unistr/u32-set.c: New file.
61969         * lib/unistr/u-set.h: New file.
61970
61971         * modules/unistr/u8-startswith: New file.
61972         * modules/unistr/u16-startswith: New file.
61973         * modules/unistr/u32-startswith: New file.
61974         * lib/unistr/u8-startswith.c: New file.
61975         * lib/unistr/u16-startswith.c: New file.
61976         * lib/unistr/u32-startswith.c: New file.
61977         * lib/unistr/u-startswith.h: New file.
61978
61979         * modules/unistr/u8-stpcpy: New file.
61980         * modules/unistr/u16-stpcpy: New file.
61981         * modules/unistr/u32-stpcpy: New file.
61982         * lib/unistr/u8-stpcpy.c: New file.
61983         * lib/unistr/u16-stpcpy.c: New file.
61984         * lib/unistr/u32-stpcpy.c: New file.
61985         * lib/unistr/u-stpcpy.h: New file.
61986
61987         * modules/unistr/u8-stpncpy: New file.
61988         * modules/unistr/u16-stpncpy: New file.
61989         * modules/unistr/u32-stpncpy: New file.
61990         * lib/unistr/u8-stpncpy.c: New file.
61991         * lib/unistr/u16-stpncpy.c: New file.
61992         * lib/unistr/u32-stpncpy.c: New file.
61993         * lib/unistr/u-stpncpy.h: New file.
61994
61995         * modules/unistr/u8-strcat: New file.
61996         * modules/unistr/u16-strcat: New file.
61997         * modules/unistr/u32-strcat: New file.
61998         * lib/unistr/u8-strcat.c: New file.
61999         * lib/unistr/u16-strcat.c: New file.
62000         * lib/unistr/u32-strcat.c: New file.
62001         * lib/unistr/u-strcat.h: New file.
62002
62003         * modules/unistr/u8-strchr: New file.
62004         * modules/unistr/u16-strchr: New file.
62005         * modules/unistr/u32-strchr: New file.
62006         * lib/unistr/u8-strchr.c: New file.
62007         * lib/unistr/u16-strchr.c: New file.
62008         * lib/unistr/u32-strchr.c: New file.
62009
62010         * modules/unistr/u8-strcmp: New file.
62011         * modules/unistr/u16-strcmp: New file.
62012         * modules/unistr/u32-strcmp: New file.
62013         * lib/unistr/u8-strcmp.c: New file.
62014         * lib/unistr/u16-strcmp.c: New file.
62015         * lib/unistr/u32-strcmp.c: New file.
62016
62017         * modules/unistr/u8-strcpy: New file.
62018         * modules/unistr/u16-strcpy: New file.
62019         * modules/unistr/u32-strcpy: New file.
62020         * lib/unistr/u8-strcpy.c: New file.
62021         * lib/unistr/u16-strcpy.c: New file.
62022         * lib/unistr/u32-strcpy.c: New file.
62023         * lib/unistr/u-strcpy.h: New file.
62024
62025         * modules/unistr/u8-strcspn: New file.
62026         * modules/unistr/u16-strcspn: New file.
62027         * modules/unistr/u32-strcspn: New file.
62028         * lib/unistr/u8-strcspn.c: New file.
62029         * lib/unistr/u16-strcspn.c: New file.
62030         * lib/unistr/u32-strcspn.c: New file.
62031         * lib/unistr/u-strcspn.h: New file.
62032
62033         * modules/unistr/u8-strdup: New file.
62034         * modules/unistr/u16-strdup: New file.
62035         * modules/unistr/u32-strdup: New file.
62036         * lib/unistr/u8-strdup.c: New file.
62037         * lib/unistr/u16-strdup.c: New file.
62038         * lib/unistr/u32-strdup.c: New file.
62039         * lib/unistr/u-strdup.h: New file.
62040
62041         * modules/unistr/u8-strlen: New file.
62042         * modules/unistr/u16-strlen: New file.
62043         * modules/unistr/u32-strlen: New file.
62044         * lib/unistr/u8-strlen.c: New file.
62045         * lib/unistr/u16-strlen.c: New file.
62046         * lib/unistr/u32-strlen.c: New file.
62047         * lib/unistr/u-strlen.h: New file.
62048
62049         * modules/unistr/u8-strmblen: New file.
62050         * modules/unistr/u16-strmblen: New file.
62051         * modules/unistr/u32-strmblen: New file.
62052         * lib/unistr/u8-strmblen.c: New file.
62053         * lib/unistr/u16-strmblen.c: New file.
62054         * lib/unistr/u32-strmblen.c: New file.
62055
62056         * modules/unistr/u8-strmbtouc: New file.
62057         * modules/unistr/u16-strmbtouc: New file.
62058         * modules/unistr/u32-strmbtouc: New file.
62059         * lib/unistr/u8-strmbtouc.c: New file.
62060         * lib/unistr/u16-strmbtouc.c: New file.
62061         * lib/unistr/u32-strmbtouc.c: New file.
62062
62063         * modules/unistr/u8-strncat: New file.
62064         * modules/unistr/u16-strncat: New file.
62065         * modules/unistr/u32-strncat: New file.
62066         * lib/unistr/u8-strncat.c: New file.
62067         * lib/unistr/u16-strncat.c: New file.
62068         * lib/unistr/u32-strncat.c: New file.
62069         * lib/unistr/u-strncat.h: New file.
62070
62071         * modules/unistr/u8-strncmp: New file.
62072         * modules/unistr/u16-strncmp: New file.
62073         * modules/unistr/u32-strncmp: New file.
62074         * lib/unistr/u8-strncmp.c: New file.
62075         * lib/unistr/u16-strncmp.c: New file.
62076         * lib/unistr/u32-strncmp.c: New file.
62077
62078         * modules/unistr/u8-strncpy: New file.
62079         * modules/unistr/u16-strncpy: New file.
62080         * modules/unistr/u32-strncpy: New file.
62081         * lib/unistr/u8-strncpy.c: New file.
62082         * lib/unistr/u16-strncpy.c: New file.
62083         * lib/unistr/u32-strncpy.c: New file.
62084         * lib/unistr/u-strncpy.h: New file.
62085
62086         * modules/unistr/u8-strnlen: New file.
62087         * modules/unistr/u16-strnlen: New file.
62088         * modules/unistr/u32-strnlen: New file.
62089         * lib/unistr/u8-strnlen.c: New file.
62090         * lib/unistr/u16-strnlen.c: New file.
62091         * lib/unistr/u32-strnlen.c: New file.
62092         * lib/unistr/u-strnlen.h: New file.
62093
62094         * modules/unistr/u8-strpbrk: New file.
62095         * modules/unistr/u16-strpbrk: New file.
62096         * modules/unistr/u32-strpbrk: New file.
62097         * lib/unistr/u8-strpbrk.c: New file.
62098         * lib/unistr/u16-strpbrk.c: New file.
62099         * lib/unistr/u32-strpbrk.c: New file.
62100         * lib/unistr/u-strpbrk.h: New file.
62101
62102         * modules/unistr/u8-strrchr: New file.
62103         * modules/unistr/u16-strrchr: New file.
62104         * modules/unistr/u32-strrchr: New file.
62105         * lib/unistr/u8-strrchr.c: New file.
62106         * lib/unistr/u16-strrchr.c: New file.
62107         * lib/unistr/u32-strrchr.c: New file.
62108
62109         * modules/unistr/u8-strspn: New file.
62110         * modules/unistr/u16-strspn: New file.
62111         * modules/unistr/u32-strspn: New file.
62112         * lib/unistr/u8-strspn.c: New file.
62113         * lib/unistr/u16-strspn.c: New file.
62114         * lib/unistr/u32-strspn.c: New file.
62115         * lib/unistr/u-strspn.h: New file.
62116
62117         * modules/unistr/u8-strstr: New file.
62118         * modules/unistr/u16-strstr: New file.
62119         * modules/unistr/u32-strstr: New file.
62120         * lib/unistr/u8-strstr.c: New file.
62121         * lib/unistr/u16-strstr.c: New file.
62122         * lib/unistr/u32-strstr.c: New file.
62123         * lib/unistr/u-strstr.h: New file.
62124
62125         * modules/unistr/u8-strtok: New file.
62126         * modules/unistr/u16-strtok: New file.
62127         * modules/unistr/u32-strtok: New file.
62128         * lib/unistr/u8-strtok.c: New file.
62129         * lib/unistr/u16-strtok.c: New file.
62130         * lib/unistr/u32-strtok.c: New file.
62131         * lib/unistr/u-strtok.h: New file.
62132
62133         * modules/unistr/u8-uctomb: New file.
62134         * modules/unistr/u16-uctomb: New file.
62135         * modules/unistr/u32-uctomb: New file.
62136         * lib/unistr/u8-uctomb.c: New file.
62137         * lib/unistr/u16-uctomb.c: New file.
62138         * lib/unistr/u32-uctomb.c: New file.
62139
62140         * MODULES.html.sh (Unicode string functions): Add the new modules.
62141
62142 2007-01-08  Bruno Haible  <bruno@clisp.org>
62143
62144         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62145         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62146         subdirectories.
62147
62148 2007-01-08  Karl Berry  <karl@gnu.org>
62149
62150         * doc/error.texi: mention that main() fns must set program_name
62151         when progname is used.
62152
62153 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62154
62155         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62156         WCTYPE_H is empty, for the benefit of builds from non-distclean
62157         directories.  Problem reported by Eric Blake in
62158         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62159
62160 2007-01-08  Bruno Haible  <bruno@clisp.org>
62161
62162         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62163         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62164         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62165         PROVIDE_CANONICALIZE_FILENAME_MODE.
62166         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62167
62168 2007-01-08  Bruno Haible  <bruno@clisp.org>
62169
62170         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62171         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62172         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62173         * lib/fts.c: Likewise.
62174         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62175
62176 2006-12-25  Bruno Haible  <bruno@clisp.org>
62177
62178         * modules/utf8-ucs4-safe: New file.
62179         * lib/utf8-ucs4-safe.h: New file.
62180         * lib/unistr/utf8-ucs4-safe.c: New file.
62181
62182         * modules/utf16-ucs4-safe: New file.
62183         * lib/utf16-ucs4-safe.h: New file.
62184         * lib/unistr/utf16-ucs4-safe.c: New file.
62185
62186         * MODULES.html.sh (Unicode string functions): Add the new modules.
62187
62188 2007-01-08  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62191         (Depends-on): Add unitypes.
62192         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62193         (u8_mbtouc_aux): Move out to separate file.
62194         (u8_mbtouc): Use ucs4_t, uint8_t types.
62195         * lib/unistr/utf8-ucs4.c: New file.
62196
62197         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62198         (Depends-on): Add unitypes.
62199         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62200         (u16_mbtouc_aux): Move out to separate file.
62201         (u16_mbtouc): Use ucs4_t, uint16_t types.
62202         * lib/unistr/utf16-ucs4.c: New file.
62203
62204         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62205         (Depends-on): Add unitypes.
62206         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62207         (u8_uctomb_aux): Move out to separate file.
62208         (u8_uctomb): Use ucs4_t, uint8_t types.
62209         * lib/unistr/ucs4-utf8.c: New file.
62210
62211         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62212         (Depends-on): Add unitypes.
62213         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62214         (u16_uctomb_aux): Move out to separate file.
62215         (u16_uctomb): Use ucs4_t, uint16_t types.
62216         * lib/unistr/ucs4-utf16.c: New file.
62217
62218 2006-12-25  Bruno Haible  <bruno@clisp.org>
62219
62220         * modules/unitypes: New file.
62221         * lib/unitypes.h: New file.
62222         * MODULES.html.sh (func_all_modules): New section "Unicode string
62223         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62224         this section. Add unitypes.
62225
62226 2007-01-08  Bruno Haible  <bruno@clisp.org>
62227
62228         Avoid variable names that conflict with those from libtool.
62229         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62230         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62231         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62232         library_names_spec to acl_library_names_spec, hardcode_* to
62233         acl_hardcode_*.
62234         Reported by Ralf Wildenhues.
62235
62236 2007-01-08  Bruno Haible  <bruno@clisp.org>
62237
62238         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62239         definition.
62240         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62241         definition.
62242         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62243         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62244         definition.
62245         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62246         definition.
62247         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62248         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62249         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62250         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62251         definition.
62252         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62253         definition.
62254         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62255         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62256         GC_USE_<algorithm>.
62257         * lib/gc-libgcrypt.c: Likewise.
62258         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62259         * modules/gc-arctwo (configure.ac): Likewise.
62260         * modules/gc-des (configure.ac): Likewise.
62261         * modules/gc-hmac-md5 (configure.ac): Likewise.
62262         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62263         * modules/gc-md2 (configure.ac): Likewise.
62264         * modules/gc-md4 (configure.ac): Likewise.
62265         * modules/gc-md5 (configure.ac): Likewise.
62266         * modules/gc-random (configure.ac): Likewise.
62267         * modules/gc-rijndael (configure.ac): Likewise.
62268         * modules/gc-sha1 (configure.ac): Likewise.
62269
62270 2007-01-08  Bruno Haible  <bruno@clisp.org>
62271
62272         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62273         macro definition.
62274         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62275         definition.
62276         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62277         definition.
62278         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62279         * modules/fcntl-safer (configure.ac): Likewise.
62280         * modules/fopen-safer (configure.ac): Likewise.
62281         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62282         GNULIB_FWRITEERROR macro definition.
62283
62284 2007-01-08  Bruno Haible  <bruno@clisp.org>
62285
62286         * m4/gnulib-common.m4: New file.
62287         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62288         (func_get_filelist): Add m4/gnulib-common.m4.
62289
62290 2007-01-08  Bruno Haible  <bruno@clisp.org>
62291
62292         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62293         command.
62294
62295 2007-01-08  Jim Meyering  <jim@meyering.net>
62296
62297         Use a more robust test for a "can't happen" condition.
62298         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62299         narrowed the st_size value.  Presuming the "can't happen" condition
62300         is true, that narrowing could conceivably convert an invalid st_size
62301         value into a valid one.  Instead, use a change based on Matthew
62302         Woehlke's original patch.
62303
62304         Slight readability improvement: use an assert-like macro
62305         in place of literal "abort ()" uses.
62306         * lib/fts.c (fts_assert): Define.
62307         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62308         Use this macro instead of a bare 'abort'.
62309
62310 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62311
62312         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62313         simply work around them.
62314         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62315         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62316         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62317         declaring.
62318         Don't bother to define as macros, since the standard doesn't require it.
62319         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62320         longer worry about IRIX 5.3.
62321         (HAVE_WCTYPE_CTMP_BUG): Remove.
62322
62323 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62324
62325         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62326         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62327         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62328         Problems reported by Georg Schwarz for IRIX 5.3.
62329
62330         * gnulib-tool (autoconf_minversion): Take the maximum version number
62331         found, not the minimum.  Problem reported by James Youngman.
62332
62333 2007-01-03  Karl Berry  <karl@gnu.org>
62334
62335         * doc/error.texi: new file, explaining interaction with progname.
62336         * doc/gnulib.texi: include it.  Update copyright.
62337
62338 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62339
62340         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62341         AC_CANONICAL_HOST, to improve autobuild outputs.
62342
62343 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62344             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62345
62346         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62347         sockets, server sockets, and other file descriptors.  Count errors
62348         to compute the return value.  Reorder the code a bit to be easier
62349         to follow.  Don't set event bits that were not requested (except
62350         POLLERR and POLLHUP).
62351
62352 2007-01-01  Bruno Haible  <bruno@clisp.org>
62353
62354         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62355
62356 2007-01-03  Jim Meyering  <jim@meyering.net>
62357
62358         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62359
62360 2007-01-02  Bruno Haible  <bruno@clisp.org>
62361
62362         * modules/settime (Include): Require timespec.h.
62363         * modules/nanosleep (Include): Likewise.
62364
62365 2007-01-01  Bruno Haible  <bruno@clisp.org>
62366
62367         * gnulib-tool (func_emit_copyright_notice): Bump year.
62368         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62369
62370 2007-01-01  Bruno Haible  <bruno@clisp.org>
62371
62372         Improve support for OpenBSD.
62373         * build-aux/config.rpath (libname_spec): Export.
62374         (library_names_spec): New variable. Export.
62375         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62376         library_names_spec from the config.rpath output. Locate shared library
62377         through the name pattern in library_names_spec.
62378
62379 2007-01-01  Eric Blake  <ebb9@byu.net>
62380
62381         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62382
62383 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62384
62385         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62386         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62387         assume the C locale, and avoid an "eval" that could cause trouble.
62388         Problem with SORT reported by Bob Proulx.
62389
62390         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62391         Define.  Trivial patch from Henning Nielsen Lund, originally
62392         sent to bug-grep@gnu.org today.
62393
62394 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62395
62396         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62397         struct stat.  Problem reported by Henning Nielsen Lund.
62398         * lib/acl.c: Include acl.h first, to check interface.  Don't
62399         bother to include sys/types.h and sys/stat.h again.
62400
62401 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62402
62403         Import the following change from libc; problem reported by
62404         Sven Verdoolaege.
62405
62406         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62407
62408         [BZ #1373]
62409         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62410
62411 2006-12-28  Jim Meyering  <jim@meyering.net>
62412
62413         * build-aux/announce-gen: Do not assume that the package
62414         builds any of tar.gz, tar.bz2, and .xdelta files.
62415         Suggestion from Simon Josefsson.
62416
62417 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62418
62419         * modules/announce-gen: New file.
62420
62421 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62422
62423         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62424         handles its gotchas now.
62425         * lib/mbswidth.c: Likewise.
62426         * lib/wcwidth.h: Likewise.
62427         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62428         and iswcntrl; the wctype module does this stuff now.
62429         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62431         * modules/mbchar (Depends-on): Add wctype.
62432         * modules/mbswidth (Depends-on): Likewise.
62433         * modules/wcwidth (Depends-on): Likewise.
62434
62435 2006-12-27  Eric Blake  <ebb9@byu.net>
62436
62437         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62438         module uses more than what <wctype.h> is required to provide.
62439
62440 2006-12-26  Eric Blake  <ebb9@byu.net>
62441
62442         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62443
62444 2006-12-26  Eric Blake  <ebb9@byu.net>
62445
62446         * modules/absolute-header: New module.
62447         * modules/fcntl (Depends-on): Depend on it.
62448         * modules/inttypes (Depends-on): Likewise.
62449         * modules/stdint (Depends-on): Likewise.
62450         * modules/sys_stat (Depends-on): Likewise.
62451         * modules/wctype (Depends-on): Likewise.
62452         * MODULES.html.sh (Support for building libraries and
62453         executables): Document it.
62454
62455 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * gnulib-tool (SED): Remove, undoing previous change.
62458         The problem was that it broke coreutils on Solaris, because
62459         "sed --posix" leaked into a makefile.
62460         (sed): New alias, if 'alias' and GNU sed.
62461
62462 2006-12-24  Jim Meyering  <jim@meyering.net>
62463
62464         Work around an fchownat bug in glibc-2.4:
62465         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62466         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62467         in spite of the -P option.
62468         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62469         New macros.
62470         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62471         * modules/openat (Files): Add lib/fchownat.c.
62472         * lib/openat.c (fchownat): Don't define here.  Move to...
62473         * lib/fchownat.c: ...this new file.
62474
62475 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62476
62477         Fix bug reported by Bruno Haible in
62478         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62479         where quotearg.c didn't compile on Mac OS X 10.2 because it
62480         lacks <wchar.h> and wint_t.
62481         * lib/wctype_.h (__wctype_wint_t): New type.
62482         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62483         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62484         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62485         Arg is now of type __wctype_wint_t, not wint_t.
62486         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62487         substitute HAVE_WINT_T.
62488         * modules/wctype (Files): Add m4/wint_t.m4.
62489         (wctype.h): Substitute HAVE_WINT_T.
62490
62491 2006-12-23  Bruno Haible  <bruno@clisp.org>
62492
62493         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62494
62495 2006-12-23  Bruno Haible  <bruno@clisp.org>
62496
62497         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62498         S_ISLNK.
62499         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62500         mingw.
62501
62502 2006-12-22  Bruno Haible  <bruno@clisp.org>
62503
62504         * lib/copy-file.c: Include acl.h.
62505         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62506         Close the file descriptors only after being done with copy_acl.
62507         * modules/copy-file (Depends-on): Add acl.
62508
62509 2006-12-22  Bruno Haible  <bruno@clisp.org>
62510
62511         * gnulib-tool (SED): New variable.
62512         Use $SED instead of sed everywhere.
62513
62514 2006-12-22  Bruno Haible  <bruno@clisp.org>
62515
62516         * modules/no-c++: New file.
62517         * m4/no-c++.m4: New file.
62518         * MODULES.html.sh (Support for building libraries and executables):
62519         Add no-c++.
62520
62521 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62524         Include <limits.h>, and use its INT_MAX to rewrite the
62525         j loop so that it does not overflow 'int'.  Problem reported by
62526         Ralf Wildenhues in
62527         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62528         Play it safe by shifting left by 1 rather than multiplying by 2,
62529         as GCC is less likely to optimize this away when the value
62530         is signed (when it assumes overflow leads to undefined behavior).
62531         Also, don't assume time_t uses two's complement.
62532
62533 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62534
62535         * MODULES.html.sh: New module wctype.
62536         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62537         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62538         <wctype.h>, since the new wctype module should fix this.
62539         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62540         the wctype module should arrange for it.
62541         * lib/regex_internal.h: Likewise.
62542         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62543         since the wctype module should handle this now.
62544         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62545         * modules/fnmatch (Depends-on): Add wctype.
62546         * modules/quotearg (Depends-on): Likewise.
62547         * modules/regex (Depends-on): Likewise.
62548
62549 2006-12-19  Bruno Haible  <bruno@clisp.org>
62550
62551         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62552         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62553
62554 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62555
62556         * modules/savewd (Depends-on): Fix dependency on fcntl.
62557
62558 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62559
62560         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62561         conforms to C99, rather than relying on the user's environment
62562         setting of STDINT_H.
62563
62564 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62565         and Eric Blake  <ebb9@byu.net>
62566
62567         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62568         This is more consistent with the other defines here.
62569         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62570         Port to z/OS.  Problem reported by Paul Gilmartin.
62571         Change local vars to use gl_ prefix rather than ac_.
62572         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62573         with other defines.
62574         * modules/double-slash-root: New module.
62575         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62576         (Depends-on): Add double-slash-root.
62577         * MODULES.html.sh (File system functions): Mention new module.
62578
62579 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62582         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62583         This is for the benefit of gzip, which doesn't do i18n.
62584
62585 2006-12-12  Jim Meyering  <jim@meyering.net>
62586
62587         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62588         Reported by Andreas Schwab <schwab@suse.de>.
62589
62590 2006-12-12  Bruno Haible  <bruno@clisp.org>
62591
62592         Merge these changes.
62593         2006-09-05  Bruno Haible  <bruno@clisp.org>
62594         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62595         iconv_alloc succeeded.
62596         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62597         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62598         test for " && dest " at the end - dest is always != NULL there. Call
62599         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62600         with 2xNULL arguments, also to flush the state storage. Handle the
62601         IRIX iconv behaviour. Realloc the final result, to throw away unused
62602         memory.
62603
62604 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62605
62606         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62607         and fchmodat unconditionally, since glibc 2.4 has them.
62608         Problem reported by Arkadiusz Miskiewicz.
62609
62610 2006-12-10  Bruno Haible  <bruno@clisp.org>
62611
62612         * gnulib-tool (func_import): Show the include files only for those
62613         modules that are copied and specified.
62614         Reported by Karl Berry.
62615
62616 2006-12-08  Jim Meyering  <jim@meyering.net>
62617
62618         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62619         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62620
62621         * build-aux/announce-gen: Add two new options, both optional:
62622         --bootstrap-tools=TOOL_LIST
62623               a comma-separated list of tools, e.g.,
62624               autoconf,automake,bison,gnulib
62625         --gnulib-snapshot-date=DATE
62626               if gnulib is in the bootstrap tool list,
62627               then report this as the snapshot date.
62628               If not specified, use the current date/time.
62629               If you specify a date here, be sure it's UTC.
62630
62631 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62632
62633         * tests/test-argp-2.sh: Fix test to match actual output.
62634         (func_compare): Fix sed script to be portable.
62635
62636 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62637
62638         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62639         workaround for this case.  It is not autoconfigured now; offhand
62640         it's hard to see how to autoconfigure it.
62641
62642 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62645         a directory that is about to be chowned.  Such a directory's
62646         initial file permissions should permit the owner only and this
62647         should not be changed until after the chown, since the group and
62648         other bits would be incorrect if they granted permission before
62649         the chown.
62650
62651         Fix porting problem for iswctype reported by Georg Schwarz in:
62652         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62653         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62654         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62655         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62656         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62657
62658 2006-12-03  Jim Meyering  <jim@meyering.net>
62659
62660         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62661         p->fts_statp may not yet be defined.
62662         (fts_read): Instead, set it in the caller, once p->fts_statp is
62663         sure to be defined, and corresponds to a top-level directory.
62664         This bug made du -x fail.  Here's the coreutils test case:
62665         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62666         Reported by Mike Frysinger.
62667
62668 2006-12-01  Jim Meyering  <jim@meyering.net>
62669
62670         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62671         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62672         Reported by Simon Josefsson.
62673
62674 2006-11-30  Jim Meyering  <jim@meyering.net>
62675
62676         * m4/warning.m4: Use the all-permissive copyright notice
62677         recommended by RMS (rather than LGPL).
62678         * m4/vararrays.m4: Likewise.
62679         * m4/flexmember.m4: Likewise.
62680
62681 2006-11-29  Bruno Haible  <bruno@clisp.org>
62682
62683         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62684         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62685         using +=.
62686         Reported by Simon Josefsson <simon@josefsson.org>.
62687
62688 2006-11-28  James Youngman <jay@gnu.org>
62689
62690         * README: Advise users that they might find the bug-gnulib@gnu.org
62691         and autotools-announce@gnu.org mailing lists useful.
62692
62693 2006-11-28  Bruno Haible  <bruno@clisp.org>
62694
62695         * m4/ptrdiff_max.m4: Remove file.
62696
62697 2006-11-21  Bruno Haible  <bruno@clisp.org>
62698
62699         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62700         _AC_COMPUTE_INT.
62701         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62702         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62703         _AC_COMPUTE_INT.
62704         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62705         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62706         _AC_COMPUTE_INT.
62707         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62708
62709 2006-11-28  Jim Meyering  <jim@meyering.net>
62710
62711         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62712         warning from "gcc -Wshadow" about shadowing the builtin.
62713
62714 2006-11-27  Bruno Haible  <bruno@clisp.org>
62715
62716         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62717         _AC_COMPUTE_INT.
62718         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62719
62720 2006-11-27  Bruno Haible  <bruno@clisp.org>
62721             Paul Eggert  <eggert@cs.ucla.edu>
62722
62723         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62724
62725 2006-11-26  Bruno Haible  <bruno@clisp.org>
62726
62727         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62728         noinst_LTLIBRARIES.
62729
62730 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62731             Bruno Haible  <bruno@clisp.org>
62732
62733         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62734         if compiling with "gcc -ansi".
62735
62736 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62737
62738         Fix some incompatibilities with gcc -ansi -pedantic.
62739         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62740         if compiling pedantically with GCC, unless it's C99 or later.
62741         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62742         it mishandles gcc -ansi -pedantic as well.
62743         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62744         if gcc -pedantic.
62745         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62746         initializers for struct if -pedantic, unless it's C99 or later.
62747
62748 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62749
62750         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62751         Don't close an fd more than once. Identical atimes indicate
62752         success, not failure.
62753
62754 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62755
62756         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62757
62758 2006-11-23  Jim Meyering  <jim@meyering.net>
62759
62760         * build-aux/announce-gen: New file.  From coreutils.
62761
62762 2006-11-22  Jim Meyering  <jim@meyering.net>
62763
62764         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62765         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62766         (fts_read): Use a temporary to narrow the overused st_size member
62767         before using it in a switch statement.  Reported by Matthew Woehlke.
62768
62769         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62770         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62771
62772 2006-11-20  Bruno Haible  <bruno@clisp.org>
62773
62774         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62775         changequote instead of pairs of brackets.
62776         Reported by Andreas Schwab <schwab@suse.de>.
62777
62778 2006-11-21  Jim Meyering  <jim@meyering.net>
62779
62780         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62781         so as to remain compatible with older compilers.
62782         Patch from Michael Deutschmann.
62783
62784 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62785
62786         * MODULES.html.sh (File system functions): Add openat.
62787
62788         * lib/openat.h (rpl_fstatat): New macro, if
62789         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62790         (fstatat): Define to rpl_fstatat under the same conditions,
62791         unless COMPILING_FSTATAT.
62792         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62793         seems to have the bug.
62794         * lib/fstatat.c: New file.
62795         * modules/openat (Files): Add it.
62796
62797 2006-11-20  Bruno Haible  <bruno@clisp.org>
62798
62799         * Makefile: New file.
62800
62801 2006-11-20  Jim Meyering  <jim@meyering.net>
62802
62803         The beginnings of syntax-related checks for gnulib.
62804         * lib/Makefile: New file.
62805         * lib/t-idcache: New script.  Ensure that the two halves of
62806         idcache.c stay in sync.
62807
62808         * lib/idcache.c: Adjust comments in user- and group- portions to
62809         be more accurate, and to be consistent with one another.
62810
62811 2006-11-20  Jim Meyering  <jim@meyering.net>
62812
62813         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62814         continue using the flexible array member (thus, this module performs
62815         half as many malloc calls), with the addition that...
62816         (getgroup, getuser): Consistently record a non-match via an empty
62817         "name" string, and map an empty string match to a NULL return value.
62818         * modules/idcache (Depends-on): Re-add flexmember.
62819
62820         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62821         (getuidbyname, getgroup, getgidbyname): Likewise.
62822
62823         Use cleaner syntax: NULL rather than 0.
62824         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62825
62826 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62829         It mishandled the case where the group was missing.
62830         Problem reported by Greg Schafer.
62831         * modules/idcache: Likewise.
62832
62833 2006-11-18  Jim Meyering  <jim@meyering.net>
62834
62835         * check-module (%exempt_header): Add exception for some
62836         conditionally-included headers.
62837
62838         * modules/i-ring (Depends-on): Add verify.
62839         (License): Change to LGPL.
62840
62841 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62842
62843         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62844         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62845         and inttostr.h.  Use snprintf rather than uinttostr, so that
62846         LGPLed code doesn't depend on GPLed.
62847
62848 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62849
62850         * modules/inline (License): Change from GPL to LGPL.
62851
62852 2006-11-17  Jim Meyering  <jim@meyering.net>
62853
62854         * modules/d-type (License): Switch to LGPL.
62855
62856 2006-11-15  Bruno Haible  <bruno@clisp.org>
62857
62858         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62859
62860 2006-11-15  Eric Blake  <ebb9@byu.net>
62861
62862         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62863         the module dependency.
62864
62865 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62866             Bruno Haible  <bruno@clisp.org>
62867
62868         * gnulib-tool (func_create_testdir): Add license consistency check.
62869
62870 2006-11-15  Eric Blake  <ebb9@byu.net>
62871
62872         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62873         random "(cached)" in configure output.
62874
62875 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62876
62877         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62878         test for conforming inttypes.h is both announced and cached.
62879
62880         * MODULES.html.sh (seen_modules, seen_files): New variables.
62881         (func_module): Rewrite to use a few less gnulib-tool and sed
62882         invocations.  Avoid a couple of quadratic algorithms for ...
62883         (missed_modules, missed_files): ... these, with ...
62884         (func_append, func_tmpdir): ... these new functions, from
62885         gnulib-tool.  Analogously, install traps for cleanup.
62886
62887         * tests/test-gc.c (main): Remove unused variables.
62888         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62889
62890 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62891
62892         * modules/inttostr (License): Change to LGPL.
62893
62894 2006-11-14  Eric Blake  <ebb9@byu.net>
62895
62896         * modules/tempname (License): Change to LGPL.
62897
62898 2006-11-14  Eric Blake  <ebb9@byu.net>
62899
62900         * doc/functions.texi (Function Portability): *printf functions on
62901         Cygwin now understand all POSIX size specifiers.
62902
62903 2006-11-14  Bruno Haible  <bruno@clisp.org>
62904
62905         * modules/c-ctype (License): Change to LGPL.
62906
62907 2006-11-12  Bruno Haible  <bruno@clisp.org>
62908
62909         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62910         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62911         for GNOME libraries, for which the include files are installed in
62912         subdirectories of $prefix/include.
62913
62914 2006-11-12  Bruno Haible  <bruno@clisp.org>
62915
62916         * m4/lib-link.m4: Require at least autoconf-2.54.
62917         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62918         name to underscores for the --with option.
62919
62920 2006-11-13  Bruno Haible  <bruno@clisp.org>
62921
62922         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62923         the tests directory.
62924         Reported by Ralf Wildenhues.
62925
62926 2006-11-13  Bruno Haible  <bruno@clisp.org>
62927
62928         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62929         (func_emit_initmacro_end): Undo the override here.
62930         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62931         Works around the famous automake error in coreutils.
62932
62933 2006-11-13  Eric Blake  <ebb9@byu.net>
62934
62935         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62936         element, not its node.
62937
62938 2006-11-12  Bruno Haible  <bruno@clisp.org>
62939
62940         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62941         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62942
62943 2006-11-12  Bruno Haible  <bruno@clisp.org>
62944
62945         * gnulib-tool: New option --local-symlink.
62946         (func_usage): Document it.
62947         (lsymbolic): New variable.
62948         (func_import, func_create_testdir): If --symlink was not specified,
62949         test whether --local-symlink was specified and the file comes from
62950         the local_gnulib_dir.
62951
62952 2006-11-12  Bruno Haible  <bruno@clisp.org>
62953
62954         * gnulib-tool (func_ln): New function.
62955         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62956
62957 2006-11-12  Bruno Haible  <bruno@clisp.org>
62958
62959         Finish support for source files in subdirectories.
62960         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62961         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62962         AUTOMAKE_OPTIONS.
62963         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62964
62965 2006-11-12  Bruno Haible  <bruno@clisp.org>
62966
62967         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62968         EXTRA_lib_SOURCES augmentation.
62969         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62970
62971 2006-11-12  Jim Meyering  <jim@meyering.net>
62972
62973         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62974         file descriptors.  This also averts a failure on systems with
62975         native openat support when a traversed directory lacks "x" access.
62976         * lib/fts_.h: Include "i-ring.h"
62977         (struct FTS) [fts_fd_ring]: New member.
62978         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62979         (FCHDIR): Add parentheses.
62980         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62981         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62982         When descending, rather than simply closing the previous
62983         fts_cwd_fd value, push that file descriptor onto the ring.
62984         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62985         (fts_open): Initialize the new fd_ring member.
62986         (fts_close): Clear the ring.
62987         (fts_safe_changedir): When possible, use our new fd_ring to skip
62988         the diropen and fstat and dev/ino comparison that would normally
62989         accompany a virtual `chdir ("..")'.
62990
62991         * modules/fts (Depends-on): Add i-ring.
62992         * modules/i-ring: New module.
62993         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62994         * m4/i-ring.m4: New file.
62995
62996 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62997
62998         * gnulib-tool (func_create_testdir): Fix replacement of
62999         `build-aux' in configure.ac.  Run autotools in gltests
63000         subdirectory.
63001         (func_create_testdir, func_create_megatestdir, test): There is
63002         no need for '--force' in most autotool invocations in a new
63003         tree.  Actually fail the whole test if any of the tools, or the
63004         configure or make stages fail.
63005
63006         Sync from Automake.
63007         * build-aux/gnupload: Revert last change.  Add pointer to upload
63008         instructions of the GNU Maintenance Instructions.
63009         Suggestion by Karl Berry.
63010
63011 2006-11-10  Jim Meyering  <jim@meyering.net>
63012
63013         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63014
63015 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63016
63017         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63018         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63019         (bind_textdomain_codeset) [! ENABLE_NLS]:
63020         Evaluate all the arguments.  That way, callers get compatible behavior
63021         if the arguments have side effects.  Also, it avoids some GCC
63022         diagnostics in some cases; Joel E. Denny reported problems when Bison
63023         was configured with --enable-gcc-warnigs.
63024
63025 2006-11-10  Jim Meyering  <jim@meyering.net>
63026
63027         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63028         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63029         account.
63030
63031 2006-11-10  Jim Meyering  <jim@meyering.net>
63032
63033         * modules/inline: New file/module.
63034         * modules/xalloc (Files): Remove m4/inline.m4.
63035         (Depends-on): Add inline, instead.
63036         * modules/oset: Likewise.
63037         * modules/list: Likewise.
63038
63039 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63040
63041         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63042         Problem reported by Matthew Woehlke.
63043
63044 2006-11-09  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/tempname.c (gen_tempname): Remove variant that invokes
63047         __gen_tempname.
63048         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63049         __gen_tempname.
63050
63051 2006-11-08  Bruno Haible  <bruno@clisp.org>
63052
63053         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63054         to 'yes' instead of 'cross-compiling'.
63055
63056 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63057
63058         * lib/quotearg.h (quotearg_free): New decl.
63059         * lib/quotearg.c (quotearg_free): New function.
63060         (slot0, nslots, slotvec0, slotvec):
63061         Now file-scope so that quotearg_free can get at them.
63062
63063 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63064
63065         Sync from Automake.
63066         * build-aux/gnupload: Add missing 'gnu' to example URL.
63067         Report by Karl Berry.
63068
63069 2006-11-08  Bruno Haible  <bruno@clisp.org>
63070
63071         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63072         Suggested by Paul Eggert.
63073
63074 2006-11-08  Jim Meyering  <jim@meyering.net>
63075
63076         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63077         It's already included if !_LIBC.
63078         (fts_safe_changedir): Add a comment.
63079
63080 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63081
63082         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63083         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63084         Matthew Woehlke.
63085
63086         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63087         definitions up, to avoid colliding with change below.
63088         (static_inline) [HAVE_INLINE]: New macro.
63089         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63090         Provide extern decls when !HAVE_INLINE.  Do not define unless
63091         static_inline is defined, either by us or by xmalloc.c.  Use
63092         static_inline rather than static inline.
63093         (XCALLOC): Optimize sizeof(T) = 1 case.
63094         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63095
63096 2006-11-07  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63099         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63100         AC_C_INLINE.
63101         * modules/xalloc (Files): Add m4/inline.m4.
63102
63103 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63104
63105         * README: Fix typo.
63106         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63107         (Miscellanous Notes): ...from this.
63108
63109 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63110
63111         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63112         Mention that offsetof should be used instead of sizeof.
63113         From Bruno Haible.
63114
63115 2006-11-07  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63118
63119 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63120
63121         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63122         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63123         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63124         (gl_tree_add_before, gl_tree_add_after):
63125         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63126         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63127         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63128         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63129         (gl_linked_add_after, gl_linked_add_at): Likewise.
63130         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63131         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63132         (gl_tree_add_before, gl_tree_add_after): Likewise.
63133         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63134         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63135         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63136
63137 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63138
63139         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63140
63141 2006-11-06  Bruno Haible  <bruno@clisp.org>
63142
63143         * m4/inline.m4: New file.
63144         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63145         * modules/list (Files): Add m4/inline.m4.
63146         * modules/oset (Files): Likewise.
63147
63148 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         * lib/idcache.c: Include <stddef.h>, for offsetof.
63151         (struct userid.name): Change from char * to a flexible array member.
63152         All uses changed.
63153         * modules/idcache (Depends-on): Add flexmember.
63154
63155         * MODULES.html.sh (Core language properties): New module flexmember.
63156         * modules/flexmember, m4/flexmember.m4: New files.
63157
63158         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63159         inline functions that are identical with the old xnmalloc_inline,
63160         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63161         that we can avoid some unnecessary integer multiplications and
63162         divisions in the common case where the element size is known at
63163         compile time.
63164         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63165         needed.
63166         (xnboundedmalloc): Remove.
63167         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63168         arguments, for consistency with rest of this header.
63169         (xcharalloc): Rewrite using XNMALLOC.
63170         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63171         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63172         versions have been moved to lib/xalloc.h and renamed to be the
63173         non-*_inline versions.
63174         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63175         and xnrealloc functions, since those functions are now inline and
63176         now call us.
63177         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63178         renaming described above.
63179         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63180         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63181         captures the dependency in AC_C_INLINE.
63182
63183         New module canonicalize-lgpl, proposed by Charles Wilson in
63184         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63185         with a few small changes afterwards.
63186         * MODULES.html.sh (File system functions): New module
63187         canonicalize-lgpl.
63188         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63189         and canonicalize_file_name.
63190         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63191         * modules/canonicalize-lgpl: New files.
63192
63193 2006-11-05  Bruno Haible  <bruno@clisp.org>
63194
63195         * gnulib-tool (func_import, func_create_testdir): Create directories
63196         also for files in subdirectories of lib/.
63197
63198 2006-11-05  Bruno Haible  <bruno@clisp.org>
63199
63200         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63201         ANSI C compliant.
63202
63203 2006-11-03  Bruno Haible  <bruno@clisp.org>
63204
63205         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63206         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63207         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63208         (xnboundedmalloc): New inline function.
63209         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63210         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63211         xmalloc.
63212         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63213         xmalloc.
63214         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63215         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63216         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63217         xmalloc.
63218         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63219         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63220         xmalloc.
63221         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63222         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63223         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63224         xmalloc.
63225         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63226         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63227         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63228         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63229         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63230         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63231         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63232
63233 2006-11-03  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/c-ctype.h [C++]: Define functions without name mangling.
63236         * lib/fwriteerror.h [C++]: Likewise.
63237         * lib/gcd.h [C++]: Likewise.
63238         * lib/linebreak.h [C++]: Likewise.
63239
63240 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63241
63242         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63243         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63244         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63245         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63246         Check for functions and headers just once.
63247         Check for declaration of canonicalize_file_name.
63248         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63249
63250 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63251
63252         * gnulib-tool (func_import): Fix typo in actioncmd.
63253
63254 2006-11-02  Bruno Haible  <bruno@clisp.org>
63255
63256         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63257         newline sequence in the Makefile.am snippet as a space, like "make"
63258         does.
63259         Reported by Roger Persson <perrog@gmail.com>.
63260
63261 2006-11-01  Bruno Haible  <bruno@clisp.org>
63262
63263         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63264         already declared in <string.h>.
63265         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63266
63267 2006-11-01  Bruno Haible  <bruno@clisp.org>
63268
63269         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63270         * lib/strcase.h: Include <string.h>.
63271         (strcasecmp): Define to rpl_strcasecmp here.
63272
63273 2006-11-01  Bruno Haible  <bruno@clisp.org>
63274
63275         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63276
63277 2006-11-01  Eric Blake  <ebb9@byu.net>
63278
63279         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63280
63281         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63282
63283 2006-10-29  Bruno Haible  <bruno@clisp.org>
63284
63285         Make it compile in C++ mode.
63286         * lib/full-write.c (full_rw): Add a cast.
63287
63288 2006-11-01  Bruno Haible  <bruno@clisp.org>
63289
63290         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63291         be POSIX compliant.
63292         Reported by Roger Persson <perrog@gmail.com>.
63293
63294 2006-11-01  Eric Blake  <ebb9@byu.net>
63295
63296         * lib/getopt_.h: Fix comments.
63297
63298 2006-10-31  Eric Blake  <ebb9@byu.net>
63299
63300         * modules/tmpdir (Depends-on): Add sys_stat.
63301         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63302         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63303         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63304         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63305         tempname.
63306
63307 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63308
63309         Avoid some C++ diagnostics reported by Bruno Haible.
63310         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63311         xmalloc.
63312         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63313         (struct slotvec): Move to top level.
63314         (quotearg_n_options): Rewrite to avoid xmalloc.
63315         * lib/xalloc.h (xcharalloc): New function.
63316         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63317         [defined __cplusplus]: Add function template that provides result
63318         type propagation.  This part of the change is from Bruno Haible.
63319
63320 2006-10-29  Bruno Haible  <bruno@clisp.org>
63321
63322         Make it compile in C++ mode.
63323         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63324         * lib/strnlen1.c (strnlen1): Cast memchr result.
63325         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63326         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63327         (create_temp_dir): Rename local variable 'template'.
63328         (compile_csharp_using_sscli): Add cast.
63329         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63330         * lib/findprog.c (find_in_path): Likewise.
63331         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63332         * lib/wait-process.c (register_slave_subprocess): Likewise.
63333
63334 2006-10-22  Bruno Haible  <bruno@clisp.org>
63335
63336         * modules/tsearch: New file.
63337         * lib/tsearch.h: New file.
63338         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63339         * m4/tsearch.m4: New file.
63340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63341
63342 2006-10-29  Eric Blake  <ebb9@byu.net>
63343
63344         * lib/arcfour.c: Assume config.h.
63345         * lib/arctwo.c: Likewise.
63346         * lib/base64.c: Likewise.
63347         * lib/check-version.c: Likewise.
63348         * lib/crc.c: Likewise.
63349         * lib/des.c: Likewise.
63350         * lib/gc-gnulib.c: Likewise.
63351         * lib/gc-libgcrypt.c: Likewise.
63352         * lib/gc-pbkdf2-sha1.c: Likewise.
63353         * lib/getaddrinfo.c: Likewise.
63354         * lib/getdelim.c: Likewise.
63355         * lib/getline.c: Likewise.
63356         * lib/hmac-md5.c: Likewise.
63357         * lib/hmac-sha1.c: Likewise.
63358         * lib/iconvme.c: Likewise.
63359         * lib/md2.c: Likewise.
63360         * lib/md4.c: Likewise.
63361         * lib/memxor.c: Likewise.
63362         * lib/read-file.c: Likewise.
63363         * lib/readline.c: Likewise.
63364         * lib/rijndael-alg-fst.c: Likewise.
63365         * lib/rijndael-api-fst.c: Likewise.
63366         * lib/xgetdomainname.c: Likewise.
63367
63368 2006-10-28  Eric Blake  <ebb9@byu.net>
63369
63370         * lib/xstrndup.c: Assume config.h.
63371
63372 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63373
63374         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63375         stat-macros.h is now for our own macros, whereas stat_h is for
63376         macros in the <sys/stat.h> name space.
63377         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63378         (STAT_MACROS_H): Remove.
63379         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63380         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63381         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63382         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63383         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63384         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63385         Move these macros to ...
63386         * lib/stat_.h: here.  Don't include stat-macros.h.
63387         * lib/canonicalize.c: Don't include stat-macros.h.
63388         * lib/chown.c: Likewise.
63389         * lib/euidaccess.c: Likewise.
63390         * lib/file-type.c: Likewise.
63391         * lib/filemode.c: Likewise.
63392         * lib/glob.c: Likewise.
63393         * lib/isapipe.c: Likewise.
63394         * lib/lchown.c: Likewise.
63395         * lib/lstat.c: Likewise.
63396         * lib/mkdir-p.c: Likewise.
63397         * lib/rmdir.c: Likewise.
63398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63400         unless mkdir isn't declared, to speed up 'configure'.
63401         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63402         would define all the S_* symbols.
63403         * modules/canonicalize (Depends-on):
63404         Depend on sys_stat, not stat-macros.
63405         * modules/chown: Likewise.
63406         * modules/euidaccess: Likewise.
63407         * modules/filemode: Likewise.
63408         * modules/file-type: Likewise.
63409         * modules/glob: Likewise.
63410         * modules/isapipe: Likewise.
63411         * modules/lchown: Likewise.
63412         * modules/lstat: Likewise.
63413         * modules/mkancesdirs: Likewise.
63414         * modules/rmdir: Likewise.
63415         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63416         * modules/modechange: Likewise.
63417         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63418         (configure.ac): Remove gl_STAT_MACROS.
63419         * modules/sys_stat (Depends-on): Remove stat-macros.
63420
63421 2006-10-27  Bruno Haible  <bruno@clisp.org>
63422
63423         * m4/signed.m4: Remove file.
63424         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63425         invocation.
63426         * modules/vasnprintf (Files): Remove m4/signed.m4.
63427
63428 2006-10-27  Bruno Haible  <bruno@clisp.org>
63429
63430         Update to GNU gettext 0.16.
63431         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63432         m4/inttypes-h.m4, m4/signed.m4.
63433         * m4/gettext.m4: Update to GNU gettext 0.16.
63434         * m4/intl.m4: New file, from GNU gettext.
63435         * m4/intldir.m4: New file, from GNU gettext.
63436         * config/srclist.txt: Update
63437
63438 2006-10-27  Eric Blake  <ebb9@byu.net>
63439
63440         * MODULES.html.sh: Document tempname.
63441         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63442         dependencies.
63443         (Files): Move lib/tempname.c...
63444         * modules/tempname: ...to this new module.
63445         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63446         (gl_PREREQ_TEMPNAME): Move...
63447         * m4/tempname.m4: ...to this new file.
63448         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63449         * modules/sys_stat (Depends-on): Add stat-macros.
63450         * lib/stat_.h (includes): Pick up stat macros.
63451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63452         if stat macros are broken.
63453         * lib/tempname.c (includes): No need to include "stat-macros.h".
63454         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63455         (direxists, __path_search) [!_LIBC]: Don't compile these in
63456         gnulib; the tmpdir module covers that.
63457         * lib/tempname.h: New file.
63458
63459 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         * COPYING: Explain how gnulib-tool converts licence headers.
63462         Almost all wording by Eric Blake.
63463
63464 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63465
63466         * lib/mbchar.h (is_basic_table): Make read-only.
63467         * lib/mbchar.c (is_basic_table): Likewise.
63468         Reported by John Darrington.
63469
63470 2006-10-25  Bruno Haible  <bruno@clisp.org>
63471
63472         * lib/progname.h (set_program_name): Undefine before defining.
63473
63474 2006-10-25  Bruno Haible  <bruno@clisp.org>
63475
63476         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63477         false for non-gcc C++ compilers.
63478         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63479
63480 2006-10-24  Bruno Haible  <bruno@clisp.org>
63481
63482         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63483         iconv implementations like Irix iconv.
63484
63485 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63486
63487         * modules/vararrays: New file.
63488         * m4/vararrays.m4: New file, taken from diffutils.
63489         * MODULES.html.sh: New module vararrays.
63490
63491 2006-10-24  Karl Berry  <karl@gnu.org>
63492
63493         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63494         Don't call GNU Unix.
63495
63496 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63497
63498         * users.txt: Add Libtool.
63499
63500         Sync from Libtool:
63501
63502         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63503
63504         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63505         to gnulib's policy of including config.h unconditionally.
63506
63507 2006-10-24  Bruno Haible  <bruno@clisp.org>
63508
63509         * modules/wcwidth (Files): Add m4/wint_t.m4.
63510         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63511         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63512
63513 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63514
63515         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63516         to pacify GCC with some -W flags enabled.  Problem reported by
63517         Bruno Haible.
63518
63519 2006-10-24  Jim Meyering  <jim@meyering.net>
63520
63521         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63522         Reported by Karl Berry.
63523
63524 2006-10-23  Bruno Haible  <bruno@clisp.org>
63525
63526         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63527
63528 2006-10-24  Bruno Haible  <bruno@clisp.org>
63529
63530         * lib/gl_list.h: Use C comment style, not C++ comment style.
63531
63532 2006-10-23  Eric Blake  <ebb9@byu.net>
63533
63534         * lib/getaddrinfo.c (includes): Add missing include.
63535
63536 2006-10-23  Bruno Haible  <bruno@clisp.org>
63537             Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         Ability to rename obstack_free.
63540         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63541         obstack_free.
63542         (obstack_free): Invoke the __obstack_free macro.
63543         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63544
63545 2006-10-23  Bruno Haible  <bruno@clisp.org>
63546             Paul Eggert  <eggert@cs.ucla.edu>
63547
63548         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63549         __argc, __argv from the declaration. (They are defined as macros on
63550         mingw.)
63551
63552 2006-10-22  Bruno Haible  <bruno@clisp.org>
63553
63554         * doc/gnulib-intro.texi: New file.
63555         * doc/gnulib.texi: Include it.
63556
63557 2006-10-21  Bruno Haible  <bruno@clisp.org>
63558
63559         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63560         "Introduction", "Miscellanous Notes", "Particular Modules".
63561
63562 2006-10-21  Bruno Haible  <bruno@clisp.org>
63563
63564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63565         Change mostlyclean-local rule to avoid sh syntax error from bash
63566         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63567
63568 2006-10-23  Jim Meyering  <jim@meyering.net>
63569
63570         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63571         in place of snprintf.
63572
63573         * modules/inttostr (Files): Add lib/uinttostr.c.
63574         * lib/uinttostr.c (inttostr): New file/function.
63575         * lib/inttostr.h (uinttostr): Declare.
63576         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63577         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63578         Add uinttostr.
63579         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63580
63581 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * lib/canonicalize.c (ELOOP): Define if not already defined.
63584         Problem reported by Bruno Haible in
63585         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63586
63587 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63588
63589         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63590         Problem reported by Perry Smith and Ville Laurikari.
63591
63592         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63593         uses.
63594
63595 2006-10-19  Bruno Haible  <bruno@clisp.org>
63596
63597         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63598         for mingw.
63599
63600 2006-10-19  Bruno Haible  <bruno@clisp.org>
63601
63602         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63603         Needed for mingw.
63604
63605 2006-10-19  Bruno Haible  <bruno@clisp.org>
63606
63607         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63608
63609 2006-10-19  Bruno Haible  <bruno@clisp.org>
63610
63611         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63612         it.
63613
63614 2006-10-19  Bruno Haible  <bruno@clisp.org>
63615
63616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63617         invocation.
63618
63619 2006-10-19  Bruno Haible  <bruno@clisp.org>
63620
63621         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63622         mountlist by default.
63623
63624 2006-10-16  Bruno Haible  <bruno@clisp.org>
63625
63626         * lib/c-strstr.c: Include c-strstr.h.
63627
63628 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63629
63630         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63631         in a slash.
63632
63633 2006-10-18  Bruno Haible  <bruno@clisp.org>
63634
63635         * lib/lock.h [C++]: Wrap definitions in extern "C".
63636
63637 2006-10-18  Bruno Haible  <bruno@clisp.org>
63638
63639         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63640         gl_LIBOBJS list.
63641
63642 2006-10-18  Bruno Haible  <bruno@clisp.org>
63643
63644         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63645
63646 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         * lib/xstrtol.h: Include gettext.h.
63649         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63650         Problem reported by Eric Blake.
63651         * modules/xstrtol (Depends-on): Add gettext-h.
63652
63653 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63654
63655         * lib/strftime.c (advance): New macro.
63656         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63657         incomplete type, so you can't add 0 to it.  Problem and patch
63658         reported by Eelco Dolstra for dietlibc.
63659
63660 2006-10-18  Jim Meyering  <jim@meyering.net>
63661
63662         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63663         type for a local, and rename it: s/up/user_proc/.
63664
63665 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63666
63667         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63668         READ_UTMP_USER_PROCESS.
63669         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63670
63671 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63672
63673         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63674         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63675
63676 2006-10-17  Eric Blake  <ebb9@byu.net>
63677
63678         * lib/sigprocmask.c (sigprocmask): Fix typo.
63679
63680         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63681
63682         * modules/clean-temp (Makefile.am): Don't add to make output...
63683         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63684         config.h.
63685
63686 2006-10-17  Bruno Haible  <bruno@clisp.org>
63687
63688         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63689         differently if DEFAULT_TEXT_DOMAIN is set.
63690
63691 2006-10-16  Bruno Haible  <bruno@clisp.org>
63692
63693         * lib/clean-temp.c: Include fwriteerror.h.
63694
63695 2006-10-16  Bruno Haible  <bruno@clisp.org>
63696
63697         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63698
63699 2006-10-16  Bruno Haible  <bruno@clisp.org>
63700
63701         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63702         * lib/sigprocmask.h: Include <sys/types.h>.
63703         (sigset_t): Use the system's definition if present.
63704
63705 2006-10-17  Eric Blake  <ebb9@byu.net>
63706
63707         * lib/xvasprintf.c (includes): Assume config.h.
63708         * lib/xasprintf.c (includes): Likewise.
63709
63710 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63711
63712         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63713         at least as wide as intmax_t.
63714
63715 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63716
63717         (Imported from Automake.)
63718         * build-aux/gnupload: Update to version 1.1 of directive file.
63719
63720 2006-10-16  Eric Blake  <ebb9@byu.net>
63721
63722         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63723         match Automake 1.10a.
63724
63725 2006-10-14  Bruno Haible  <bruno@clisp.org>
63726
63727         * modules/sigprocmask: New file.
63728         * lib/sigprocmask.h: New file.
63729         * lib/sigprocmask.c: New file.
63730         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63731         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63732         request sigprocmask.o.
63733         (gl_PREREQ_SIGPROCMASK): New macro.
63734         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63735         (Depends-on): Add sigprocmask.
63736         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63737         gt_SIGNALBLOCKING. Test for 'raise' only once.
63738         * lib/fatal-signal.c: Include sigprocmask.h.
63739         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63740         unblock_fatal_signals): Define always.
63741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63742         sigprocmask.
63743
63744 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63745
63746         Sync from Automake.
63747         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63748         which incorrectly sets the mode of an existing destination
63749         directory.  In some cases the unpatched install-sh could do the
63750         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63751         system.  We hope this is rare in practice, but it's clearly worth
63752         fixing.  Problem reported by Alex Unleashed in
63753         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63754         Also, don't bother to check for -m bugs unless we're using -m;
63755         suggested by Stepan Kasal.
63756
63757 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63758
63759         Sync from Automake.
63760         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63761         `-c' flag, so they appear at the same position as in %FASTDEP%
63762         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63763         which ignores unknown options only after the first non-option.
63764         Bug report against M4 by Nelson H. F. Beebe.
63765
63766 2006-10-13  Jim Meyering  <jim@meyering.net>
63767
63768         Fix a bug in yesterday's change.
63769         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63770         p->fts_statp->st_dev would be used uninitialized.
63771         Ensures that we always call fts_stat on the very first entry.
63772         Miklos Szeredi reported that find -xdev stopped working.
63773
63774 2006-10-12  Bruno Haible  <bruno@clisp.org>
63775
63776         * gnulib-tool (func_get_automake_snippet): Append an automatically
63777         computed EXTRA_DIST augmentation.
63778         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63779         * modules/alloca-opt (Makefile.am): Likewise.
63780         * modules/allocsa (Makefile.am): Likewise.
63781         * modules/arcfour (Makefile.am): Likewise.
63782         * modules/arctwo (Makefile.am): Likewise.
63783         * modules/argmatch (Makefile.am): Likewise.
63784         * modules/argz (Makefile.am): Likewise.
63785         * modules/atexit (Makefile.am): Likewise.
63786         * modules/backupfile (Makefile.am): Likewise.
63787         * modules/byteswap (Makefile.am): Likewise.
63788         * modules/c-strtod (Makefile.am): Likewise.
63789         * modules/c-strtold (Makefile.am): Likewise.
63790         * modules/calloc (Makefile.am): Likewise.
63791         * modules/canon-host (Makefile.am): Likewise.
63792         * modules/canonicalize (Makefile.am): Likewise.
63793         * modules/chdir-long (Makefile.am): Likewise.
63794         * modules/chdir-safer (Makefile.am): Likewise.
63795         * modules/check-version (Makefile.am): Likewise.
63796         * modules/chown (Makefile.am): Likewise.
63797         * modules/cloexec (Makefile.am): Likewise.
63798         * modules/close-stream (Makefile.am): Likewise.
63799         * modules/closeout (Makefile.am): Likewise.
63800         * modules/crc (Makefile.am): Likewise.
63801         * modules/csharpexec (Makefile.am): Likewise.
63802         * modules/cycle-check (Makefile.am): Likewise.
63803         * modules/des (Makefile.am): Likewise.
63804         * modules/dev-ino (Makefile.am): Likewise.
63805         * modules/dirfd (Makefile.am): Likewise.
63806         * modules/dirname (Makefile.am): Likewise.
63807         * modules/dup2 (Makefile.am): Likewise.
63808         * modules/eealloc (Makefile.am): Likewise.
63809         * modules/error (Makefile.am): Likewise.
63810         * modules/euidaccess (Makefile.am): Likewise.
63811         * modules/exclude (Makefile.am): Likewise.
63812         * modules/exitfail (Makefile.am): Likewise.
63813         * modules/fcntl-safer (Makefile.am): Likewise.
63814         * modules/fcntl (Makefile.am): Likewise.
63815         * modules/file-type (Makefile.am): Likewise.
63816         * modules/fileblocks (Makefile.am): Likewise.
63817         * modules/filemode (Makefile.am): Likewise.
63818         * modules/filenamecat (Makefile.am): Likewise.
63819         * modules/fnmatch (Makefile.am): Likewise.
63820         * modules/fopen-safer (Makefile.am): Likewise.
63821         * modules/fpending (Makefile.am): Likewise.
63822         * modules/fprintftime (Makefile.am): Likewise.
63823         * modules/free (Makefile.am): Likewise.
63824         * modules/fsusage (Makefile.am): Likewise.
63825         * modules/ftruncate (Makefile.am): Likewise.
63826         * modules/fts (Makefile.am): Likewise.
63827         * modules/gc-arcfour (Makefile.am): Likewise.
63828         * modules/gc-des (Makefile.am): Likewise.
63829         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63830         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63831         * modules/gc-md4 (Makefile.am): Likewise.
63832         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63833         * modules/gc-sha1 (Makefile.am): Likewise.
63834         * modules/gc (Makefile.am): Likewise.
63835         * modules/getaddrinfo (Makefile.am): Likewise.
63836         * modules/getcwd (Makefile.am): Likewise.
63837         * modules/getdelim (Makefile.am): Likewise.
63838         * modules/getdomainname (Makefile.am): Likewise.
63839         * modules/getgroups (Makefile.am): Likewise.
63840         * modules/gethostname (Makefile.am): Likewise.
63841         * modules/gethrxtime (Makefile.am): Likewise.
63842         * modules/getline (Makefile.am): Likewise.
63843         * modules/getloadavg (Makefile.am): Likewise.
63844         * modules/getlogin_r (Makefile.am): Likewise.
63845         * modules/getndelim2 (Makefile.am): Likewise.
63846         * modules/getopt (Makefile.am): Likewise.
63847         * modules/getpagesize (Makefile.am): Likewise.
63848         * modules/getpass-gnu (Makefile.am): Likewise.
63849         * modules/getpass (Makefile.am): Likewise.
63850         * modules/getsubopt (Makefile.am): Likewise.
63851         * modules/gettime (Makefile.am): Likewise.
63852         * modules/gettimeofday (Makefile.am): Likewise.
63853         * modules/getugroups (Makefile.am): Likewise.
63854         * modules/getusershell (Makefile.am): Likewise.
63855         * modules/glob (Makefile.am): Likewise.
63856         * modules/group-member (Makefile.am): Likewise.
63857         * modules/hard-locale (Makefile.am): Likewise.
63858         * modules/hash (Makefile.am): Likewise.
63859         * modules/hmac-md5 (Makefile.am): Likewise.
63860         * modules/hmac-sha1 (Makefile.am): Likewise.
63861         * modules/human (Makefile.am): Likewise.
63862         * modules/idcache (Makefile.am): Likewise.
63863         * modules/imaxabs (Makefile.am): Likewise.
63864         * modules/imaxdiv (Makefile.am): Likewise.
63865         * modules/inet_ntop (Makefile.am): Likewise.
63866         * modules/inet_pton (Makefile.am): Likewise.
63867         * modules/intprops (Makefile.am): Likewise.
63868         * modules/inttostr (Makefile.am): Likewise.
63869         * modules/inttypes (Makefile.am): Likewise.
63870         * modules/isapipe (Makefile.am): Likewise.
63871         * modules/javaversion (Makefile.am): Likewise.
63872         * modules/lchmod (Makefile.am): Likewise.
63873         * modules/lchown (Makefile.am): Likewise.
63874         * modules/localcharset (Makefile.am): Likewise.
63875         * modules/long-options (Makefile.am): Likewise.
63876         * modules/lstat (Makefile.am): Likewise.
63877         * modules/malloc (Makefile.am): Likewise.
63878         * modules/mathl (Makefile.am): Likewise.
63879         * modules/mbchar (Makefile.am): Likewise.
63880         * modules/md2 (Makefile.am): Likewise.
63881         * modules/md4 (Makefile.am): Likewise.
63882         * modules/md5 (Makefile.am): Likewise.
63883         * modules/memcasecmp (Makefile.am): Likewise.
63884         * modules/memchr (Makefile.am): Likewise.
63885         * modules/memcmp (Makefile.am): Likewise.
63886         * modules/memcoll (Makefile.am): Likewise.
63887         * modules/memcpy (Makefile.am): Likewise.
63888         * modules/memmem (Makefile.am): Likewise.
63889         * modules/memmove (Makefile.am): Likewise.
63890         * modules/mempcpy (Makefile.am): Likewise.
63891         * modules/memrchr (Makefile.am): Likewise.
63892         * modules/memset (Makefile.am): Likewise.
63893         * modules/memxor (Makefile.am): Likewise.
63894         * modules/mkancesdirs (Makefile.am): Likewise.
63895         * modules/mkdir-p (Makefile.am): Likewise.
63896         * modules/mkdir (Makefile.am): Likewise.
63897         * modules/mkdtemp (Makefile.am): Likewise.
63898         * modules/mkstemp (Makefile.am): Likewise.
63899         * modules/mktime (Makefile.am): Likewise.
63900         * modules/modechange (Makefile.am): Likewise.
63901         * modules/mountlist (Makefile.am): Likewise.
63902         * modules/nanosleep (Makefile.am): Likewise.
63903         * modules/obstack (Makefile.am): Likewise.
63904         * modules/openat (Makefile.am): Likewise.
63905         * modules/pagealign_alloc (Makefile.am): Likewise.
63906         * modules/pathmax (Makefile.am): Likewise.
63907         * modules/physmem (Makefile.am): Likewise.
63908         * modules/poll (Makefile.am): Likewise.
63909         * modules/posixtm (Makefile.am): Likewise.
63910         * modules/posixver (Makefile.am): Likewise.
63911         * modules/putenv (Makefile.am): Likewise.
63912         * modules/quote (Makefile.am): Likewise.
63913         * modules/quotearg (Makefile.am): Likewise.
63914         * modules/raise (Makefile.am): Likewise.
63915         * modules/read-file (Makefile.am): Likewise.
63916         * modules/readline (Makefile.am): Likewise.
63917         * modules/readlink (Makefile.am): Likewise.
63918         * modules/readtokens (Makefile.am): Likewise.
63919         * modules/readutmp (Makefile.am): Likewise.
63920         * modules/realloc (Makefile.am): Likewise.
63921         * modules/regex (Makefile.am): Likewise.
63922         * modules/rename-dest-slash (Makefile.am): Likewise.
63923         * modules/rename (Makefile.am): Likewise.
63924         * modules/rijndael (Makefile.am): Likewise.
63925         * modules/rmdir (Makefile.am): Likewise.
63926         * modules/rpmatch (Makefile.am): Likewise.
63927         * modules/safe-read (Makefile.am): Likewise.
63928         * modules/safe-write (Makefile.am): Likewise.
63929         * modules/same-inode (Makefile.am): Likewise.
63930         * modules/same (Makefile.am): Likewise.
63931         * modules/save-cwd (Makefile.am): Likewise.
63932         * modules/savedir (Makefile.am): Likewise.
63933         * modules/setenv (Makefile.am): Likewise.
63934         * modules/settime (Makefile.am): Likewise.
63935         * modules/sha1 (Makefile.am): Likewise.
63936         * modules/sig2str (Makefile.am): Likewise.
63937         * modules/snprintf (Makefile.am): Likewise.
63938         * modules/stat-macros (Makefile.am): Likewise.
63939         * modules/stat-time (Makefile.am): Likewise.
63940         * modules/stdbool (Makefile.am): Likewise.
63941         * modules/stdint (Makefile.am): Likewise.
63942         * modules/stdlib-safer (Makefile.am): Likewise.
63943         * modules/stpcpy (Makefile.am): Likewise.
63944         * modules/stpncpy (Makefile.am): Likewise.
63945         * modules/strcase (Makefile.am): Likewise.
63946         * modules/strcasestr (Makefile.am): Likewise.
63947         * modules/strchrnul (Makefile.am): Likewise.
63948         * modules/strcspn (Makefile.am): Likewise.
63949         * modules/strdup (Makefile.am): Likewise.
63950         * modules/strerror (Makefile.am): Likewise.
63951         * modules/strftime (Makefile.am): Likewise.
63952         * modules/strndup (Makefile.am): Likewise.
63953         * modules/strnlen (Makefile.am): Likewise.
63954         * modules/strpbrk (Makefile.am): Likewise.
63955         * modules/strsep (Makefile.am): Likewise.
63956         * modules/strstr (Makefile.am): Likewise.
63957         * modules/strtod (Makefile.am): Likewise.
63958         * modules/strtoimax (Makefile.am): Likewise.
63959         * modules/strtok_r (Makefile.am): Likewise.
63960         * modules/strtol (Makefile.am): Likewise.
63961         * modules/strtoll (Makefile.am): Likewise.
63962         * modules/strtoul (Makefile.am): Likewise.
63963         * modules/strtoull (Makefile.am): Likewise.
63964         * modules/strtoumax (Makefile.am): Likewise.
63965         * modules/strverscmp (Makefile.am): Likewise.
63966         * modules/sys_socket (Makefile.am): Likewise.
63967         * modules/sys_stat (Makefile.am): Likewise.
63968         * modules/sysexits (Makefile.am): Likewise.
63969         * modules/time_r (Makefile.am): Likewise.
63970         * modules/timegm (Makefile.am): Likewise.
63971         * modules/timespec (Makefile.am): Likewise.
63972         * modules/tmpfile-safer (Makefile.am): Likewise.
63973         * modules/trim (Makefile.am): Likewise.
63974         * modules/unistd-safer (Makefile.am): Likewise.
63975         * modules/unlinkdir (Makefile.am): Likewise.
63976         * modules/unlocked-io (Makefile.am): Likewise.
63977         * modules/userspec (Makefile.am): Likewise.
63978         * modules/utime (Makefile.am): Likewise.
63979         * modules/utimecmp (Makefile.am): Likewise.
63980         * modules/utimens (Makefile.am): Likewise.
63981         * modules/vasnprintf (Makefile.am): Likewise.
63982         * modules/vasprintf (Makefile.am): Likewise.
63983         * modules/vsnprintf (Makefile.am): Likewise.
63984         * modules/xalloc (Makefile.am): Likewise.
63985         * modules/xgetcwd (Makefile.am): Likewise.
63986         * modules/xnanosleep (Makefile.am): Likewise.
63987         * modules/xreadlink (Makefile.am): Likewise.
63988         * modules/xstrtod (Makefile.am): Likewise.
63989         * modules/xstrtol (Makefile.am): Likewise.
63990         * modules/xstrtold (Makefile.am): Likewise.
63991         * modules/yesno (Makefile.am): Likewise.
63992         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63993
63994 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63995
63996         * modules/error (Makefile.am): Distribute files through
63997         EXTRA_DIST, not lib_SOURCES.
63998
63999 2006-10-12  Eric Blake  <ebb9@byu.net>
64000
64001         * modules/error (Makefile.am): Distribute files in /lib.
64002         * modules/obstack (Makefile.am): Likewise.
64003
64004 2006-10-12  Bruno Haible  <bruno@clisp.org>
64005
64006         * modules/acl (Makefile.am): Distribute all files in lib/ through
64007         EXTRA_DIST.
64008         * modules/arcfour (Makefile.am): Likewise.
64009         * modules/arctwo (Makefile.am): Likewise.
64010         * modules/argmatch (Makefile.am): Likewise.
64011         * modules/argz (Makefile.am): Likewise.
64012         * modules/atexit (Makefile.am): Likewise.
64013         * modules/backupfile (Makefile.am): Likewise.
64014         * modules/c-strtod (Makefile.am): Likewise.
64015         * modules/c-strtold (Makefile.am): Likewise.
64016         * modules/calloc (Makefile.am): Likewise.
64017         * modules/canon-host (Makefile.am): Likewise.
64018         * modules/canonicalize (Makefile.am): Likewise.
64019         * modules/chdir-long (Makefile.am): Likewise.
64020         * modules/chdir-safer (Makefile.am): Likewise.
64021         * modules/check-version (Makefile.am): Likewise.
64022         * modules/chown (Makefile.am): Likewise.
64023         * modules/cloexec (Makefile.am): Likewise.
64024         * modules/close-stream (Makefile.am): Likewise.
64025         * modules/closeout (Makefile.am): Likewise.
64026         * modules/crc (Makefile.am): Likewise.
64027         * modules/cycle-check (Makefile.am): Likewise.
64028         * modules/des (Makefile.am): Likewise.
64029         * modules/dirfd (Makefile.am): Likewise.
64030         * modules/dirname (Makefile.am): Likewise.
64031         * modules/dup2 (Makefile.am): Likewise.
64032         * modules/euidaccess (Makefile.am): Likewise.
64033         * modules/exclude (Makefile.am): Likewise.
64034         * modules/exitfail (Makefile.am): Likewise.
64035         * modules/fcntl-safer (Makefile.am): Likewise.
64036         * modules/file-type (Makefile.am): Likewise.
64037         * modules/fileblocks (Makefile.am): Likewise.
64038         * modules/filemode (Makefile.am): Likewise.
64039         * modules/filenamecat (Makefile.am): Likewise.
64040         * modules/fnmatch (Makefile.am): Likewise.
64041         * modules/fopen-safer (Makefile.am): Likewise.
64042         * modules/fpending (Makefile.am): Likewise.
64043         * modules/fprintftime (Makefile.am): Likewise.
64044         * modules/free (Makefile.am): Likewise.
64045         * modules/fsusage (Makefile.am): Likewise.
64046         * modules/ftruncate (Makefile.am): Likewise.
64047         * modules/fts (Makefile.am): Likewise.
64048         * modules/gc (Makefile.am): Likewise.
64049         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64050         * modules/getaddrinfo (Makefile.am): Likewise.
64051         * modules/getcwd (Makefile.am): Likewise.
64052         * modules/getdelim (Makefile.am): Likewise.
64053         * modules/getdomainname (Makefile.am): Likewise.
64054         * modules/getgroups (Makefile.am): Likewise.
64055         * modules/gethostname (Makefile.am): Likewise.
64056         * modules/gethrxtime (Makefile.am): Likewise.
64057         * modules/getline (Makefile.am): Likewise.
64058         * modules/getloadavg (Makefile.am): Likewise.
64059         * modules/getlogin_r (Makefile.am): Likewise.
64060         * modules/getopt (Makefile.am): Likewise.
64061         * modules/getpass (Makefile.am): Likewise.
64062         * modules/getpass-gnu (Makefile.am): Likewise.
64063         * modules/getsubopt (Makefile.am): Likewise.
64064         * modules/gettime (Makefile.am): Likewise.
64065         * modules/gettimeofday (Makefile.am): Likewise.
64066         * modules/getugroups (Makefile.am): Likewise.
64067         * modules/getusershell (Makefile.am): Likewise.
64068         * modules/glob (Makefile.am): Likewise.
64069         * modules/group-member (Makefile.am): Likewise.
64070         * modules/hard-locale (Makefile.am): Likewise.
64071         * modules/hash (Makefile.am): Likewise.
64072         * modules/hmac-md5 (Makefile.am): Likewise.
64073         * modules/hmac-sha1 (Makefile.am): Likewise.
64074         * modules/human (Makefile.am): Likewise.
64075         * modules/idcache (Makefile.am): Likewise.
64076         * modules/imaxabs (Makefile.am): Likewise.
64077         * modules/imaxdiv (Makefile.am): Likewise.
64078         * modules/inet_ntop (Makefile.am): Likewise.
64079         * modules/inet_pton (Makefile.am): Likewise.
64080         * modules/inttostr (Makefile.am): Likewise.
64081         * modules/isapipe (Makefile.am): Likewise.
64082         * modules/lchown (Makefile.am): Likewise.
64083         * modules/long-options (Makefile.am): Likewise.
64084         * modules/lstat (Makefile.am): Likewise.
64085         * modules/malloc (Makefile.am): Likewise.
64086         * modules/mathl (Makefile.am): Likewise.
64087         * modules/mbchar (Makefile.am): Likewise.
64088         * modules/md2 (Makefile.am): Likewise.
64089         * modules/md4 (Makefile.am): Likewise.
64090         * modules/md5 (Makefile.am): Likewise.
64091         * modules/memcasecmp (Makefile.am): Likewise.
64092         * modules/memchr (Makefile.am): Likewise.
64093         * modules/memcmp (Makefile.am): Likewise.
64094         * modules/memcoll (Makefile.am): Likewise.
64095         * modules/memcpy (Makefile.am): Likewise.
64096         * modules/memmem (Makefile.am): Likewise.
64097         * modules/memmove (Makefile.am): Likewise.
64098         * modules/mempcpy (Makefile.am): Likewise.
64099         * modules/memrchr (Makefile.am): Likewise.
64100         * modules/memset (Makefile.am): Likewise.
64101         * modules/memxor (Makefile.am): Likewise.
64102         * modules/mkancesdirs (Makefile.am): Likewise.
64103         * modules/mkdir (Makefile.am): Likewise.
64104         * modules/mkdir-p (Makefile.am): Likewise.
64105         * modules/mkdtemp (Makefile.am): Likewise.
64106         * modules/mkstemp (Makefile.am): Likewise.
64107         * modules/mktime (Makefile.am): Likewise.
64108         * modules/modechange (Makefile.am): Likewise.
64109         * modules/mountlist (Makefile.am): Likewise.
64110         * modules/nanosleep (Makefile.am): Likewise.
64111         * modules/openat (Makefile.am): Likewise.
64112         * modules/pagealign_alloc (Makefile.am): Likewise.
64113         * modules/physmem (Makefile.am): Likewise.
64114         * modules/poll (Makefile.am): Likewise.
64115         * modules/posixtm (Makefile.am): Likewise.
64116         * modules/posixver (Makefile.am): Likewise.
64117         * modules/putenv (Makefile.am): Likewise.
64118         * modules/quote (Makefile.am): Likewise.
64119         * modules/quotearg (Makefile.am): Likewise.
64120         * modules/raise (Makefile.am): Likewise.
64121         * modules/read-file (Makefile.am): Likewise.
64122         * modules/readline (Makefile.am): Likewise.
64123         * modules/readlink (Makefile.am): Likewise.
64124         * modules/readtokens (Makefile.am): Likewise.
64125         * modules/readutmp (Makefile.am): Likewise.
64126         * modules/realloc (Makefile.am): Likewise.
64127         * modules/regex (Makefile.am): Likewise.
64128         * modules/rename (Makefile.am): Likewise.
64129         * modules/rename-dest-slash (Makefile.am): Likewise.
64130         * modules/rijndael (Makefile.am): Likewise.
64131         * modules/rmdir (Makefile.am): Likewise.
64132         * modules/rpmatch (Makefile.am): Likewise.
64133         * modules/safe-read (Makefile.am): Likewise.
64134         * modules/safe-write (Makefile.am): Likewise.
64135         * modules/same (Makefile.am): Likewise.
64136         * modules/save-cwd (Makefile.am): Likewise.
64137         * modules/savedir (Makefile.am): Likewise.
64138         * modules/setenv (Makefile.am): Likewise.
64139         * modules/settime (Makefile.am): Likewise.
64140         * modules/sha1 (Makefile.am): Likewise.
64141         * modules/sig2str (Makefile.am): Likewise.
64142         * modules/snprintf (Makefile.am): Likewise.
64143         * modules/stdlib-safer (Makefile.am): Likewise.
64144         * modules/stpcpy (Makefile.am): Likewise.
64145         * modules/stpncpy (Makefile.am): Likewise.
64146         * modules/strcase (Makefile.am): Likewise.
64147         * modules/strcasestr (Makefile.am): Likewise.
64148         * modules/strchrnul (Makefile.am): Likewise.
64149         * modules/strcspn (Makefile.am): Likewise.
64150         * modules/strdup (Makefile.am): Likewise.
64151         * modules/strerror (Makefile.am): Likewise.
64152         * modules/strftime (Makefile.am): Likewise.
64153         * modules/strndup (Makefile.am): Likewise.
64154         * modules/strnlen (Makefile.am): Likewise.
64155         * modules/strpbrk (Makefile.am): Likewise.
64156         * modules/strsep (Makefile.am): Likewise.
64157         * modules/strstr (Makefile.am): Likewise.
64158         * modules/strtod (Makefile.am): Likewise.
64159         * modules/strtoimax (Makefile.am): Likewise.
64160         * modules/strtok_r (Makefile.am): Likewise.
64161         * modules/strtol (Makefile.am): Likewise.
64162         * modules/strtoll (Makefile.am): Likewise.
64163         * modules/strtoul (Makefile.am): Likewise.
64164         * modules/strtoull (Makefile.am): Likewise.
64165         * modules/strtoumax (Makefile.am): Likewise.
64166         * modules/strverscmp (Makefile.am): Likewise.
64167         * modules/time_r (Makefile.am): Likewise.
64168         * modules/timegm (Makefile.am): Likewise.
64169         * modules/tmpfile-safer (Makefile.am): Likewise.
64170         * modules/unistd-safer (Makefile.am): Likewise.
64171         * modules/unlinkdir (Makefile.am): Likewise.
64172         * modules/userspec (Makefile.am): Likewise.
64173         * modules/utime (Makefile.am): Likewise.
64174         * modules/utimecmp (Makefile.am): Likewise.
64175         * modules/utimens (Makefile.am): Likewise.
64176         * modules/vasnprintf (Makefile.am): Likewise.
64177         * modules/vasprintf (Makefile.am): Likewise.
64178         * modules/vsnprintf (Makefile.am): Likewise.
64179         * modules/xalloc (Makefile.am): Likewise.
64180         * modules/xgetcwd (Makefile.am): Likewise.
64181         * modules/xnanosleep (Makefile.am): Likewise.
64182         * modules/xreadlink (Makefile.am): Likewise.
64183         * modules/xstrtod (Makefile.am): Likewise.
64184         * modules/xstrtol (Makefile.am): Likewise.
64185         * modules/xstrtold (Makefile.am): Likewise.
64186         * modules/yesno (Makefile.am): Likewise.
64187
64188 2006-10-12  Jim Meyering  <jim@meyering.net>
64189
64190         * m4/getloadavg.m4: Revert the change below.
64191
64192         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64193         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64194         fail with a symlink, which is what coreutils' ./bootstrap now
64195         creates by default.
64196
64197 2006-10-12  Bruno Haible  <bruno@clisp.org>
64198
64199         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64200         mingw.
64201         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64202         MSVC and mingw explicitly.
64203
64204 2006-10-11  Simon Josefsson  <jas@extundo.com>
64205             Bruno Haible  <bruno@clisp.org>
64206
64207         Add support for multiple gnulib-tool invocations in the scope of a
64208         single configure.ac file.
64209         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64210         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64211         with the same contents as the _LIBADD variable.
64212         (func_emit_initmacro_start, func_emit_initmacro_end,
64213         func_emit_initmacro_done): New functions.
64214         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64215         gl_LIBOBJS and gl_LTLIBOBJS.
64216
64217 2006-10-11  Bruno Haible  <bruno@clisp.org>
64218
64219         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64220         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64221         autoreconf. Instead, invoke autopoint explicitly but move back the
64222         *.m4 files from gnulib.
64223
64224 2006-10-11  Bruno Haible  <bruno@clisp.org>
64225
64226         * gnulib-tool (func_usage): Make module names after --create-testdir
64227         optional.
64228         (func_create_testdir): If no module was specified, use nearly all
64229         modules.
64230
64231 2006-10-12  Jim Meyering  <jim@meyering.net>
64232
64233         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64234         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64235         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64236         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64237         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64238         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64239         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64240         (fts_set_stat_required): New function.
64241         (fts_open): Defer the calls to fts_stat, if possible or requested.
64242         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64243         into fts_stat itself.
64244         (fts_read): Perform any required (deferred) fts_stat call.
64245         (fts_build): Likewise, for the directory we're about to open and read.
64246         In the readdir loop, carefully decide whether each entry will require
64247         an eventual call to fts_stat, using dirent.d_type info if available.
64248         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64249         a command line argument into this function.  Update all callers.
64250         Map a return value of FTS_DOT to FTS_D for a command line argument.
64251         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64252         Thanks to Miklos Szeredi for his tenacity and for the initial
64253         bug report about "find" failing on a FUSE-based file system.
64254
64255         * lib/fts.c (fts_open): Use consistent indentation.
64256
64257 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64258
64259         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64260         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64261         reported by Jim Meyering.  All uses of cache variables renamed
64262         to match Autoconf's.
64263         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64264         the other one.
64265
64266         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64267         Fix misspelling in diagnostic.
64268
64269 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64270
64271         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64272         defined.  Problem reported by Matthew Woehlke.
64273
64274         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64275         Add support for Tandem NonStop R series.
64276         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64277         Use new macro.
64278
64279         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64280         (has_trailing_slash): Omit size arg; all callers changed.
64281         Omit 'inline', since it doesn't help performance and we'd
64282         need to configure it.
64283         Don't count //, ///, etc. as having a trailing slash.
64284         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64285         (rpl_rename_dest_slash): On failure, use rename's errno rather
64286         than (in some cases) an incorrect or junk errno.
64287         Simplify code by removing need to compute length; this does
64288         cause it to make two passes instead of one over the file name,
64289         but it's worth it.
64290
64291         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64292         change, since Autoconf's version may no longer be appropriate now
64293         that we are using CVS Autoconf's version.  Add support for Tandem.
64294
64295 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64296             Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64299         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64300         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64301         gl_AC_TYPE_LONG_LONG.
64302
64303         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64304         instead of HAVE_LONG_LONG.
64305         * lib/printf-args.c (printf_fetchargs): Likewise.
64306         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64307         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64308         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64309         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64310         gl_AC_TYPE_LONG_LONG.
64311
64312 2006-10-11  Bruno Haible  <bruno@clisp.org>
64313
64314         * m4/longlong.m4: Add comments.
64315         * m4/ulonglong.m4: Likewise.
64316
64317 2006-10-10  Bruno Haible  <bruno@clisp.org>
64318
64319         Make it possible to #define stpcpy, strdup to aliases.
64320         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64321         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64322
64323 2006-10-10  Bruno Haible  <bruno@clisp.org>
64324
64325         Make it possible to #define gcd to an alias.
64326         * lib/gcd.c: Include config.h.
64327
64328 2006-10-10  Bruno Haible  <bruno@clisp.org>
64329
64330         Make it possible to #define c_isascii to an alias.
64331         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64332         defined. Undefine the macros before defining them, to avoid gcc
64333         warnings.
64334         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64335         define NO_C_CTYPE_MACROS early.
64336
64337 2006-10-10  Bruno Haible  <bruno@clisp.org>
64338
64339         Make it possible to #define set_program_name to an alias.
64340         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64341         ENABLE_RELOCATABLE early.
64342
64343 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64344
64345         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64346         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64347         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64348         More generally, don't assume that 64-bit signed int is available
64349         if unsigned int is, and vice versa.
64350         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64351         unsigned symbols, not on their signed counterparts.
64352         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64353         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64354         (UINT64_C, UINTMAX_C):
64355         Likewise.
64356         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64357         unsigned counterparts.
64358         (Have_long_long, Unsigned): New macros.
64359         (Int): Renamed from INT.
64360         (strtoimax): Use the new macros.
64361         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64362         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64363         * modules/inttypes (inttypes.h): Substitute
64364         HAVE_UNSIGNED_LONG_LONG_INT.
64365         * modules/stdint (stdint.h): Likewise.
64366         (Files): Add m4/ulonglong.m4.
64367
64368 2006-10-10  Bruno Haible  <bruno@clisp.org>
64369
64370         Fix a gcc -Wshadow warning.
64371         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64372         to 'bucket'.
64373         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64374         gl_linked_indexof_from_to): Likewise.
64375         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64376         Likewise.
64377         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64378         Likewise.
64379         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64380         Reported by Eric Blake.
64381
64382 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64383
64384         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64385         for NetBSD.  Problem reported by Bruno Haible.
64386
64387 2006-10-09  Jim Meyering  <jim@meyering.net>
64388
64389         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64390         Patch from Bruno Haible.
64391
64392 2006-10-09  Jim Meyering  <jim@meyering.net>
64393
64394         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64395         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64396         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64397
64398 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64399
64400         Don't include <config.h> twice; this doesn't work in some cases,
64401         e.g., when config.h has "#define intmax_t long long int" and
64402         we include <config.h>, <inttypes.h>, <config.h> in that order.
64403         Problem reported by Matthew Woehlke in:
64404         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64405         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64406         * lib/fts-cycle.c: Don't include config.h.
64407         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64408         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64409         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64410         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64411         inttypes.h.
64412         * lib/xstrtoumax.c: Likewise.
64413         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64414         __strtol and the like, so that this module is more like its siblings.
64415         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64416         Remove; no longer needed now that we assume gnulib inttypes.h.
64417
64418 2006-10-08  Bruno Haible  <bruno@clisp.org>
64419
64420         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64421         option.
64422
64423 2006-10-07  Jim Meyering  <jim@meyering.net>
64424
64425         * modules/inttypes (inttypes.h): Revert what seems to have been
64426         an inadvertent part of today's change: use "|", not "/" in the
64427         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64428
64429 2006-10-07  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/sublist: New file.
64432
64433 2006-10-07  Bruno Haible  <bruno@clisp.org>
64434
64435         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64436         * modules/argz (argz.h): Likewise.
64437         * modules/arpa_inet (arpa/inet.h): Likewise.
64438         * modules/byteswap (byteswap.h): Likewise.
64439         * modules/configmake (configmake.h): Likewise.
64440         * modules/fcntl (fcntl.h): Likewise.
64441         * modules/fnmatch (fnmatch.h): Likewise.
64442         * modules/getopt (getopt.h): Likewise.
64443         * modules/glob (glob.h): Likewise.
64444         * modules/inttypes (inttypes.h): Likewise.
64445         * modules/netinet_in (netinet/in.h): Likewise.
64446         * modules/poll (poll.h): Likewise.
64447         * modules/stdbool (stdbool.h): Likewise.
64448         * modules/stdint (stdint.h): Likewise.
64449         * modules/sys_select (sys/select.h): Likewise.
64450         * modules/sys_socket (sys/socket.h): Likewise.
64451         * modules/sys_stat (sys/stat.h): Likewise.
64452         * modules/sysexits (sysexits.h): Likewise.
64453         * modules/unistd (unistd.h): Likewise.
64454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64455         Add a "DO NOT EDIT" comment to the generated file.
64456         (func_import): Likewise for gnulib-comp.m4.
64457
64458 2006-10-07  Bruno Haible  <bruno@clisp.org>
64459
64460         * lib/gl_sublist.h: New file.
64461         * lib/gl_sublist.c: New file.
64462
64463 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64466         name (relative to the original working directory) and the file
64467         name component (relative to the temporary working directory).  All
64468         callers changed.
64469         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64470         * lib/mkdir-p.c (make_dir_parents): Likewise.
64471         * lib/mkdir-p.h (make_dir_parents): Likewise.
64472
64473 2006-10-06  Eric Blake  <ebb9@byu.net>
64474
64475         Define several macros for use by the clean-temp module.
64476         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64477         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64478         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64479
64480         * lib/clean-temp.h (close_stream_temp): New declaration.
64481         * lib/clean-temp.c (includes): Pull in headers according to what
64482         other modules are in use.
64483         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64484
64485 2006-10-06  Bruno Haible  <bruno@clisp.org>
64486
64487         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64488         instead of fopen, fwriteerror.
64489
64490 2006-10-06  Bruno Haible  <bruno@clisp.org>
64491
64492         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64493         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64494         int.
64495         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64496         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64497         Return an error indicator.
64498         Suggested by Eric Blake.
64499
64500 2006-10-06  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64503         Reported by Eric Blake.
64504
64505 2006-10-06  Bruno Haible  <bruno@clisp.org>
64506
64507         * modules/closeout (Description): Mention stderr too.
64508
64509 2006-10-06  Bruno Haible  <bruno@clisp.org>
64510         and Paul Eggert  <eggert@cs.ucla.edu>
64511
64512         * lib/closeout.c (close_stdout): Also close stderr.
64513         * lib/closeout.h: Update comment.
64514
64515 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64516
64517         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64518         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64519         * lib/dirchownmod.c: Include lchown.h.
64520         * lib/lchown.c: Don't include files that lchown.h now includes.
64521         Don't declare chown, since lchown.h now does that.
64522         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64523         (lchown): Define to rpl_chown if lchown is declared but
64524         does not exist.  Declare using a prototype if lchown is not
64525         declared.  Add a copyright notice.
64526         * lib/mkstemp.h: Include <unistd.h>.
64527         * lib/openat.c: Include lchown.h.
64528
64529         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64530         we now test for that separately.
64531         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64532         rather than O_NOFOLLOW, when testing whether it's possible to
64533         avoid a race condition reliably.
64534         * lib/savewd.c (savewd_chdir): Likewise.
64535
64536         Remove macros that are no longer needed now that stdint.h is
64537         reliable.
64538         * lib/fsusage.c (UINTMAX_MAX): Remove.
64539         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64540         * lib/utimecmp.c (SIZE_MAX): Remove.
64541
64542         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64543
64544         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64545         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64546         O_NOATIME works.
64547
64548 2006-10-05  Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/gl_list.h (gl_sortedlist_search_from_to,
64551         gl_sortedlist_indexof_from_to): New declarations.
64552         (gl_list_implementation): New fields sortedlist_search_from_to,
64553         sortedlist_indexof_from_to.
64554         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64555         inline functions.
64556         * lib/gl_list.c (gl_sortedlist_search_from_to,
64557         gl_sortedlist_indexof_from_to): New functions.
64558         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64559         function.
64560         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64561         (gl_array_sortedlist_search_from_to): New function.
64562         (gl_array_list_implementation): Update.
64563         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64564         function.
64565         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64566         (gl_carray_sortedlist_search_from_to): New function.
64567         (gl_carray_list_implementation): Update.
64568         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64569         gl_linked_sortedlist_indexof_from_to): New functions.
64570         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64571         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64572         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64573         gl_tree_sortedlist_indexof_from_to): New functions.
64574         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64575         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64576         Update.
64577         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64578         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64579         Update.
64580
64581 2006-10-05  Bruno Haible  <bruno@clisp.org>
64582
64583         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64584         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64585         (struct gl_list_implementation): Add fields search_from_to,
64586         indexof_from_to. Remove fields search, indexof.
64587         (gl_list_search): Use the search_from_to method.
64588         (gl_list_search_from, gl_list_search_from_to): New functions.
64589         (gl_list_indexof): Use the indexof_from_to method.
64590         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64591         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64592         (gl_list_search_from, gl_list_search_from_to): New functions.
64593         (gl_list_indexof): Use the indexof_from_to method.
64594         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64595         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64596         gl_array_indexof. Add start_index, end_index arguments.
64597         (gl_array_search_from_to): Renamed from gl_array_search. Add
64598         start_index, end_index arguments.
64599         (gl_array_remove, gl_array_list_implementation): Update.
64600         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64601         gl_carray_indexof. Add start_index, end_index arguments.
64602         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64603         start_index, end_index arguments.
64604         (gl_carray_remove, gl_carray_list_implementation): Update.
64605         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64606         gl_linked_search. Add start_index, end_index arguments.
64607         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64608         start_index, end_index arguments.
64609         (gl_linked_remove): Update.
64610         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64611         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64612         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64613         field to 'size_t'.
64614         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64615         gl_tree_search. Add start_index, end_index arguments.
64616         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64617         start_index, end_index arguments.
64618         (gl_tree_remove): Update.
64619         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64620         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64621         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64622         function.
64623         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64624         gl_tree_search. Add start_index, end_index arguments.
64625         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64626         start_index, end_index arguments.
64627         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64628         Update.
64629         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64630
64631 2006-10-05  Bruno Haible  <bruno@clisp.org>
64632
64633         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64634
64635         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64636         fwriteerror_temp): New declarations.
64637         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64638         (descriptors): New variable.
64639         (cleanup): First, close the descriptors.
64640         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64641         fclose_temp, fwriteerror_temp): New functions.
64642
64643 2006-10-04  Jim Meyering  <jim@meyering.net>
64644
64645         * lib/fts.c (fts_open): Tiny comment change.
64646
64647 2006-10-04  Bruno Haible  <bruno@clisp.org>
64648
64649         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64650         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64651         gl_LOCK_BODY.
64652         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64653         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64654         gl_LOCK_EARLY_BODY.
64655         (gl_LOCK): Require gl_LOCK_BODY.
64656
64657 2006-10-04  Bruno Haible  <bruno@clisp.org>
64658
64659         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64660         (gl_oset_search_atleast): New declaration.
64661         (struct gl_oset_implementation): Add field 'search_atleast'.
64662         (gl_oset_search_atleast): New inline function.
64663         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64664         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64665         (gl_array_oset_implementation): Update.
64666         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64667         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64668         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64669
64670 2006-10-04  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64673
64674 2006-10-03  Bruno Haible  <bruno@clisp.org>
64675
64676         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64677         from gl_avltreehash_list_implementation.
64678
64679 2006-10-03  Bruno Haible  <bruno@clisp.org>
64680
64681         * lib/gl_oset.c (gl_oset_add): Fix return type.
64682
64683 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64684
64685         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64686
64687 2006-10-02  Eric Blake  <ebb9@byu.net>
64688
64689         * modules/strnlen (Depends-on): Add extensions.
64690
64691 2006-10-02  Eric Blake  <ebb9@byu.net>
64692
64693         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64694         definition in 2.60+.
64695
64696 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64697
64698         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64699         checks.
64700
64701 2006-10-02  Bruno Haible  <bruno@clisp.org>
64702
64703         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64704         to the AUTOMAKE_OPTIONS.
64705         Reported by Jim Meyering.
64706
64707 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         Work around bug in Solaris 10 /proc file system:
64710         /proc/self/fd/NNN/.. isn't the parent directory of
64711         the directory whose file descriptor is NNN.  This needs to
64712         be worked around at run time, not compile time, since a
64713         program might be built on Solaris 8, where things work, and
64714         run on Solaris 10.
64715         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64716         to use the following interface instead:
64717         (OPENAT_BUFFER_SIZE): New macro.
64718         (openat_proc_name): New function.
64719         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64720         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64721         Likewise.
64722         * lib/openat-proc.c: New file.
64723         * modules/openat (Files): Add lib/openat-proc.c.
64724         (Depends-on): Add same-inode, stdbool.
64725         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64726
64727 2006-09-29  Bruno Haible  <bruno@clisp.org>
64728
64729         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64730         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64731         argument. Set stdout_closed before testing for ferror, not after.
64732         (fwriteerror, fwriteerror_no_ebadf): New functions.
64733
64734 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64735
64736         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64737
64738 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64739
64740         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64741         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64742
64743 2006-09-28  Jim Meyering  <jim@meyering.net>
64744
64745         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64746         Include <unistd.h>.
64747
64748 2006-09-28  Bruno Haible  <bruno@clisp.org>
64749
64750         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64751         * modules/linkedhash-list (Depends-on): Likewise.
64752         * modules/rbtreehash-list (Depends-on): Likewise.
64753
64754 2006-09-28  Bruno Haible  <bruno@clisp.org>
64755
64756         * lib/strndup.h: Simplify the redefinition of strndup.
64757         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64758         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64759
64760 2006-09-28  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64763         * lib/gl_linkedhash_list.c: Likewise.
64764         * lib/gl_rbtreehash_list.c: Likewise.
64765
64766 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64767
64768         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64769         getaddrinfo.
64770
64771         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64772         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64773         it causes <stdio_ext.h> to cause a compile-time error.
64774         Problem reported by Nelson H. F. Beebe.
64775         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64776         of HAVE_DECL___PENDING.
64777
64778         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64779         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64780         declaration.
64781
64782 2006-09-27  Jim Meyering  <jim@meyering.net>
64783
64784         This file could end up with a definition for a function
64785         named __strndup, rather than rpl_strndup on a system with
64786         incomplete weak_alias support.
64787         * lib/strndup.c (strndup): Rename from __strndup.
64788         Remove #defines that used to map __strndup to strndup.
64789         Don't use K&R prototypes.
64790         Remove LIBC-related code, since this file is not sync'd with glibc.
64791         * lib/strndup.h: Revamp, accordingly.
64792         * m4/strndup.m4: Modernize.
64793
64794 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64795
64796         * modules/savewd (Depends-on): Add 'raise'.
64797         * lib/savewd.c: Include <signal.h>, for 'raise'.
64798
64799 2006-09-26  Jim Meyering  <jim@meyering.net>
64800
64801         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64802         when we detect Darwin 8.7.0's acl_get_file bug.
64803         Rearrange to perform the new (below) run-test while $LIBS
64804         contains any acl-related library.  Set USE_ACL at the end.
64805         (gl_ACL_GET_FILE): New function.
64806
64807 2006-09-26  Eric Blake  <ebb9@byu.net>
64808
64809         * lib/verror.c: Include <config.h> unconditionally.
64810
64811 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64812
64813         * modules/clock-time (Maintainer): Add self.
64814         * modules/getlogin_r (Depends-on): Add extensions.
64815
64816 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64817
64818         * modules/clock-time: New module.
64819         * modules/nanosleep (Depends-on): Add clock-time.
64820         * modules/gethrxtime (Depends-on): Likewise.
64821         * modules/gettime (Depends-on): Likewise.
64822         * modules/settime (Depends-on): Likewise.
64823
64824         * modules/fts-lgpl: Depend on openat.
64825         * modules/mkancesdirs: Depend on savewd.
64826         * modules/mkdir-p: Likewise.
64827
64828 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64829
64830         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64831
64832         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64833         `gl_have_arbitrary_file_name_length_limit' to
64834         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64835         actually works between configure runs.
64836
64837 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64838             Bruno Haible  <bruno@clisp.org>
64839
64840         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64841
64842 2006-09-25  Jim Meyering  <jim@meyering.net>
64843
64844         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64845         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64846
64847 2006-09-25  Eric Blake  <ebb9@byu.net>
64848
64849         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64850         exec's in 2006-09-18 patch when shuffling fds.
64851
64852 2006-09-25  Bruno Haible  <bruno@clisp.org>
64853
64854         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64855         Reported by Jim Meyering.
64856
64857 2006-09-24  Jim Meyering  <jim@meyering.net>
64858
64859         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64860         compare a pointer against a literal "0".  That caused failures with
64861         at least HP-UX's hpcc.
64862
64863 2006-09-22  Simon Josefsson  <jas@extundo.com>
64864
64865         * modules/gc-sha1:
64866         * modules/gc-md4:
64867         * modules/gc-hmac-sha1:
64868         * modules/gc-hmac-md5:
64869         * modules/gc-des:
64870         * modules/gc-arcfour: Distribute more files.
64871
64872 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64873
64874         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64875         (gl_linked_iterator_from_to): Initialize struct completely.
64876         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64877         (gl_tree_iterator_from_to): Likewise
64878         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64879         * lib/gl_array_list.c [lint] (gl_array_iterator)
64880         (gl_array_iterator_from_to): Likewise.
64881         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64882         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64883         (gl_carray_iterator_from_to): Likewise.
64884
64885         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64886         * lib/md4.c (md4_process_block): Remove unused variable.
64887         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64888         parentheses for clarity.
64889
64890 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64891
64892         * modules/bison-i18n (Depends-on): Add gettext.
64893
64894 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64895
64896         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64897         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64898         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64899         also add missing comma that caused broken test.
64900         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64901         stdlib.h, for `abort'.
64902         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64903         variables.
64904         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64905         include unistd.h if present, for `rmdir'.
64906         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64907         variables.
64908         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64909         in the process include standard headers for prototypes.
64910         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64911         gets declared on GNU/Linux.
64912         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64913         unistd.h, for `rmdir'.
64914         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64915
64916         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64917         always true.
64918         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64919
64920         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64921
64922 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64923
64924         * gnulib-tool (func_version): Create output all at once.  This
64925         may help avoid triggering unnecessary SIGPIPEs, and at any
64926         rate it doesn't hurt.
64927
64928 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64929             Bruno Haible  <bruno@clisp.org>
64930
64931         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64932         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64933         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64934
64935         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64936         (gl_FUNC_VASPRINTF): Invoke it.
64937
64938 2006-09-22  Bruno Haible  <bruno@clisp.org>
64939
64940         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64941         getloadavg.c as first argument.
64942
64943 2006-09-22  Bruno Haible  <bruno@clisp.org>
64944
64945         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64946         at the beginning of the gl_INIT macro.
64947         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64948         gl_GETLOADAVG.
64949
64950 2006-09-22  Bruno Haible  <bruno@clisp.org>
64951
64952         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64953         module.
64954         Suggested by Ralf Wildenhues.
64955
64956 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64957
64958         Import this patch from libc:
64959
64960         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64961
64962         * lib/regex_internal.c (re_string_reconstruct): Handle
64963         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64964         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64965         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64966         re_string_context_at.
64967
64968         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64969         now requires it.
64970         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64971         gl_REGEX now does it for us.
64972         (gl_REGEX): Add test taken from
64973         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64974
64975         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64976         Check that large offsets work.  Modernize Autoconf usages.
64977         Prefer "yes" to mean a good thing rather than a bad.
64978         Don't put "#define mkstemp" in config.h, as this might interfere
64979         with standard system headers that "#define mkstemp mkstemp64".
64980
64981         * modules/mkstemp (Depends-on): Add extensions, so that
64982         mkstemp is visible on some platforms.
64983         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64984         (Include): Change to "mkstemp.h" from <stdlib.h>.
64985         (Files): Add mkstemp.h.
64986
64987         * lib/mkstemp.h: New file, since some standard headers
64988         #define mkstemp.
64989         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64990         Include "mkstemp.h".
64991         Make the _LIBC code resemble glibc original more,
64992         e.g., use K&R style.
64993         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64994         (mkstemp): Remove, since mkstemp.h does this for us.
64995         * lib/stdlib--.h: Include mkstemp.h.
64996
64997         Import this patch from libc:
64998
64999         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65000
65001         * lib/tempname.c (__gen_tempname): Change attempts_min
65002         into a macro.  Use preprocessor to decide how to initialize
65003         attempts [Coverity CID 67].
65004
65005 2006-09-20  Bruno Haible  <bruno@clisp.org>
65006
65007         * lib/mkdtemp.c: Import from libc.
65008         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65009                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65010                 attempts_min into a macro.  Use preprocessor to decide how to
65011                 initialize attempts [Coverity CID 67].
65012         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65013                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65014                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65015
65016 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65017
65018         * gnulib-tool (func_exit): New function, to allow to pass the
65019         exit status portably through the trap.  Use everywhere.
65020         (--help, --version): Signal a write error.
65021         (trap): catch SIGPIPE, for write errors.
65022         Exit at the end of the trap, with the correct exit status.
65023
65024 2006-09-19  Karl Berry  <karl@gnu.org>
65025
65026         * doc/gnulib.texi: note about the license texinfo files.
65027
65028 2006-09-19  Eric Blake  <ebb9@byu.net>
65029
65030         * gnulib-tool: Avoid space-tab.
65031
65032 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65033
65034         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65035         that prevented coreutils 6.1 from building.  Problem reported
65036         by Petter Reinholdtsen.
65037
65038 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65039
65040         * gnulib-tool (avoidlist): Fix typo that broke options like
65041         --avoid=lock that are used by coreutils bootstrap.
65042
65043 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65044
65045         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65046         more systematically.
65047
65048 2006-09-18  Jim Meyering  <jim@meyering.net>
65049
65050         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65051
65052 2006-09-18  Bruno Haible  <bruno@clisp.org>
65053
65054         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65055
65056 2006-09-18  Bruno Haible  <bruno@clisp.org>
65057
65058         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65059         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65060         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65061         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65062         * m4/gettext.m4: Require autoconf >= 2.52.
65063         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65064         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65065         of gl_cv_header_inttypes_h.
65066
65067 2006-09-18  Bruno Haible  <bruno@clisp.org>
65068
65069         * lib/javaversion.c: Include configmake.h.
65070
65071 2006-09-18  Bruno Haible  <bruno@clisp.org>
65072
65073         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65074         avoid that the while loops be executed in a subshell.
65075
65076 2006-09-18  Bruno Haible  <bruno@clisp.org>
65077
65078         * MODULES.html.sh (func_module): Break long lines.
65079         Suggested by Bruce Korb <bkorb@gnu.org>.
65080
65081 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65082
65083         Speed up by a factor of 1.12.
65084         * gnulib-tool (nl): New variable.
65085         (func_import): Rewrite include directive extraction to only read each
65086         directive once.
65087
65088 2006-09-17  Bruno Haible  <bruno@clisp.org>
65089
65090         * modules/javaversion (Makefile.am): Remove DEFS setting.
65091         (Depends-on): Add configmake, for PKGDATADIR definition.
65092
65093 2006-09-17  Bruno Haible  <bruno@clisp.org>
65094
65095         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65096
65097 2006-09-17  Bruno Haible  <bruno@clisp.org>
65098
65099         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65100         (func_modules_transitive_closure, func_modules_add_dummy,
65101         func_modules_to_filelist, func_import, func_create_testdir,
65102         func_create_megatestdir, ...): Use it wherever possible.
65103         Suggested by Ralf Wildenhues.
65104
65105 2006-09-16  Karl Berry  <karl@gnu.org>
65106
65107         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65108         to avoid sectioning errors.
65109         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65110         [ifinfo]: blank line after @center-ed titles.
65111         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65112         Spell FSF address consistently with others.
65113         (These changes approved by rms.)
65114
65115 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65116
65117         Speed up by a factor of 1.61.
65118         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65119         already checked module names again.
65120
65121 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65122
65123         Speed up by a factor of 1.13.
65124         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65125         for new_files, and the input to func_add_or_update.
65126
65127 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65128
65129         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65130         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65131
65132 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65133
65134         * modules/mkancesdirs (Depends-on): Add fcntl.
65135         * modules/savewd: New file.
65136         * MODULES.html.sh (File system functions): Add savewd.
65137
65138         * modules/configmake (Makefile.am): Add support for the
65139         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65140
65141 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         * m4/savewd.m4: New file.
65144
65145 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65146
65147         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65148         (dirchownmod): New arg FD.  All callers changed.
65149         Use FD rather than opening the directory ourself, as opening is
65150         now the caller's responsibility.
65151         * lib/dirchownmod.h: Likewise.
65152         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65153         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65154         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65155         (test_dir): Remove.
65156         (mkancesdirs): Return length of prefix of FILE that has already
65157         been made, or -2 if there is a child doing the work.  Redo
65158         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65159         ".", and treat ".." specially since it might stray back into
65160         already-created areas.  Use a subprocess if necessary.  New arg
65161         WD; all users changed.  MAKE_DIR function should now return 1
65162         if it creates a directory that is not readable.  Return -2 if
65163         a child process is spun off.
65164         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65165         Adjust signature to match code.
65166         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65167         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65168         all users changed.
65169         * lib/savewd.c, lib/savewd.h: New files.
65170
65171 2006-09-15  Jim Meyering  <jim@meyering.net>
65172
65173         * modules/rename-dest-slash: New module.
65174         * MODULES.html.sh (posix_compat): Add it here.
65175
65176         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65177
65178 2006-09-15  Jim Meyering  <jim@meyering.net>
65179
65180         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65181         file.
65182
65183         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65184
65185 2006-09-15  Jim Meyering  <jim@meyering.net>
65186
65187         * lib/rename-dest-slash.c (has_trailing_slash): Use
65188         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65189         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65190         test before testing whether SRC is a directory.
65191         Suggestions from Bruno Haible.
65192
65193         Avoid a warning about an unused variable.
65194         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65195         into the #ifdef block where it's used.
65196
65197         * lib/rename-dest-slash.c: New file.
65198
65199 2006-09-14  Bruno Haible  <bruno@clisp.org>
65200
65201         * lib/allocsa.c: Include <config.h> unconditionally.
65202         * lib/asnprintf.c: Likewise.
65203         * lib/asprintf.c: Likewise.
65204         * lib/c-strcasecmp.c: Likewise.
65205         * lib/c-strcasestr.c: Likewise.
65206         * lib/c-strncasecmp.c: Likewise.
65207         * lib/c-strstr.c: Likewise.
65208         * lib/classpath.c: Likewise.
65209         * lib/clean-temp.c: Likewise.
65210         * lib/concatpath.c: Likewise.
65211         * lib/copy-file.c: Likewise.
65212         * lib/csharpcomp.c: Likewise.
65213         * lib/csharpexec.c: Likewise.
65214         * lib/execute.c: Likewise.
65215         * lib/fatal-signal.c: Likewise.
65216         * lib/findprog.c: Likewise.
65217         * lib/fwriteerror.c: Likewise.
65218         * lib/gl_array_list.c: Likewise.
65219         * lib/gl_array_oset.c: Likewise.
65220         * lib/gl_avltree_list.c: Likewise.
65221         * lib/gl_avltree_oset.c: Likewise.
65222         * lib/gl_avltreehash_list.c: Likewise.
65223         * lib/gl_carray_list.c: Likewise.
65224         * lib/gl_linked_list.c: Likewise.
65225         * lib/gl_linkedhash_list.c: Likewise.
65226         * lib/gl_list.c: Likewise.
65227         * lib/gl_oset.c: Likewise.
65228         * lib/gl_rbtree_list.c: Likewise.
65229         * lib/gl_rbtree_oset.c: Likewise.
65230         * lib/gl_rbtreehash_list.c: Likewise.
65231         * lib/imaxabs.c: Likewise.
65232         * lib/imaxdiv.c: Likewise.
65233         * lib/javacomp.c: Likewise.
65234         * lib/javaexec.c: Likewise.
65235         * lib/javaversion.c: Likewise.
65236         * lib/linebreak.c: Likewise.
65237         * lib/localcharset.c: Likewise.
65238         * lib/lock.c: Likewise.
65239         * lib/mbchar.c: Likewise.
65240         * lib/mbswidth.c: Likewise.
65241         * lib/mkdtemp.c: Likewise.
65242         * lib/pipe.c: Likewise.
65243         * lib/printf-args.c: Likewise.
65244         * lib/printf-parse.c: Likewise.
65245         * lib/progname.c: Likewise.
65246         * lib/progreloc.c: Likewise.
65247         * lib/readlink.c: Likewise.
65248         * lib/sh-quote.c: Likewise.
65249         * lib/stpcpy.c: Likewise.
65250         * lib/stpncpy.c: Likewise.
65251         * lib/strcasecmp.c: Likewise.
65252         * lib/strcasestr.c: Likewise.
65253         * lib/strcspn.c: Likewise.
65254         * lib/striconv.c: Likewise.
65255         * lib/strncasecmp.c: Likewise.
65256         * lib/strnlen1.c: Likewise.
65257         * lib/strstr.c: Likewise.
65258         * lib/strtok_r.c: Likewise.
65259         * lib/tls.c: Likewise.
65260         * lib/tmpdir.c: Likewise.
65261         * lib/unicodeio.c: Likewise.
65262         * lib/unsetenv.c: Likewise.
65263         * lib/vasnprintf.c: Likewise.
65264         * lib/vasprintf.c: Likewise.
65265         * lib/wait-process.c: Likewise.
65266         * lib/xallocsa.c: Likewise.
65267         * lib/xsetenv.c: Likewise.
65268         * lib/xstriconv.c: Likewise.
65269
65270 2006-09-13  Simon Josefsson  <jas@extundo.com>
65271
65272         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65273         that internally, suggested by Ralf Wildenhues
65274         <Ralf.Wildenhues@gmx.de>.
65275
65276 2006-09-13  Simon Josefsson  <jas@extundo.com>
65277
65278         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65279         @LIBOBJS@.
65280         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65281
65282 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65283
65284         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65285         longer worry about uses that don't define HAVE_CONFIG_H.
65286         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65287         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65288         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65289         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65290         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65291         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65292         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65293         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65294         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65295         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65296         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65297         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65298         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65299         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65300         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65301         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65302         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65303         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65304         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65305         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65306         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65307         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65308         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65309         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65310         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65311         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65312         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65313         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65314         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65315         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65316         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65317         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65318         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65319         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65320         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65321         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65322         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65323         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65324         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65325         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65326         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65327         Likewise.
65328
65329 2006-09-13  Eric Blake  <ebb9@byu.net>
65330
65331         * lib/getopt.c: Fix typo in last commit.
65332
65333 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65334
65335         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65336         dgettext.
65337
65338 2006-09-12  Jim Meyering  <jim@meyering.net>
65339
65340         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65341         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65342         Reported by Nelson H. F. Beebe.
65343
65344 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65345
65346         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65347         program_invocation_name and program_invocation_short_name are
65348         initialized.
65349         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65350         and program_invocation_short_name to argp.h, so they are visible
65351         to user programs.
65352         * lib/argp.h: Likewise
65353
65354 2006-09-10  Bruno Haible  <bruno@clisp.org>
65355
65356         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65357         m4/inttypes_h.m4, m4/uintmax_t.m4.
65358
65359 2006-09-10  Bruno Haible  <bruno@clisp.org>
65360
65361         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65362         gl_AC_TYPE_UINTMAX_T.
65363
65364 2006-09-10  Bruno Haible  <bruno@clisp.org>
65365
65366         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65367
65368 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65369
65370         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65371         convention.  Text proposed by Bruno Haible.
65372         (struct argp_option): Document the use of N_() wrappers.
65373
65374         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65375         '\v', and translate the two parts separately, instead of feeding
65376         the whole string to gettext.  This allows to exclude
65377         '\v' from the strings visible to the translator by writing doc
65378         strings as N_("..") "\v" N_("..").
65379
65380 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         * config/srclist.txt: Undo latest change; the bug was fixed.
65383
65384 2006-09-09  Bruno Haible  <bruno@clisp.org>
65385
65386         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65387         assignments if building a library without libtool.
65388         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65389         in func_emit_lib_Makefile_am.
65390         (func_import): When building a static library libfoo.a, arrange to
65391         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65392         (func_create_testdir): Likewise.
65393         * modules/gc (configure.ac, Makefile.am): If building statically,
65394         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65395         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65396         * modules/striconv (configure.ac, Makefile.am): Likewise.
65397         Based on a suggestion by Ralf Wildenhues.
65398
65399 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65400
65401         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65402         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65403         Also:
65404
65405         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65406         Add year_2050_test to catch glibc bug 2821
65407         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65408
65409         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65410         Prefer #ifdef to #if.
65411
65412         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65413         Return from 'main' instead of calling 'exit'.
65414
65415 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65416
65417         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65418         returned the maximum time_t value rather than (time_t) -1.
65419         Problem originally reported by William Bardwell
65420         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65421
65422         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65423         Moved to here ...
65424         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65425         ... from here.
65426
65427 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65428
65429         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65430         2821 is fixed.
65431
65432 2006-09-08  Jim Meyering  <jim@meyering.net>
65433
65434         Don't make generated files read-only.  That would bother too many
65435         people.  However, do retain the ability to work when targets are
65436         read-only: remove the destination and temporary files before writing
65437         them (when generated via sed or echo), or by using the -f option for
65438         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65439         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65440         * modules/byteswap, modules/configmake, modules/fcntl:
65441         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65442         * modules/localcharset, modules/netinet_in, modules/poll:
65443         * modules/stdbool, modules/stdint, modules/sys_select:
65444         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65445
65446 2006-09-08  Jim Meyering  <jim@meyering.net>
65447
65448         Avoid new build failure on FreeBSD 6.0.
65449         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65450         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65451         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65452
65453 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65454
65455         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65456
65457 2006-09-07  Jim Meyering  <jim@meyering.net>
65458
65459         Fix global typo in last change: use chmod u-w, not chmod u-x.
65460         Spotted by Paul Eggert and Bruce Korb.
65461         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65462         * modules/byteswap, modules/configmake, modules/fcntl:
65463         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65464         * modules/localcharset, modules/netinet_in, modules/poll:
65465         * modules/stdbool, modules/stdint, modules/sys_select:
65466         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65467
65468 2006-09-06  Jim Meyering  <jim@meyering.net>
65469
65470         Make generated files be read-only.
65471         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65472         Ensure that each generated file is now read-only.
65473         * modules/argz: Likewise.
65474         * modules/arpa_inet: Likewise.
65475         * modules/byteswap: Likewise.
65476         * modules/configmake: Likewise.
65477         * modules/fcntl: Likewise.
65478         * modules/fnmatch: Likewise.
65479         * modules/getopt: Likewise.
65480         * modules/glob: Likewise.
65481         * modules/inttypes: Likewise.
65482         * modules/netinet_in: Likewise.
65483         * modules/poll: Likewise.
65484         * modules/stdbool: Likewise.
65485         * modules/stdint: Likewise.
65486         * modules/sys_select: Likewise.
65487         * modules/sys_socket: Likewise.
65488         * modules/sys_stat: Likewise.
65489         * modules/sysexits: Likewise.
65490         * modules/localcharset: Same as above, but continue using temporary
65491         file named "t-$@" (why different?) rather than the "$@-t" used
65492         everywhere else.
65493
65494         * modules/sysexits (Makefile.am): Replace literal occurrences
65495         of "sysexit.h" more readable, and more consistent, "$@".
65496
65497 2006-09-06  Bruno Haible  <bruno@clisp.org>
65498
65499         * modules/striconv: New file.
65500         * modules/xstriconv: New file.
65501         * MODULES.html.sh (Internationalization functions): Add striconv,
65502         xstriconv.
65503
65504 2006-09-06  Bruno Haible  <bruno@clisp.org>
65505
65506         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65507         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65508         not using libtool correctly.
65509
65510 2006-09-06  Bruno Haible  <bruno@clisp.org>
65511
65512         * lib/striconv.h: New file.
65513         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65514         iconvstring.c.
65515         * lib/xstriconv.h: New file.
65516         * lib/xstriconv.c: New file.
65517
65518 2006-09-06  Bruno Haible  <bruno@clisp.org>
65519
65520         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65521         lib_..._LDFLAGS.
65522
65523 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65524
65525         * lib/argz_.h: Sync from Libtool.
65526
65527         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65528                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65529
65530         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65531
65532 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65533
65534         * modules/trim: New file.
65535
65536 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65537
65538         * lib/trim.h: New file.
65539         * lib/trim.c: New file.
65540
65541 2006-09-05  Bruno Haible  <bruno@clisp.org>
65542
65543         * MODULES.html.sh (String handling): Add trim.
65544
65545 2006-09-04  Karl Berry  <karl@gnu.org>
65546
65547         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65548         until next release.
65549
65550 2006-09-03  Bruno Haible  <bruno@clisp.org>
65551
65552         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65553         correctly.
65554
65555 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65556
65557         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65558         not gl_GETLOADAVG.  Omit unneeded semicolons.
65559         Problems reported by Ralf Wildenhues in
65560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65561         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65562         at the end, which is the usual gnulib style.
65563
65564         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65565         of doing all the work ourselves.
65566         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65567         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65568
65569 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65572         Problem reported by Ralf Wildenhues in
65573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65574
65575         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65576         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65577
65578 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65579
65580         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65581         yesterday's patch by changing test -n to test -z.
65582
65583 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65584
65585         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65586         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65587         the former is now obsolescent.
65588
65589         * modules/chdir-long (Depends-on): Add fcntl.
65590
65591 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65594         obsolescent, and programs should use gnulib instead.
65595         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65596         but with prefixes changed.
65597
65598 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65599
65600         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65601         or stdbool.h, because they might not exist while configuring.
65602
65603         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65604         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65605         does that for us.
65606         (O_DIRECTORY): Remove.
65607
65608 2006-08-31  Eric Blake  <ebb9@byu.net>
65609
65610         * gnulib-tool: Don't let emacs change spaces to TAB.
65611
65612 2006-08-31  Bruno Haible  <bruno@clisp.org>
65613
65614         * gnulib-tool: When calling func_import more than once, do it in a
65615         subshell.
65616         Reported by Eric Blake <ebb9@byu.net>.
65617
65618 2006-08-31  Bruno Haible  <bruno@clisp.org>
65619
65620         * gnulib-tool (nl): Remove variable.
65621         (sed_transform_lib_file): Use more robust test for config-h module.
65622         (func_import): Fix typo in 2006-08-25 patch.
65623
65624 2006-08-31  Bruno Haible  <bruno@clisp.org>
65625
65626         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65627         specified, augment Makefile.am variables instead of assigning them.
65628
65629 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65630
65631         Work around a bug in both the Linux and SunOS 64-bit kernels:
65632         nanosleep mishandles sleeps for longer than 2**31 seconds.
65633         Problem reported by Frank v Waveren in
65634         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65636         Check for nanosleep bug.
65637         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65638
65639 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65640
65641         Work around a bug in both the Linux and SunOS 64-bit kernels:
65642         nanosleep mishandles sleeps for longer than 2**31 seconds.
65643         Problem reported by Frank v Waveren in
65644         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65645         * lib/nanosleep.c (BILLION): New constant.
65646         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65647         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65648         implementation.
65649
65650 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         * modules/nanosleep (Depends-on): Add gettime.
65653
65654 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65655         and Simon Josefsson  <jas@extundo.com>
65656         and Oskar Liljeblad  <oskar@osk.mine.nu>
65657
65658         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65659         * gnulib-tool (func_import): New license type 'unmodifiable license
65660         text'.
65661         * modules/fdl: Use it.  Longer description.
65662         * module/gpl, module/lgpl: New files.
65663
65664 2006-08-30  Jim Meyering  <jim@meyering.net>
65665
65666         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65667         shadowing the parameter.
65668
65669 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65670
65671         Sync from Libtool:
65672
65673         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65674
65675         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65676         sharing with gnulib.  Report by Eric Blake.
65677
65678 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65679
65680         * modules/isapipe: New file.
65681         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65682
65683 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65684
65685         * modules/configmake (Makefile.am): Add a comment, and omit
65686         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65687         by Bruno Haible.
65688
65689 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * m4/isapipe.m4: New file.
65692
65693 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65694
65695         * lib/isapipe.c, lib/isapipe.h: New files.
65696
65697 2006-08-29  Jim Meyering  <jim@meyering.net>
65698
65699         * modules/configmake (Makefile.am): Make configmake.h depend on
65700         Makefile.  Otherwise, a stale configmake.h could hang around.
65701
65702 2006-08-29  Eric Blake  <ebb9@byu.net>
65703
65704         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65705         resolution of upstream bug 3044.
65706
65707 2006-08-29  Bruno Haible  <bruno@clisp.org>
65708
65709         * modules/localcharset (Depends-on): Add configmake.
65710         (Makefile.am): Remove setting of LIBDIR through DEFS.
65711
65712 2006-08-29  Bruno Haible  <bruno@clisp.org>
65713
65714         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65715         defined.
65716
65717 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         * modules/fcntl: New file.
65720         * modules/chdir-safer (Depends-on): Add fcntl.
65721         * modules/fts: Likewise.
65722         * modules/mkdir-p: Likewise.
65723
65724         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65725         This undoes the most recent change, since we're now addressing the
65726         problem in a different way.
65727
65728         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65729         into output, since the output might be called Makefile.am even
65730         if $makefile_name is something different.
65731         (func_import): Use $makefile_am rather than
65732         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65733         empty.
65734
65735         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65736
65737 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65738
65739         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65740         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65741         recent change to stdint.m4, since we're now addressing the problem in a
65742         different way.
65743
65744 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65745
65746         * m4/fcntl_h.m4: New file.
65747
65748 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65749
65750         * lib/fcntl_.h: New file.
65751         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65752         the fcntl module.
65753         * lib/dirchownmod.c: Likewise.
65754         * lib/fts.c: Likewise.
65755
65756         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65757         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65758         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65759         just before including <inttypes.h>, to avoid circular inclusion.
65760
65761 2006-08-28  Jim Meyering  <jim@meyering.net>
65762
65763         * doc/visibility.texi: Actually read and correct the grammar of the
65764         sentence affected by yesterday's change.
65765
65766 2006-08-28  Eric Blake  <ebb9@byu.net>
65767
65768         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65769         needs wrapper.
65770
65771 2006-08-28  Eric Blake  <ebb9@byu.net>
65772
65773         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65774
65775 2006-08-28  Eric Blake  <ebb9@byu.net>
65776
65777         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65778
65779 2006-08-28  Bruno Haible  <bruno@clisp.org>
65780
65781         * modules/c-strstr: New file, from GNU gettext.
65782         * MODULES.html.sh (String handling): Add c-strstr.
65783
65784 2006-08-28  Bruno Haible  <bruno@clisp.org>
65785
65786         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65787         macros.
65788         Reported by Eric Blake.
65789
65790 2006-08-28  Bruno Haible  <bruno@clisp.org>
65791
65792         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65793         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65794         * lib/vasprintf.c: Include errno.h, limits.h.
65795         (EOVERFLOW): New fallback definition.
65796         (vasprintf): Test here whether the string length is > INT_MAX.
65797         * lib/vsnprintf.c: Include errno.h, limits.h.
65798         (EOVERFLOW): New fallback definition.
65799         (vsnprintf): Fix bug when generated string was too long for the buffer.
65800         Test here whether the string length is > INT_MAX.
65801
65802 2006-08-28  Bruno Haible  <bruno@clisp.org>
65803
65804         * lib/inttypes_.h (SCNX*): Remove definitions.
65805         Reported by Eric Blake.
65806
65807 2006-08-28  Bruno Haible  <bruno@clisp.org>
65808
65809         * lib/c-strstr.h: New file, from GNU gettext.
65810         * lib/c-strstr.c: New file, from GNU gettext.
65811
65812 2006-08-28  Bruno Haible  <bruno@clisp.org>
65813
65814         * gnulib-tool: Reorder some statements.
65815
65816 2006-08-28  Bruno Haible  <bruno@clisp.org>
65817
65818         * gnulib-tool: New option --makefile-name.
65819         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65820         $makefile_name.
65821         (func_import): Write $makefile_name to the cache file, and read it from
65822         there unless explicitly specified. Use $makefile_name as file name
65823         instead of Makefile.am. Adjust the recommendations accordingly.
65824
65825 2006-08-28  Bruno Haible  <bruno@clisp.org>
65826
65827         * gnulib-tool (func_verify_module): Check against misapplying patch.
65828
65829 2006-08-28  Bruno Haible  <bruno@clisp.org>
65830
65831         * gnulib-tool (func_relativize, func_relconcat): New functions.
65832         Give an error if --local-dir is given with --update.
65833         Remove trailing slashes from $local_gnulib_dir.
65834         (func_import): Store the relativized $local_gnulib_dir in
65835         gnulib-cache.m4, and read it from there if not specified explicitly.
65836
65837 2006-08-28  Bruno Haible  <bruno@clisp.org>
65838
65839         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65840         is the current directory. Respect also $local_gnulib_dir.
65841
65842 2006-08-28  Bruno Haible  <bruno@clisp.org>
65843             Simon Josefsson  <jas@extundo.com>
65844
65845         BeOS portability.
65846         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65847
65848 2006-08-27  Jim Meyering  <jim@meyering.net>
65849
65850         * doc/visibility.texi: Remove duplicate word: "pointer".
65851
65852 2006-08-26  Bruno Haible  <bruno@clisp.org>
65853
65854         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65855         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65856         (Makefile.am): Create inttypes.h from inttypes_.h.
65857         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65858
65859         * modules/imaxabs: New file.
65860
65861         * modules/imaxdiv: New file.
65862
65863 2006-08-26  Bruno Haible  <bruno@clisp.org>
65864
65865         * m4/inttypes.m4: New file.
65866         * m4/_inttypes_h.m4: Remove file.
65867         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65868         PRI_MACROS_BROKEN.
65869         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65870
65871         * m4/imaxabs.m4: New file.
65872
65873         * m4/imaxdiv.m4: New file.
65874
65875 2006-08-26  Bruno Haible  <bruno@clisp.org>
65876
65877         * lib/inttypes_.h: New file.
65878         * lib/inttypes.h: Remove file.
65879         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65880
65881         * lib/imaxabs.c: New file.
65882
65883         * lib/imaxdiv.c: New file.
65884
65885 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65886
65887         New config-h module, so that "make" output needn't be cluttered
65888         by -DHAVE_CONFIG_H.
65889         * MODULES.html.sh (Support for building libraries and executables):
65890         Add config-h.
65891         * modules/config-h: New file.
65892         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65893         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65894         the config-h module is used.
65895
65896         New configmake module, so that "make" output needn't be cluttered
65897         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65898         * MODULES.html.sh (Support for building libraries and executables):
65899         Add configmake.
65900         * modules/configmake: New file.
65901
65902 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65903
65904         * m4/config-h.m4: New file.
65905
65906 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65907
65908         * config/srclist.txt: Add elisp-comp.
65909
65910 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65911
65912         * MODULES.html.sh (Support for building libraries and executables):
65913         Add elisp-comp.
65914         * build-aux/elisp-comp: New file.
65915         * modules/elisp-comp: New file.
65916
65917 2006-08-24  Bruno Haible  <bruno@clisp.org>
65918
65919         * gnulib-tool (func_create_testdir): Use non-default values of
65920         sourcebase and m4base.
65921
65922 2006-08-24  Bruno Haible  <bruno@clisp.org>
65923
65924         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65925         HTML structure.
65926
65927 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65928
65929         * modules/openat (Depends-on): Add lchown.
65930
65931 2006-08-23  Bruno Haible  <bruno@clisp.org>
65932
65933         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65934         of gl_LOCK_EARLY instead of gl_LOCK.
65935
65936 2006-08-23  Bruno Haible  <bruno@clisp.org>
65937
65938         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65939         on OSF/1 to no.
65940         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65941
65942 2006-08-23  Bruno Haible  <bruno@clisp.org>
65943
65944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65945         as unusable.
65946
65947         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65948         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65949         (gl_LOCK): New macro.
65950
65951 2006-08-22  Simon Josefsson  <jas@extundo.com>
65952
65953         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65954         to md5 module.
65955
65956 2006-08-22  Simon Josefsson  <jas@extundo.com>
65957
65958         * MODULES.html.sh: Add "Support for maintaining and release
65959         projects".
65960
65961         * build-aux/gnupload: New file, from coreutils.
65962
65963 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65964
65965         Avoid the need for AC_LIBSOURCES in m4 macros.
65966         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65967         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65968         * modules/check-version (EXTRA_DIST): Add check-version.h.
65969         * modules/crc (EXTRA_DIST): Add crc.h.
65970         * modules/des (EXTRA_DIST): Add des.h.
65971         * modules/gc (EXTRA_DIST): Add gc.h.
65972         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65973         * modules/getline (EXTRA_DIST): Add getline.h.
65974         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65975         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65976         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65977         * modules/md2 (EXTRA_DIST): Add md2.h.
65978         * modules/md4 (EXTRA_DIST): Add md4.h.
65979         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65980         * modules/read-file (EXTRA_DIST): Add read-file.h.
65981         * modules/readline (EXTRA_DIST): Add readline.h.
65982         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65983         rijndael-api-fst.h.
65984
65985 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65986
65987         * m4/rijndael.m4 (gl_ARCFOUR):
65988         * m4/arctwo.m4 (gl_ARCTWO):
65989         * m4/check-version.m4 (gl_CHECK_VERSION):
65990         * m4/crc.m4 (gl_CRC):
65991         * m4/des.m4 (gl_DES):
65992         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65993         * m4/gc.m4 (gl_GC):
65994         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65995         * m4/getline.m4 (gl_FUNC_GETLINE):
65996         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65997         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65998         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65999         * m4/md2.m4 (gl_MD2):
66000         * m4/md4.m4 (gl_MD4):
66001         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66002         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66003         * m4/readline.m4 (gl_FUNC_READLINE):
66004         * m4/rijndael.m4 (gl_RIJNDAEL):
66005         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66006         to get the necessary .h files and whatnot.
66007
66008 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66011         gnulib rather than the other way around.
66012         * config/srclistvars.sh (COREUTILS): Remove.
66013
66014 2006-08-22  Jim Meyering  <jim@meyering.net>
66015
66016         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66017
66018         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66019
66020 2006-08-22  Eric Blake  <ebb9@byu.net>
66021
66022         * modules/regexprops-generic: New file.
66023         * MODULES.html.sh (Support for building documentation): List it.
66024
66025 2006-08-22  Eric Blake  <ebb9@byu.net>
66026
66027         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66028         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66029         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66030         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66031
66032 2006-08-22  Bruno Haible  <bruno@clisp.org>
66033
66034         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66035         and lib_LTLIBRARIES like the other lib_* variables.
66036
66037 2006-08-22  Bruno Haible  <bruno@clisp.org>
66038
66039         * build-aux/x-to-1.in: New file, from GNU gettext.
66040
66041 2006-08-22  Bruno Haible  <bruno@clisp.org>
66042
66043         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66044         <utmpx.h> exists.
66045
66046 2006-08-22  Bruno Haible  <bruno@clisp.org>
66047
66048         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66049         <utmpx.h> exists.
66050
66051 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66052
66053         BeOS portability.
66054         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66055         exist.
66056         Problem reported by Bruno Haible.
66057
66058 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66059
66060         Avoid the need for AC_LIBSOURCES in m4 macros.
66061         * modules/acl (EXTRA_DIST): Add acl.h.
66062         * modules/argmatch (Files): Add m4/argmatch.m4.
66063         (configure.ac): Add gl_ARGMATCH.
66064         (EXTRA_DIST): Renamed from lib_SOURCES, for
66065         consistency with the other modules.  Remove argmatch.c.
66066         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66067         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66068         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66069         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66070         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66071         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66072         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66073         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66074         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66075         * modules/closeout (EXTRA_DIST): Add closeout.h.
66076         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66077         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66078         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66079         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66080         dirname.h; remove basename.c and stripslash.c.
66081         * modules/exclude (EXTRA_DIST): Add exclude.h.
66082         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66083         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66084         * modules/file-type (EXTRA_DIST): Add file-type.h.
66085         * modules/filemode (EXTRA_DIST): Add filemode.h.
66086         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66087         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66088         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66089         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66090         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66091         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66092         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66093         * modules/getdate (EXTRA_DIST): Add getdate.c.
66094         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66095         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66096         * modules/getpass (EXTRA_DIST): Add getpass.h.
66097         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66098         * modules/group-member (EXTRA_DIST): Add group-member.h.
66099         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66100         * modules/hash (EXTRA_DIST): Add hash.h.
66101         * modules/human (EXTRA_DIST): Add human.h.
66102         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66103         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66104         * modules/lchown (EXTRA_DIST): Add lchown.h.
66105         * modules/long-options (EXTRA_DIST): Add long-options.h.
66106         * modules/lstat (EXTRA_DIST): Add lstat.h.
66107         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66108         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66109         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66110         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66111         * modules/memxor (EXTRA_DIST): Add memxor.h.
66112         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66113         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66114         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66115         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66116         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66117         * modules/physmem (EXTRA_DIST): Add physmem.h.
66118         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66119         * modules/posixver (EXTRA_DIST): Add posixver.h.
66120         * modules/quote (EXTRA_DIST): Add quote.h.
66121         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66122         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66123         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66124         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66125         regex_internal.h regexec.c.
66126         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66127         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66128         * modules/same (EXTRA_DIST): Add same.h.
66129         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66130         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66131         * modules/savedir (EXTRA_DIST): Add savedir.h.
66132         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66133         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66134         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66135         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66136         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66137         * modules/strdup (EXTRA_DIST): Add strdup.h.
66138         * modules/strftime (EXTRA_DIST): Add strftime.h.
66139         * modules/strndup (EXTRA_DIST): Add strndup.h.
66140         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66141         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66142         * modules/time_r (EXTRA_DIST): Add time_r.h.
66143         * modules/timespec (EXTRA_DIST): Add timespec.h.
66144         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66145         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66146         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66147         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66148         * modules/userspec (EXTRA_DIST): Add userspec.h.
66149         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66150         * modules/utimens (EXTRA_DIST): Add utimens.h.
66151         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66152         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66153         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66154         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66155         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66156         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66157         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66158         * modules/yesno (EXTRA_DIST): Add yesno.h.
66159
66160 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66161
66162         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66163
66164         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66165         * m4/dev-ino.m4, same-inode.m4: Remove.
66166
66167         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66168         * m4/acl.m4 (AC_FUNC_ACL):
66169         * m4/backupfile.m4 (gl_BACKUPFILE):
66170         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66171         * m4/canon-host.m4 (gl_CANON_HOST):
66172         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66173         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66174         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66175         * m4/cloexec.m4 (gl_CLOEXEC):
66176         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66177         * m4/closeout.m4 (gl_CLOSEOUT):
66178         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66179         * m4/dirname.m4 (gl_DIRNAME):
66180         * m4/exclude.m4 (gl_EXCLUDE):
66181         * m4/exitfail.m4 (gl_EXITFAIL):
66182         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66183         * m4/file-type.m4 (gl_FILE_TYPE):
66184         * m4/filemode.m4 (gl_FILEMODE):
66185         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66186         * m4/fpending.m4 (gl_FUNC_FPENDING):
66187         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66188         * m4/fts.m4 (gl_FUNC_FTS):
66189         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66190         * m4/getdate.m4 (gl_GETDATE):
66191         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66192         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66193         * m4/getpass.m4 (gl_FUNC_GETPASS):
66194         * m4/gettime.m4 (gl_GETTIME):
66195         * m4/getugroups.m4 (gl_GETUGROUPS):
66196         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66197         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66198         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66199         * m4/hash.m4 (gl_HASH):
66200         * m4/idcache.m4 (gl_IDCACHE):
66201         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66202         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66203         * m4/long-options.m4 (gl_LONG_OPTIONS):
66204         * m4/lstat.m4 (gl_FUNC_LSTAT):
66205         * m4/md5.m4 (gl_MD5):
66206         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66207         * m4/memcoll.m4 (gl_MEMCOLL):
66208         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66209         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66210         * m4/memxor.m4 (gl_MEMXOR):
66211         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66212         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66213         * m4/modechange.m4 (gl_MODECHANGE):
66214         * m4/mountlist.m4 (gl_MOUNTLIST):
66215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66216         * m4/openat.m4 (gl_FUNC_OPENAT):
66217         * m4/pathmax.m4 (gl_PATHMAX):
66218         * m4/physmem.m4 (gl_PHYSMEM):
66219         * m4/posixtm.m4 (gl_POSIXTM):
66220         * m4/posixver.m4 (gl_POSIXVER):
66221         * m4/quote.m4 (gl_QUOTE):
66222         * m4/quotearg.m4 (gl_QUOTEARG):
66223         * m4/readtokens.m4 (gl_READTOKENS):
66224         * m4/readutmp.m4 (gl_READUTMP):
66225         * m4/regex.m4 (gl_REGEX):
66226         * m4/safe-read.m4 (gl_SAFE_READ):
66227         * m4/safe-write.m4 (gl_SAFE_WRITE):
66228         * m4/same.m4 (gl_SAME):
66229         * m4/save-cwd.m4 (gl_SAVE_CWD):
66230         * m4/savedir.m4 (gl_SAVEDIR):
66231         * m4/settime.m4 (gl_SETTIME):
66232         * m4/sha1.m4 (gl_SHA1):
66233         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66234         * m4/stat-macros.m4 (gl_STAT_MACROS):
66235         * m4/stat-time.m4 (gl_STAT_TIME):
66236         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66237         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66238         * m4/strdup.m4 (gl_FUNC_STRDUP):
66239         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66240         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66241         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66242         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66243         * m4/time_r.m4 (gl_TIME_R):
66244         * m4/timespec.m4 (gl_TIMESPEC):
66245         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66246         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66247         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66248         * m4/userspec.m4 (gl_USERSPEC):
66249         * m4/utimecmp.m4 (gl_UTIMECMP):
66250         * m4/utimens.m4 (gl_UTIMENS):
66251         * m4/xalloc.m4 (gl_XALLOC):
66252         * m4/xgetcwd.m4 (gl_XGETCWD):
66253         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66254         * m4/xreadlink.m4 (gl_XREADLINK):
66255         * m4/xstrtod.m4 (gl_XSTRTOD):
66256         * m4/yesno.m4 (gl_YESNO):
66257         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66258         to get the necessary .h files and whatnot.
66259
66260 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66261             Bruno Haible  <bruno@clisp.org>
66262
66263         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66264         /bin/sh understanding of '!' conditional negation.
66265
66266 2006-08-21  Jim Meyering  <jim@meyering.net>
66267
66268         * modules/openat (Depends-on): Really alphabetize.
66269
66270         * modules/acl (Depends-on): Add error and quote.
66271
66272         * check-module (find_included_lib_files): Add at-func.c to the
66273         ok-to-include-more-than-once white list.
66274
66275         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66276
66277 2006-08-21  Bruno Haible  <bruno@clisp.org>
66278
66279         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66280         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66281         Reported by Martin Lambers <marlam@marlam.de>.
66282
66283 2006-08-21  Bruno Haible  <bruno@clisp.org>
66284
66285         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66286         specify an installation location, don't emit a noinst_LIBRARIES or
66287         noinst_LTLIBRARIES assignment.
66288
66289 2006-08-21  Bruno Haible  <bruno@clisp.org>
66290
66291         BeOS portability.
66292         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66293         BeOS has mbrtowc() but no <wctype.h>.
66294
66295 2006-08-21  Bruno Haible  <bruno@clisp.org>
66296
66297         BeOS portability.
66298         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66299         exist.
66300
66301 2006-08-21  Bruno Haible  <bruno@clisp.org>
66302
66303         BeOS portability.
66304         * lib/mbchar.h: Include <wctype.h> only if it exists.
66305
66306 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66307
66308         Remove files that are no longer needed by their respective modules.
66309         * m4/obstack.m4: Remove.
66310         * m4/strerror_r.m4: Remove.
66311         * m4/uint32_t.m4: Remove.
66312         * m4/uintptr_t.m4: Remove.
66313         * m4/ullong_max.m4: Remove.
66314         * m4/xstrtoimax.m4: Remove.
66315         * m4/xstrtoumax.m4: Remove.
66316
66317         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66318         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66319         dependencies now capture this.
66320
66321         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66322         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66323         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66324         * m4/human.m4 (gl_HUMAN): Likewise.
66325         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66326         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66327
66328         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66329
66330         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66331         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66332         stdint.
66333         * m4/human.m4 (gl_HUMAN): Likewise.
66334         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66335         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66336         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66337         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66338         * m4/xstrtol (gl_XSTRTOL): Likewise.
66339
66340         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66341         AC_TYPE_LONG_LONG_INT.
66342         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66343         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66344         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66345         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66346
66347         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66348         on stdbool.
66349
66350         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66351         (gl_PREREQ_XSTRTOUL): Remove.
66352
66353         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66354
66355         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66356         mode.
66357
66358 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66359
66360         Add and change modules to make it easier for coreutils to use
66361         gnulib-tool.
66362         * modules/backupfile (Files): Remove m4/d-ino.m4.
66363         (Depends-on): Add d-ino.
66364         * modules/cycle-check (Depends-on): Add stdint.
66365         (lib_SOURCES): Add cycle-check.h.
66366         * modules/d-ino: New module.
66367         * modules/d-type: New module.
66368         * modules/error (Files): Remove m4/strerror_r.m4.
66369         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66370         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66371         m4/inttypes_h.m4, m4/uintmax_t.m4.
66372         (Depends-on): Add stdint.
66373         (lib_SOURCES): Add fsusage.h.
66374         * modules/getcwd (Files): Remove d-ino.m4.
66375         (Depends-on): Add d-ino.
66376         * modules/getndelim2 (Depends-on): Add stdint.
66377         * modules/glob (Files): Remove m4/d-type.m4.
66378         (Depends-on): Add d-type.
66379         * modules/host-os: New module.
66380         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66381         m4/inttypes_h.m4, m4/uintmax_t.m4.
66382         * Depends-on: Add stdint.
66383         (lib_SOURCES): Add human.h.
66384         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66385         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66386         m4/uintmax_t.m4, m4/ulonglong.m4.
66387         (Depends-on): Add stdint.
66388         (EXTRA_DIST): Add inttostr.h.
66389         * modules/lchmod: New module.
66390         * modules/link-follow: New module.
66391         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66392         (Depends-on): Add lchmod.
66393         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66394         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66395         (Depends-on): Add stdint.
66396         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66397         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66398         (Depends-on): Add stdint.
66399         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66400         * modules/perl: New module.
66401         * modules/regex (Depends-on): Add stdint.
66402         * modules/rmdir-errno: New module.
66403         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66404         m4/intmax_t.m4.
66405         (Depends-on): Add stdint.
66406         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66407         m4/uintmax_t.m4.
66408         (Depends-on): Add stdint.
66409         * modules/unlink-busy: New module.
66410         * modules/utimecmp (Depends-on): Add stdint.
66411         * modules/uptime: New module.
66412         * modules/winsz-ioctl: New module.
66413         * modules/winsz-termios: New module.
66414         * modules/xnanosleep (Depends-on): Add nanosleep.
66415         * modules/ullong_max: Remove.
66416         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66417         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66418         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66419         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66420         (Depends-on): Add inttypes.
66421         (lib_SOURCES): Add xstrtol.h.
66422         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66423         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66424         * MODULES.html.sh: Move 'assert' into the assert section.
66425         Move 'dummy' into the linking section.
66426         Remove ullong_max.
66427         Add section for compatibility checks for POSIX:2001 functions,
66428         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66429         winsz-ioctl, and winsz-termios into it.
66430         Add lchmod.
66431         Add top-level Misc section and put host-os, perl, and uptime
66432         into it.
66433
66434 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66437         now assume the stdint module.  Do not include inttypes.h.
66438         * lib/fsusage.h: Likewise.
66439         * lib/getndelim2.c: Likewise.
66440         * lib/human.h: Likewise.
66441         * lib/inttostr.h: Likewise.
66442         * lib/obstack.c: Likewise.
66443         * lib/regex_internal.h: Likewise.
66444         * lib/tempname.c: Likewise.
66445         * lib/utimecmp.c: Likewise.
66446         * lib/xstrtol.h: Likewise.
66447
66448         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66449
66450         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66451         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66452         * lib/xtime.h: Likewise.
66453
66454 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66455
66456         * modules/openat (Files): Add lib/fchmodat.c.
66457         Fixes problem reported by Jay Youngman.
66458
66459 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66460
66461         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66462         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66463
66464 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66465             Bruno Haible  <bruno@clisp.org>
66466
66467         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66468         and is a script that invokes bison. Tighten the code. Add comments.
66469
66470 2006-08-18  Jim Meyering  <jim@meyering.net>
66471
66472         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66473         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66474         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66475         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66476
66477 2006-08-18  Bruno Haible  <bruno@clisp.org>
66478
66479         * modules/bison-i18n: New file.
66480         * MODULES.html.sh (Internationalization functions): Add it.
66481
66482 2006-08-18  Bruno Haible  <bruno@clisp.org>
66483
66484         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66485         sys/statvfs.h. When getmntinfo was found, check its declaration and
66486         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66487
66488 2006-08-18  Bruno Haible  <bruno@clisp.org>
66489
66490         * m4/bison-i18n.m4: New file, from bison.
66491
66492 2006-08-18  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66495         (ME_DUMMY): Treat "kernfs" as a dummy.
66496         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66497
66498 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66499
66500         Update from coreutils.
66501
66502         2006-08-15  Jim Meyering  <jim@meyering.net>
66503
66504         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66505
66506         2006-01-17  Jim Meyering  <jim@meyering.net>
66507
66508         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66509
66510         2006-01-11  Jim Meyering  <jim@meyering.net>
66511
66512         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66513         Check for the lchmod function.
66514
66515 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66516
66517         Update from coreutils.
66518
66519         * lib/__fpending.h: Add copyright notice.
66520         * lib/fprintftime.h: Likewise.
66521         * lib/savedir.c: Use (C) in copyright notice.
66522         * lib/savedir.h: Likewise.
66523
66524         2006-08-15  Jim Meyering  <jim@meyering.net>
66525
66526         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66527         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66528         in support of the EXPECTED_ERRNO macro.
66529         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66530         definitions.  Instead, define the appropriate symbols and include
66531         "at-func.c".
66532         * lib/mkdirat.c (mkdirat): Likewise.
66533         * lib/fchmodat.c (fchmodat): Likewise.
66534         (ENOSYS): Remove definition.
66535         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66536         it.  Don't include "unistd--.h" -- it wasn't ever used.
66537
66538         2006-01-17  Jim Meyering  <jim@meyering.net>
66539
66540         Rewrite fts.c not to change the current working directory,
66541         by using openat, fstatat, fdopendir, etc..
66542
66543         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66544         (HAVE_OPENAT_SUPPORT): Define.
66545         [_LIBC] (fchdir): Don't undef or define; no longer used.
66546         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66547         Now, this `function' always succeeds, and consumes its file descriptor
66548         parameter -- so callers must not close such FDs.  Update callers.
66549         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66550         (diropen): Add parameter, SP.  Adjust all callers.
66551         Implement using diropen_fd, rather than open.
66552         (fts_open): Initialize new member, fts_cwd_fd.
66553         Remove fts_rft-setting code.
66554         (fts_close): Close fts_cwd_fd, if necessary.
66555         (__opendir2): Define in terms of opendir or opendirat,
66556         depending on whether the FST_NOCHDIR flag is set.
66557         (fts_build): Since fts_safe_changedir consumes its FD, and since
66558         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66559         and close the dup'd file descriptor upon failure.
66560         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66561         (fts_safe_changedir): Tweak semantics to reflect that this function
66562         now calls cwd_advance_fd and hence consumes its FD argument.
66563         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66564         [struct FTS] (fts_rft): Remove now-unused member.
66565         [struct FTS] (fts_cycle.state): Improve comment.
66566
66567         * lib/openat.c (openat_needs_fchdir): New function.
66568         * lib/openat.h (openat_needs_fchdir): Declare it.
66569
66570 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66573         Problem and fix reported by Pádraig Brady in
66574         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66575
66576 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66579
66580 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66581
66582         * lib/memcoll.c (memcoll): Optimize for the common case where the
66583         arguments are bytewise equal.
66584
66585 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66586
66587         * doc/regexprops-generic.texi: Add a copyright notice.
66588
66589 2006-08-15  Bruno Haible  <bruno@clisp.org>
66590
66591         * modules/tmpdir (License): Change to LGPL.
66592
66593 2006-08-15  Bruno Haible  <bruno@clisp.org>
66594
66595         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66596         module.
66597
66598 2006-08-14  Simon Josefsson  <jas@extundo.com>
66599
66600         * config/srclist.txt: Add gnupload.
66601
66602 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66603
66604         Change copyright notice from LGPL 2 to GPL 2, since that's the
66605         standard form used in the gnulib repository.
66606         * tests/test-lock.c: Likewise.
66607         * tests/test-stdint.c: Likewise.
66608         * tests/test-tls.c: Likewise.
66609
66610         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66611         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66612         Add copyright notice.
66613
66614         * check-module: Add copyright notice.  Output a copyright
66615         notice if "--version" is specified.
66616         * modules/COPYING: New file.
66617         * tests/test-getaddrinfo.c: Add copyright notice.
66618         * tests/test-verify.c: Likewise.
66619
66620 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66621
66622         Change copyright notice from LGPL 2 to GPL 2, since that's the
66623         standard form used in the gnulib repository.
66624         * lib/lock.c: LGPL -> GPL.
66625         * lib/lock.h: Likewise.
66626         * lib/strnlen1.c: Likewise.
66627         * lib/strnlen1.h: Likewise.
66628         * lib/tls.c: Likewise.
66629         * lib/tls.h: Likewise.
66630         * lib/tmpdir.c: Likewise.
66631
66632         * lib/TODO: Remove; this belongs only in coreutils.
66633
66634 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         Add copyright notices to long-enough files that lack them, since
66637         otherwise the files aren't clearly free.  Use the same notice that
66638         getdate.texi already uses.
66639         * doc/alloca-opt.texi: Add copyright notice.
66640         * doc/alloca.texi: Likewise.
66641         * doc/ctime.texi: Likewise.
66642         * doc/functions.texi: Likewise.
66643         * doc/gcd.texi: Likewise.
66644         * doc/gnulib-tool.texi: Likewise.
66645         * doc/inet_ntoa.texi: Likewise.
66646         * doc/visibility.texi: Likewise.
66647
66648         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66649         * doc/quote.texi: Add copyright notice.
66650
66651         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66652         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66653         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66654         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66655         is now obsolete, and give a pointer to the Sun list.
66656         Add copyright notice.
66657
66658 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * config/srclistvars.sh: Add copyright notice.
66661
66662 2006-08-14  Eric Blake  <ebb9@byu.net>
66663
66664         Import the following change from libc:
66665
66666         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66667
66668         Upstream bug 2997.
66669         * lib/misc/error.c: Add space between program name and message if file
66670         name is missing.
66671
66672 2006-08-12  Karl Berry  <karl@gnu.org>
66673
66674         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66675         remove, these originate in gnulib now.
66676
66677 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66678
66679         * doc/Makefile (standards.info standards.html standards.dvi):
66680         Also depend on make-stds.texi.
66681
66682 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66685         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66686
66687         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66688         in wchar_t.  Problem reported by Eric Blake.
66689
66690         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66691         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66692         Also, help the compiler to keep LEN in a register.
66693
66694 2006-08-11  Eric Blake  <ebb9@byu.net>
66695
66696         * users.txt: Sort.  Add tar.
66697
66698 2006-08-11  Bruno Haible  <bruno@clisp.org>
66699
66700         * users.txt: New file.
66701
66702 2006-08-11  Bruno Haible  <bruno@clisp.org>
66703
66704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66705         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66706
66707 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         * modules/snprintf (Depends-on): Remove minmax.
66710         (Maintainer): Add self and Bruno.
66711
66712 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66715         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66716         (EOVERFLOW): Define if the system does not.
66717         Do not include "minmax.h"; it wasn't used.
66718         (snprintf): Don't assume size_t promotes to an unsigned type.
66719         Fix bug when generated string was too long for the buffer: the
66720         buffer's contents are supposed to be the initial prefix of the
66721         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66722         exceeds INT_MAX; do the check ourselves.
66723
66724         Import the following changes from libc:
66725
66726         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66727
66728         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66729         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66730         set wc to the byte which couldn't be converted.
66731         (re_string_reconstruct): Don't clear valid_raw_len before calling
66732         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66733         tip_context using re_string_context_at.
66734
66735         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66736
66737         * lib/posix/regex.h: g++ still cannot handled [restrict].
66738
66739         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66740
66741         * lib/posix/regex.h: Remove special handling for VMS.
66742
66743 2006-08-10  Jim Meyering  <jim@meyering.net>
66744
66745         * modules/same-inode: New module.
66746         * modules/dev-ino: New module.
66747         * modules/cycle-check: Depend on these modules, rather than simply
66748         including their .h files.
66749         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66750         required via m4/cycle-check.m4.
66751         * modules/same: Depend on new same-inode module, rather than
66752         including same-inode.h.
66753         * modules/chdir-safer: New file.
66754
66755         * modules/chown (Depends-on): Add stat-macros.
66756
66757 2006-08-10  Jim Meyering  <jim@meyering.net>
66758
66759         * m4/cycle-check.m4: New file.
66760         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66761         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66762
66763 2006-08-10  Eric Blake  <ebb9@byu.net>
66764
66765         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66766         in from original proposal.
66767
66768 2006-08-10  Eric Blake  <ebb9@byu.net>
66769         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66770
66771         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66772         namespace.
66773
66774 2006-08-10  Bruno Haible  <bruno@clisp.org>
66775
66776         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66777         as well.
66778
66779 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         Sync from coreutils.
66782
66783         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66784
66785         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66786         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66787
66788 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66789
66790         * modules/restrict: Remove; no longer needed now that we assume
66791         Autoconf 2.59 or later.
66792         * MODULES.html.sh: Remove 'restrict'.
66793         * modules/argp (Depends-on): Remove 'restrict'.
66794         * modules/base64 (Depends-on): Likewise.
66795         * modules/gc (Depends-on): Likewise.
66796         * modules/getaddrinfo (Depends-on): Likewise.
66797         * modules/glob (Depends-on): Likewise.
66798         * modules/inet_ntop (Depends-on): Likewise.
66799         * modules/inet_pton (Depends-on): Likewise.
66800         * modules/memxor (Depends-on): Likewise.
66801         * modules/regex (Depends-on): Likewise.
66802         * modules/strtok_r (Depends-on): Likewise.
66803         * modules/time_r (Depends-on): Likewise.
66804
66805 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66808         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66809         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66810         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66811         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66812         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66813         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66814         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66815
66816         Merge from coreutils.
66817         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66818         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66819         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66820         * m4/time_r.m4 (gl_TIME_R): Likewise.
66821
66822 2006-08-09  Karl Berry  <karl@gnu.org>
66823
66824         * config/srclist.txt: no more gettext-tools, per Bruno.
66825
66826 2006-08-08  Eric Blake  <ebb9@byu.net>
66827
66828         * modules/verror: New module.
66829         * MODULES.html.sh: Document it.
66830
66831 2006-08-08  Eric Blake  <ebb9@byu.net>
66832
66833         * lib/verror.h, lib/verror.c: New files.
66834
66835 2006-08-08  Eric Blake  <ebb9@byu.net>
66836
66837         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66838         verror_at_line output complies with GNU Coding Standards even when
66839         file is NULL.
66840
66841 2006-08-07  Bruno Haible  <bruno@clisp.org>
66842
66843         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66844         versions of AIX.
66845         Reported by Ralf Wildenhues.
66846
66847 2006-08-07  Bruno Haible  <bruno@clisp.org>
66848
66849         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66850         in an AC_DEFUN. Needed so that the autoconf snippets can use
66851         AC_REQUIRE.
66852
66853 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66854
66855         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66856         Initialize pkgdata_DATA.
66857         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66858         overriding it.
66859
66860 2006-08-06  Eric Blake  <ebb9@byu.net>
66861
66862         * lib/error.h: Fold in some upstream changes from glibc.
66863         * lib/error.c: Likewise.
66864
66865 2006-08-04  Bruno Haible  <bruno@clisp.org>
66866
66867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66868         Make the mostlyclean-local rule depend on mostlyclean-generic.
66869         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66870
66871 2006-07-31  Bruno Haible  <bruno@clisp.org>
66872
66873         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66874         <stdlib.h>, <string.h>.
66875
66876 2006-07-30  Bruno Haible  <bruno@clisp.org>
66877
66878         * modules/readlink (License): Change to LGPL.
66879
66880 2006-07-30  Bruno Haible  <bruno@clisp.org>
66881
66882         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66883         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66884         set PKGDATADIR to point to it.
66885
66886 2006-07-30  Bruno Haible  <bruno@clisp.org>
66887
66888         * modules/csharpexec (configure.ac): Comment out macro invocation.
66889         * modules/javaexec (configure.ac): Likewise.
66890         * modules/javacomp-script (configure.ac): Likewise.
66891
66892         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66893
66894 2006-07-30  Bruno Haible  <bruno@clisp.org>
66895
66896         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66897         linked-list.
66898
66899 2006-07-30  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66902
66903 2006-07-30  Bruno Haible  <bruno@clisp.org>
66904
66905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66906         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66907         get removed.
66908
66909 2006-07-29  Bruno Haible  <bruno@clisp.org>
66910
66911         Make it possible for gnulib-tool to work with locally modified or
66912         augmented gnulib repositories.
66913         * gnulib-tool (func_usage): Document --local-dir option.
66914         (local_gnulib_dir): New variable.
66915         Handle --local-dir option.
66916         (func_lookup_file): New function.
66917         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66918         (func_get_description, func_get_filelist, func_get_description,
66919         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66920         func_get_automake_snippet, func_get_include_directive,
66921         func_get_license, func_get_maintainer): Use func_lookup_file.
66922         (func_import, func_create_testdir): Use func_lookup_file.
66923
66924 2006-07-29  Bruno Haible  <bruno@clisp.org>
66925
66926         * modules/setenv (Depends-on): Add unistd.
66927
66928 2006-07-29  Bruno Haible  <bruno@clisp.org>
66929
66930         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66931
66932 2006-07-29  Bruno Haible  <bruno@clisp.org>
66933
66934         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66935
66936 2006-07-29  Bruno Haible  <bruno@clisp.org>
66937
66938         * gnulib-tool (import, update): If there is no Makefile.am, look at
66939         aclocal.m4, instead of bailing out.
66940
66941 2006-07-29  Bruno Haible  <bruno@clisp.org>
66942
66943         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66944         Categorize the options by when they are useful.
66945
66946 2006-07-29  Bruno Haible  <bruno@clisp.org>
66947
66948         * gnulib-tool (func_usage): Document option --no-libtool.
66949         Handle option --no-libtool.
66950         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66951         for changed semantics of $libtool variable.
66952         (func_import): Likewise. If libtool is not used, show this through
66953         an option --no-libtool.
66954         (func_create_testdir): Update.
66955
66956 2006-07-29  Bruno Haible  <bruno@clisp.org>
66957
66958         * gnulib-tool (func_import): Extend error message about missing
66959         --doc-base.
66960
66961 2006-07-29  Bruno Haible  <bruno@clisp.org>
66962
66963         * gnulib-tool (func_import): Don't create the $docbase directory if
66964         there is no file to store there.
66965
66966 2006-07-29  Bruno Haible  <bruno@clisp.org>
66967
66968         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66969         relevant, look for configure.ac there, not in the current directory.
66970         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66971
66972 2006-07-29  Bruno Haible  <bruno@clisp.org>
66973
66974         * gnulib-tool (SORT): New variable.
66975         (func_usage): Undocument --assume-autoconf option.
66976         Remove --assume-autoconf option handling.
66977         (autoconf_minversion): Determine from the contents of configure.ac.
66978         (func_import): Remove autoconf_minversion handling.
66979         Suggested by Eric Blake.
66980
66981 2006-07-29  Bruno Haible  <bruno@clisp.org>
66982
66983         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66984
66985 2006-07-29  Bruno Haible  <bruno@clisp.org>
66986
66987         * config/srclist.txt (*setenv.[ch]): Remove rules.
66988
66989 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66990
66991         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66992
66993 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66994
66995         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66996         arpa/inet.h.
66997
66998 2006-07-28  Simon Josefsson  <jas@extundo.com>
66999
67000         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67001         * modules/inet_pton (Depends-on): Likewise.
67002
67003 2006-07-28  Simon Josefsson  <jas@extundo.com>
67004
67005         * m4/netinet_in_h.m4: New file.
67006
67007 2006-07-28  Simon Josefsson  <jas@extundo.com>
67008
67009         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67010         #include's.
67011
67012 2006-07-28  Simon Josefsson  <jas@extundo.com>
67013
67014         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67015         #include's.
67016
67017 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67018
67019         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67020         setgid on directories only if they set these bits.
67021         * lib/modechange.h: Remove obsolete comment about masks.
67022
67023 2006-07-28  Eric Blake  <ebb9@byu.net>
67024
67025         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67026         macro expansion.
67027
67028 2006-07-28  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67031
67032 2006-07-28  Bruno Haible  <bruno@clisp.org>
67033
67034         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67035
67036 2006-07-28  Bruno Haible  <bruno@clisp.org>
67037
67038         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67039         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67040         Define fallbacks.
67041         Avoids link error on FreeBSD 4.x.
67042         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67043
67044         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67045         encoding.
67046         * lib/mbswidth.c (iswcntrl): Likewise.
67047
67048 2006-07-27  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67051         test.
67052
67053 2006-07-27  Bruno Haible  <bruno@clisp.org>
67054
67055         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67056         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67057         defined.
67058
67059 2006-07-26  Eric Blake  <ebb9@byu.net>
67060
67061         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67062
67063 2006-07-26  Eric Blake  <ebb9@byu.net>
67064
67065         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67066         like mingw that lack mkstemp.
67067         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67068         avoid compilation warning on mingw.
67069
67070 2006-07-26  Bruno Haible  <bruno@clisp.org>
67071
67072         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67073         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67074         INT_FAST*_MIN, INTPTR_MIN.
67075
67076 2006-07-25  Bruno Haible  <bruno@clisp.org>
67077
67078         * modules/version-etc (Depends-on): Add stdarg.
67079
67080 2006-07-25  Bruno Haible  <bruno@clisp.org>
67081
67082         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67083         complex commands.
67084
67085 2006-07-25  Bruno Haible  <bruno@clisp.org>
67086
67087         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67088         defined in <stdarg.h> or config.h.
67089
67090 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67093         (gl_STDIO_SAFER): Remove.
67094
67095 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67096
67097         * MODULES.html.sh (File stream based Input/Output):
67098         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67099         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67100         * modules/fopen-safer, modules/tmpfile-safer: New files.
67101         * modules/stdio-safer: Remove.
67102
67103 2006-07-24  Bruno Haible  <bruno@clisp.org>
67104
67105         * modules/tmpdir: New file.
67106         * MODULES.html.sh (File system functions): Add it.
67107
67108 2006-07-24  Bruno Haible  <bruno@clisp.org>
67109
67110         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67111         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67112
67113 2006-07-24  Bruno Haible  <bruno@clisp.org>
67114
67115         * modules/clean-temp: New file.
67116
67117 2006-07-24  Bruno Haible  <bruno@clisp.org>
67118
67119         * m4/tmpdir.m4: New file, from GNU gettext.
67120
67121 2006-07-24  Bruno Haible  <bruno@clisp.org>
67122
67123         * lib/tmpdir.h: New file, from GNU gettext.
67124         * lib/tmpdir.c: New file, from GNU gettext.
67125
67126 2006-07-24  Bruno Haible  <bruno@clisp.org>
67127
67128         * lib/clean-temp.h: New file, from GNU gettext.
67129         * lib/clean-temp.c: New file, from GNU gettext.
67130
67131 2006-07-23  Eric Blake  <ebb9@byu.net>
67132
67133         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67134         (Depends-on): Add binary-io.
67135
67136 2006-07-23  Eric Blake  <ebb9@byu.net>
67137
67138         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67139
67140 2006-07-23  Eric Blake  <ebb9@byu.net>
67141
67142         * lib/tmpfile-safer.c: New file.
67143         * lib/stdio-safer.h (fopen_safer): Add prototype.
67144         * lib/stdio--.h (tmpfile): Make safer.
67145
67146 2006-07-23  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67149         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67150         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67151         gl_linked_remove_at): Use it.
67152
67153 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67154         and Simon Josefsson <jas@extundo.com>
67155
67156         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67157
67158         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67159
67160 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * modules/close-stream: New file.
67163         * modules/closeout (Description): Make it clear that it exits
67164         with a diagnostic on error.
67165         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67166         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67167
67168 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67169
67170         * m4/close-stream.m4: New file.
67171
67172 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67173
67174         * lib/close-stream.c, lib/close-stream.h: New files.
67175
67176 2006-07-22  Bruno Haible  <bruno@clisp.org>
67177
67178         Merge from GNU gettext 0.15.
67179
67180         2006-05-01  Bruno Haible  <bruno@clisp.org>
67181
67182                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67183
67184         2006-07-22  Bruno Haible  <bruno@clisp.org>
67185
67186                 * modules/javaversion: New file.
67187                 * MODULES.html.sh (Java): Add javaversion.
67188
67189         2006-03-12  Bruno Haible  <bruno@clisp.org>
67190
67191                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67192
67193         2005-12-04  Bruno Haible  <bruno@clisp.org>
67194
67195                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67196                 (untested).
67197
67198         2006-06-21  Bruno Haible  <bruno@clisp.org>
67199
67200                 Avoid warnings from recent versions of mcs.
67201                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67202                 -o, -L, -r any more. Use options documented since mcs-1.0
67203                 instead. Similarly for -g.
67204
67205         2005-12-04  Bruno Haible  <bruno@clisp.org>
67206
67207                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67208                 .resources, not .resource.
67209
67210         2005-07-09  Bruno Haible  <bruno@clisp.org>
67211
67212                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67213                 add a .dll suffix.
67214                 Reported by Mark Junker <mjscod@gmx.de>.
67215
67216         2006-07-22  Bruno Haible  <bruno@clisp.org>
67217
67218                 * modules/gettext: Upgrade to gettext-0.15.
67219                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67220                 m4/visibility.m4.
67221                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67222
67223 2006-07-22  Bruno Haible  <bruno@clisp.org>
67224
67225         Merge from GNU gettext 0.15.
67226
67227         2006-03-25  Bruno Haible  <bruno@clisp.org>
67228
67229                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67230
67231         2006-07-21  Bruno Haible  <bruno@clisp.org>
67232
67233                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67234                 "1.1".
67235
67236         2006-05-09  Bruno Haible  <bruno@clisp.org>
67237
67238                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67239                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67240                 for the conftestver execution.
67241
67242         2006-05-01  Bruno Haible  <bruno@clisp.org>
67243
67244                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67245                 optional target-version argument. Verify that the compiler
67246                 groks source of the specified source-version, or add -source
67247                 option as necessary. Verify that the compiler produces
67248                 bytecode in the specified target-version, or add -target and
67249                 -source options as necessary. Make the result of the test
67250                 available as variable CONF_JAVAC. Also log error output in
67251                 config.log.
67252
67253         2006-03-11  Bruno Haible  <bruno@clisp.org>
67254
67255                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67256
67257         2006-05-09  Bruno Haible  <bruno@clisp.org>
67258
67259                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67260                 CLASSPATH_SEPARATOR to a semicolon.
67261
67262         2006-03-12  Bruno Haible  <bruno@clisp.org>
67263
67264                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67265                 available as variable CONF_JAVA, for subsequent autoconf
67266                 tests. Also log error output in config.log.
67267
67268         2006-07-19  Bruno Haible  <bruno@clisp.org>
67269
67270                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67271                 that getline works on glibc2 systems. Needed to avoid trouble
67272                 in relocatable.c.
67273                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67274
67275         2005-12-04  Bruno Haible  <bruno@clisp.org>
67276
67277                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67278                 launcher (untested).
67279
67280         2005-12-04  Bruno Haible  <bruno@clisp.org>
67281
67282                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67283
67284         2006-07-22  Bruno Haible  <bruno@clisp.org>
67285
67286                 * gettext.m4: Update from GNU gettext-0.15.
67287                 * nls.m4: Likewise.
67288                 * po.m4: Likewise.
67289                 * inttypes-pri.m4: Likewise.
67290                 * inttypes-h.m4: Renamed from inttypes.m4.
67291                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67292
67293 2006-07-22  Bruno Haible  <bruno@clisp.org>
67294
67295         Merge from GNU gettext 0.15.
67296
67297         2005-07-05  Bruno Haible  <bruno@clisp.org>
67298
67299                 * printf-args.c (printf_fetchargs): Work around broken
67300                 definition of wint_t on mingw.
67301
67302         2005-02-12  Bruno Haible  <bruno@clisp.org>
67303
67304                 * xallocsa.h: Add extern "C" for C++.
67305
67306         2006-05-17  Bruno Haible  <bruno@clisp.org>
67307
67308                 Cygwin portability.
67309                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67310
67311         2006-04-30  Bruno Haible  <bruno@clisp.org>
67312
67313                 * progreloc.c: Include <mach-o/dyld.h> if available.
67314                 (find_executable): Use _NSGetExecutablePath when possible.
67315
67316         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67317
67318                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67319                 function.
67320
67321         2005-12-29  Bruno Haible  <bruno@clisp.org>
67322
67323                 * progreloc.c (set_program_name_and_installdir): Fix
67324                 compilation error.
67325
67326         2005-12-04  Bruno Haible  <bruno@clisp.org>
67327
67328                 Cygwin portability.
67329                 * progreloc.c: Include <windows.h> also on Cygwin.
67330                 (find_executable): Add support for Cygwin.
67331                 (set_program_name_and_installdir): Handle also platforms with
67332                 nonempty EXEEXT.
67333
67334         2006-07-11  Bruno Haible  <bruno@clisp.org>
67335
67336                 * javacomp.c: Fix a comment.
67337                 Reported by Jim Meyering.
67338
67339         2006-04-30  Bruno Haible  <bruno@clisp.org>
67340
67341                 * javacomp.h (compile_java_class): Add source_version,
67342                 target_version arguments.
67343                 * javacomp.c: Rewritten to choose only a compiler that
67344                 respects the specified source_version and target_version.
67345
67346         2006-06-27  Bruno Haible  <bruno@clisp.org>
67347
67348                 Assume correct S_ISDIR macro.
67349                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67350
67351         2006-07-22  Bruno Haible  <bruno@clisp.org>
67352
67353                 * javaversion.h: New file, from GNU gettext.
67354                 * javaversion.c: New file, from GNU gettext.
67355                 * javaversion.java: New file, from GNU gettext.
67356                 * javaversion.class: New file, from GNU gettext.
67357
67358         2006-05-17  Bruno Haible  <bruno@clisp.org>
67359
67360                 Cygwin portability.
67361                 * javaexec.c (execute_java_class): Test for jview program
67362                 also on Cygwin.
67363
67364         2006-04-09  Bruno Haible  <bruno@clisp.org>
67365
67366                 * fatal-signal.c: Don't include string.h.
67367                 (at_fatal_signal): Use a copying loop instead of memcpy.
67368
67369         2005-12-04  Bruno Haible  <bruno@clisp.org>
67370
67371                 * csharpexec.c: Add support for 'clix' launcher (untested).
67372                 (execute_csharp_using_sscli): New function.
67373                 (execute_csharp_program): Call it.
67374
67375         2006-06-21  Bruno Haible  <bruno@clisp.org>
67376
67377                 Avoid warnings from recent versions of mcs.
67378                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67379                 -o, -L, -r any more. Use options documented since mcs-1.0
67380                 instead. Similarly for -g.
67381
67382         2005-07-09  Bruno Haible  <bruno@clisp.org>
67383
67384                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67385                 add a .dll suffix.
67386                 Reported by Mark Junker <mjscod@gmx.de>.
67387
67388         2006-06-17  Bruno Haible  <bruno@clisp.org>
67389
67390                 * config.charset: Update for NetBSD 3.0.
67391
67392         2006-05-17  Bruno Haible  <bruno@clisp.org>
67393
67394                 Cygwin portability.
67395                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67396
67397         2006-05-16  Bruno Haible  <bruno@clisp.org>
67398
67399                 * localcharset.c [CYGWIN]: Include <windows.h>.
67400                 (get_charset_aliases): For Cygwin, return the same CPxxx
67401                 aliases list as under WIN32.
67402                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67403                 the environment variables. Fall back to GetACP().
67404
67405         2006-04-05  Bruno Haible  <bruno@clisp.org>
67406
67407                 * config.charset: Update Juan Manuel Guerrero's address.
67408
67409         2005-02-12  Bruno Haible  <bruno@clisp.org>
67410
67411                 * allocsa.h: Add extern "C" for C++.
67412
67413         2005-02-10  Bruno Haible  <bruno@clisp.org>
67414
67415                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67416                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67417
67418         2006-07-22  Bruno Haible  <bruno@clisp.org>
67419
67420                 * gettext.h: Update to GNU gettext-0.15.
67421
67422 2006-07-22  Bruno Haible  <bruno@clisp.org>
67423
67424         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67425         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67426         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67427
67428 2006-07-21  Eric Blake  <ebb9@byu.net>
67429
67430         * modules/stdlib-safer: New file.
67431         * MODULES.html.sh (File stream based Input/Output): Add
67432         stdlib-safer.
67433
67434 2006-07-21  Eric Blake  <ebb9@byu.net>
67435
67436         * lib/stdlib-safer.h: New file from coreutils, required by
67437         stdlib--.h.
67438
67439 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67440
67441         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67442
67443 2006-07-20  Bruno Haible  <bruno@clisp.org>
67444
67445         * gnulib-tool: Recognize new option --assume-autoconf.
67446         (autoconf_minversion): New variable.
67447         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67448
67449 2006-07-20  Bruno Haible  <bruno@clisp.org>
67450
67451         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67452
67453 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67454
67455         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67456         Reindent and repaginate.
67457
67458 2006-07-19  Derek Price  <derek@ximbiot.com>
67459
67460         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67461         Correct grammar.
67462
67463 2006-07-17  Bruno Haible  <bruno@clisp.org>
67464
67465         * modules/list: New file.
67466         * modules/array-list: New file.
67467         * modules/carray-list, modules/carray-list-tests: New files.
67468         * modules/linked-list, modules/linked-list-tests: New files.
67469         * modules/avltree-list, modules/avltree-list-tests: New files.
67470         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67471         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67472         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67473         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67474         * modules/oset: New file.
67475         * modules/array-oset: New file.
67476         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67477         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67478         * tests/test-carray_list.c: New file.
67479         * tests/test-linked_list.c: New file.
67480         * tests/test-avltree_list.c: New file.
67481         * tests/test-rbtree_list.c: New file.
67482         * tests/test-linkedhash_list.c: New file.
67483         * tests/test-avltreehash_list.c: New file.
67484         * tests/test-rbtreehash_list.c: New file.
67485         * tests/test-avltree_oset.c: New file.
67486         * tests/test-rbtree_oset.c: New file.
67487         * MODULES.html.sh (Container data structures): New section.
67488
67489 2006-07-17  Bruno Haible  <bruno@clisp.org>
67490
67491         * m4/gl_list.m4: New file.
67492
67493 2006-07-17  Bruno Haible  <bruno@clisp.org>
67494
67495         * lib/gl_list.h: New file.
67496         * lib/gl_list.c: New file.
67497         * lib/gl_array_list.h: New file.
67498         * lib/gl_array_list.c: New file.
67499         * lib/gl_carray_list.h: New file.
67500         * lib/gl_carray_list.c: New file.
67501         * lib/gl_linked_list.h: New file.
67502         * lib/gl_linked_list.c: New file.
67503         * lib/gl_anylinked_list1.h: New file.
67504         * lib/gl_anylinked_list2.h: New file.
67505         * lib/gl_avltree_list.h: New file.
67506         * lib/gl_avltree_list.c: New file.
67507         * lib/gl_anyavltree_list1.h: New file.
67508         * lib/gl_anyavltree_list2.h: New file.
67509         * lib/gl_rbtree_list.h: New file.
67510         * lib/gl_rbtree_list.c: New file.
67511         * lib/gl_anyrbtree_list1.h: New file.
67512         * lib/gl_anyrbtree_list2.h: New file.
67513         * lib/gl_anytree_list1.h: New file.
67514         * lib/gl_anytree_list2.h: New file.
67515         * lib/gl_linkedhash_list.h: New file.
67516         * lib/gl_linkedhash_list.c: New file.
67517         * lib/gl_anyhash_list1.h: New file.
67518         * lib/gl_anyhash_list2.h: New file.
67519         * lib/gl_avltreehash_list.h: New file.
67520         * lib/gl_avltreehash_list.c: New file.
67521         * lib/gl_rbtreehash_list.h: New file.
67522         * lib/gl_rbtreehash_list.c: New file.
67523         * lib/gl_anytreehash_list1.h: New file.
67524         * lib/gl_anytreehash_list2.h: New file.
67525
67526         * lib/gl_oset.h: New file.
67527         * lib/gl_oset.c: New file.
67528         * lib/gl_array_oset.h: New file.
67529         * lib/gl_array_oset.c: New file.
67530         * lib/gl_avltree_oset.h: New file.
67531         * lib/gl_avltree_oset.c: New file.
67532         * lib/gl_rbtree_oset.h: New file.
67533         * lib/gl_rbtree_oset.c: New file.
67534         * lib/gl_anytree_oset.h: New file.
67535
67536 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * m4/mkancesdirs.m4: New file.
67539         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67540         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67541         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67542         it.
67543
67544 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67547         * lib/mkancesdirs.h: New files.
67548         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67549         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67550         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67551         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67552         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67553         callers changed.  Revamp internals significantly, by not
67554         attempting to create directories that are temporarily more
67555         permissive than the final results.  Do not attempt to use
67556         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67557         This removes some race conditions, fixes some bugs, and simplifies
67558         things.  Use new dirchownmod function to do owner and mode changes.
67559         * lib/mkdir-p.h: Likewise.
67560         * lib/modechange.c (octal_to_mode): New function.
67561         (struct mode_change): New member mentioned.
67562         (make_node_op_equals): New arg mentioned.  All callers changed.
67563         (mode_compile): Keep track of which mode bits the user has explicitly
67564         mentioned.
67565         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67566         New arg PMODE_BITS, to keep track of which mode bits the user
67567         mentioned; it treats S_ISUID and S_ISGID speciall.
67568         All callers changed.
67569         * lib/modechange.h: Likewise.
67570
67571 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * MODULES.html.sh: Add mkancestors.
67574         * modules/mkancesdirs: New module.
67575         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67576         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67577         The chdir-safer and afs files are now orphans; I'll remove them
67578         unless someone speaks up.
67579         Add lib/dirchownmod.c, lib/dirchownmod.h.
67580         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67581         Add lchown, mkancesdirs.
67582         (Maintainer): Add self.
67583
67584 2006-07-15  Karl Berry  <karl@gnu.org>
67585
67586         * gnulib-tool: help message wording/arrangement.
67587
67588 2006-07-14  Simon Josefsson  <jas@extundo.com>
67589
67590         * doc/gnulib.texi (Libtool and Windows): New section.
67591
67592 2006-07-12  Simon Josefsson  <jas@extundo.com>
67593
67594         * modules/gendocs (License): Fix license, approved by Karl.
67595
67596 2006-07-12  Eric Blake  <ebb9@byu.net>
67597
67598         * MODULES.html.sh: Add gendocs.
67599
67600 2006-07-11  Eric Blake  <ebb9@byu.net>
67601
67602         * modules/fdl: New module, to install doc/fdl.texi.
67603         * MODULES.html.sh: Add new section for documentation modules.
67604         * gnulib-tool: Avoid space-tab.
67605         (--doc-base): New option, to manage files from doc.
67606
67607 2006-07-11  Eric Blake  <ebb9@byu.net>
67608
67609         * m4/absolute-header.m4: Fix comments to match recent change.
67610
67611 2006-07-11  Eric Blake  <ebb9@byu.net>
67612
67613         * gnulib-tool: List --doc-base before --tests-base.
67614
67615 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67616
67617         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67618
67619 2006-07-11  Bruno Haible  <bruno@clisp.org>
67620
67621         * README: Mention where to put documentation.
67622
67623 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67624
67625         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67626
67627 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67630         to stdint.m4.
67631
67632 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67635         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67636         "no/such/file/stdint.h" when there is no such file, so that
67637         the resulting C code can be parsed by dodgy compilers.
67638         Problems reported by Bob Proulx.
67639
67640 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67641
67642         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67643         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67644         macros into the GNU _D_EXACT_NAMLEN.
67645         * lib/savedir.c:  Likewise.
67646         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67647
67648 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67649         and Paul Eggert  <eggert@cs.ucla.edu>
67650
67651         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67652         * m4/savedir.m4:
67653         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67654         macros into the GNU _D_EXACT_NAMLEN.
67655
67656 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67657
67658         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67659         around the absolute name, to work around a problem with the HP-UX
67660         11.23 native C compiler, reported by Bob Proulx.
67661
67662 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67663
67664         * doc/maintain.texi, make-stds.texi: Sync from
67665         <http://savannah.gnu.org/projects/gnustandards>.
67666
67667 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67670
67671 2006-07-09  Jim Meyering  <jim@meyering.net>
67672
67673         * m4/glob.m4: Remove a doubled word in a comment.
67674
67675 2006-07-09  Jim Meyering  <jim@meyering.net>
67676
67677         * lib/argp-pv.c: Remove a doubled word in a comment.
67678         * lib/check-version.c (check_version): Likewise.
67679         * lib/javacomp.c (compile_java_class): Likewise.
67680
67681 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67684         for the benefit of people using Autoconf 2.60.  If you want to
67685         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67686         (or m4/onceonly.m4, if pre-2.57) manually.
67687
67688 2006-07-08  Jim Meyering  <jim@meyering.net>
67689
67690         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67691         comment.
67692         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67693         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67694         comment.
67695
67696 2006-07-08  Jim Meyering  <jim@meyering.net>
67697
67698         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67699
67700 2006-07-07  Simon Josefsson  <jas@extundo.com>
67701
67702         * tests/test-crc.c: Change expected crc value, the test vector
67703         were probably computed using the old broken crc.c?
67704
67705 2006-07-06  Simon Josefsson  <jas@extundo.com>
67706
67707         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67708         now the canonical place for the M4 file).
67709
67710         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67711         from the sys_socket dependency now.
67712
67713         * modules/inet_pton (Files): Ditto.
67714
67715         * modules/inet_ntop (Files): Ditto.
67716
67717 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67718
67719         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67720         not gl_PREREQ_GETUSERSHELL.
67721
67722 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67723
67724         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67725         with only one argument, for Autoconf 2.60.
67726         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67727         expand to nothing, so add a shell command to avoid syntax error.
67728         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67729
67730 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67731
67732         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67733
67734 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67735
67736         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67737         no longer needed.  Check for isblank decl.
67738         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67739         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67740         of existence.
67741
67742 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         * lib/getloadavg.c: Use __VMS, not VMS.
67745         * lib/getopt.c: Likewise.
67746         * lib/getpagesize.h: Likewise.
67747         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67748         and probably does not work.
67749
67750 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67751
67752         * lib/.cppi-disable: Add wcwidth.
67753         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67754         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67755         (ISGRAPH): Remove.  All uses changed to isgraph.
67756         (FOLD) [!defined _LIBC]: Remove special case.
67757         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67758         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67759         HAVE_ISBLANK.
67760         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67761         case.
67762
67763 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67764
67765         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67766         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67767         brackets.  Other minor changes to suppress some compiler
67768         warnings.
67769
67770 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67771         and Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67774         of invoking obsolescent AC_HEADER_DIRENT macro.
67775         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67776         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67777         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67779         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67780         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67781         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67782         * m4/readdir.m4: Remove; no longer needed.
67783
67784 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67785         and Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67788         Don't worry about this obsolete case any more.
67789         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67790         directories.
67791         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67792         worry about this obsolete case any more.
67793         * lib/fts.c: Likewise.
67794         * lib/getcwd.c: Likewise.
67795         * lib/glob.h: Likewise.
67796         * lib/savedir.c: Likewise.
67797
67798 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67799
67800         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67801         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67802         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67803         needed.
67804         All uses removed.
67805         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67806         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67807         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67808         needed.
67809         * m4/getdate.m4 (gl_GETDATE): Likewise.
67810         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67811         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67812         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67813         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67814         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67816         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67817         needed.
67818
67819 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67820
67821         * lib/memcasecmp.c: Include <limits.h>.
67822         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67823         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67824         Don't assume isdigit succeeds only on '0' through '9'.
67825
67826 2006-07-05  Eric Blake  <ebb9@byu.net>
67827
67828         * modules/getaddrinfo (Depends-on): Add snprintf.
67829
67830 2006-07-05  Eric Blake  <ebb9@byu.net>
67831
67832         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67833         to avoid 'header present but could not be compiled' on cygwin.
67834
67835 2006-07-05  Eric Blake  <ebb9@byu.net>
67836
67837         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67838         missing from netdb.h.
67839         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67840
67841 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67842
67843         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67844         no longer needed.
67845         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67846         * m4/getdate.m4 (gl_GETDATE): Likewise.
67847         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67848         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67849         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67850         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67851         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67852
67853 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67854
67855         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67856         All uses of is_space replaced by isspace.
67857         * lib/exit.h: Don't talk about STDC_HEADERS.
67858         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67859         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67860         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67861         replaced by isprint etc.
67862         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67863         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67864         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67865         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67866         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67867         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67868
67869 2006-07-05  Bruno Haible  <bruno@clisp.org>
67870
67871         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67872         the function exists, before testing against AIX.
67873         Reported by Martin Lambers <marlam@marlam.de>.
67874
67875 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67878         From Mark D. Baushke.
67879
67880 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67883         to the absolute name, not just one, to bypass Sun C 5.8's
67884         "warning: #include of /usr/include/... may be non-portable".
67885
67886 2006-07-04  Eric Blake  <ebb9@byu.net>
67887
67888         * modules/dirname-tests: New test module.
67889         * tests/test-dirname.c: New file, replacing dirname.c
67890         TEST_DIRNAME section that was recently deleted.
67891
67892 2006-07-04  Bruno Haible  <bruno@clisp.org>
67893
67894         Assume ANSI C header files and <ctype.h> functions.
67895         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67896         (mbsnwidth): Use isprint, iscntrl instead.
67897
67898 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         Merge from coreutils.
67901         * MODULES.html.sh: Add xstrtold.
67902         * modules/xstrtold: New file.
67903         * modules/cycle-check (Files): Add lib/same-inode.h.
67904         * modules/dirname (Files): Add m4/double-slash-root.m4.
67905         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67906         * modules/mkdir-p (Files): Add lib/same-inode.h.
67907         * modules/same (Files): Add lib/same-inode.h.
67908
67909 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67910
67911         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67912         This is to keep the terminology clean; POSIX talks about
67913         "absolute pathnames", not "full pathnames", but the GNU
67914         Coding Standards say to use "path" for something else;
67915         so use "absolute" to keep both sides happy.
67916         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67917         Set gl_absolute_header, not gl_full_header_path.
67918         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67919         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67920         All uses changed.
67921
67922         Merge from coreutils.
67923
67924         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67927         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67928         want to require the building of c-strtod.o.
67929         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67930         needs -lm directly.
67931         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67932
67933         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67934
67935         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67936         --as-needed option if available.  Problem reported by Albert Chin in
67937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67938         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67939         cc merely issues a bunch of annoying warnings for --as-needed
67940         (this problem was reported by Bob Proulx).  Also, try linking with
67941         -lm to detect a bug in binutils 2.16 (this problem was reported
67942         by Ralf Wildenhues).
67943
67944         2006-06-18  Jim Meyering  <jim@meyering.net>
67945
67946         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67947         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67948         macro.
67949         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67950         also check for glibc-2.4's abort-inducing bug.
67951
67952         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67953         Low-probability clean-up should be to use rmdir to get rid of
67954         the just-created directory, not unlink.
67955
67956         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67957         configure fail, and request a bug report to inform us about it.
67958         Add a comment that, barring reports to the contrary, in 2007 we'll
67959         assume ftruncate is universally available.
67960
67961         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67962
67963         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67964
67965         2006-03-12  Jim Meyering  <jim@meyering.net>
67966
67967         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67968         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67969         * m4/same.m4 (gl_SAME): Likewise.
67970         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67971
67972         2006-03-11  Eric Blake  <ebb9@byu.net>
67973
67974         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67975         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67976         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67977         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67978
67979 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67980
67981         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67982         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67983         reported by Mark D. Baushke, one in
67984         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67985
67986         Merge from coreutils.
67987
67988         * lib/.cppi-disable: Add stdint_.h.
67989         * lib/.cvsignore: Add stdint.h.
67990
67991         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67992
67993         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67994         both double and long double versions.
67995         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67996         * lib/xstrtold.c: New file.
67997         * lib/xstrtod.h (xstrtold): New decl.
67998
67999         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * lib/filemode.c (setst): Remove.
68002         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68003         (arguably) clearer, and the generated code is a bit smaller on my
68004         Debian GNU/Linux stable x86 host.
68005
68006         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68009         Assume that filemode.h includes sys/types.h and sys/stat.h.
68010         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68011         (ftypelet): Reorder to put common cases first, for efficiency.
68012         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68013         to do 'M'.
68014         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68015         of 10, for compatibility with FreeBSD.  All callers changed.
68016         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68017         types that can't be deduced solely from st_mode.  First arg is now a
68018         const pointer.
68019         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68020         (strmode): Renamed from mode_string.
68021         (filemodestring): New decl.
68022         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68023         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68024         needed.
68025         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68026
68027         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68030         fsusage.h now does that.  Include fsusage.h first, to test interface.
68031         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68032         at most one method (the old code could have generated decls that
68033         didn't conform to C89, not that this was ever exercised).
68034         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68035
68036         2006-03-19  Jim Meyering  <jim@meyering.net>
68037
68038         Work even in a chroot where d_ino values for entries in "/"
68039         don't match the stat.st_ino values for the same names.
68040         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68041         number, iterate through all entries again, using lstat instead.
68042         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68043         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68044
68045         * lib/getcwd.c (__getcwd): Clarify a comment.
68046         Use memcpy in place of a call to strcpy.
68047
68048         2006-03-12  Jim Meyering  <jim@meyering.net>
68049
68050         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68051         matches that of the current directory (which we're about to chdir ".."
68052         out of), then save the dev-ino of the parent, instead.
68053
68054         * lib/same-inode.h (SAME_INODE): New file/macro.
68055         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68056         Include "same-inode.h", instead.
68057         * lib/same.c: Likewise.
68058         * lib/cycle-check.h: Include "same-inode.h".
68059         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68060         * lib/cycle-check.c (SAME_INODE): Remove definition.
68061         * lib/root-dev-ino.h: Include "same-inode.h".
68062
68063         2006-03-11  Eric Blake  <ebb9@byu.net>
68064
68065         * lib/same.c (same_name): s/base_name/last_component/
68066         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68067         * lib/filenamecat.c (file_name_concat): Likewise.
68068
68069         2006-03-11  Eric Blake  <ebb9@byu.net>,
68070                     Paul Eggert  <eggert@cs.ucla.edu>
68071
68072         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68073         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68074         drive prefix.
68075         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68076         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68077         (last_component): New method.
68078         * lib/dirname.c (dir_len): Determine when drive letters need a
68079         subsequent slash.  Preserve // when it is special.
68080         (dir_name): Don't append dot when drive letter is absolute.
68081         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68082         * lib/basename.c (base_name): New semantics - malloc the result.
68083         Preserve // when it is special.  Preserve relative files that look
68084         like drive letters.
68085         (base_len): Preserve // when it is special.
68086         (last_component): New method, similar to old base_name semantics.
68087         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68088         base_name.  Strip redundant slashes from ///.
68089
68090 2006-07-03  Jim Meyering  <jim@meyering.net>
68091
68092         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68093         macro is used before the first cycle_check call.
68094
68095 2006-07-03  Eric Blake  <ebb9@byu.net>
68096
68097         * modules/dirname (Depends-on): Add xstrndup.
68098
68099 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68100
68101         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68102         test cases, so that config.log is a bit easier to follow.
68103
68104 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68107         both are 64 bits, since this seems to be the tradition, and this
68108         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68109         we ever run into a host that prefers long long to long in this
68110         case, we'll need another configure-time test.  Problem reported by
68111         Jim Meyering.
68112
68113 2006-07-02  Eric Blake  <ebb9@byu.net>
68114
68115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68116
68117 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         * modules/inttypes (Depends-on): No longer depends on stdint.
68120         * modules/stdint (Description): Say more about assumptions.
68121         Say that the fast types might differ.  Say macros are used.
68122         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68123         (Makefile.am): Revise list of substituted symbols to match
68124         new stdint.m4.
68125         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68126         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68127         * tests/test-stdint.c (verify_same_types)
68128         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68129         the code conforms to C99/C89.
68130         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68131         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68132
68133 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68136         but fix a bug, by requiring at least 64 bits.
68137         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68138         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68139         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68140         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68141
68142         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68143         changes.  Make 2.59 a prerequisite.  Check and substitute for
68144         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68145         inttypes.h.  Do not use special include files; just use the
68146         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68147         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68148         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68149         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68150         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68151         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68152         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68153         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68154         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68155         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68156         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68157         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68158         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68159         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68160         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68161         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68162         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68163         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68164         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68165         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68166         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68167         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68168         not check for things that C99 does not require, e.g., int8_t.  If
68169         a test isn't needed unless <stdint.h> isn't working, and is
68170         unlikely to be needed for any other reason, then don't do it
68171         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68172         size_t, since we assume C89 freestanding at least.  Do not check
68173         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68174         the right thing even if the types are not defined.  Instead use:
68175         (gl_STDINT_TYPE_PROPERTIES): New macro.
68176         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68177         testing whether <sys/types.h> clashes, as Autoconf does this for
68178         us now.  All uses removed.
68179         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68180         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68181         (gl_CHECK_TYPE_SAME):
68182         Remove; no longer needed.
68183         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68184         exists, since we'll return 0 anyway in that case.
68185         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68186
68187 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68188
68189         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68190         possible collision with system files.
68191         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68192         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68193         WCHAR_MIN and WCHAR_MAX in this case.
68194         (<stddef.h>): Do not include; no longer needed.
68195         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68196         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68197         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68198         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68199         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68200         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68201         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68202         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68203         !defined(__c99))]: Include in this case too, since it's harmless
68204         now.
68205         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68206         dangerous to do so.
68207         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68208         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68209         (_STDINT_MIN, _STDINT_MAX): New macros.
68210         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68211         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68212         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68213         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68214         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68215         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68216         macros, not typedefs; this simplifies things quite a bit.
68217         Use long int for all types narrower than int64_t.
68218         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68219         Define in terms of long long int or int64_t or long int,
68220         not int64_t or int32_t.  This saves some compile-time testing.
68221         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68222         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68223         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68224         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68225         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68226         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68227         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68228         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68229         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68230         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68231         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68232         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68233         undef any previous version and define our own version, for
68234         simplicity and consistency with the new macros for types.
68235         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68236         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68237         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68238         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68239         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68240         @WINT_T_SUFFIX@ to keep things simple here.
68241         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68242         Simplify by assuming typical 8/16/32/64 host, since we're
68243         already doing that elsewhere anyway.
68244         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68245         and assume long long int is 64 bits if available.  This
68246         speeds up 'configure'.
68247
68248 2006-07-01  Eric Blake  <ebb9@byu.net>
68249
68250         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68251         Reported by Andreas Buening.
68252
68253 2006-07-01  Eric Blake  <ebb9@byu.net>
68254
68255         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68256
68257 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68258
68259         * lib/getaddrinfo.c: fixed typo
68260
68261 2006-06-29  Jim Meyering  <jim@meyering.net>
68262
68263         * modules/strftime (Maintainer): Add my name, since with the
68264         FPRINTFTIME changes strftime.c has forked from glibc.
68265
68266 2006-06-29  Eric Blake  <ebb9@byu.net>
68267
68268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68269
68270 2006-06-29  Eric Blake  <ebb9@byu.net>
68271
68272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68273
68274 2006-06-29  Eric Blake  <ebb9@byu.net>
68275
68276         * lib/stat_.h: New file.
68277
68278 2006-06-29  Eric Blake  <ebb9@byu.net>
68279
68280         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68281         unused static function.
68282
68283 2006-06-29  Eric Blake  <ebb9@byu.net>
68284
68285         * doc/functions.texi (Function Portability): Document missing lstat
68286         on mingw.
68287
68288 2006-06-29  Eric Blake  <ebb9@byu.net>
68289
68290         * MODULES.html.sh: Add sys_stat.
68291         * modules/sys_stat: New module.
68292         * modules/mkstemp (Depends-on): Add sys_stat.
68293
68294 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68295
68296         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68297
68298 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68299
68300         * m4/c-bs-a.m4: Removed.
68301
68302 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68303
68304         * lib/strftime.c: Assume strftime() exists.
68305
68306 2006-06-29  Derek Price  <derek@ximbiot.com>
68307
68308         * modules/c-bs-a: Removed - \a is C89.
68309         * MODULES.html.sh: Remove c-bs-a.
68310
68311 2006-06-29  Bruno Haible  <bruno@clisp.org>
68312
68313         * modules/wcwidth (License): Change to LGPL.
68314
68315 2006-06-28  Simon Josefsson  <jas@extundo.com>
68316
68317         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68318         on _WIN32.
68319
68320         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68321         getnameinfo.
68322
68323 2006-06-28  Simon Josefsson  <jas@extundo.com>
68324
68325         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68326
68327 2006-06-28  Simon Josefsson  <jas@extundo.com>
68328
68329         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68330         functions there.  It will succeed on Windows XP, but on Windows
68331         2000 and (presumably) earlier, it will fail, and use the internal
68332         re-implementation.
68333         (use_win32_p): New function.
68334         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68335         Support AI_NUMERICSERV to disable getservbyname.
68336         (getnameinfo): New function, only supports
68337         NI_NUMERICHOST|NI_NUMERICSERV for now.
68338
68339         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68340         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68341         getnameinfo.
68342
68343 2006-06-28  Eric Blake  <ebb9@byu.net>
68344
68345         * modules/wcwidth: New file.
68346         * modules/mbchar (Depends-on): Add wcwidth.
68347         * modules/mbswidth (Depends-on): Add wcwidth.
68348         * MODULES.html.sh: Add wcwidth.
68349
68350 2006-06-28  Eric Blake  <ebb9@byu.net>
68351
68352         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68353         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68354
68355 2006-06-28  Eric Blake  <ebb9@byu.net>
68356
68357         * lib/xvasprintf.h: Fix comments.
68358
68359 2006-06-28  Eric Blake  <ebb9@byu.net>
68360
68361         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68362         * lib/mbswidth.c (wcwidth): Move from here...
68363         * lib/wcwidth.h: ...to this new file.
68364
68365 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68366
68367         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68368
68369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68370         it's obsolete.
68371         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68372
68373 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68374
68375         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68376         Autoconf 2.60 says this stuff was obsolete.
68377
68378 2006-06-28  Bruno Haible  <bruno@clisp.org>
68379
68380         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68381
68382 2006-06-28  Bruno Haible  <bruno@clisp.org>
68383
68384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68385         gt_TYPE_WCHAR_T.
68386
68387 2006-06-28  Bruno Haible  <bruno@clisp.org>
68388
68389         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68390         declaration for wcwidth.
68391         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68392
68393 2006-06-28  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68396         (mkdir): Define using _mkdir.
68397
68398 2006-06-28  Bruno Haible  <bruno@clisp.org>
68399
68400         * lib/getaddrinfo.h: Fix POSIX URL.
68401         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68402         _WIN32.
68403         (use_win32_p): Make static.
68404         (getaddrinfo): Reject service name if it is empty or does not consist
68405         solely of decimal digits, or if its value is > 65535.
68406         (getnameinfo): Remove useless casts.
68407
68408 2006-06-27  Simon Josefsson  <jas@extundo.com>
68409
68410         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68411         Eggert and Martin Lambers.
68412
68413 2006-06-27  Simon Josefsson  <jas@extundo.com>
68414
68415         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68416         Eggert and Martin Lambers.
68417
68418 2006-06-27  Bruno Haible  <bruno@clisp.org>
68419
68420         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68421         result to 0, not to empty.
68422         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68423
68424 2006-06-27  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68427
68428 2006-06-26  Simon Josefsson  <jas@extundo.com>
68429
68430         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68431         present.
68432
68433 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68434
68435         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68436         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68437         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68438
68439 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68440
68441         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68442
68443 2006-06-26  Bruno Haible  <bruno@clisp.org>
68444
68445         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68446
68447 2006-06-26  Bruno Haible  <bruno@clisp.org>
68448
68449         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68450
68451 2006-06-26  Bruno Haible  <bruno@clisp.org>
68452
68453         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68454         SGI C compiler in pre-C99 mode.
68455         Suggested by Mark D. Baushke and Larry Jones.
68456
68457 2006-06-26  Bruno Haible  <bruno@clisp.org>
68458
68459         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68460         WCHAR_MAX.
68461         Reported by Mark D. Baushke and Larry Jones.
68462
68463 2006-06-26  Bruno Haible  <bruno@clisp.org>
68464
68465         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68466         in pre-C99 mode.
68467         Suggested by Mark D. Baushke and Larry Jones.
68468
68469 2006-06-23  Simon Josefsson  <jas@extundo.com>
68470             Bruno Haible  <bruno@clisp.org>
68471
68472         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68473         Emit mostlyclean-local rule.
68474         (func_emit_tests_Makefile_am): Likewise.
68475         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68476
68477 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68478
68479         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68480
68481 2006-06-23  Bruno Haible  <bruno@clisp.org>
68482
68483         * tests/test-stdint.c: Update to match ISO C 99 Technical
68484         Corrigendum 1.
68485
68486 2006-06-23  Bruno Haible  <bruno@clisp.org>
68487
68488         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68489
68490 2006-06-23  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/stdint_.h: Treat IRIX like OpenBSD.
68493
68494 2006-06-23  Bruno Haible  <bruno@clisp.org>
68495
68496         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68497         ISO C 99 Technical Corrigendum 1.
68498
68499 2006-06-22  Simon Josefsson  <jas@extundo.com>
68500
68501         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68502         MinGW.
68503
68504 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68507         needed.  Some compiler complained about some of them.  Problem reported
68508         by Larry Jones in
68509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68510
68511 2006-06-21  Simon Josefsson  <jas@extundo.com>
68512
68513         * tests/test-getaddrinfo.c: New file.
68514
68515         * modules/getaddrinfo-tests: New file.
68516
68517         * MODULES.html.sh: Add inet_pton.
68518
68519         * modules/inet_pton: New file.
68520
68521 2006-06-21  Simon Josefsson  <jas@extundo.com>
68522
68523         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68524         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68525         of using the (limited) gnulib implementation on Windows XP.
68526
68527         * m4/inet_pton.m4: New file.
68528
68529 2006-06-21  Simon Josefsson  <jas@extundo.com>
68530
68531         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68532         variable.
68533
68534         * lib/socket_.h: Don't define WINVER.
68535
68536         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68537         slightly modified to work in gnulib.
68538
68539 2006-06-21  Simon Josefsson  <jas@extundo.com>
68540
68541         * doc/gnulib.texi (Windows sockets): Add.
68542
68543 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68544
68545         * lib/read-file.c (fread_file): Start with buffer allocation of
68546         0 bytes rather than 1 byte; this simplifies the code.
68547         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68548         code to free buffer and save/restore errno.
68549         (internal_read_file): Remove unused local.
68550
68551 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68554         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68555         Problem reported by Denis Excoffier in
68556         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68557
68558 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68559
68560         * modules/sys_socket, modules/socklen: Include sys/types since
68561         FreeBSD 4.x's sys/socket.h needs it.
68562
68563 2006-06-19  Simon Josefsson  <jas@extundo.com>
68564
68565         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68566
68567 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68568
68569         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68570
68571 2006-06-19  Bruno Haible  <bruno@clisp.org>
68572
68573         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68574         and FULL_PATH_INTTYPES_H in angle brackets.
68575         Reported by Mark D. Baushke <mdb@gnu.org>.
68576
68577 2006-06-17  Eric Blake  <ebb9@byu.net>
68578
68579         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68580         errno.
68581
68582 2006-06-17  Bruno Haible  <bruno@clisp.org>
68583
68584         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68585         <sys/inttypes.h>.
68586
68587 2006-06-17  Bruno Haible  <bruno@clisp.org>
68588
68589         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68590         whether errno is declared. Assume <errno.h> declares errno.
68591
68592 2006-06-17  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68595
68596 2006-06-17  Bruno Haible  <bruno@clisp.org>
68597
68598         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68599         problem on Solaris 2.5.1.
68600
68601 2006-06-16  Eric Blake  <ebb9@byu.net>
68602
68603         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68604         * lib/unicodeio.c [!defined errno]: Likewise.
68605         * lib/strtol.c [!defined errno]: Likewise.
68606         * lib/strtod.c [!defined errno]: Likewise.
68607
68608 2006-06-15  Eric Blake  <ebb9@byu.net>
68609
68610         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68611
68612 2006-06-15  Eric Blake  <ebb9@byu.net>
68613
68614         * config/srclist.txt (ssize_t.m4): Lose sync.
68615
68616 2006-06-15  Bruno Haible  <bruno@clisp.org>
68617
68618         * modules/stdint (Files): Include m4/full-header-path.m4,
68619         m4/size_max.m4, m4/wchar_t.m4.
68620         (Makefile.am): Many more substitutions.
68621         * modules/stdint-tests: New file.
68622         * tests/test-stdint.c: New file.
68623
68624 2006-06-15  Bruno Haible  <bruno@clisp.org>
68625
68626         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68627         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68628         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68629         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68630         gl_CHECK_TYPE_SAME): New macros.
68631
68632 2006-06-15  Bruno Haible  <bruno@clisp.org>
68633
68634         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68635
68636 2006-06-15  Bruno Haible  <bruno@clisp.org>
68637
68638         * lib/stdint_.h: Rewritten to be fully auto-configured.
68639         Fixes bug on HP-UX/IA64.
68640
68641 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * lib/getdate.y (__attribute__): Don't define if already defined.
68644         Problem reported by Larry Jones.
68645         * lib/utimens.c (__attribute__): Likewise.
68646
68647 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68650         reported by Andreas Schwab.
68651
68652 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68653             Bruno Haible  <bruno@clisp.org>
68654
68655         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68656         check for the declaration of strnlen and a run test that exposes the
68657         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68658         rpl_strndup.
68659
68660 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68661             Bruno Haible  <bruno@clisp.org>
68662
68663         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68664
68665 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68666
68667         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68668         compile test, for Tru64 4.0D.
68669
68670 2006-05-28  Karl Berry  <karl@gnu.org>
68671
68672         * config/srclist.txt (printf-args.c): lose sync.
68673
68674 2006-05-26  Martin Lambers  <marlam@marlam.de>
68675
68676         * lib/getpass.c: Updates the test for the native W32 API, and adds
68677         missing includes, thus fixing compilation warnings.
68678
68679 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68680
68681         * lib/exclude.c (exclude_fnmatch): New function.
68682         (excluded_file_name): Call exclude_fnmatch.
68683         * lib/exclude.h (excluded_file_name): New prototype
68684
68685 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * lib/tempname.c (small_open, large_open): New macros.
68688         (__open, __open64) [!_LIBC]: Remove.
68689         (__gen_tempname): Use small_open and large_open instead of __open
68690         and __open64.  This fixes a portability bug on HP-UX 11.11i
68691         reported by Simon Wing-Tang in
68692         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68693
68694 2006-05-24  Bruno Haible  <bruno@clisp.org>
68695
68696         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68697         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68698         Reported by Thorsten Maerz <torte@netztorte.de> via
68699         Aaron Stone <aaron@serendipity.cx>.
68700
68701 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68704         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68705         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68706         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68707         not really conditional on the cache.
68708         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68709
68710 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68713         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68714         (my_usleep): Don't mishandle maximum value.
68715
68716 2006-05-19  Jim Meyering  <jim@meyering.net>
68717
68718         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68719
68720 2006-05-17  Bruno Haible  <bruno@clisp.org>
68721
68722         Cygwin portability.
68723         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68724
68725 2006-05-17  Bruno Haible  <bruno@clisp.org>
68726
68727         * lib/stdint_.h: Fix recognition of Cygwin.
68728
68729 2006-05-15  Bruno Haible  <bruno@clisp.org>
68730
68731         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68732         on libtool patch by Ralf Wildenhues.
68733
68734 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68737         test for C99 conformance; (bool) 0.5 is an integer constant
68738         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68739         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68740
68741 2006-05-11  Simon Josefsson  <jas@extundo.com>
68742
68743         * m4/xvasprintf.m4: Fix obvious typo.
68744
68745 2006-05-11  Jim Meyering  <jim@meyering.net>
68746
68747         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68748         James Lemley.
68749
68750 2006-05-10  Simon Josefsson  <jas@extundo.com>
68751
68752         * lib/md4.c: Typo fix, update copyright years.
68753         (K1, K2): Don't use L because it turn computations into 64-bit on
68754         64-bit platforms.
68755
68756 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68757
68758         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68759         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68760         unwanted sign propagation, e.g., on hosts with 64-bit int.
68761         There still are some problems with reeelly weird theoretical hosts
68762         (e.g., 33-bit int) but it's not worth worrying about now.
68763         * lib/sha1.c (rol): Likewise.
68764         (K1, K2, K3, K4): Remove unnecessary L suffix.
68765
68766 2006-05-10  Bruno Haible  <bruno@clisp.org>
68767
68768         * lib/des.c: Cast to avoid warnings.
68769
68770 2006-05-09  Bruno Haible  <bruno@clisp.org>
68771
68772         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68773         (Depends-on): Depend also on xsize, stdarg.
68774         (configure.ac): Add gl_XVASPRINTF.
68775
68776 2006-05-09  Bruno Haible  <bruno@clisp.org>
68777
68778         * m4/xvasprintf.m4: New file.
68779
68780 2006-05-09  Bruno Haible  <bruno@clisp.org>
68781
68782         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68783         (EOVERFLOW): Define fallback value.
68784         (xstrcat): New function.
68785         (xvasprintf): Recognize the special case of a string concatenation.
68786
68787 2006-05-08  Eric Blake  <ebb9@byu.net>
68788
68789         * gnulib-tool (func_version): Base copyright year on CVS date.
68790         (func_emit_copyright_notice): New function.
68791         (func_emit_lib_Makefile_am): Use it.
68792         (func_emit_tests_Makefile_am): Likewise.
68793         (func_import): Likewise.
68794
68795 2006-05-08  Bruno Haible  <bruno@clisp.org>
68796
68797         * modules/stdarg: New file.
68798         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68799
68800 2006-05-08  Bruno Haible  <bruno@clisp.org>
68801
68802         * m4/stdarg.m4: New file, from GNU gettext.
68803
68804 2006-05-08  Bruno Haible  <bruno@clisp.org>
68805
68806         * config/srclist.txt (build-aux/config.rpath): different from latest
68807         release.
68808
68809 2006-05-08  Bruno Haible  <bruno@clisp.org>
68810
68811         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68812
68813 2006-05-05  Jim Meyering  <jim@meyering.net>
68814
68815         * m4/warning.m4: New file, derived from bison's file by the same name.
68816
68817 2006-05-03  Bruno Haible  <bruno@clisp.org>
68818
68819         * lib/stdint_.h: Shorter URL.
68820         * lib/inttypes.h: Likewise.
68821
68822 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68823
68824         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68825
68826 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * lib/verify.h: Document the internals better.  Most of this change
68829         was written by Bruno Haible.
68830
68831 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68832
68833         * doc/verify.texi: New file, partly based on a proposal by
68834         Bruno Haible.
68835
68836 2006-05-02  Bruno Haible  <bruno@clisp.org>
68837
68838         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68839         test from here...
68840         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68841
68842 2006-04-29  Bruno Haible  <bruno@clisp.org>
68843
68844         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68845         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68846
68847 2006-04-29  Bruno Haible  <bruno@clisp.org>
68848
68849         * gnulib-tool: Make --update option actually work.
68850
68851 2006-04-29  Bruno Haible  <bruno@clisp.org>
68852
68853         * doc/gcd.texi: New file.
68854         * doc/gnulib.texi: Include it.
68855
68856 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68857
68858         * lib/getdate.y (get_date): When adding relative date, start with the
68859         initial time, not with the result of the first mktime call.
68860
68861 2006-04-25  Bruno Haible  <bruno@clisp.org>
68862
68863         * gnulib-tool (func_import): Output the include directives in three
68864         blocks, sorted separately.
68865         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68866
68867 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68870         to define main with arguments, for C++.  Reported by Eric Blake.
68871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68872         Prefer 'int main ()' to 'int main (void)', for C++.
68873         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68875         for 'main', for C99 and C++.
68876
68877 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68880         Don't assume that exit status -1 is valid.
68881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68882         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68883         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68884         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68885         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68886         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68887         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68888         functions can be used without declaring them, or that you can
68889         exit with status -1.
68890         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68891
68892 2006-04-24  Karl Berry  <karl@gnu.org>
68893
68894         * config/srclist.txt (longdouble.m4): sync lost.
68895
68896 2006-04-24  Eric Blake  <ebb9@byu.net>
68897
68898         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68899
68900 2006-04-24  Bruno Haible  <bruno@clisp.org>
68901
68902         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68903         poll() implementation in AIX.
68904         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68905
68906 2006-04-24  Bruno Haible  <bruno@clisp.org>
68907
68908         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68909         assigned exactly once.
68910
68911 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68912             Bruno Haible  <bruno@clisp.org>
68913
68914         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68915         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68916         for AM_CPPFLAGS.
68917
68918 2006-04-23  Bruno Haible  <bruno@clisp.org>
68919
68920         * modules/copy-file: Depend on unistd.
68921         * modules/execute: Likewise.
68922         * modules/fatal-signal: Likewise.
68923         * modules/findprog: Likewise.
68924         * modules/mkdtemp : Likewise.
68925         * modules/pipe: Likewise.
68926         * modules/wait-process: Likewise.
68927
68928 2006-04-23  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68931         condition was already detected.
68932         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68933
68934 2006-04-23  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/copy-file.c: Include <unistd.h> unconditionally.
68937         * lib/execute.c: Likewise.
68938         * lib/fatal-signal.c: Likewise.
68939         * lib/findprog.c: Likewise.
68940         * lib/mkdtemp.c: Likewise.
68941         * lib/pipe.h: Likewise.
68942         * lib/pipe.c: Likewise.
68943         * lib/wait-process.h: Likewise.
68944
68945 2006-04-23  Bruno Haible  <bruno@clisp.org>
68946
68947         * gnulib-tool (func_usage): Fix --import description. Document
68948         --update.
68949         (func_import): Create temporary file in a temporary directory, if
68950         --dry-run is specified. Silence errors from 'grep' when there are no
68951         m4 files in $m4dir.
68952         (func_create_testdir): Silence errors from 'grep' when there are no
68953         m4 files in $m4dir.
68954         Reported by Karl Berry <karl@freefriends.org>.
68955
68956 2006-04-20  Bruno Haible  <bruno@clisp.org>
68957
68958         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68959         one argument, so that the code will be portable to Autoconf 2.60.
68960         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68961         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68962         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68963
68964 2006-04-19  Derek Price  <derek@ximbiot.com>
68965             Eric Blake  <ebb9@byu.net>
68966
68967         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68968         rather than "/full/path.h".  Update comment to match.  Shorten &
68969         generalize m4_translit call via AS_TR_CPP.
68970
68971 2006-04-19  Derek Price  <derek@ximbiot.com>
68972             Eric Blake  <ebb9@byu.net>
68973
68974         * lib/inttypes.h: Correct grammar in comment.
68975
68976 2006-04-18  Derek Price  <derek@ximbiot.com>
68977             Paul Eggert  <eggert@cs.ucla.edu>
68978
68979         * modules/inttypes: New file.
68980         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68981
68982 2006-04-18  Derek Price  <derek@ximbiot.com>
68983             Paul Eggert  <eggert@cs.ucla.edu>
68984
68985         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68986         New files.
68987
68988 2006-04-18  Derek Price  <derek@ximbiot.com>
68989             Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         * lib/inttypes.h: New file.
68992         * lib/strtoimax.c: Assume <inttypes.h>.
68993
68994 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68997         isn't mounted.  Problem reported by Kir Kolyshkin.
68998
68999 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69000
69001         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69002         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69003         Derek R. Price.
69004         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69005         implementation.
69006
69007 2006-04-12  Eric Blake  <ebb9@byu.net>
69008
69009         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69010         is now done automatically by the corresponding Autoconf macro.
69011
69012 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69013
69014         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69015         time_r.h.
69016
69017 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         Merge regex changes from libc, removing some of our
69020         POSIX-conformance changes that were rejected and redoing them in a
69021         less-intrusive way.
69022
69023         * lib/regcomp.c (re_compile_internal, init_dfa):
69024         Length arg is now size_t, not Idx.  All uses changed.
69025         (peek_token): Forward decl now says internal_function.
69026         (__re_error_msgid, __re_error_msgid_idx):
69027         Now static rather than extern with attribute_hidden.
69028         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69029         For some reason libc prefers K&R style defns for external functions.
69030         (regerror) [!defined _LIBC]: Likewise.
69031         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69032         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69033         (build_range_exp, build_collating_symbol):
69034         Use K&R-style defn.
69035         (re_compile_fastmap): Use '\0' to memset, not 0.
69036         (utf8_sb_map): Make the calculations more obvious.
69037         (init_dfa, parse_bracket_exp, build_charclass_op):
69038         Call calloc and cast result, as glibc does.
69039         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69040         (build_range_exp, build_collating_symbol):
69041         Now internal functions.
69042
69043         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69044
69045         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69046         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69047         Don't depend on VMS; depend on __VMS instead, for POSIX
69048         namespace cleanness.
69049         (regoff_t): Define to ssize_t, not long int.
69050
69051         Remove the REG_ macros named below.  Instead, make the old names
69052         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69053         __USE_GNU_REGEX.
69054         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69055         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69056         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69057         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69058         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69059         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69060         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69061         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69062         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69063         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69064         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69065         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69066         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69067         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69068         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69069         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69070         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69071         (REG_NREGS):
69072         Remove.  All uses replaced by the old RE_* names.
69073         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69074         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69075         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69076         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69077         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69078         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69079         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69080         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69081         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69082         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69083         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69084         Don't bother having these macros be independent of each others'
69085         values, since they no longer exist in the POSIX name space.
69086
69087         Rename the following member names back to their old names,
69088         unless !__USE_GNU_REGEX.  All uses changed back.
69089         (buffer): Renamed from re_buffer.
69090         (allocated): Renamed from re_allocated.
69091         (used): Renamed from re_used.
69092         (syntax): Renamed from re_syntax.
69093         (fastmap): Renamed from re_fastmap.
69094         (translate): Renamed from re_translate.
69095         (can_be_null): Renamed from re_can_be_null.
69096         (regs_allocated): Renamed from re_regs_allocated.
69097         (fastmap_accurate): Renamed from re_fastmap_accurate.
69098         (no_sub): Renamed from re_no_sub.
69099         (not_bol): Renamed from re_not_bol.
69100         (not_eol): Renamed from re_not_eol.
69101         (newline_anchor): Renamed from re_newline_anchor.
69102         (num_regs): Renamed from rm_num_regs.
69103         (start): Renamed from rm_start.
69104         (end): Renamed from rm_end.
69105
69106         (free_state): Move up a bit.
69107
69108         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69109         #define to be empty.
69110         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69111         when that is what is intended.
69112         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69113         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69114         (MAX): New macro.
69115         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69116         All uses changed back to re_malloc, etc.  It's now the caller's
69117         responsibility to check for overflow; all callers changed.
69118         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69119         (re_x2nrealloc): Remove.
69120         (free_state): Remove decl.
69121
69122         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69123         (re_set_registers, re_exec):
69124         Use K&R-style defn.
69125
69126         2006-01-31  Roland McGrath  <roland@redhat.com>
69127
69128         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69129         Reported by Mike Frysinger <vapier@gentoo.org>.
69130
69131         2006-01-15  Andreas Jaeger  <aj@suse.de>
69132
69133         [BZ #1950]
69134         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69135         build_wcs_upper_buffer change.
69136         (build_wcs_upper_buffer): Change return type.
69137
69138         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69139
69140         * lib/regex_internal.h: Include <stdint.h> if available.
69141
69142         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69143
69144         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69145
69146         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69147
69148         * lib/regcomp.c: Adjust for changed secondary hash function.
69149
69150         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69151
69152         * lib/regex.h: Pretty printing.
69153         Clean up namespace a bit.
69154
69155         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69156
69157         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69158         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69159
69160         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69161                     Ulrich Drepper  <drepper@redhat.com>
69162
69163         [BZ #1302]
69164         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69165         changed.
69166         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69167
69168         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69169
69170         [BZ #281]
69171         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69172         * lib/regcomp.c: Remove unnecessary uses of
69173         unsigned RE_TRANSLATE_TYPE.
69174         * lib/regex_internal.h: Likewise.
69175         * lib/regex_internal.c: Likewise.
69176         * lib/regexec.c: Likewise.
69177         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69178
69179         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69180
69181         * lib/regexec.c (find_recover_state): Remove unnecessary
69182         initialization.
69183         (transit_state_bkref): Make DFA a const pointer.
69184         (get_subexp): Likewise.
69185         (check_arrival): Likewise.
69186         (update_cur_sifted_state): Likewise.
69187         (re_search_internal): Likewise.
69188         (prune_impossible_nodes): Likewise.
69189         (acquire_init_state_context): Likewise.
69190         (proceed_next_node): Likewise.
69191         (set_regs): Likewise.
69192         (free_fail_stack_return): Likewise.
69193         (check_arrival_expand_ecl): Mark DFA parameter as const.
69194         (check_arrival_expand_ecl_sub): Likewise.
69195         (check_subexp_limits): Likewise.
69196         (sub_epsilon_src_nodes):  Likewise.
69197         (add_epsilon_src_nodes):  Likewise.
69198         (merge_state_array): Likewise.
69199         (update_regs): Likewise.
69200         (build_trtable): Likewise.
69201         (sift_states_backward): Mark MCTX parameter as const.
69202         (build_sifted_states): Likewise.
69203         (update_cur_sifted_state): Likewise.
69204         (sift_states_mkref): Likewise.
69205         (check_arrival_expand_ecl): Mark eclosure as const.
69206         (check_dst_limits_calc_pos_1): Likewise.
69207         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69208         pointer.
69209
69210         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69211
69212         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69213         (transit_state_sb): Likewise.
69214         (transit_state_mb): Likewise.
69215         (sift_states_iter_mb): Likewise.
69216         (check_arrival_add_next_nodes): Likewise.
69217         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69218         [_LIBC] (re_search_2_stub): Use mempcpy.
69219
69220         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69221         mbrtowc for very simple UTF-8 case.
69222
69223         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69224         a pointer-to-const.
69225         (re_acquire_state_context): Likewise.
69226         * lib/regex_internal.h: Adjust prototypes.
69227
69228         * lib/regex.c: Prevent using C++ compilers.
69229
69230         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69231         (re_acquire_state_context): Likewise.
69232
69233 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69234
69235         * modules/regex (Depends-on): Add ssize_t.
69236
69237 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69238
69239         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69240         translation table.
69241
69242 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69243
69244         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69245
69246 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69247             Bruno Haible  <bruno@clisp.org>
69248
69249         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69250         <sys/types.h> and <inttypes.h>.
69251
69252 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69253
69254         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69255         `__error_t_defined', so argp.h will not typedef the former.
69256
69257 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69258
69259         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69260         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69261         glibc names.  Even if glibc is changed to conform to POSIX, the
69262         traditional names will be available anyway, since regex depends on
69263         the extensions module.  Also, fix a longstanding typo in the
69264         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69265         reported by Emanuele Giaquinta.  Also, change sense of cached
69266         variable, so that the message makes sense.
69267
69268 2006-03-24  Simon Josefsson  <jas@extundo.com>
69269
69270         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69271         including some doc fixes.
69272         (base64_encode_alloc): Fix +1 bug on allocation failures.
69273
69274 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69275
69276         * lib/base64.c (base64_encode): Do not read past end of array with
69277         unsanitized input on systems with CHAR_BIT > 8.
69278
69279 2006-03-24  Eric Blake  <ebb9@byu.net>
69280
69281         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69282
69283 2006-03-22  Karl Berry  <karl@gnu.org>
69284
69285         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69286         * config/srclistvars.sh (COREUTILS): new var.
69287
69288 2006-03-17  Jim Meyering  <jim@meyering.net>
69289
69290         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69291         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69292
69293 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69296         no longer needs it.  Instead, check that regoff_t is as least
69297         as wide as ptrdiff_t.
69298
69299         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69300         so that our regex.h stays compatible with the installed regex.
69301         This is helpful for installers who configure --without-included-regex.
69302         Problem reported by Emanuele Giaquinta.
69303
69304 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69305
69306         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69307         Typedef to long int, not to off_, as POSIX will likely change
69308         in that direction.
69309
69310 2006-03-15  Eric Blake  <ebb9@byu.net>
69311
69312         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69313
69314 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69315
69316         * lib/argp-help.c (validate_uparams): Fix typo
69317         * lib/argp-parse.c (argp_default_options): Consistently begin help
69318         messages with a lowercase letter.
69319
69320 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69321
69322         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69323         overrun buffers and shouldn't be used (much as gets shouldn't be
69324         used).
69325         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69326
69327 2006-03-08  Simon Josefsson  <jas@extundo.com>
69328
69329         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69330         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69331
69332 2006-03-08  Simon Josefsson  <jas@extundo.com>
69333
69334         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69335         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69336
69337 2006-03-08  Simon Josefsson  <jas@extundo.com>
69338
69339         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69340         signal that configure disabled the device.
69341
69342 2006-03-08  Simon Josefsson  <jas@extundo.com>
69343
69344         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69345         languages.
69346
69347 2006-03-07  Simon Josefsson  <jas@extundo.com>
69348
69349         * modules/getopt (Depends-on): Add unistd.
69350
69351         * modules/unistd: New file.
69352
69353 2006-03-07  Simon Josefsson  <jas@extundo.com>
69354
69355         * modules/gc-random: New file.
69356
69357 2006-03-07  Simon Josefsson  <jas@extundo.com>
69358
69359         * m4/unistd_h.m4: New file.
69360
69361 2006-03-07  Simon Josefsson  <jas@extundo.com>
69362
69363         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69364         test to be side-effect free by storing the result in the cache
69365         variable gl_cv_lib_readline, and moving the assignment of
69366         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69367         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69368
69369 2006-03-07  Simon Josefsson  <jas@extundo.com>
69370
69371         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69372         error on missing devices (the functions will return an error).
69373
69374         * m4/gc.m4: Move random stuff to gc-random.m4
69375
69376 2006-03-07  Simon Josefsson  <jas@extundo.com>
69377
69378         * lib/unistd_.h: New file.
69379
69380 2006-03-07  Simon Josefsson  <jas@extundo.com>
69381
69382         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69383
69384 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69385
69386         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69387         Problem reported by Juan Manuel Guerrero.
69388
69389 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69390
69391         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69392         the unistd module.
69393         * lib/getlogin_r.c: Likewise.
69394         * lib/getlogin_r.h: Likewise.
69395         * lib/glob.c: Likewise.
69396         * lib/pagealign_alloc.c: Likewise.
69397         * lib/unistd_.h: Remove; no longer needed.
69398
69399 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69400
69401         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69402         Add unistd.
69403         * modules/c-stack (Depends-on): Add unistd.
69404         * modules/getlogin_r: Likewise.
69405         * modules/glob: Likewise.
69406         * modules/pagealign_alloc: Likewise.
69407         * modules/unistd (Files): Remove lib/unistd_.h.
69408         (EXTRA_DIST): Remove.
69409         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69410         need unistd_.h.
69411         (MOSTLYCLEANFILES): Remove unistd.h-t.
69412
69413 2006-03-03  Simon Josefsson  <jas@extundo.com>
69414
69415         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69416
69417 2006-03-03  Simon Josefsson  <jas@extundo.com>
69418
69419         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69420         libidn and bison.
69421
69422 2006-03-03  Simon Josefsson  <jas@extundo.com>
69423
69424         * build-aux/maint.mk: Add indent target.
69425
69426 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69427
69428         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69429         our replacement poll.h in any case, to avoid a differing
69430         declaration from a system header.  Seen on AIX.
69431
69432 2006-03-01  Simon Josefsson  <jas@extundo.com>
69433
69434         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69435         <kasal@ucw.cz>.
69436
69437 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69438
69439         * modules/gettime (Depends-on): Add extensions module.
69440         * modules/nanosleep (Depends-on): Likewise.
69441         * modules/settime (Depends-on): Likewise.
69442
69443 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69444
69445         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69446         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69447         pedantically.
69448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69449         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69450
69451         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69452         not "==".  Reported by Ralf Wildenhues.
69453
69454 2006-03-01  Karl Berry  <karl@gnu.org>
69455
69456         * doc/Copyright/request-*: new files, synced from gnuorg.
69457
69458 2006-03-01  Karl Berry  <karl@gnu.org>
69459
69460         * config/srclist.txt (Copyright/*): new entries.
69461
69462 2006-02-28  Simon Josefsson  <jas@extundo.com>
69463
69464         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69465
69466 2006-02-27  Simon Josefsson  <jas@extundo.com>
69467
69468         * lib/base64.h: Indent #define's.  From Jim Meyering
69469         <jim@meyering.net>.
69470
69471 2006-02-27  Jim Meyering  <jim@meyering.net>
69472
69473         Revert the change of 2006-02-24, so these files can continue
69474         to be sync'd from gettext.
69475         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69476         of `config.h'.
69477
69478 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * modules/intprops: New file.
69481         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69482         Add intprops.
69483         * modules/getloadavg (Files): Remove lib/intprops.h.
69484         (Depends-on): Add intprops.
69485         * modules/human: Likewise.
69486         * modules/inttostr: Likewise.
69487         * modules/openat: Likewise.
69488         * modules/sig2str: Likewise.
69489         * modules/userspec: Likewise.
69490         * modules/utimecmp: Likewise.
69491         * modules/xnanosleep: Likewise.
69492         * modules/xstrtol: Likewise.
69493
69494 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69495
69496         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69497         * modules/lock-tests (TESTS): Use $(EXEEXT).
69498         * modules/tls-tests: Likewise.
69499         * modules/argp-tests: Likewise.
69500         (check_PROGRAMS): New var, replacing...
69501         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69502
69503 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69504
69505         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69506         `config.h'.
69507
69508 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69511
69512 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69513
69514         Sync from coreutils.
69515         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69516         gl_CHDIR_SAFER.
69517
69518 2006-02-22  Jim Meyering  <jim@meyering.net>
69519
69520         Sync from coreutils.
69521         * m4/chdir-safer.m4: New file.
69522
69523 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69524
69525         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69526         AT_FDCWD exceeds INT_MAX.
69527         * lib/openat.h (AT_FDCWD): Likewise.
69528
69529 2006-02-17  Eric Blake  <address@hidden>
69530
69531         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69532
69533 2006-02-16  Simon Josefsson  <jas@extundo.com>
69534
69535         * modules/getaddrinfo (Depends-on): Add sys_socket.
69536
69537 2006-02-15  Simon Josefsson  <jas@extundo.com>
69538
69539         * build-aux/maint.mk: Add dsyntax-check rule.
69540
69541 2006-02-15  Eric Blake  <ebb9@byu.net>
69542
69543         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69544         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69545         'present but cannot compile' warnings on cygwin.
69546         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69547         use ws2tcpip.h if sys/socket.h works.
69548         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69549         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69550
69551 2006-02-14  Simon Josefsson  <jas@extundo.com>
69552
69553         * modules/maintainer-makefile (Files): Rename.
69554
69555         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69556         and (the local) Makefile.cfg to maint-cfg.mk.
69557
69558         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69559         to the latter.
69560
69561         * modules/maintainer-makefile: New module.
69562
69563         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69564         severaly stripped to make it possible to build it up from scratch
69565         with reliable tests.
69566
69567         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69568         fixes to permit overriding the default actions when configure and
69569         makefile are not available.
69570
69571 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69572
69573         Sync from coreutils.
69574         * modules/lstat (Depends-on): Don't depend on xalloc.
69575         (License): Change from GPL to LGPL, since this is now simply a
69576         replacement for a libc function.
69577
69578 2006-02-14  Jim Meyering  <jim@meyering.net>
69579
69580         Sync from coreutils.
69581
69582         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69583         failure on deficient systems, and simplify gnulib lgpl dependencies.
69584         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69585         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69586
69587         * lib/xalloc-die.c: Remove unused definition of N_.
69588
69589 2006-02-14  Jim Meyering  <jim@meyering.net>
69590
69591         Sync from coreutils.
69592         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69593         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69594         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69595         double-quote uses of that variable, to accommodate the rare case in
69596         which getmntent is available in none of the libraries checked.  This
69597         happens at least on FreeBSD 5.0.
69598
69599 2006-02-13  Simon Josefsson  <jas@extundo.com>
69600
69601         * gnulib-tool (Usage): Fix --import, from
69602         karl@freefriends.org (Karl Berry).
69603
69604 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69605
69606         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69607
69608 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69609
69610         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69611         "autoupdate" on 2005-12-12.
69612
69613 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69614
69615         * modules/closeout (Depends-on): Remove atexit.
69616
69617 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69618
69619         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69620         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69621
69622 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69625         __EXTENSIONS__ if this causes compilation to fail.  Problem
69626         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69627         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69628
69629 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69632         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69633         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69634         All uses changed.
69635
69636 2006-01-26  Simon Josefsson  <jas@extundo.com>
69637
69638         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69639         prototype is visible on mingw32.
69640
69641         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69642         for mingw32.
69643
69644         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69645         mingw32).
69646
69647 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69648
69649         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69650         attempt to open for write; this always fails, at least on POSIX
69651         hosts.  This reinstates the 2006-01-09 change, which was
69652         inadvertently removed.
69653
69654 2006-01-26  Bruno Haible  <bruno@clisp.org>
69655
69656         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69657         Reported by Paul Eggert.
69658
69659 2006-01-26  Bruno Haible  <bruno@clisp.org>
69660             Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * lib/stdbool_.h (_Bool)
69663         [(! (defined __cplusplus || defined __BEOS__)
69664           && !defined __GNUC__
69665           && !(defined __HP_cc || defined __xlc__
69666                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69667                || defined __sgi))]:
69668         #define to signed char in these cases too; this simplifies
69669         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69670         etc., separately) and makes it more conservative.
69671
69672 2006-01-25  Simon Josefsson  <jas@extundo.com>
69673
69674         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69675         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69676         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69677
69678 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69679
69680         * lib/argp-namefrob.h: Bugfix. Remove stray #
69681
69682 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69683
69684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69685         so that we test the test.
69686         Check for yet another HP-UX cc bug involving *bool |= bool.
69687
69688 2006-01-25  Karl Berry  <karl@gnu.org>
69689
69690         * config/srclist.txt (vasnprintf.c): sync lost.
69691
69692 2006-01-25  Jim Meyering  <jim@meyering.net>
69693
69694         Sync from the stable (b5) branch of coreutils:
69695
69696         * lib/fts.c (fts_children): Don't let close() clobber errno from
69697         failed fchdir().
69698
69699         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69700         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69701         a dangling symlink.  That can also happen at least for ELOOP.
69702         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69703         FYI, this bug predates the inclusion of fts.c in coreutils.
69704
69705         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69706         in their own block, so pre-c99 compilers don't object.
69707
69708         Avoid the double-free (first in fts_read, second in fts_close) that
69709         would occur when an `active' directory is made inaccessible (e.g.,
69710         via chmod a-x) during a traversal.
69711         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69712         before returning.  Reproduce this failure by
69713         mkdir -p a/b; cd a; chmod a-x . b
69714         Reported by Stavros Passas.
69715
69716 2006-01-25  Jim Meyering  <jim@meyering.net>
69717
69718         * lib/fileblocks.c: Remove more useless parentheses.
69719         * lib/readutmp.h: Likewise.
69720
69721 2006-01-25  Bruno Haible  <bruno@clisp.org>
69722
69723         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69724         warnings.
69725         Reported by Paul Eggert.
69726
69727 2006-01-25  Bruno Haible  <bruno@clisp.org>
69728
69729         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69730         rid of a trap command. For Solaris sh.
69731         Reported by Mark D. Baushke <mdb@gnu.org>.
69732
69733 2006-01-24  Simon Josefsson  <jas@extundo.com>
69734
69735         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69736         Bruno.
69737
69738 2006-01-24  Karl Berry  <karl@gnu.org>
69739
69740         * config/srclist.txt (argp-namefrob.h): sync lost.
69741
69742 2006-01-24  Jim Meyering  <jim@meyering.net>
69743
69744         * modules/openat (Files): Add lib/intprops.h.
69745         From Mark D. Baushke.
69746
69747 2006-01-24  Jim Meyering  <jim@meyering.net>
69748
69749         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69750         Reported by Mark D. Baushke.
69751
69752 2006-01-24  Jim Meyering  <jim@meyering.net>
69753
69754         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69755
69756 2006-01-24  Bruno Haible  <bruno@clisp.org>
69757
69758         * modules/strnlen (Maintainer): Change from glibc to all.
69759
69760 2006-01-24  Bruno Haible  <bruno@clisp.org>
69761
69762         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69763         Patch by Paul Eggert.
69764
69765 2006-01-24  Bruno Haible  <bruno@clisp.org>
69766
69767         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69768         already has it.
69769         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69770         2005-11-26.
69771
69772         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69773         'signed char' to avoid problems with the built-in _Bool type.
69774         Reported by Paul Eggert on 2005-11-26.
69775
69776 2006-01-24  Bruno Haible  <bruno@clisp.org>
69777
69778         * gnulib-tool (func_import): Avoid constructing complicated sed
69779         expressions inside backquote.
69780         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69781
69782 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69783
69784         These changes imported from libc.
69785         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69786         test and two separate function calls.
69787         * lib/strndup.c (__strndup): Add libc_hidden_def.
69788
69789 2006-01-23  Simon Josefsson  <jas@extundo.com>
69790
69791         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69792         Remove the test_*_SOURCES variable: automake infers it by default.
69793         * modules/tls-tests: Likewise.
69794
69795 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         Work around porting bugs reported by Dieter in
69798         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69799         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69800         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69801         Include "getopt.h" first, to check interface.
69802         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69803         !HAVE_DECL_GETENV.
69804         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69805         (__strndup): Revert to K&R-style function dfns, the glibc style.
69806         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69807         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69808         Include strnlen.h first, to get prototype properly.
69809         (strnlen): Renamed from __strnlen.
69810         Remove weak alias.
69811
69812 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69815
69816 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         * config/srclist.txt: Adjust to reflect glibc reorganization.
69819         This affects only comments.
69820
69821 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69822
69823          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69824          Reported by Bruce Korb <bkorb@gnu.org>.
69825
69826 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69829         to pacify gcc -Wswitch-default.
69830
69831 2006-01-22  Bruno Haible  <bruno@clisp.org>
69832
69833         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69834         temporary buffer for sprintf, take into account the precision also
69835         for 'd', 'i', 'u', 'o', 'x', 'X'.
69836
69837 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69838
69839         * modules/argp-tests: New module
69840         * tests/test-argp.c: New file
69841         * tests/test-argp-2.sh: New file
69842
69843 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69844
69845         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69846         (__argp_base_name): Removed
69847         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69848         typo.
69849         (__argp_base_name): Provide macro definition or extern declaration
69850         depending on the configuration
69851
69852 2006-01-20  Simon Josefsson  <jas@extundo.com>
69853
69854         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69855
69856 2006-01-20  Simon Josefsson  <jas@extundo.com>
69857
69858         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69859
69860 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69863         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69864         Suggested by Bruno Haible.
69865
69866 2006-01-20  Karl Berry  <karl@gnu.org>
69867
69868         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69869         until changes propagate, I guess.
69870
69871 2006-01-19  Simon Josefsson  <jas@extundo.com>
69872
69873         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69874
69875 2006-01-19  Simon Josefsson  <jas@extundo.com>
69876
69877         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69878
69879 2006-01-19  Simon Josefsson  <jas@extundo.com>
69880
69881         * gnulib-tool: Set check_PROGRAMS.
69882
69883         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69884         modules/des-tests, modules/gc-arcfour-tests,
69885         modules/gc-arctwo-tests, modules/gc-des-tests,
69886         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69887         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69888         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69889         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69890         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69891         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69892         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69893         test_*_SOURCES.
69894
69895 2006-01-18  Simon Josefsson  <jas@extundo.com>
69896
69897         * modules/socklen (Depends-on): Depend on sys_socket.
69898
69899 2006-01-18  Simon Josefsson  <jas@extundo.com>
69900
69901         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69902         modules/des-tests, modules/gc-arcfour-tests,
69903         modules/gc-arctwo-tests, modules/gc-des-tests,
69904         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69905         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69906         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69907         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69908         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69909         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69910         $(EXEEXT) to automake TESTS variable, for mingw32.
69911
69912 2006-01-17  Simon Josefsson  <jas@extundo.com>
69913
69914         * modules/socklen (Include): Need sys/socket.h.
69915
69916 2006-01-17  Bruno Haible  <bruno@clisp.org>
69917
69918         * modules/ssize_t (Include): Add <sys/types.h>.
69919
69920 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69921
69922         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69923         it's not portable and it doesn't work with cross-compiles.
69924         Problem reported by Bruno Haible.  Fix missing-$ typo in
69925         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69926         -zignore from being used with Sun's C compiler.
69927
69928 2006-01-12  Simon Josefsson  <jas@extundo.com>
69929
69930         * lib/base64.c: Fix warning, reported by Bruno Haible
69931         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69932
69933 2006-01-12  Bruno Haible  <bruno@clisp.org>
69934
69935         * modules/ldd: New file.
69936         * build-aux/ldd.sh.in: New file.
69937         * MODULES.html.sh (Support for building libraries and executables): Add
69938         ldd.
69939
69940 2006-01-12  Bruno Haible  <bruno@clisp.org>
69941
69942         * m4/ldd.m4: New file.
69943
69944 2006-01-12  Bruno Haible  <bruno@clisp.org>
69945
69946         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69947         endless loop while replacing $auxdir with build-aux.
69948
69949 2006-01-11  Simon Josefsson  <jas@extundo.com>
69950
69951         * lib/stdint_.h (SIZE_MAX): Add missing (.
69952
69953 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69954
69955         Sync from coreutils.
69956         * lib/md5.c: Fix commentary typos.
69957         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69958         * lib/md5.h (__attribute__): Remove; unused.
69959         * lib/sha1.c: Fix commentary to match md5 better.
69960         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69961         so that we don't need to worry about alignment.  All uses changed.
69962         This merges the 2005-10-28 md5 change into sha1.
69963
69964 2006-01-11  Jim Meyering  <jim@meyering.net>
69965
69966         Sync from coreutils.
69967         * lib/md5.c (OP): Fix spacing.
69968
69969 2006-01-11  Bruno Haible  <bruno@clisp.org>
69970
69971         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69972         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69973         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69974
69975 2006-01-11  Bruno Haible  <bruno@clisp.org>
69976
69977         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69978         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69979         the "early" section as well.
69980
69981 2006-01-11  Bruno Haible  <bruno@clisp.org>
69982
69983         Avoid "ar: no archive members specified" error on MacOS X.
69984         * gnulib-tool (func_modules_add_dummy): New function.
69985         (func_import, func_create_testdir): Invoke it.
69986
69987 2006-01-11  Bruno Haible  <bruno@clisp.org>
69988
69989         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69990         with $auxdir in AC_CONFIG_FILES statements.
69991
69992 2006-01-11  Bruno Haible  <bruno@clisp.org>
69993
69994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69995         Initialize also noinst_HEADERS to empty.
69996
69997 2006-01-11  Bruno Haible  <bruno@clisp.org>
69998
69999         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70000         variables.
70001         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70002         autoreconf.
70003
70004 2006-01-11  Bruno Haible  <bruno@clisp.org>
70005
70006         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70007         overridable by the user.
70008         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70009
70010 2006-01-10  Simon Josefsson  <jas@extundo.com>
70011
70012         * modules/sys_socket: New file.
70013
70014 2006-01-10  Simon Josefsson  <jas@extundo.com>
70015
70016         * m4/sys_socket_h.m4: New file.
70017
70018 2006-01-10  Simon Josefsson  <jas@extundo.com>
70019
70020         * lib/socket_.h: New file.
70021
70022 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70023
70024         * modules/readutmp (Maintainer): Add myself.
70025
70026 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70029         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70030         People who are still concerned with buggy memcmp implementations
70031         can invoke gl_FUNC_MEMCMP themselves.
70032
70033 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70034
70035         * lib/regex_internal.h (BITSET_WORD_BITS):
70036         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70037         preprocessor mishandles large unsigned values as if they were signed.
70038         Problem reported by Claudio Fontana in
70039         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70040
70041 2006-01-10  Jim Meyering  <jim@meyering.net>
70042
70043         Avoid the double-free (first in fts_read, second in fts_close) that
70044         would occur when an `active' directory is made inaccessible (e.g.,
70045         via chmod a-x) during a traversal.
70046         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70047         before returning.  Reproduce this failure by
70048         mkdir -p a/b; cd a; chmod a-x . b
70049         Reported by Stavros Passas.
70050
70051         Sync from coreutils.
70052         * lib/sha1.c: Tweak grammar in a comment.
70053
70054 2006-01-10  Jim Meyering  <jim@meyering.net>
70055
70056         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70057         Patch by Joerg Sonnenberger.
70058
70059 2006-01-10  Bruno Haible  <bruno@clisp.org>
70060
70061         * modules/readutmp: Depend on module free.
70062         * modules/strtok_r: Depend on module restrict.
70063
70064 2006-01-10  Bruno Haible  <bruno@clisp.org>
70065
70066         * modules/gettext (configure.ac): Add an invocation of
70067         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70068
70069 2006-01-10  Bruno Haible  <bruno@clisp.org>
70070
70071         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70072         Reported by Werner Lemberg <wl@gnu.org>.
70073
70074 2006-01-10  Bruno Haible  <bruno@clisp.org>
70075
70076         * lib/localcharset.c: Update from GNU gettext.
70077
70078 2006-01-10  Bruno Haible  <bruno@clisp.org>
70079
70080         * lib/argp.h (__const): Remove macro. Use const instead.
70081         * lib/argp-fmtstream.h (__const): Likewise.
70082         * lib/glob_.h (__const): Remove macro.
70083         * lib/glob-libc.h: Use const instead of __const.
70084
70085 2006-01-10  Bruno Haible  <bruno@clisp.org>
70086
70087         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70088         variable.
70089         Needed to avoid an automake error regarding the 'gettext' module.
70090
70091 2006-01-09  Simon Josefsson  <jas@extundo.com>
70092
70093         * modules/inet_ntop (Depends-on): Add restrict.
70094
70095 2006-01-09  Simon Josefsson  <jas@extundo.com>
70096
70097         * modules/gc-rijndael-tests (License): Put under LGPL.
70098
70099         * modules/gc-des-tests (License): Likewise.
70100
70101         * modules/gc-arcfour-tests (License): Likewise.
70102
70103         * modules/gc-arctwo-tests (License): Likewise.
70104
70105         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70106
70107         * modules/gc-hmac-sha1-tests (Files): Likewise.
70108
70109         * modules/gc-hmac-md5-tests (License): Likewise.
70110
70111         * modules/gc-sha1-tests (License): Likewise.
70112
70113         * modules/gc-md5-tests (License): Likewise.
70114
70115         * modules/gc-md4-tests (License): Likewise.
70116
70117         * modules/gc-md2-tests (License): Likewise.
70118
70119         * modules/gc-tests (License): Likewise.
70120
70121         * modules/des-tests (License): Likewise.
70122
70123         * modules/md4-tests (License): Likewise.
70124
70125         * modules/md2-tests (License): Likewise.
70126
70127 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70128
70129         Sync from coreutils:
70130
70131         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70132         * modules/lib-ignore: New file.
70133         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70134         chdir-safer.m4, lchmod.m4.
70135         * modules/openat: Add mkdirat.c, openat-priv.h.
70136
70137 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70138
70139         Sync from coreutils.
70140         * m4/lib-ignore.m4: New file.
70141         * m4/lchmod.m4: New file.
70142
70143 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70144
70145         Sync from coreutils.
70146         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70147         for write access: POSIX says that must fail.
70148         * lib/fts.c (diropen): Likewise.
70149         * lib/save-cwd.c (save_cwd): Likewise.
70150         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70151         well, for minor improvements on hosts that lack O_DIRECTORY.
70152         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70153         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70154         Fall back on chown if open failed with EACCES.
70155
70156         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70157         Report an error at compile-time if only a 1-second nominal clock
70158         resolution is found.
70159
70160         * lib/lchmod.h: New file.
70161         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70162         (make_dir_parents): Use lchown rather than chown, and
70163         lchmod rather than chmod.
70164
70165         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70166         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70167         "proc" reported by n0dalus.
70168
70169         * lib/mountlist.c: Include <limits.h>.
70170         (dev_from_mount_options)
70171         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70172         New function.  It no longer assumes "dev=" has the System V meaning
70173         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70174         (read_file_system_list)
70175         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70176         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70177         dev= in that case.
70178
70179         * lib/posixtm.h (PDS_PRE_2000): New macro.
70180         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70181         allow_century.  All usages changed.  Reject dates outside the range
70182         1969-1999 if PDS_PRE_2000 is used.
70183
70184 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70185
70186         Sync from coreutils.
70187         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70188         (Time of day items): Mention the possibility of leap seconds.
70189         Problem reported by Dr. David Alan Gilbert.
70190
70191 2006-01-09  Jim Meyering  <jim@meyering.net>
70192
70193         Sync from coreutils.
70194
70195         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70196
70197         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70198
70199         * lib/modechange.c (mode_compile): Reject an invalid mode string
70200         that starts with an octal digit.  From Andreas Gruenbacher.
70201
70202         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70203         and dup to open_safer and dup_safer, respectively.
70204         (openat_permissive): Fix typo in comment.
70205
70206         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70207         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70208         (_): Remove; no longer needed.
70209         (openat): Renamed from rpl_openat; no need for rpl_openat
70210         since openat.h renames openat for us.
70211         Replace most of the body with a call to openat_permissive,
70212         to avoid duplicate code.
70213         Port to (probably hypothetical) environments were mode_t is
70214         wider than int.
70215         (openat_permissive): Require mode arg, so that we can check
70216         types better.  Put it just after flags.  Change cwd failure
70217         indicator from pointer-to-bool to pointer-to-errno-value.
70218         All callers changed.
70219         Invoke openat_save_fail and/or openat_restore_fail if
70220         cwd_errno is null, so that openat can call us.
70221         (openat_permissive, fdopendir, fstatat, unlinkat):
70222         Simplify errno handling to avoid some duplicate code,
70223         as it's OK to set errno on success.
70224         * lib/openat.h: Revamp code so that function macros depend on
70225         __OPENAT_PREFIX only, not also on AT_FDCWD.
70226         (openat_ro): Remove.  Caller changed to use openat_permissive.
70227         (openat_permissive): Now a macro, if not a function.
70228         (openat_restore_fail, openat_save_fail): Now always functions,
70229         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70230
70231         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70232         and openat.c.
70233         * lib/mkdirat.c: Include openat-priv.h.
70234         Remove definitions of macros defined therein.
70235         * lib/openat.c: Likewise.
70236
70237         * lib/mkdirat.c (mkdirat): New file and function.
70238         * lib/openat.h (mkdirat): Declare.
70239
70240         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70241
70242         * lib/openat.h (openat_permissive): Declare.
70243         (openat_ro): Define.
70244
70245         * lib/openat.c (EXPECTED_ERRNO): New macro.
70246         (openat_permissive): New function -- used in remove.c rewrite.
70247         (all functions): Set errno just before returning, only if there
70248         was an actual failure.
70249         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70250
70251         Emulate openat-family functions using Linux's procfs, if possible.
70252         Idea and some code based on Ulrich Drepper's glibc changes.
70253
70254         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70255         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70256         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70257         before falling back on save_cwd and restore_cwd.
70258         (fdopendir, fstatat, unlinkat): Likewise.
70259
70260         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70261         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70262
70263         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70264         as second argument to va_arg.  Otherwise, some versions of gcc
70265         warn that `if this code is reached, the program will abort'.
70266
70267 2006-01-09  Jim Meyering  <jim@meyering.net>
70268
70269         Sync from coreutils.
70270         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70271         Require openat-priv.h.
70272
70273 2006-01-09  Bruno Haible  <bruno@clisp.org>
70274
70275         * modules/strnlen (Include): Use strnlen.h.
70276
70277 2006-01-09  Bruno Haible  <bruno@clisp.org>
70278
70279         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70280
70281 2006-01-09  Bruno Haible  <bruno@clisp.org>
70282
70283         * lib/sysexit_.h (EX_OK): New macro.
70284         Suggested by Martin Lambers <marlam@marlam.de>.
70285
70286 2006-01-09  Bruno Haible  <bruno@clisp.org>
70287
70288         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70289         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70290
70291 2006-01-09  Bruno Haible  <bruno@clisp.org>
70292
70293         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70294         numbers.
70295
70296 2006-01-09  Bruno Haible  <bruno@clisp.org>
70297
70298         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70299         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70300         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70301         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70302
70303 2006-01-09  Bruno Haible  <bruno@clisp.org>
70304
70305         * build-aux/javacomp.sh.in: New file, moved from lib/.
70306         * modules/javacomp-script (Files): Update.
70307         (configure.ac): Add AC_CONFIG_FILES invocation.
70308         (EXTRA_DIST): Remove variable.
70309
70310         * build-aux/javaexec.sh.in: New file, moved from lib/.
70311         * modules/javaexec (Files): Update.
70312         (configure.ac): Add AC_CONFIG_FILES invocation.
70313         (EXTRA_DIST): Remove javaexec.sh.in.
70314
70315         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70316         * modules/csharpcomp-script (Files): Update.
70317         (configure.ac): Add AC_CONFIG_FILES invocation.
70318         (EXTRA_DIST): Remove variable.
70319
70320         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70321         * modules/csharpexec (Files): Update.
70322         (configure.ac): Add AC_CONFIG_FILES invocation.
70323         (EXTRA_DIST): Remove csharpexec.sh.in.
70324
70325 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70326
70327         Sync from coreutils.
70328
70329         Add POSIX ACL support
70330         * lib/acl.h (copy_acl, set_acl): Add declarations.
70331         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70332         systems other than Linux.
70333         (chmod_or_fchmod): New function: use fchmod when possible,
70334         and chmod otherwise.
70335         (file_has_acl): Add a POSIX ACL implementation, with a
70336         Linux-specific subcase.
70337         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70338         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70339         acls are unsupported.
70340         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70341         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70342         are unsupported.
70343
70344 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70345
70346         Sync from coreutils.
70347         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70348
70349 2006-01-07  Bruno Haible  <bruno@clisp.org>
70350
70351         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70352         gl_EARLY.
70353
70354 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70355
70356         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70357         Problem reported for Mingw by Mark Junker.
70358
70359 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70360
70361         * README: Gnulib normally doesn't generate a tarball.
70362
70363 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70364
70365         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70366         long int, not int, for nanosecond counts, so that people who are
70367         used to POSIX struct timespec won't be surprised.  Reported by Jim
70368         Meyering.
70369
70370 2005-12-28  Bruno Haible  <bruno@clisp.org>
70371
70372         * build-aux/config.rpath: Update from GNU gettext.
70373
70374 2005-12-16  Jim Meyering  <jim@meyering.net>
70375
70376         * modules/fprintftime: New module.
70377         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70378
70379 2005-12-16  Jim Meyering  <jim@meyering.net>
70380
70381         * m4/fprintftime.m4: New file.
70382
70383 2005-12-16  Jim Meyering  <jim@meyering.net>
70384
70385         * lib/fprintftime.c, lib/fprintftime.h: New files.
70386
70387 2005-12-15  Simon Josefsson  <jas@extundo.com>
70388
70389         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70390         new m4/socklen.m4.
70391
70392 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70393
70394         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70395         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70396
70397 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70398
70399         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70400         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70401         struct uparams is valid. Fall back to the default values if it is
70402         not.
70403
70404 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70405
70406         * modules/argp (Files): Add argp-pin.c
70407         (Depends-on): dirname
70408         (lib_SOURCES): Add argp-pin.c
70409
70410 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70411
70412         * m4/argp.m4:  Check if program_invocation_name and
70413         program_invocation_short_name are declared and define appropriate
70414         macros if they are not.
70415
70416 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70417
70418         * lib/argp-help.c (__argp_base_name): New function
70419         (__argp_short_program_name): Rewrite using __argp_base_name
70420         * lib/argp-namefrob.h: Define program_invocation_name and
70421         program_invocation_short_name if requested
70422         (__argp_base_name): Add prototype
70423         * lib/argp-parse.c (argp_def): Use gettext wrappers
70424         (argp_default_parser): Use __argp_base_name
70425         * lib/argp-pin.c: New file. Defines program_invocation_name and
70426         program_invocation_short_name on systems that lack them.
70427
70428 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70429
70430         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70431         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70432         porting problem reported by Georg Schwarz in
70433         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70434
70435 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70436
70437         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70438         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70439         porting problem reported by Georg Schwarz in
70440         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70441
70442 2005-12-05  Bruno Haible  <bruno@clisp.org>
70443
70444         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70445         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70446         Reported by Mark Junker <mjscod@gmx.de>.
70447
70448 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70451         Use implementation from Albert Chin, with some
70452         comments/corrections by Stepan Kasal and myself.
70453
70454 2005-12-02  Bruno Haible  <bruno@clisp.org>
70455
70456         * gnulib-tool (func_import): Accept GPLed build tool modules when
70457         --lgpl is given.
70458         * modules/csharpcomp-script: New file.
70459         * modules/csharpcomp: Depend on it.
70460         * modules/javacomp-script: New file.
70461         * modules/javacomp: Depend on it.
70462         Suggested by Simon Josefsson.
70463
70464 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70467         statement, to work around an HP-UX 10.20 compiler bug reported by
70468         Peter O'Gorman.
70469
70470 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * modules/savedir (Depends-on): Add openat.
70473
70474 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70477         (uintmax_t) [defined uintmax_t]: Do not declare.
70478         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70479         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70480         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70481         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70482         sake of portability to weird hosts that C allows (though we don't
70483         know of any practical examples).
70484
70485         * lib/savedir.h (fdsavedir): New decl.
70486         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70487         contains most of the former guts of savedir.
70488         (savedir): Use savedirstream.
70489         Include "openat.h".
70490
70491 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         * modules/obstack (Files): Add m4/ulonglong.m4.
70494         Problem reported by Davide Angelocola.
70495
70496 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70499         coreutils no longer futzes with rounding modes.
70500
70501 2005-11-14  Jim Meyering  <jim@meyering.net>
70502
70503         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70504         replacement of mkstemp.
70505
70506 2005-11-10  Simon Josefsson  <jas@extundo.com>
70507
70508         * lib/readline.c: Remove EOL.
70509
70510 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         * modules/gethrxtime (Depends-on): Add gettime.
70513
70514 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70515
70516         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70517         or gettimeofday; no longer needed.
70518
70519 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70522         time business.
70523         (gethrxtime) [! (HAVE_NANOUPTIME
70524         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70525         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70526         our own approximation.
70527
70528 2005-11-08  Eric Blake  <ebb9@byu.net>
70529
70530         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70531
70532 2005-11-08  Eric Blake  <ebb9@byu.net>
70533
70534         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70535
70536 2005-11-04  Bruno Haible  <bruno@clisp.org>
70537
70538         * gnulib-tool: Implement --update mode.
70539
70540 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         Fix porting problem reported by Theodoros V. Kalamatianos.
70543         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70544         Don't assume that futimes failing means we must fail.
70545
70546 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70547
70548         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70549         variables to suggest the intended function of the PATH_MAX check.
70550
70551 2005-10-30  Kean Johnston  <jkj@sco.com>
70552
70553         Trivial changes to support SCO systems.
70554         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70555         as PATH_MAX.
70556         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70557         where __ptr is null when no I/O is pending.
70558
70559 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70562         leave errno alone.  Problem reported by Dmitry V. Levin.
70563
70564 2005-10-28  Simon Josefsson  <jas@extundo.com>
70565
70566         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70567         Test more.
70568
70569         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70570
70571         * modules/md2, modules/md2-tests: New files.
70572
70573 2005-10-28  Simon Josefsson  <jas@extundo.com>
70574
70575         * m4/inet_ntop.m4: More tests.
70576
70577         * m4/gc-md2.m4, md2.m4: New file.
70578
70579 2005-10-28  Simon Josefsson  <jas@extundo.com>
70580
70581         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70582         "restrict" keywords, as per POSIX.  Protect the function
70583         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70584         Don't use K&R prototypes.  Check the sprintf return values.
70585         Re-define EAFNOSUPPORT if not present.  Indent.
70586
70587         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70588         suggested by Bruno Haible <bruno@clisp.org>.
70589
70590         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70591
70592         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70593
70594         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70595         libgcrypt).
70596
70597         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70598
70599         * lib/md2.h, lib/md2.c: New files.
70600
70601 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70604         errno alone.  Problem reported by Frederic Jolliton.
70605
70606 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70607
70608         * modules/verify (License): Change from GPL to LGPL.  This is a
70609         tiny module and there are apparently near-equivalents that are
70610         under the BSD license.
70611
70612 2005-10-24  Simon Josefsson  <jas@extundo.com>
70613
70614         * modules/sha1: Relicense to LGPL.
70615
70616 2005-10-24  Simon Josefsson  <jas@extundo.com>
70617
70618         * lib/md4.h: Shrink buffer size, now that we changed the type.
70619
70620 2005-10-23  Simon Josefsson  <jas@extundo.com>
70621
70622         * gnulib-tool (func_import): Fix --tests-base.
70623
70624 2005-10-22  Simon Josefsson  <jas@extundo.com>
70625
70626         * modules/arcfour (Depends-on): Need stdint.
70627
70628 2005-10-22  Simon Josefsson  <jas@extundo.com>
70629
70630         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70631         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70632
70633 2005-10-22  Simon Josefsson  <jas@extundo.com>
70634
70635         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70636         suggested by Bruno Haible <bruno@clisp.org>.
70637
70638 2005-10-22  Simon Josefsson  <jas@extundo.com>
70639
70640         * lib/crc.h: Include stddef.h, for size_t.
70641
70642 2005-10-22  Simon Josefsson  <jas@extundo.com>
70643
70644         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70645         arcfour_context struct (simplify test vector testing in GNU
70646         Shishi).
70647
70648 2005-10-21  Simon Josefsson  <jas@extundo.com>
70649
70650         * modules/des, modules/des-tests: New files.
70651
70652         * modules/gc-des, modules/gc-des-tests: New files.
70653
70654         * tests/test-des.c, tests/test-gc-des.c: New file.
70655
70656 2005-10-21  Simon Josefsson  <jas@extundo.com>
70657
70658         * modules/arctwo, modules/arctwo-tests: New files.
70659
70660         * tests/test-arctwo.c: New file.
70661
70662         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70663
70664         * tests/test-gc-arctwo.c: New file.
70665
70666 2005-10-21  Simon Josefsson  <jas@extundo.com>
70667
70668         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70669         Bruno Haible <bruno@clisp.org>.
70670
70671         * m4/gc-des.m4: New file.
70672
70673 2005-10-21  Simon Josefsson  <jas@extundo.com>
70674
70675         * m4/arctwo.m4: New file.
70676
70677         * m4/gc-arctwo.m4: New file.
70678
70679 2005-10-21  Simon Josefsson  <jas@extundo.com>
70680
70681         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70682         block.
70683
70684 2005-10-21  Simon Josefsson  <jas@extundo.com>
70685
70686         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70687         <bruno@clisp.org>.
70688
70689         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70690
70691         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70692         Bruno Haible <bruno@clisp.org>.
70693
70694         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70695         <bruno@clisp.org>.
70696
70697 2005-10-21  Simon Josefsson  <jas@extundo.com>
70698
70699         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70700
70701 2005-10-21  Simon Josefsson  <jas@extundo.com>
70702
70703         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70704
70705 2005-10-21  Simon Josefsson  <jas@extundo.com>
70706
70707         * lib/des.h, lib/des.c: New files.
70708
70709         * lib/gc-gnulib.c: Support DES.c
70710
70711 2005-10-21  Simon Josefsson  <jas@extundo.com>
70712
70713         * lib/arctwo.h, lib/arctwo.c: New files.
70714
70715         * lib/gc-gnulib.c: Support ARCTWO.
70716
70717 2005-10-21  Simon Josefsson  <jas@extundo.com>
70718
70719         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70720         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70721
70722 2005-10-21  Simon Josefsson  <jas@extundo.com>
70723
70724         * gnulib-tool (func_import, func_create_testdir): Define automake
70725         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70726         Makefile.am snippet),
70727         suggested by Bruno Haible <bruno@clisp.org>.
70728
70729         * modules/gc (Makefile.am): Use it.
70730
70731 2005-10-21  Bruno Haible  <bruno@clisp.org>
70732
70733         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70734         patch.
70735
70736 2005-10-19  Simon Josefsson  <jas@extundo.com>
70737
70738         * tests/test-gc-rijndael.c: New file.
70739
70740         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70741
70742 2005-10-19  Simon Josefsson  <jas@extundo.com>
70743
70744         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70745         interface too.
70746
70747 2005-10-19  Simon Josefsson  <jas@extundo.com>
70748
70749         * tests/test-gc-arcfour.c: New file.
70750
70751         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70752
70753 2005-10-19  Simon Josefsson  <jas@extundo.com>
70754
70755         * modules/gc-md4, modules/gc-md4-tests: New file.
70756
70757         * tests/test-gc-md4.c: New file.
70758
70759 2005-10-19  Simon Josefsson  <jas@extundo.com>
70760
70761         * m4/gc-md4.m4: New file.
70762
70763 2005-10-19  Simon Josefsson  <jas@extundo.com>
70764
70765         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70766         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70767         <kasal@ucw.cz>.
70768
70769 2005-10-19  Simon Josefsson  <jas@extundo.com>
70770
70771         * m4/gc-arcfour.m4: New file.
70772
70773         * m4/gc-rijndael.m4: New file.
70774
70775 2005-10-19  Simon Josefsson  <jas@extundo.com>
70776
70777         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70778
70779 2005-10-19  Simon Josefsson  <jas@extundo.com>
70780
70781         * lib/gc-gnulib.c: Support ARCFOUR.
70782
70783 2005-10-19  Simon Josefsson  <jas@extundo.com>
70784
70785         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70786         support.
70787
70788         * lib/gc.h: Add ECB enum type.
70789
70790         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70791
70792 2005-10-18  Simon Josefsson  <jas@extundo.com>
70793
70794         * tests/test-md5.c: New file.
70795
70796         * modules/md5-tests: New file.
70797
70798 2005-10-18  Simon Josefsson  <jas@extundo.com>
70799
70800         * tests/test-md4.c: New file.
70801
70802         * modules/md4, modules/md4-tests: New files.
70803
70804 2005-10-18  Simon Josefsson  <jas@extundo.com>
70805
70806         * m4/md4.m4: New file.
70807
70808 2005-10-18  Simon Josefsson  <jas@extundo.com>
70809
70810         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70811
70812 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70813
70814         * gnulib-tool (func_create_testdir): Omit the second check whether
70815         BUILT_SOURCES in nonempty.
70816
70817 2005-10-17  Simon Josefsson  <jas@extundo.com>
70818
70819         * tests/test-rijndael.c: New file.
70820
70821 2005-10-17  Simon Josefsson  <jas@extundo.com>
70822
70823         * modules/sha1: Depend on stdint instead of md5.
70824
70825         * modules/md5: Depend on stdint, remove uint32_t.
70826
70827 2005-10-17  Simon Josefsson  <jas@extundo.com>
70828
70829         * modules/gc-sha1-tests: New file.
70830
70831         * tests/test-gc-sha1.c: New file.
70832
70833 2005-10-17  Simon Josefsson  <jas@extundo.com>
70834
70835         * m4/md5.m4: Remove call to uint32_t.m4.
70836
70837 2005-10-17  Simon Josefsson  <jas@extundo.com>
70838
70839         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70840
70841         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70842         md5.h.
70843
70844         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70845
70846         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70847
70848 2005-10-17  Simon Josefsson  <jas@extundo.com>
70849
70850         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70851
70852 2005-10-17  Simon Josefsson  <jas@extundo.com>
70853
70854         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70855
70856 2005-10-17  Simon Josefsson  <jas@extundo.com>
70857
70858         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70859
70860         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70861
70862 2005-10-17  Bruno Haible  <bruno@clisp.org>
70863
70864         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70865         that it can also be used in a test.
70866
70867 2005-10-16  Bruno Haible  <bruno@clisp.org>
70868
70869         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70870         TESTS_ENVIRONMENT, so that individual tests can augment it.
70871
70872         * gnulib-tool (func_create_testdir): Use an intermediate target for
70873         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70874         macros, like $(ALLOCA_H), which cannot be passed through the command
70875         line.
70876
70877 2005-10-15  Simon Josefsson  <jas@extundo.com>
70878
70879         * modules/rijndael-tests: New file.
70880
70881         * modules/rijndael: New file.
70882
70883 2005-10-15  Simon Josefsson  <jas@extundo.com>
70884
70885         * m4/rijndael.m4: New file.
70886
70887 2005-10-15  Simon Josefsson  <jas@extundo.com>
70888
70889         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70890
70891         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70892
70893 2005-10-14  Simon Josefsson  <jas@extundo.com>
70894
70895         * tests/test-arcfour.c: New file.
70896
70897         * modules/arcfour, modules/arcfour-tests: New files.
70898
70899 2005-10-14  Simon Josefsson  <jas@extundo.com>
70900
70901         * m4/arcfour.m4: New file.
70902
70903 2005-10-14  Simon Josefsson  <jas@extundo.com>
70904
70905         * lib/arcfour.h, lib/arcfour.c: New files.
70906
70907 2005-10-14  Roland McGrath  <roland@redhat.com>
70908
70909         Import from libc.  [BZ #1331]
70910         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70911         macro argument.
70912         Reported by Matej Vela <vela@debian.org>.
70913
70914 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70917         include <wchar.h>; no longer needed.
70918
70919 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70922
70923 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70924         and  Ulrich Drepper  <drepper@redhat.com>
70925
70926         Import from libc.
70927         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70928         instead of inline stream orientation test and two separate
70929         function calls.  Pay no attention to USE_IN_LIBIO.
70930
70931 2005-10-13  Simon Josefsson  <jas@extundo.com>
70932
70933         * modules/gc-hmac-md5-tests: New file.
70934
70935         * tests/test-gc-hmac-sha1.c: New file.
70936
70937         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70938
70939         * modules/gc-hmac-md5-tests: New file.
70940
70941         * tests/test-gc-md5.c: New file.
70942
70943         * modules/gc-md5-tests: New file.
70944
70945 2005-10-13  Simon Josefsson  <jas@extundo.com>
70946
70947         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70948         Move memory allocation outside of loop.
70949
70950 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70953         intermediate directory is in a read-only file system.  Problem
70954         reported by Eric Blake.
70955
70956 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70957
70958         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70959
70960 2005-10-12  Simon Josefsson  <jas@extundo.com>
70961
70962         * tests/test-hmac-sha1.c: New file.
70963
70964         * modules/hmac-sha1-tests: New file.
70965
70966         * modules/hmac-sha1: New file.
70967
70968 2005-10-12  Simon Josefsson  <jas@extundo.com>
70969
70970         * modules/gc-sha1: New file.
70971
70972 2005-10-12  Simon Josefsson  <jas@extundo.com>
70973
70974         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70975
70976         * tests/test-gc-pbkdf2-sha1.c: New file.
70977
70978 2005-10-12  Simon Josefsson  <jas@extundo.com>
70979
70980         * modules/gc-md5, modules/gc-hmac-md5: New files.
70981
70982         * modules/gc (Files): Remove md5, memxor and hmac files.
70983
70984 2005-10-12  Simon Josefsson  <jas@extundo.com>
70985
70986         * m4/gc-pbkdf2-sha1.m4: New file.
70987
70988         * m4/gc-hmac-sha1.m4: New file.
70989
70990         * m4/gc-sha1: New file.
70991
70992         * m4/hmac-sha1.m4: New file.
70993
70994 2005-10-12  Simon Josefsson  <jas@extundo.com>
70995
70996         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70997
70998         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70999
71000 2005-10-12  Simon Josefsson  <jas@extundo.com>
71001
71002         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71003         suggested by Bruno Haible <bruno@clisp.org>.
71004
71005 2005-10-12  Simon Josefsson  <jas@extundo.com>
71006
71007         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71008
71009 2005-10-12  Simon Josefsson  <jas@extundo.com>
71010
71011         * lib/gc-pbkdf2-sha1.c: New file.
71012
71013         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71014
71015 2005-10-12  Simon Josefsson  <jas@extundo.com>
71016
71017         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71018
71019         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71020
71021 2005-10-12  Simon Josefsson  <jas@extundo.com>
71022
71023         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71024         GC_USE_HMAC_MD5, respectively.
71025
71026         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71027         (gc_md5): Fix typo.
71028
71029         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71030
71031         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71032
71033         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71034
71035 2005-10-12  Bruno Haible  <bruno@clisp.org>
71036
71037         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71038         Reported by Stepan Kasal <kasal@ucw.cz>.
71039
71040 2005-10-11  Simon Josefsson  <jas@extundo.com>
71041
71042         * tests/test-crc.c: New file.
71043
71044         * modules/crc, modules/crc-tests: New files.
71045
71046 2005-10-11  Simon Josefsson  <jas@extundo.com>
71047
71048         * m4/crc.m4: New file.
71049
71050 2005-10-11  Simon Josefsson  <jas@extundo.com>
71051
71052         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71053
71054         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71055
71056         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71057
71058 2005-10-11  Simon Josefsson  <jas@extundo.com>
71059
71060         * lib/crc.h, lib/crc.c: New files.
71061
71062         * lib/gc.h (gc_hash_buffer): Add doc.
71063
71064 2005-10-11  Bruno Haible  <bruno@clisp.org>
71065
71066         * modules/c-strcasestr: New file.
71067         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71068
71069 2005-10-11  Bruno Haible  <bruno@clisp.org>
71070
71071         * modules/c-strcase: New file.
71072         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71073
71074 2005-10-11  Bruno Haible  <bruno@clisp.org>
71075
71076         * lib/strcasecmp.c: Include limits.h.
71077         (strcasecmp): Avoid integer overflow on exotic platforms.
71078         * lib/strncasecmp.c: Include limits.h.
71079         (strncasecmp): Avoid integer overflow on exotic platforms.
71080         Reported by Paul Eggert.
71081
71082 2005-10-11  Bruno Haible  <bruno@clisp.org>
71083
71084         * lib/c-strcasestr.h: New file, from GNU gettext.
71085         * lib/c-strcasestr.c: New file, from GNU gettext.
71086
71087 2005-10-11  Bruno Haible  <bruno@clisp.org>
71088
71089         * lib/c-strcase.h: New file, from GNU gettext.
71090         * lib/c-strcasecmp.c: New file, from GNU gettext.
71091         * lib/c-strncasecmp.c: New file, from GNU gettext.
71092
71093 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71094
71095         * modules/mempcpy (License): GPL -> LGPL.
71096         * modules/strchrnul (License): Likewise.
71097         * modules/sysexits (License): Likewise.
71098
71099 2005-10-08  Simon Josefsson  <jas@extundo.com>
71100
71101         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71102
71103 2005-10-07  Simon Josefsson  <jas@extundo.com>
71104
71105         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71106
71107 2005-10-06  Simon Josefsson  <jas@extundo.com>
71108
71109         * tests/test-hmac-md5.c: New file.
71110
71111         * modules/hmac-md5-tests: New file.
71112
71113         * modules/hmac-md5: New file.
71114
71115 2005-10-06  Simon Josefsson  <jas@extundo.com>
71116
71117         * m4/hmac-md5.m4: New file.
71118
71119         * m4/memxor.m4: Require gl_C_RESTRICT.
71120
71121 2005-10-06  Simon Josefsson  <jas@extundo.com>
71122
71123         * lib/memxor.c (memxor): Avoid casts and warnings.
71124
71125 2005-10-06  Simon Josefsson  <jas@extundo.com>
71126
71127         * lib/hmac-md5.c: New file.
71128
71129         * lib/hmac.h: New file.
71130
71131 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71134         promotes to int, not unsigned int, to catch the AIX 5.3
71135         compiler bug.
71136
71137 2005-10-05  Simon Josefsson  <jas@extundo.com>
71138
71139         * modules/memxor: New file.
71140
71141         * modules/iconv (Files): Move config.rpath to havelib, it is used
71142         there.
71143
71144         * modules/havelib (Files): Add config.rpath.
71145
71146 2005-10-05  Simon Josefsson  <jas@extundo.com>
71147
71148         * m4/memxor.m4: New file.
71149
71150 2005-10-05  Simon Josefsson  <jas@extundo.com>
71151
71152         * lib/memxor.c (memxor): Fix compiler error.
71153
71154         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71155         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71156
71157         * lib/memxor.h, lib/memxor.c: New files.
71158
71159         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71160         we assume all systems have it, suggested by Jim Meyering
71161         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71162         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71163         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71164         same reasons.
71165
71166 2005-10-05  Simon Josefsson  <jas@extundo.com>
71167
71168         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71169
71170 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71173         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71174         needed, since the source code now assumes these .h files.
71175
71176 2005-10-05  Derek Price  <derek@ximbiot.com>
71177
71178         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71179
71180 2005-10-05  Bruno Haible  <bruno@clisp.org>
71181
71182         * modules/stdint (License): Change to LGPL.
71183
71184 2005-10-04  Simon Josefsson  <jas@extundo.com>
71185
71186         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71187         D. Baushke" <mdb@gnu.org>.
71188
71189 2005-10-04  Bruno Haible  <bruno@clisp.org>
71190
71191         * lib/verify.h (verify_true): Provide alternative definition for C++.
71192
71193 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71194
71195         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71196         (SSIZE_MAX): New macro, if not already defined.
71197         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71198         than 2 GiB.
71199
71200 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71201
71202         Sync from coreutils.
71203         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71204         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71205         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71206         ULLONG_MAX doesn't work with 2.7.2.1.
71207
71208 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71211         From Ben Pfaff.
71212
71213         * modules/exclude (Depends-on): Depend on verify.
71214         * modules/strtoimax (Depends-on): Likewise.
71215         * modules/utimecmp (Depends-on): Likewise.
71216
71217 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * lib/exclude.c: Include verify.h.
71220         (verify): Remove.  All callers changed to use verify.h's version.
71221         * lib/strtoimax.c: Likewise.
71222         * lib/utimecmp.c: Likewis.e
71223
71224         Sync from coreutils.
71225         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71226         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71227         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71228         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71229         bother returning ENOSYS if settimeofday or stime fails; just let
71230         them return whatever errno they want to return.
71231         * lib/utimens.c: Include unistd.h, for dup2.
71232         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71233         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71234
71235 2005-10-02  Jim Meyering  <jim@meyering.net>
71236
71237         Sync from coreutils.
71238         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71239         from glibc-2.2.5 that fails for read-only files.
71240
71241 2005-10-02  Jim Meyering  <jim@meyering.net>
71242
71243         Sync from coreutils.
71244         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71245         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71246         `#if HAVE_CONFIG_H'.
71247         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71248         Remove AT_FDCWD test.
71249         Do not consume the fd unless successful.
71250         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71251         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71252         block, so that we don't even try to compile it if settimeofday is
71253         available.  This works around a compilation failure on OSF1 V5.1,
71254         due to stime requiring a `long int*' while tv_sec is `int'.
71255
71256 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71257
71258         Sync from coreutils.
71259         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71260         against `yes', rather than just testing for nonempty.
71261
71262 2005-10-01  Simon Josefsson  <jas@extundo.com>
71263
71264         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71265         and Darwin.
71266
71267         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71268         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71269         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71270         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71271         Check if struct addrinfo is declared.
71272
71273 2005-10-01  Simon Josefsson  <jas@extundo.com>
71274
71275         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71276         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71277         AI_* and EAI_* definitions.  Protect function declarations.
71278
71279 2005-10-01  Jim Meyering  <jim@meyering.net>
71280
71281         Sync from coreutils.
71282
71283         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71284         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71285         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71287         in the inet and nsl libraries.  Required on Solaris 5.7.
71288
71289 2005-10-01  Jim Meyering  <jim@meyering.net>
71290
71291         Sync from coreutils.
71292         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71293         in the inet and nsl libraries.  Required on Solaris 5.7.
71294
71295 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71296
71297         * lib/getdelim.c (getdelim): Remove unused variables.
71298
71299 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71302         so that the code works even with ancient cpp.  Portability problem
71303         with GCC 2.7.2.1 reported by Thomas M.Ott.
71304
71305 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * modules/regex (Depends-on): Add strcase.
71308
71309         * modules/gethostname (Licence): Change from GPL to LGPL, since
71310         gethostname.c is a trivial implementation of a standard library
71311         function.
71312         * modules/poll (License): Change from GPL to LGPL, since it's
71313         derived from LGPL code.
71314
71315 2005-09-27  Jim Meyering  <jim@meyering.net>
71316
71317         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71318         HAVE_CONFIG_H.
71319
71320         * lib/intprops.h (signed_type_or_expr__): Define.
71321         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71322         for unsigned types.
71323
71324 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71325
71326         * lib/verify.h (verify_expr): Remove, replacing with:
71327         (verify_true): New macro that returns true instead of void.
71328         (verify_type__): Remove.
71329         (verify): Use verify_true rather than verify_type__.
71330
71331 2005-09-26  Bruno Haible  <bruno@clisp.org>
71332
71333         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71334         is necessary.
71335         (lib_SOURCES): Remove mbchar.c.
71336         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71337         (Files): Add m4/mbrtowc.m4.
71338         * modules/mbiter: Likewise.
71339         * modules/mbuiter: Likewise.
71340
71341 2005-09-26  Bruno Haible  <bruno@clisp.org>
71342
71343         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71344         compile mbchar.c if they are not both present.
71345         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71346         * m4/mbiter.m4 (gl_MBITER): Likewise.
71347         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71348         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71349         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71350
71351 2005-09-25  Jim Meyering  <jim@meyering.net>
71352
71353         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71354         also uses socklen_t.
71355
71356 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71357
71358         * lib/utimens.c (ENOSYS): Define if not already defined.
71359         (futimens): Support having a null PATH if the file descriptor
71360         is nonnegative.
71361
71362         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71363         Remove.
71364         (__attribute): Define to empty unless GCC 3.1 or later.
71365         This works around a core dump on OpenBSD 3.4, which has GCC
71366         2.95.3, which dumps core when given __attribute__(()).  It also
71367         simplifies other tests, since we really don't want to bother with
71368         worrying about which ancient version of GCC supported what.
71369         Original problem reported by Yoann Vandoorselaere, with part of
71370         the fix suggested by Derek Price.
71371
71372 2005-09-24  Jim Meyering  <jim@meyering.net>
71373
71374         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71375         so we can once again use a positive bitfield width of 1 -- now we
71376         don't have to explain why we were using a bitfield width of 2.
71377
71378 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71379
71380         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71381         and similarly for the other external symbols.  Problem reported
71382         by James Gallager.
71383
71384         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71385         bug reported by Jim Meyering.
71386
71387         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71388         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71389         not needed, since socklen is a prerequisite module.
71390
71391 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71394         Problem reported by Eric Blake.
71395         (getaddrinfo): Initialize se so that it's not garbage.
71396         Redo internal storage allocation so that it doesn't make unportable
71397         assumptions about alignment.
71398         Fix a memory leak.
71399
71400         * lib/utimens.c (futimens): Use futimesat if available.
71401         Prefer it to futimes since it doesn't have the futimes bug.
71402
71403         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71404         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71405         Instead, declare a function that returns a pointer to an array,
71406         and use verify_type__ to declare the size of the array.
71407         Problem and germ of a solution reported by Bruno Haible.
71408         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71409         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71410
71411 2005-09-23  Jim Meyering  <jim@meyering.net>
71412
71413         Sync from coreutils.
71414         Correct build failure (socklen_t not defined) on at least
71415         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71417
71418 2005-09-23  Jim Meyering  <jim@meyering.net>
71419
71420         * modules/getaddrinfo (Depends-on): Add socklen.
71421
71422 2005-09-23  Bruno Haible  <bruno@clisp.org>
71423
71424         * tests/test-verify.c: New file.
71425
71426 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71427
71428         Sync from coreutils.
71429
71430         * modules/argmatch (Depends-on): Add verify.
71431         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71432         unistd-safer.
71433         * modules/save-cwd (Depends-on): Likewise.
71434
71435         * modules/openat (Files): Add lib/openat-die.c.
71436         (Depends-on): Remove error, exitfail.
71437         Add dirname.
71438
71439         * modules/verify: New file.
71440         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71441         with "verify" module.
71442
71443 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71444
71445         Sync from coreutils.
71446
71447         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71448         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71449         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71450         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71451         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71452         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71453         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71454         Don't bother checking for string.h, stdlib.h, unistd.h.
71455         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71456         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71457         module's job.
71458         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71459         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71460
71461         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71462         (gl_GETDATE): Use it.
71463
71464         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71465
71466 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         Sync from coreutils.
71469
71470         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71471         stat-time.h.
71472         * lib/argmatch.h: Include verify.h
71473         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71474         (ARGMATCH_ASSERT): Remove; unused.
71475         * lib/canonicalize.c: Assume STDC_HEADERS.
71476         * lib/exclude.c: Include "strcase.h".
71477         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71478         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71479         and stdio-safer.h.
71480         (getusershell): Call fopen, not fopen_safer.
71481         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71482         Do not include unistd-safer.h.
71483         (save_cwd): Don't call fd_safer; no longer needed
71484         now that we include fcntl--.h.
71485
71486         * lib/getdate.y (relative_time): New type.
71487         (RELATIVE_TIME_0): New constant.
71488         (parser_control): Use relative_time instead of doing it ourselves.
71489         (%union): Add new relative_time rel member.
71490         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71491         Now typeless.
71492         (relunit, relunit_snumber): Now of type rel.
71493         (zone, rel, relunit, get_date): Adjust to above changes.
71494
71495         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71496         Do not include unistd-safer.h.
71497         (getloadavg): Don't call fd_safer; no longer needed
71498         now that we include fcntl--.h.
71499
71500         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71501         (make_dir_parents): Treat ENOSYS like EEXIST.
71502
71503         Improve quality of diagnostics on restore_cwd failure.
71504         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71505         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71506         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71507         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71508         each time through the loop.  Do not diagnose restore_cwd failure;
71509         that is the caller's job (and perhaps the caller does not care).
71510
71511         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71512         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71513         If the file already exists but is not a directory, don't bother
71514         to try to make its parents.
71515         Close potential file descriptor leak if we can't chdir("/") (!).
71516         Don't always return true if chdir($PWD) fails; return true only
71517         if the requested action was done successfully (except for the
71518         chdir($PWD)).
71519         Don't log final directory unless we actually made it.
71520         Refactor to avoid duplicate code to fix up permissions.
71521         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71522
71523         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71524         to make it a bit faster and (I hope) clearer.
71525         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71526         Fix bug in formats like %2N.
71527
71528         * lib/verify.h: New file.
71529
71530 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         Sync from coreutils.
71533         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71534
71535 2005-09-22  Jim Meyering  <jim@meyering.net>
71536
71537         Sync from coreutils.
71538
71539         * m4/lstat.m4 (gl_FUNC_LSTAT):
71540         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71541         Remove obsolete comment.
71542         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71543         * m4/xstrtod.m4: Likewise.
71544
71545         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71546
71547 2005-09-22  Jim Meyering  <jim@meyering.net>
71548
71549         Sync from coreutils.
71550
71551         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71552
71553         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71554         the .tm_year member, since otherwise gcc-4.0 would now warn about
71555         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71556
71557         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71558         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71559
71560         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71561         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71562         when run in a time zone for which daylight savings time is in effect
71563         for the starting date.
71564
71565         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71566         stop us from restricting permissions of just-created absolute-named
71567         directories.
71568         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71569         to restore initial working directory.
71570         * lib/mkdir-p.c (make_dir_parents): New parameter:
71571         different_working_dir, to tell caller if/when we change the working
71572         directory and are unable to return to the initial one.
71573         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71574         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71575         `return false'.  This fixes a bug introduced on 2004-07-30.
71576
71577         * lib/openat.c (fdopendir): Be sure to close the supplied
71578         file descriptor before returning.  This makes our replacement
71579         implementation a little closer to Solaris's, where fdopendir
71580         ties the file descriptor to the returned DIR* pointer.
71581         * lib/openat.c (unlinkat): New function.
71582         * lib/openat.h (unlinkat): Add prototype.
71583         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71584         (openat_restore_fail): Rename from openat_restore_die.
71585         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71586
71587         Provide an alternative to exiting immediately upon save_cwd or
71588         restore_cwd failure.  Now, an application can arrange e.g.,
71589         to perform a longjump in that case.
71590         * lib/openat.c: Include dirname.h.
71591         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71592         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71593         and openat_restore_die rather than calling error directly.
71594         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71595
71596         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71597         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71598         define.
71599
71600         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71601         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71602                             int utc, int nanoseconds);
71603         Background:
71604         date should not have to allocate a megabyte of virtual memory to
71605         handle a format argument like +%1048575T.  When implemented with
71606         strftime, it must allocate such a buffer, use strftime to fill it
71607         in, print it, then free it.
71608         With fprintftime, it simply prints everything and exits.
71609         With no need for memory allocation, that's one fewer way to fail.
71610         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71611         optional field width, not before, so we accept %9:z, not %:9z.
71612         (my_strftime): Be sure to use L_('x') for literals.
71613
71614         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71615         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71616         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71617         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71618         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71619         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71620         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71621         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71622         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71623         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71624         * lib/xgethostname.c, lib/xreadlink.c:
71625         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71626
71627         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71628         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71629         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71630         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71631         and don't include <sys/file.h>).
71632
71633 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71634
71635         Sync from coreutils.
71636
71637         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71638         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71639         [!LDAV_DONE]: Avoid unused variable warning.
71640
71641 2005-09-21  Bruno Haible  <bruno@clisp.org>
71642
71643         * lib/unicodeio.h (unicode_to_mb): New declaration.
71644
71645 2005-09-20  Derek Price  <derek@ximbiot.com>
71646
71647         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71648         getaddrinfo.h.
71649
71650 2005-09-20  Bruno Haible  <bruno@clisp.org>
71651
71652         * gnulib-tool: Remove trailing slashes from the values specified for
71653         --source-base, --m4-base, --tests-base, --aux-dir.
71654         Suggested by Simon Josefsson <jas@extundo.com>.
71655
71656 2005-09-20  Bruno Haible  <bruno@clisp.org>
71657
71658         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71659         func_modules_to_filelist, func_import, func_create_testdir): Make all
71660         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71661         change when gnulib-tool is invoked in a different locale.
71662
71663 2005-09-19  Simon Josefsson  <jas@extundo.com>
71664
71665         * m4/socklen.m4: Fix typo.
71666
71667 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71668
71669         Use a consistent style for including <config.h>.
71670         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71671         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71672         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71673         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71674         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71675         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71676         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71677         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71678         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71679         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71680         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71681         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71682         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71683         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71684         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71685         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71686         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71687         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71688         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71689         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71690         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71691         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71692         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71693         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71694         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71695         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71696         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71697         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71698         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71699         lib/xstrtoumax.c, lib/yesno.c:
71700         Standardize inclusion of config.h.
71701         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71702         lib/inttostr.h:  Removed inclusion of config.h from header files.
71703         * lib/inttostr.c:  Adjusted in-tree users.
71704         * lib/timespec.h: Remove superfluous warning to include config.h.
71705         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71706         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71707         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71708         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71709         config.h with HAVE_CONFIG_H.
71710
71711 2005-09-19  Jim Meyering  <jim@meyering.net>
71712
71713         * modules/pathmax (License): Change to LGPL.
71714
71715 2005-09-19  Derek Price  <derek@ximbiot.com>
71716
71717         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71718
71719 2005-09-19  Bruno Haible  <bruno@clisp.org>
71720
71721         * gnulib-tool (import): Provide default for --tests-base.
71722
71723 2005-09-19  Bruno Haible  <bruno@clisp.org>
71724
71725         * doc/quote.texi: New file, extracted from gnulib.texi.
71726         * doc/ctime.texi: New file, extracted from gnulib.texi.
71727         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71728         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71729         * doc/gnulib.texi: Include them.
71730
71731 2005-09-18  Bruno Haible  <bruno@clisp.org>
71732
71733         Portability fix.
71734         * gnulib-tool (func_readlink): New function.
71735         (func_ln_if_changed): Use it.
71736
71737 2005-09-18  Bruno Haible  <bruno@clisp.org>
71738
71739         * gnulib-tool: Support --with-tests also with --import.
71740         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71741         (func_import): Use variables $testsbase and $inctests. Emit a
71742         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71743         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71744         SUBDIRS += $testsdir.
71745         (func_create_testdir): Update.
71746
71747 2005-09-18  Bruno Haible  <bruno@clisp.org>
71748
71749         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71750         instead of $dry_run.
71751         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71752         (func_ln_if_changed): Don't handle dry-run here.
71753         (func_import): In dry-run mode, detect more precisely which actions
71754         would be performed, and don't use "...ing" verbs.
71755
71756 2005-09-18  Bruno Haible  <bruno@clisp.org>
71757
71758         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71759         (func_import): Use join on two temporary files instead of three nested
71760         loops, in order to determine which files are new or old.
71761
71762 2005-09-18  Bruno Haible  <bruno@clisp.org>
71763
71764         * gnulib-tool (func_import): Comment out code that spits out the
71765         new files with --dry-run.
71766
71767 2005-09-18  Bruno Haible  <bruno@clisp.org>
71768
71769         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71770
71771 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71772
71773         * lib/stat-time.h: New file.
71774         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71775         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71776         in a different way.
71777         (timespec_cmp): New function.
71778         * lib/utimecmp.c: Include stat-time.h.
71779         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71780         members exist, not on the obsolescent ST_MTIM_NSEC.
71781         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71782
71783 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71784
71785         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71786
71787 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * MODULES.html.sh (File system functions): Add stat-time.
71790         * modules/stat-time: New file.
71791         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71792         is now done in a different way, by the stat-time module.
71793         * modules/utimecmp (Depends-on): Add stat-time.
71794
71795 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * m4/st_mtim.m4: Remove.  Superseded by...
71798         * m4/stat-time.m4: New file.
71799         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71800         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71801
71802 2005-09-15  Derek Price  <derek@ximbiot.com>
71803
71804         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71805
71806 2005-09-15  Derek Price  <derek@ximbiot.com>
71807
71808         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71809         * lib/regex_internal.c: Ditto, using this...
71810         (__GNUC_PREREQ): ...new macro.
71811         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71812         using...
71813         (__GNUC_PREREQ): ...this new macro.
71814
71815         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71816
71817 2005-09-15  Derek Price  <derek@ximbiot.com>
71818             Paul Eggert  <eggert@cs.ucla.edu>
71819
71820         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71821         changes, consolidating in...
71822         * lib/regex_internal.h: ...this file.
71823
71824 2005-09-13  Jim Meyering  <jim@meyering.net>
71825
71826         * lib/canon-host.c: Filter through gnu indent and reword comments
71827         slightly.
71828         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71829
71830 2005-09-13  Derek Price  <derek@ximbiot.com>
71831
71832         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71833         failure.
71834         Reported by Jim Meyering  <jim@meyering.net>.
71835
71836 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71837
71838         * lib/base64.c: Typo.
71839         (base64_encode): Put b64str in initialized data section.
71840
71841 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71842
71843         Merge glibc and coreutils changes into gnulib, plus a few
71844         extra fixes.
71845         * lib/md5.c: Use #error rather than a string.
71846         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71847         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71848         (__attribute__): Define to empty for non recent-GCC.
71849         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71850         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71851         Renamed from their non-__ counterparts, with new macros replacing
71852         them if not _LIBC.  Add __THROW attribute.
71853         (rol): Remove.
71854         (struct md5_ctx): Align buffer if using GCC.
71855         * lib/sha1.h (struct sha1_ctx): Likewise.
71856         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71857         The old name was backwards.
71858         (NOTSWAP): Remove; not used.
71859         (rol): New macro, moved here from md5.h.
71860         (sha1_process_block): Remove a FIXME that doesn't make sense.
71861
71862 2005-09-12  Derek Price  <derek@ximbiot.com>
71863
71864         Return usable errors from canon-host.
71865         * lib/canon-host.h: New file.
71866         * lib/canon-host.c (canon_host): Wrap...
71867         (canon_host_r): ...this new function, which now relies exclusively on
71868         getaddrinfo.
71869         (ch_strerror): New function.
71870         (last_cherror): New global.
71871         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71872         interface.
71873         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71874         void *.
71875         (freeaddrinfo): Free ai->ai_canonname when set.
71876
71877 2005-09-12  Derek Price  <derek@ximbiot.com>
71878
71879         Make canon-host require getaddrinfo.
71880         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71881         AC_LIBSOURCE canon-host.h.  Call...
71882         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71883         gl_GETADDRINFO.
71884         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71885
71886 2005-09-12  Derek Price  <derek@ximbiot.com>
71887
71888         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71889         LGPL.
71890         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71891
71892 2005-09-12  Derek Price  <derek@ximbiot.com>
71893
71894         * lib/gai_strerror.c: Include config.h when available.  Include
71895         getaddrinfo.h before other headers to test interface.
71896         Reported by Larry Jones <lawrence.jones@ugs.com>.
71897
71898 2005-09-12  Derek Price  <derek@ximbiot.com>
71899             Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         * modules/glob (Files): Add glob-libc.h.
71902
71903 2005-09-12  Derek Price  <derek@ximbiot.com>
71904             Paul Eggert  <eggert@cs.ucla.edu>
71905
71906         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71907         glob_.h, glob-libc.h.
71908         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71909
71910 2005-09-12  Derek Price  <derek@ximbiot.com>
71911             Paul Eggert  <eggert@cs.ucla.edu>
71912
71913         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71914         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71915         protecting things that should be done only in gnulib contexts.
71916         * lib/glob_.h: New file, containing only the glob things needed for
71917         gnulib.
71918         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71919         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71920         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71921         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71922         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71923         and to respect the namespace rules better.
71924
71925 2005-09-08  Simon Josefsson  <jas@extundo.com>
71926
71927         * modules/socklen: New file.
71928
71929 2005-09-08  Simon Josefsson  <jas@extundo.com>
71930
71931         * m4/socklen.m4: New file.
71932
71933 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71934
71935         * modules/utimens (Files): Add m4/utimbuf.m4, since
71936         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71937         Reported by Sergey Poznyakoff.
71938
71939 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71942         definitions, since that's the preferred style in glibc.
71943         Fix a minor spacing issue, and update copyright notice to match
71944         glibc's.
71945
71946 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71949
71950 2005-09-06  Simon Josefsson  <jas@extundo.com>
71951
71952         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71953         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71954
71955 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71956
71957         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71958         warning.
71959
71960 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * config/srclist.txt: Add glibc bug 1302.
71963
71964 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         Change bitset word type from unsigned int to unsigned long int,
71967         as this has better performance on typical 64-bit hosts.
71968         Port bitset code to hosts with unusual word sizes.
71969         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71970         (build_collating_symbol):
71971         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71972         argument is a bitset.  This is merely a style issue, but it makes
71973         it clearer that an entire array is expected.
71974         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71975         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71976         Port to the case where bitset_word is not the same as unsigned int.
71977         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71978         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71979         Likewise.
71980         * lib/regexec.c (check_dst_limits_calc_pos_1,
71981         check_subexp_matching_top):
71982         (build_trtable, group_nodes_into_DFAstates):
71983         Likewise.
71984         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71985         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71986         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71987         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71988         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71989         * lib/regcomp.c (optimize_subexps, lower_subexp):
71990         Work even if bitset_word has holes in its bitwise representation.
71991         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71992         * lib/regexec.c (check_dst_limits_calc_pos_1,
71993         check_subexp_matching_top):
71994         Likewise.
71995         * lib/regex_internal.c (re_string_reconstruct):
71996         Don't assume UCHAR_MAX == 255.
71997         * lib/regex_internal.h (bitset_set_all): Likewise.
71998         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71999         All uses changed.
72000         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72001         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72002         All uses changed.
72003         (BITSET_WORD_MAX): New macro.
72004         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72005         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72006         (bitset_empty, bitset_copy):
72007         Prefer sizeof (bitset) to multiplying it out ourselves.
72008         (bitset_not_merge): Remove; unused.
72009         (bitset_contain): Return bool, not unsigned int with one bit on.
72010         All callers changed.
72011         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72012         alignment than re_node_set; do this by defining a new internal
72013         type struct dests_alloc and using it to allocate memory.
72014
72015 2005-09-05  Bruno Haible  <bruno@clisp.org>
72016
72017         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72018         links.
72019
72020 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72021
72022         * modules/size_max (Makefile.am): Add size_max.h
72023
72024 2005-09-04  Derek Price  <derek@ximbiot.com>
72025
72026         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72027
72028 2005-09-03  Simon Josefsson  <jas@extundo.com>
72029
72030         * gnulib-tool: Fix typo.
72031
72032 2005-09-03  Simon Josefsson  <jas@extundo.com>
72033
72034         * config/srclist.txt: Add glibc bug 1293.
72035
72036 2005-09-03  Derek Price  <derek@ximbiot.com>
72037
72038         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72039         From Larry Jones <lawrence.jones@ugs.com>.
72040
72041 2005-09-02  Simon Josefsson  <jas@extundo.com>
72042
72043         * modules/socklen: New file.
72044
72045 2005-09-02  Simon Josefsson  <jas@extundo.com>
72046
72047         * modules/havelib: New module.
72048
72049         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72050         Use havelib.
72051
72052 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         Check for arithmetic overflow when calculating sizes, to prevent
72055         some buffer-overflow issues.  These patches are conservative, in the
72056         sense that when I couldn't determine whether an overflow was possible,
72057         I inserted a run-time check.
72058         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72059         macros.
72060         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72061         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72062         (re_xnrealloc, re_x2nrealloc): New inline functions.
72063         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72064         parse_bracket_exp):
72065         (build_equiv_class, build_charclass): Check for arithmetic overflow
72066         in size expression calculations.
72067         * lib/regex_internal.c (re_string_realloc_buffers):
72068         (build_wcs_upper_buffer, re_node_set_add_intersect):
72069         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72070         (re_dfa_add_node, register_state): Likewise.
72071         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72072         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72073         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72074         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72075
72076 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72079         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72080
72081 2005-09-02  Bruno Haible  <bruno@clisp.org>
72082
72083         Support for lib vs. lib64 distinction on biarch platforms.
72084         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72085         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72086         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72087
72088 2005-09-02  Bruno Haible  <bruno@clisp.org>
72089
72090         * gnulib-tool (import): In the other first-use case, provide defaults
72091         as well.
72092
72093 2005-09-02  Bruno Haible  <bruno@clisp.org>
72094
72095         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72096         patches not yet found in the latest gettext release.
72097
72098 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72101         to avoid a collision with bits/local_lim.h in glibc.
72102         All uses changed.  Problem reported by Dmitry V. Levin in
72103         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72104
72105         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72106         bugs in int versus size_t comparisons.
72107         (re_string_context_at): Fix bug where the code assumed that
72108         Idx is signed.
72109
72110         Use bool where appropriate.
72111         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72112         All callers changed.
72113         (calc_eclosure_iter): Likewise, for ROOT arg.
72114         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72115         (build_charclass_op): Likewise, for NON_MATCH arg.
72116         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72117         (re_string_construct_common): Likewise, for ICASE arg.
72118         * lib/regexec.c (re_search_2_stub, re_search_stub):
72119         Likewise, for RET_LEN arg.
72120         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72121         (set_regs): Likewise, for FL_BACKTRACK arg.
72122         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72123         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72124         (calc_eclosure_iter, parse_bracket_exp):
72125         Use bool for internal variables that are booleans.
72126         * lib/regexec.c (re_search_internal, check_matching,
72127         proceed_next_node):
72128         (set_regs, build_sifted_states, sift_states_bkref):
72129         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72130         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72131         (find_collation_sequence_value):
72132         Likewise.
72133         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72134         (re_node_set_compare):
72135         Return bool, not int. All callers changed.
72136         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72137         (build_trtable, check_node_accept): Likewise.
72138         * lib/regex_internal.h: Include stdbool.h.
72139
72140         Fix bugs uncovered when converting to bool.
72141         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72142         failure instead of charging ahead blindly.
72143         * lib/regex_internal.c (register_state): Likewise.
72144         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72145         for freeing internal storage.
72146         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72147         bitset pieces used as boolean, to avoid undefined behavior
72148         on hosts that do int overflow checking.
72149
72150 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         * config/srclist.txt: Add glibc bugs 1285-1287.
72153
72154 2005-09-01  Jim Meyering  <jim@meyering.net>
72155
72156         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72157         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72158         Require gl_STAT_MACROS, too.
72159
72160 2005-09-01  Bruno Haible  <bruno@clisp.org>
72161
72162         * gnulib-tool (import): In the first-use case, provide defaults.
72163
72164 2005-09-01  Bruno Haible  <bruno@clisp.org>
72165
72166         * gnulib-tool (func_import): Remove the .tmp files.
72167
72168 2005-09-01  Bruno Haible  <bruno@clisp.org>
72169
72170         * gnulib-tool (func_import): Fix handling of symbolic links.
72171
72172 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72173
72174         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72175         old glibc regex code mishandles strings longer than 2**31 bytes.
72176         This patch fixes this when the regex code is used in gnulib
72177         (i.e., outside glibc).
72178
72179         This patch should not affect the use of the regex code inside
72180         glibc.  No doubt this problem also needs to be handled for glibc
72181         as well, but the result will be an incompatible change to the
72182         glibc ABI, and the old ABI will have to be supported too.  That
72183         can be the the subject for another patch.
72184
72185         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72186         governing whether the rest of this patch is active.  By default,
72187         the macro is disabled and the patch has no effect.
72188         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72189         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72190         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72191         (re_match_2, re_set_registers): Use the new types.
72192         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72193         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72194         New macros.
72195         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72196         (re_string_context_at, bin_tree_t, re_dfastate_t):
72197         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72198         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72199         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72200         (re_string_char_size_at, re_string_wchar_at):
72201         (re_string_elem_size_at):
72202         Use the new types and macros to port to 64-bit hosts.
72203         Use unsigned types for internal values, so that the code
72204         mostly works even for arrays larger than SSIZE_MAX.
72205         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72206         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72207         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72208         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72209         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72210         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72211         (calc_inveclosure, parse_dup_op, build_range_exp):
72212         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72213         (fetch_number, create_token_tree, mark_opt_subexp):
72214         Likewise.
72215         * lib/regex_internal.c (re_string_construct_common,
72216         create_ci_newstate):
72217         (create_cd_newstate, re_string_allocate, re_string_construct):
72218         (re_string_realloc_buffers, build_wcs_upper_buffer):
72219         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72220         (re_string_reconstruct, re_string_peek_byte_case):
72221         (re_string_fetch_byte_case, re_string_context_at):
72222         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72223         (re_node_set_init_copy, re_node_set_add_intersect):
72224         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72225         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72226         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72227         (re_acquire_state, re_acquire_state_context, register_state):
72228         Likewise.
72229         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72230         search_cur_bkref_entry):
72231         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72232         (re_search_internal, re_search_2_stub, re_search_stub)
72233         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72234         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72235         (update_cur_sifted_state, check_dst_limits):
72236         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72237         (check_subexp_limits, sift_states_bkref, merge_state_array):
72238         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72239         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72240         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72241         (expand_bkref_cache, check_node_accept_bytes):
72242         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72243         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72244         (acquire_init_state_context, check_halt_node_context):
72245         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72246         (sift_states_backward, clean_state_log_if_needed):
72247         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72248         (find_recover_state, transit_state_sb, transit_state_mb):
72249         (transit_state_bkref, build_trtable, match_ctx_clean):
72250         Likewise.
72251         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72252         to work around an assumption that REG_MISSING is negative.
72253
72254         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72255         (seek_collating_symbol_entry) [defined _LIBC]:
72256         (lookup_collation_sequence_value) [defined _LIBC]:
72257         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72258         Use prototypes rather than old-style function definitions.
72259         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72260         (transit_state_sb) [0]:
72261         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72262
72263         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72264         rm_eo.
72265
72266         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72267         (optimize_subexps, lower_subexp):
72268         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72269         since the signed shift might overflow.  Use 1u<<31 instead.
72270         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72271         Likewise.
72272         * lib/regexec.c (check_dst_limits_calc_pos_1,
72273         check_subexp_matching_top): Likewise.
72274
72275         * lib/regcomp.c (optimize_subexps, lower_subexp):
72276         Use CHAR_BIT rather than 8, for clarity.
72277         * lib/regexec.c (check_dst_limits_calc_pos_1):
72278         (check_subexp_matching_top): Likewise.
72279         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72280         have to worry about portability issues when shifting it left.
72281         Remove no-longer-needed test for table_size > 0.
72282         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72283         in a word, as the resulting behavior is undefined.
72284         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72285         in one case, a <= should have been an <, and in another case the
72286         whole test was missing.
72287         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72288         the standard name CHAR_BIT.
72289         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72290         this is not true on one's complement and signed-magnitude hosts.
72291
72292         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72293         next_last_offset.
72294         (struct re_dfa_t): Remove unused member states_alloc.
72295         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72296
72297 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72298
72299         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72300         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72301         and large-file glibc and in 32-bit large-file Solaris.
72302
72303 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72304
72305         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72306         lengths fit in regoff_t; this isn't true if regoff_t is the same
72307         width as size_t.
72308         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72309         (= START + RANGE) instead of RANGE.  This avoids overflow
72310         problems when regoff_t is the same width as size_t.
72311         All callers changed.
72312         (re_search_2_stub): Check for overflow when adding the
72313         sizes of the two strings.
72314         (re_search_stub): Check for overflow when adding START
72315         to RANGE; if it occurs, substitute the extreme value.
72316
72317 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72318
72319         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72320
72321 2005-08-31  Jim Meyering  <jim@meyering.net>
72322
72323         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72324         a pointer-to-const.
72325         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72326         (register_state): Likewise.
72327         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72328         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72329         (group_nodes_into_DFAstates): Likewise.
72330
72331 2005-08-31  Jim Meyering  <jim@meyering.net>
72332
72333         * check-module: Add a FIXME comment.
72334
72335 2005-08-31  Eric Blake  <ebb9@byu.net>
72336
72337         * modules/unistd-safer (Files): Add unistd--.h.
72338         * modules/stdio-safer (Files): Add stdio--.h.
72339
72340 2005-08-31  Derek Price  <derek@ximbiot.com>
72341
72342         * lib/getdelim.c (getdelim): Return EOF on EOF.
72343         Reported by Larry Jones <lawrence.jones@ugs.com>.
72344
72345 2005-08-31  Bruno Haible  <bruno@clisp.org>
72346
72347         Avoid unnecessary diffs in the generated lib/Makefile.am.
72348         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72349         the generated files.
72350         (func_import): Don't set cmd.
72351
72352 2005-08-31  Bruno Haible  <bruno@clisp.org>
72353
72354         * lib/strstr.c: Include <stddef.h>, for NULL.
72355         * lib/strcasestr.c: Likewise.
72356         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72357
72358 2005-08-31  Bruno Haible  <bruno@clisp.org>
72359
72360         * gnulib-tool: New option --macro-prefix.
72361         (func_import): Use macro_prefix.
72362         (import): Handle option --macro-prefix.
72363
72364 2005-08-31  Bruno Haible  <bruno@clisp.org>
72365
72366         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72367         Also use new variables cached_lgpl, cached_libtool.
72368
72369 2005-08-31  Bruno Haible  <bruno@clisp.org>
72370
72371         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72372         always instantiating them.
72373
72374 2005-08-31  Bruno Haible  <bruno@clisp.org>
72375
72376         * gnulib-tool (func_import): Read the previous cached settings
72377         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72378         earlier added by gnulib but are now dropped. Warn when a gnulib file
72379         overwrites a non-gnulib file.
72380
72381 2005-08-31  Bruno Haible  <bruno@clisp.org>
72382
72383         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72384         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72385         projects that don't keep autogenerated files in CVS. Put into
72386         actioncmd only the specified modules, not the transitive closure.
72387
72388 2005-08-31  Bruno Haible  <bruno@clisp.org>
72389
72390         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72391         Create directories that shall be filled.
72392         (import): Don't look for gl_* macros in configure.ac. Recurse across
72393         all directories containing a gnulib-cache.m4 files, if meaningful.
72394
72395 2005-08-31  Bruno Haible  <bruno@clisp.org>
72396
72397         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72398         (import): Set seen_libtool when we see gl_LIBTOOL.
72399
72400 2005-08-31  Bruno Haible  <bruno@clisp.org>
72401
72402         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72403         declaration macro definitions from generated gnulib.m4.
72404
72405 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72406
72407         * lib/iconvme.h: Add prototype for iconv_alloc.
72408
72409 2005-08-29  Simon Josefsson  <jas@extundo.com>
72410
72411         * lib/iconvme.c: Fix errno.
72412
72413 2005-08-29  Bruno Haible  <bruno@clisp.org>
72414
72415         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72416         that it works when the directory contains spaces.
72417
72418 2005-08-29  Bruno Haible  <bruno@clisp.org>
72419
72420         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72421
72422 2005-08-29  Bruno Haible  <bruno@clisp.org>
72423
72424         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72425         Emit more advice.
72426
72427 2005-08-29  Bruno Haible  <bruno@clisp.org>
72428         and Stepan Kasal  <kasal@ucw.cz>
72429
72430         * check-module: If more parameters are given, check each of them
72431         separately; add more exceptions, as noted by Jim Meyering.
72432         (check_module): New procedure.
72433         (%exempt_header): Now contains all exceptions.
72434
72435 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72436
72437         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72438
72439 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72440
72441         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72442
72443 2005-08-28  Bruno Haible  <bruno@clisp.org>
72444
72445         * m4/gnulib-tool.m4: New file.
72446
72447 2005-08-27  Jim Meyering  <jim@meyering.net>
72448
72449         * modules/unistd-safer (Files): Add pipe-safer.c.
72450         * modules/fcntl-safer (Files): Add creat-safer.c.
72451
72452 2005-08-27  Jim Meyering  <jim@meyering.net>
72453
72454         * m4/stdlib-safer.m4: New file.  From coreutils.
72455         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72456         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72457         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72458         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72459         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72460
72461 2005-08-27  Jim Meyering  <jim@meyering.net>
72462
72463         * lib/fopen-safer.c: Merge minor changes from coreutils.
72464         * lib/dup-safer.c: Likewise.
72465         * lib/fd-safer.c: Likewise.
72466
72467         Merge from coreutils.
72468         * lib/stdio--.h: New file.
72469         * lib/stdlib--.h: New file.
72470         * lib/mkstemp-safer.c: New file.
72471
72472         GNU tar needs these.
72473         * lib/pipe-safer.c: New file.
72474         * lib/creat-safer.c: New file.
72475         * lib/fcntl--.h (creat): Define to creat_safer.
72476         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72477         * lib/unistd--.h (pipe): Define to pipe_safer.
72478         * lib/unistd-safer.h: Declare pipe_safer.
72479
72480 2005-08-26  Simon Josefsson  <jas@extundo.com>
72481
72482         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72483         Haible <bruno@clisp.org>.
72484
72485 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72486
72487         * lib/regex_internal.h: Remove all references to
72488         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72489         or better.
72490         (bitset_not, bitset_merge, bitset_not_merge):
72491         (bitset_mask, re_string_allocate, re_string_construct):
72492         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72493         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72494         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72495         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72496         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72497         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72498         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72499         (re_acquire_state_context):
72500         Remove unnecessary forward decls.
72501         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72502         Put __attribute at function definition,
72503         now that the function decl has been removed.
72504         * lib/regex_internal.c (re_string_peek_byte_case):
72505         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72506         Likewise.
72507
72508 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72509
72510         * m4/regex.m4: Add AC_PREREQ(2.50).
72511         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72512
72513 2005-08-25  Simon Josefsson  <jas@extundo.com>
72514
72515         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72516         __fsetlocking.
72517
72518 2005-08-25  Simon Josefsson  <jas@extundo.com>
72519
72520         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72521         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72522         GLIBC specific code.
72523
72524 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72525
72526         Make regex safe for g++.  This fixes one real bug (an "err"
72527         that should have been "*err").  g++ problem reported by
72528         Sam Steingold.
72529         * lib/regex_internal.h (re_calloc): New macro, consistent with
72530         re_malloc etc.  All callers of calloc changed to use re_calloc.
72531         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72532         not int.  All callers changed.
72533         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72534         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72535         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72536         (find_recover_state): Change "err" to "*err"; this fixes what
72537         appears to be a real bug.
72538         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72539         versus int.
72540
72541 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72542
72543         * modules/regex (Depends-on): Add malloc, since the code
72544         assumes that !malloc(0) means failure.
72545
72546 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72547
72548         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72549
72550         alloca modernization/simplification for regex.
72551         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72552         needs to be at the start of the file, and can be moved into
72553         regex_internal.h and simplified.
72554         * lib/regex_internal.h: Include <alloca.h>.
72555         (__libc_use_alloca) [!defined _LIBC]: New macro.
72556         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72557         now works outside glibc.
72558
72559 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72560
72561         * config/srclist.txt: Add glibc bugs 1241, 1245.
72562
72563 2005-08-25  Jim Meyering  <jim@meyering.net>
72564
72565         * lib/open-safer.c: Include <config.h>.
72566         Otherwise, we'd lose LARGEFILE support in any file using
72567         e.g. "fcntl--.h"
72568
72569 2005-08-25  Bruno Haible  <bruno@clisp.org>
72570
72571         * m4/minmax.m4: Require autoconf 2.52.
72572         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72573         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72574         alternatives of translit over the alphabet.
72575         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72576
72577 2005-08-24  Simon Josefsson  <jas@extundo.com>
72578
72579         * tests/test-getpass.c: New file.
72580
72581 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72582
72583         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72584         for GNU regex features.
72585
72586 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72589         * lib/regex.h (regerror): Likewise.
72590
72591         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72592         requires this.  (The code never needed it.)
72593
72594         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72595         All uses of recently-renamed identifiers changed to use the new,
72596         POSIX-compliant names.  The code will build and run just fine
72597         without these changes, but it's better to eat our own dog food
72598         and use the standard-conforming names.
72599
72600         * lib/regex.h: Fix a multitude of POSIX name space violations.
72601         These changes have an effect only for programs that define
72602         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72603         do not change anything for programs compiled in the normal way.
72604         Also, there is no effect on the ABI.
72605
72606         (_REGEX_SOURCE): New macro.
72607         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72608         defined and _GNU_SOURCE is not; this fixes a name space violation.
72609
72610         Rename the following macros to obey POSIX requirements.
72611         The old names are still visible as macros if _REGEX_SOURCE is defined.
72612         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72613         RE_BACKSLASH_ESCAPE_IN_LISTS.
72614         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72615         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72616         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72617         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72618         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72619         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72620         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72621         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72622         (REG_INTERVALS): renamed from RE_INTERVALS.
72623         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72624         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72625         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72626         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72627         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72628         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72629         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72630         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72631         RE_UNMATCHED_RIGHT_PAREN_ORD.
72632         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72633         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72634         (REG_DEBUG): renamed from RE_DEBUG.
72635         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72636         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72637         unusual, since we can't clash with the POSIX REG_ICASE.
72638         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72639         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72640         (REG_NO_SUB): renamed from RE_NO_SUB.
72641         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72642         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72643         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72644         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72645         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72646         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72647         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72648         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72649         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72650         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72651         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72652         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72653         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72654         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72655         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72656         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72657         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72658         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72659         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72660         (REG_FIXED): Renamed from REGS_FIXED.
72661         (REG_NREGS): Renamed from RE_NREGS.
72662
72663         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72664         of other REG_* macros, since POSIX says the user is allowed to
72665         #undef these macros selectively.
72666
72667         (reg_errcode_t): Update comment stating what other tables need
72668         to be consistent.
72669
72670         Rename the following enum values to obey POSIX requirements.
72671         The old names are still visible as macros.
72672         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72673         is not defined, since GNU is supposed to be a superset of POSIX as
72674         much as possible, and since we want reg_errcode_t to be a signed
72675         type for implementation consistency.
72676         (_REG_NOERROR): Renamed from REG_NOERROR.
72677         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72678         (_REG_BADPAT): Renamed from REG_BADPAT.
72679         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72680         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72681         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72682         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72683         (_REG_EBRACK): Renamed from REG_EBRACK.
72684         (_REG_EPAREN): Renamed from REG_EPAREN.
72685         (_REG_EBRACE): Renamed from REG_EBRACE.
72686         (_REG_BADBR): Renamed from REG_BADBR.
72687         (_REG_ERANGE): Renamed from REG_ERANGE.
72688         (_REG_ESPACE): Renamed from REG_ESPACE.
72689         (_REG_BADRPT): Renamed from REG_BADRPT.
72690         (_REG_EEND): Renamed from REG_EEND.
72691         (_REG_ESIZE): Renamed from REG_ESIZE.
72692         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72693         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72694         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72695         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72696         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72697
72698         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72699         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72700         changed.  But support the old name if the new one is not defined
72701         and if _REGEX_SOURCE.
72702
72703         Change the following member names in struct re_pattern_buffer.
72704         The old names are still supported if !_REGEX_SOURCE.
72705         The new names are always supported, regardless of _REGEX_SOURCE.
72706         (re_buffer): Renamed from buffer.
72707         (re_allocated): Renamed from allocated.
72708         (re_used): Renamed from used.
72709         (re_syntax): Renamed from syntax.
72710         (re_fastmap): Renamed from fastmap.
72711         (re_translate): Renamed from translate.
72712         (re_can_be_null): Renamed from can_be_null.
72713         (re_regs_allocated): Renamed from regs_allocated.
72714         (re_fastmap_accurate): Renamed from fastmap_accurate.
72715         (re_no_sub): Renamed from no_sub.
72716         (re_not_bol): Renamed from not_bol.
72717         (re_not_eol): Renamed from not_eol.
72718         (re_newline_anchor): Renamed from newline_anchor.
72719
72720         Change the following member names in struct re_registers.
72721         The old names are still supported if !_REGEX_SOURCE.
72722         The new names are always supported, regardless of _REGEX_SOURCE.
72723         (rm_num_regs): Renamed from num_regs.
72724         (rm_start): Renamed from start.
72725         (rm_end): Renamed from end.
72726
72727         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72728         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72729         Prepend __ to parameter names.
72730
72731         Undo yesterday's changes.
72732
72733 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72736         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72737         lib/regex.c.
72738
72739 2005-08-24  Jim Meyering  <jim@meyering.net>
72740
72741         Sync from coreutils.
72742         * m4/fcntl-safer.m4: New file.
72743
72744         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72745         and object files for this module.
72746
72747 2005-08-24  Jim Meyering  <jim@meyering.net>
72748
72749         Sync from coreutils.
72750         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72751
72752 2005-08-24  Jim Meyering  <jim@meyering.net>
72753
72754         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72755         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72756
72757 2005-08-24  Jim Meyering  <jim@meyering.net>
72758
72759         * modules/fcntl-safer: New module.
72760         * modules/fts (Depends-on): Add fcntl-safer.
72761         * MODULES.html.sh (File descriptor based Input/Output):
72762         Add fcntl-safer.
72763
72764 2005-08-24  Bruno Haible  <bruno@clisp.org>
72765
72766         Support for unit test modules.
72767         * modules/README: Mention tests modules.
72768         * modules/TEMPLATE-TESTS: New file.
72769         * gnulib-tool: New options --extract-tests-module, --with-tests and
72770         --tests-base (unused for the moment).
72771         (testsbase, inctests): New variables.
72772         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72773         (func_verify_module): Exclude TEMPLATE-TESTS.
72774         (func_verify_nontests_module, func_verify_tests_module): New functions.
72775         (func_get_dependencies): Add implicit dependency for tests modules.
72776         (func_get_tests_module): New function.
72777         (func_modules_transitive_closure): When --with-tests was specified,
72778         include the unit tests as well, unless explicitly avoided.
72779         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72780         (func_emit_tests_Makefile_am): New function.
72781         (func_create_testdir): When --with-tests was specified, emit a
72782         tests/ directory.
72783         * MODULES.html.sh (Future developments): Update.
72784
72785 2005-08-24  Bruno Haible  <bruno@clisp.org>
72786
72787         * modules/tls-tests: New file.
72788         * tests/test-tls.c: New file, from GNU gettext.
72789
72790 2005-08-24  Bruno Haible  <bruno@clisp.org>
72791
72792         * modules/lock-tests: New file.
72793         * tests/test-lock.c: New file, from GNU gettext.
72794
72795 2005-08-24  Bruno Haible  <bruno@clisp.org>
72796
72797         * lib/lock.h: Add multiple inclusion guard.
72798         * lib/tls.h: Add multiple inclusion guard.
72799
72800 2005-08-24  Bruno Haible  <bruno@clisp.org>
72801
72802         * gnulib-tool: Add support for the --aux-dir option to
72803         --create-testdir, --create-megatestdir, --test, --megatest.
72804         (func_create_testdir, func_create_megatestdir): Optionally emit a
72805         AC_CONFIG_AUX_DIR directive.
72806         (create-testdir, create-megatestdir, test, megatest): Provide a
72807         default value for $auxdir.
72808
72809 2005-08-24  Bruno Haible  <bruno@clisp.org>
72810
72811         * gnulib-tool (import): Use compound statement instead of subshell
72812         where possible.
72813
72814 2005-08-24  Bruno Haible  <bruno@clisp.org>
72815
72816         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72817
72818 2005-08-24  Bruno Haible  <bruno@clisp.org>
72819
72820         * gnulib-tool (func_version): Update.
72821
72822 2005-08-24  Bruno Haible  <bruno@clisp.org>
72823
72824         * gnulib-tool (func_import, func_create_testdir,
72825         func_create_megatestdir): Quote all autoconf macro arguments.
72826
72827 2005-08-24  Bruno Haible  <bruno@clisp.org>
72828
72829         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72830         option --force, because --force causes the aclocal.m4 of each
72831         subdirectory to be newer than the corresponding config.h.in.
72832
72833 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72834
72835         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72836         All contents moved to gl_REGEX.
72837         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72838         assume that it does.
72839
72840 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         * lib/regex.h (REG_NOSYS)
72843         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72844         Define, since POSIX requires it as of 2001.
72845         (_REG_ENOSYS)
72846         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72847         New private symbol, used to keep the enum signed in all cases.
72848         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72849         Youngman in
72850         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72851
72852         * lib/regex_internal.c (re_string_skip_chars, register_state):
72853         (calc_state_hash):
72854         Remove forward decls; no longer needed now that we use prototypes.
72855         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72856         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72857         (clean_state_log_if_needed): Likewise.
72858
72859 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         * config/srclist.txt: Add glibc bugs 1231-1233.
72862
72863 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         Fix problems reported by Sam Steingold in
72866         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72867         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72868         assumed that reg_errcode_t is a signed type, which is not
72869         necessarily true if _XOPEN_SOURCE is not defined.
72870         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72871         since some compilers warn about it otherwise.
72872
72873 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72876         (init_word_char, create_initial_state, duplicate_node_closure):
72877         (fetch_token, peek_token_bracket, build_range_exp):
72878         (build_collating_symbol): Remove forward decls; no longer needed
72879         now that we use prototypes.
72880
72881         * lib/regcomp.c:
72882         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72883         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72884         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72885         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72886         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72887         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72888         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72889         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72890         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72891         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72892         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72893         (build_charclass, build_charclass_op, fetch_number, create_tree):
72894         (create_token_tree, mark_opt_subexp, duplicate_tree):
72895         Use prototypes rather than old-style definitions.
72896
72897         * lib/regex_internal.c:
72898         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72899         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72900         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72901         (re_string_reconstruct, re_string_peek_byte_case):
72902         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72903         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72904         (re_node_set_init_copy, re_node_set_add_intersect):
72905         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72906         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72907         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72908         (re_acquire_state, re_acquire_state_context, register_state):
72909         (create_ci_newstate, create_cd_newstate, free_state):
72910         Likewise.
72911         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72912         re_search_2):
72913         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72914         (re_search_internal, prune_impossible_nodes):
72915         (acquire_init_state_context, check_matching, static):
72916         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72917         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72918         (update_regs, sift_states_backward, build_sifted_states):
72919         (clean_state_log_if_needed, merge_state_array):
72920         (update_cur_sifted_state, add_epsilon_src_nodes):
72921         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72922         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72923         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72924         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72925         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72926         (check_arrival, check_arrival_add_next_nodes):
72927         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72928         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72929         (check_node_accept_bytes, check_node_accept, extend_buffers):
72930         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72931         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72932         (sift_ctx_init):
72933         Likewise.
72934
72935         * lib/regex_internal.h:
72936         (re_string_allocate, re_string_construct, re_string_reconstruct):
72937         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72938         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72939         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72940         (re_string_context_at, re_string_peek_byte_case):
72941         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72942         is defined, since we now use prototypes always.
72943
72944         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72945         C89 or better.  All uses removed.
72946
72947 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72948
72949         * config/srclist.txt: Add glibc bugs 1220-1227.
72950
72951 2005-08-20  Jim Meyering  <jim@meyering.net>
72952
72953         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72954         of unused local, dfa.
72955
72956 2005-08-20  Bruno Haible  <bruno@clisp.org>
72957
72958         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72959
72960 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72963         (re_node_set_insert_last, re_dfa_add_node):
72964         Rename local variables to avoid GCC shadowing warnings.
72965
72966 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72969         [defined lint]: Suppress bogus uninitialized-variable warnings.
72970
72971         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72972         and let the caller return REG_ESPACE if out of space.  This
72973         removes an uninitialied-variable warning with GCC 4.0.1, and also
72974         avoids taking the address of a local variable.  All callers
72975         changed.
72976
72977 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72980         $LIBCSRC/posix/regexec.c.
72981         Add glibc bug 1217 for regcomp.c.
72982
72983 2005-08-19  Jim Meyering  <jim@meyering.net>
72984
72985         * lib/regexec.c (proceed_next_node): Redo local variables to
72986         avoid GCC shadowing warnings.
72987
72988 2005-08-18  Bruno Haible  <bruno@clisp.org>
72989
72990         * lib/strstr.c (strstr): Fix return value in multibyte case.
72991         * lib/strcasestr.c (strcasestr): Likewise.
72992
72993 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72994
72995         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72996
72997 2005-08-17  Jim Meyering  <jim@meyering.net>
72998
72999         Make the %s format (seconds since the epoch) work for a negative
73000         number and when used with a zero-padded field width, e.g. %015s.
73001
73002         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73003         label so that it precedes the code to set `digits'.  Otherwise,
73004         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73005         print `00-22'.  Now, it prints `-0022', as it should.
73006
73007 2005-08-17  Bruno Haible  <bruno@clisp.org>
73008
73009         * modules/strstr (Files): Add m4/mbrtowc.m4.
73010         (Depends-on): Add mbuiter.
73011
73012 2005-08-17  Bruno Haible  <bruno@clisp.org>
73013
73014         * modules/strcasestr: New file.
73015         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73016         strcasestr.
73017
73018 2005-08-17  Bruno Haible  <bruno@clisp.org>
73019
73020         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73021
73022 2005-08-17  Bruno Haible  <bruno@clisp.org>
73023
73024         * modules/mbuiter: New file.
73025         * MODULES.html.sh (Extended multibyte and wide character utilities):
73026         Add mbuiter.
73027
73028 2005-08-17  Bruno Haible  <bruno@clisp.org>
73029
73030         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73031         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73032
73033 2005-08-17  Bruno Haible  <bruno@clisp.org>
73034
73035         * m4/strcasestr.m4: New file.
73036
73037 2005-08-17  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73040         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73041
73042 2005-08-17  Bruno Haible  <bruno@clisp.org>
73043
73044         * lib/strcasestr.h: New file.
73045         * lib/strcasestr.c: New file.
73046
73047 2005-08-17  Bruno Haible  <bruno@clisp.org>
73048
73049         * lib/strcasecmp.c: Use mbuiter.h.
73050
73051 2005-08-17  Bruno Haible  <bruno@clisp.org>
73052
73053         * lib/mbuiter.h: New file.
73054
73055 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73056
73057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73058         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73059         and gl_GETOPT are both invoked via different paths (as happens
73060         with GNU tar CVS because it uses both argp and getopt), the former
73061         wins.
73062
73063 2005-08-16  Bruno Haible  <bruno@clisp.org>
73064
73065         * modules/tls: New file.
73066         * MODULES.html.sh (Multithreading): Add tls.
73067
73068 2005-08-16  Bruno Haible  <bruno@clisp.org>
73069
73070         * modules/strnlen1: New file.
73071         * MODULES.html.sh (String handling): Add strnlen1.
73072
73073 2005-08-16  Bruno Haible  <bruno@clisp.org>
73074
73075         * modules/strcase (Files): Add m4/mbrtowc.m4.
73076         (Depends-on): Add strnlen1, mbchar.
73077
73078 2005-08-16  Bruno Haible  <bruno@clisp.org>
73079
73080         * modules/mbiter: New file.
73081         * MODULES.html.sh (Extended multibyte and wide character utilities):
73082         Add mbiter.
73083
73084 2005-08-16  Bruno Haible  <bruno@clisp.org>
73085
73086         * modules/mbfile: New file.
73087         * MODULES.html.sh (Extended multibyte and wide character utilities):
73088         Add mbfile.
73089
73090 2005-08-16  Bruno Haible  <bruno@clisp.org>
73091
73092         * modules/mbchar: New file.
73093         * MODULES.html.sh (Extended multibyte and wide character utilities):
73094         New section.
73095
73096 2005-08-16  Bruno Haible  <bruno@clisp.org>
73097
73098         * m4/tls.m4: New file, from GNU gettext.
73099
73100 2005-08-16  Bruno Haible  <bruno@clisp.org>
73101
73102         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73103         always.
73104         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73105
73106 2005-08-16  Bruno Haible  <bruno@clisp.org>
73107
73108         * m4/mbiter.m4: New file.
73109
73110 2005-08-16  Bruno Haible  <bruno@clisp.org>
73111
73112         * m4/mbfile.m4: New file.
73113
73114 2005-08-16  Bruno Haible  <bruno@clisp.org>
73115
73116         * m4/mbchar.m4: New file.
73117
73118 2005-08-16  Bruno Haible  <bruno@clisp.org>
73119
73120         * lib/tls.h: New file, from GNU gettext.
73121         * lib/tls.c: New file, from GNU gettext.
73122
73123 2005-08-16  Bruno Haible  <bruno@clisp.org>
73124
73125         * lib/strnlen1.h: New file.
73126         * lib/strnlen1.c: New file.
73127
73128 2005-08-16  Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73131         (mbi_init): Update.
73132         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73133         NUL byte, not after it.
73134
73135 2005-08-16  Bruno Haible  <bruno@clisp.org>
73136
73137         * lib/strcase.h (strcasecmp): Add note in comments.
73138         * lib/strncasecmp.c: Use code from strcasecmp.c.
73139         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73140         (strcasecmp): Work correctly in multibyte locales.
73141
73142 2005-08-16  Bruno Haible  <bruno@clisp.org>
73143
73144         * lib/mbiter.h: New file.
73145
73146 2005-08-16  Bruno Haible  <bruno@clisp.org>
73147
73148         * lib/mbfile.h: New file.
73149
73150 2005-08-16  Bruno Haible  <bruno@clisp.org>
73151
73152         * lib/mbchar.h: New file.
73153         * lib/mbchar.c: New file.
73154
73155 2005-08-16  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73158         the valid ones. Makes the comparison operations transitive:
73159         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73160         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73161
73162 2005-08-15  Simon Josefsson  <jas@extundo.com>
73163
73164         * modules/ssize_t (License): Change to 'unlimited'.
73165
73166         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73167
73168 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73171         Add comments for each pending glibc patch.
73172
73173 2005-08-15  Bruno Haible  <bruno@clisp.org>
73174
73175         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73176         __cplusplus is defined.
73177
73178 2005-08-14  Jim Meyering  <jim@meyering.net>
73179
73180         Sync from coreutils.
73181
73182         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73183         Use the hash-table-based cycle-detection code not just when
73184         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73185         Reported by James Youngman in
73186         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73187         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73188         FTS_TIGHT_CYCLE_CHECK.
73189         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73190         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73191         once again.
73192         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73193         * lib/fts.c (fd_safer): Remove decl.
73194         Include fcntl--.h rather than unistd-safer.h
73195         (fts_safe_changedir): Don't call fd_safer; no longer needed
73196         now that we include fcntl--.h.
73197
73198 2005-08-12  Simon Josefsson  <jas@extundo.com>
73199
73200         * modules/getndelim2: Use ssize_t module.
73201         * modules/getnline: Likewise.
73202         * modules/safe-read: Likewise.
73203         * modules/xreadlink: Likewise.
73204
73205         * modules/ssize_t: New file.
73206
73207 2005-08-12  Simon Josefsson  <jas@extundo.com>
73208
73209         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73210
73211 2005-08-12  Simon Josefsson  <jas@extundo.com>
73212
73213         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73214         ssize_t.
73215
73216 2005-08-12  Simon Josefsson  <jas@extundo.com>
73217
73218         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73219         readline, getdelim and check_version.
73220         (Support for systems lacking ISO C 99: Sizes of integer types):
73221         Add size_max.
73222
73223 2005-08-12  Bruno Haible  <bruno@clisp.org>
73224
73225         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73226
73227 2005-08-11  Simon Josefsson  <jas@extundo.com>
73228
73229         * modules/readline: New file.
73230
73231         * modules/strnlen (Files): Add strnlen.h.
73232
73233 2005-08-11  Simon Josefsson  <jas@extundo.com>
73234
73235         * m4/readline.m4: New file.
73236
73237 2005-08-11  Simon Josefsson  <jas@extundo.com>
73238
73239         * lib/readline.h, readline.c: New file.
73240
73241 2005-08-11  Simon Josefsson  <jas@extundo.com>
73242
73243         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73244         gl_AVOID.
73245
73246 2005-08-11  Bruno Haible  <bruno@clisp.org>
73247
73248         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73249
73250 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73251
73252         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73253
73254 2005-08-10  Simon Josefsson  <jas@extundo.com>
73255
73256         * tests/test-iconvme.c: New file.
73257
73258 2005-08-10  Simon Josefsson  <jas@extundo.com>
73259
73260         * m4/strnlen.m4: New file.
73261
73262         * m4/strndup.m4: Don't check for strnlen declaration, done in
73263         strnlen.m4.
73264
73265 2005-08-10  Simon Josefsson  <jas@extundo.com>
73266
73267         * lib/strndup.c: Use strnlen.h.
73268
73269         * lib/strnlen.h: New file.
73270
73271 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73272
73273         * README: Typos.
73274
73275 2005-08-02  Simon Josefsson  <jas@extundo.com>
73276
73277         * modules/readline: New file.
73278
73279 2005-08-02  Simon Josefsson  <jas@extundo.com>
73280
73281         * modules/getdelim: New file.
73282
73283         * modules/getline: Rewrite, don't use getndelim2.
73284
73285 2005-08-02  Simon Josefsson  <jas@extundo.com>
73286
73287         * m4/getline.m4: Separate out getdelim stuff into separate module.
73288
73289         * m4/getdelim.m4: New file.
73290
73291 2005-08-02  Simon Josefsson  <jas@extundo.com>
73292
73293         * lib/getline.h, getline.c: Rewrite.
73294
73295         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73296
73297 2005-07-31  Bruno Haible  <bruno@clisp.org>
73298
73299         * lib/lock.h (gl_lock_initializer): New macro.
73300         (gl_lock_define_initialized): Use it.
73301         (gl_rwlock_initializer): New macro.
73302         (gl_rwlock_define_initialized): Use it.
73303         (gl_recursive_lock_initializer): New macro.
73304         (gl_recursive_lock_define_initialized): Use it.
73305
73306 2005-07-30  Karl Berry  <karl@gnu.org>
73307
73308         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73309         Report from Ben Pfaff, regarding getopt.
73310
73311 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73312
73313         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73314         normal way.
73315         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73316         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73317         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73318         (gl_GETOPT): Use the new macros.  Most of the implementation
73319         is moved to the new macros.  This is for programs like Emacs
73320         that don't want all the functionality of gl_GETOPT.
73321
73322 2005-07-26  Bruno Haible  <bruno@clisp.org>
73323
73324         * m4/lock.m4: Update from GNU gettext.
73325
73326 2005-07-26  Bruno Haible  <bruno@clisp.org>
73327
73328         * lib/lock.h: Update from GNU gettext.
73329         * lib/lock.c: Update from GNU gettext.
73330
73331 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73334         obsolescent AC_TRY_RUN.  Include the default includes files, for
73335         'exit'.
73336
73337 2005-07-24  Bruno Haible  <bruno@clisp.org>
73338
73339         * modules/visibility: New file.
73340         * MODULES.html.sh (Misc): Add visibility.
73341
73342 2005-07-24  Bruno Haible  <bruno@clisp.org>
73343
73344         * m4/visibility.m4: New file.
73345
73346 2005-07-24  Bruno Haible  <bruno@clisp.org>
73347
73348         * doc/visibility.texi: New file.
73349
73350 2005-07-22  Bruno Haible  <bruno@clisp.org>
73351
73352         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73353         $(ALLOCA_H), redundant through BUILT_SOURCES.
73354         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73355         redundant through BUILT_SOURCES.
73356         * modules/byteswap (Makefile.am): Remove explicit dependency on
73357         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73358         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73359         $(FNMATCH_H), redundant through BUILT_SOURCES.
73360         * modules/getopt (Makefile.am): Remove explicit dependency on
73361         $(GETOPT_H), redundant through BUILT_SOURCES.
73362         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73363         redundant through BUILT_SOURCES.
73364         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73365         redundant through BUILT_SOURCES.
73366         * modules/stdbool (Makefile.am): Remove explicit dependency on
73367         $(STDBOOL_H), redundant through BUILT_SOURCES.
73368         * modules/stdint (Makefile.am): Remove explicit dependency on
73369         $(STDINT_H), redundant through BUILT_SOURCES.
73370         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73371         Remove explicit dependency on $(SYSEXITS_H).
73372         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73373
73374 2005-07-18  Simon Josefsson  <jas@extundo.com>
73375
73376         * lib/check-version.c (check_version): Accept identical versions too.
73377
73378 2005-07-18  Bruno Haible  <bruno@clisp.org>
73379
73380         * modules/lock: New file.
73381         * MODULES.html.sh (Multithreading): New section.
73382
73383 2005-07-18  Bruno Haible  <bruno@clisp.org>
73384
73385         * m4/lock.m4: New file, from GNU gettext.
73386
73387 2005-07-18  Bruno Haible  <bruno@clisp.org>
73388
73389         * lib/lock.h: New file, from GNU gettext.
73390         * lib/lock.c: New file, from GNU gettext.
73391
73392 2005-07-18  Bruno Haible  <bruno@clisp.org>
73393
73394         * lib/lock.h (gl_once_t): New type.
73395         (gl_once_define, gl_once): New macros.
73396         * lib/lock.c (fresh_once): New variable.
73397         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73398         functions.
73399
73400 2005-07-16  Simon Josefsson  <jas@extundo.com>
73401
73402         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73403         workaround, suggested by Bruno.
73404
73405 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * modules/xalloc (Depends-on): Add xalloc-die.
73408         * modules/xvasprintf (Depends-on): Add xalloc-die.
73409
73410 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73411
73412         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73413         with a minor change.
73414
73415 2005-07-15  Bruno Haible  <bruno@clisp.org>
73416
73417         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73418         When using lib/poll.c, define poll as rpl_poll.
73419
73420 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73421
73422         * modules/argp (Depends-on): Remove unlocked-io.
73423
73424 2005-07-14  Derek Price  <derek@ximbiot.com>
73425
73426         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73427         for glob symlink bug.
73428
73429 2005-07-14  Bruno Haible  <bruno@clisp.org>
73430
73431         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73432         Instead, test for *_unlocked function declarations directly.
73433
73434 2005-07-11  Simon Josefsson  <jas@extundo.com>
73435
73436         * modules/size_max: New file.
73437
73438         * modules/xsize: Depend on size_max module for size_max.m4.
73439
73440 2005-07-11  Simon Josefsson  <jas@extundo.com>
73441
73442         * lib/size_max.h: New file.
73443
73444 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73447         copyright symbol and the year.
73448         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73449         (version_etc_va): Use parameterized copyright notice.
73450         Reword to conform to the current GNU coding standards.
73451
73452 2005-07-11  Karl Berry  <karl@gnu.org>
73453
73454         * doc/gnulib.texi (Quoting): new node.
73455         (Initial import): more info, from Patrice.
73456
73457 2005-07-11  Bruno Haible  <bruno@clisp.org>
73458
73459         * gnulib-tool (func_usage): Document option --avoid.
73460         (Command line options): Handle --avoid.
73461         (func_acceptable): New function.
73462         (func_modules_transitive_closure): Use it.
73463
73464 2005-07-11  Bruno Haible  <bruno@clisp.org>
73465
73466         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73467         Reported by Jim Meyering.
73468
73469 2005-07-10  Bruno Haible  <bruno@clisp.org>
73470
73471         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73472         Needed when size_t is smaller than 'unsigned int'.
73473         Reported by Paul Eggert.
73474
73475 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73476
73477         * modules/argp (Depends-on): Add unlocked-io
73478
73479 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73480
73481         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73482         block of defines.
73483
73484 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73487         fix now.
73488
73489 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73490         and Paul Eggert  <eggert@cs.ucla.edu>
73491
73492         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73493         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73494
73495 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         * modules/regex (Files): Add lib/regex_internal.c,
73498         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73499         (Depends-on): Add extensions.
73500         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73501
73502 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73505         pathconf.
73506         * m4/same.m4 (gl_SAME): Likewise.
73507         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73508
73509         * m4/regex.m4: Adjust to new libc regex implementation.
73510         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73511         all the .c and .h parts of (the new) regex.
73512         Quote the m4 stuff better.
73513         Check for RE_ICASE bug of old gnulib.
73514         Check for REG_STARTEND of recent libc.
73515         Rename local variables from jm_* to gl_*.
73516         Quote operand of "test -f".
73517         Say "recent enough" version of libc, not "version 2".
73518         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73519         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73520         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73521         Remove check for btowc, isascii.
73522         Require AM_LANGINFO_CODESET.
73523
73524 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73525
73526         * lib/regex.c, regex.h: Sync from libc.
73527         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73528         * lib/regexec.c:
73529         New files, synced from libc, except that regex_internal.h
73530         currently has a small porting fix.
73531
73532 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73533
73534         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73535         regex_internal.c, regexec.c.
73536         Add regex_internal.h too, but as a comment, since the libc version
73537         is currently broken in gnulib mode.
73538
73539 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73540
73541         Support programs like Emacs that use gnulib but not gettext.
73542         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73543         * modules/gettext-h: New file.
73544         * modules/gettext (Files): Remove lib/gettext.h.
73545         (Depends-on): Add gettext-h.
73546         (Makefile.am): Remove lib_SOURCES.
73547         * modules/argmatch, modules/c-stack, modules/closeout:
73548         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73549         * modules/execute, modules/file-type, modules/getaddrinfo:
73550         * modules/getopt, modules/human, modules/javacomp:
73551         * modules/javaexec, modules/mkdir-p, modules/obstack:
73552         * modules/openat, modules/pagealign_alloc, modules/pipe:
73553         * modules/quotearg, modules/regex, modules/rpmatch:
73554         * modules/unicodeio, modules/userspec, modules/version-etc:
73555         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73556         * modules/xsetenv:
73557         Depend on gettext-h, not gettext.
73558
73559 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * gnulib-tool (func_import): Add support for 'public domain' license.
73562         * modules/alloca, modules/atexit, modules/memmove:
73563         Now public domain, not GPL.
73564         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73565         * modules/realloc, modules/strerror, modules/strtod:
73566         Now LGPL, not GPL.
73567
73568 2005-07-05  Bruno Haible  <bruno@clisp.org>
73569
73570         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73571         autoconf CVS. Needed for mingw.
73572
73573 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         Remove the dependency of the strftime module on the tzset module.
73576         * modules/strftime (Depends-on): Remove dependency on tzset.
73577
73578 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         Remove the dependency of the strftime module on the tzset module.
73581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73582         gl_FUNC_TZSET_CLOBBER.
73583
73584 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         Remove the dependency of the strftime module on the tzset module.
73587         * lib/strftime.c (my_strftime)
73588         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73589         Copy the input structure, to work around some of the bug with
73590         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73591         Solaris releases, you should also use the tzset module, but we won't
73592         require it as a dependency any more since we don't want LGPLed code
73593         to depend on GPLed code.
73594
73595 2005-07-02  Jim Meyering  <jim@meyering.net>
73596
73597         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73598         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73599         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73600         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73601
73602 2005-07-02  Jim Meyering  <jim@meyering.net>
73603
73604         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73605
73606 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73607
73608         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73609         declares only 'struct timespec;' (!).
73610
73611 2005-07-01  Jim Meyering  <jim@meyering.net>
73612
73613         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73614         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73615         * lib/save-cwd.c, tempname.c:
73616         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73617         and don't include <sys/file.h>).
73618
73619 2005-06-29  Jim Meyering  <jim@meyering.net>
73620
73621         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73622         type name.  Use the variable name instead.
73623         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73624         Likewise.
73625
73626 2005-06-28  Simon Josefsson  <jas@extundo.com>
73627
73628         * modules/check-version (Files): Add check-version.m4.
73629
73630 2005-06-28  Simon Josefsson  <jas@extundo.com>
73631
73632         * m4/check-version.m4: New file, suggested by Jim Meyering
73633         <jim@meyering.net>.
73634
73635 2005-06-28  Simon Josefsson  <jas@extundo.com>
73636
73637         * lib/check-version.h, lib/check-version.c: New files.
73638
73639 2005-06-28  Simon Josefsson  <jas@extundo.com>
73640
73641         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73642         collision with global variable.  Better indentation.  Don't
73643         increment buffer pointer beyond buffer end.  Based on comments
73644         from Paul Eggert <eggert@cs.ucla.edu>.
73645
73646         * lib/base64.h: Indent.
73647
73648 2005-06-28  Simon Josefsson  <jas@extundo.com>
73649
73650         * doc/gnulib.texi (Library version handling): New section.
73651
73652 2005-06-28  Jim Meyering  <jim@meyering.net>
73653
73654         * check-module (find_included_lib_files): Hard-code another
73655         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73656         but modules/fts-lgpl (correctly) does not list those files.
73657
73658         * modules/canonicalize (Files): Add lib/pathmax.h.
73659
73660 2005-06-25  Simon Josefsson  <jas@extundo.com>
73661
73662         * modules/check-version: New file.
73663
73664 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73667         initializer of struct addrinfo, as an indication that we don't
73668         care how many members the structure has.
73669
73670 2005-06-24  Derek Price  <derek@ximbiot.com>
73671         and Bruno Haible  <bruno@clisp.org>
73672
73673         Remove stat module & update lstat.
73674         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73675         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73676         * m4/stat.m4: Remove this file.
73677
73678 2005-06-24  Derek Price  <derek@ximbiot.com>
73679         and Bruno Haible  <bruno@clisp.org>
73680
73681         Remove stat module & update lstat.
73682         * lib/stat.c: Remove this file...
73683         (slash_aware_lstat): ...moving this content and its support...
73684         * lib/lstat.c (rpl_lstat): ...into here.
73685         * lib/lstat.h: New file.
73686
73687 2005-06-24  Derek Price  <derek@ximbiot.com>
73688         and Bruno Haible  <bruno@clisp.org>
73689
73690         Remove stat module & update lstat.
73691         * config/srclist.txt (libc sources): Remove stat.
73692
73693 2005-06-24  Derek Price  <derek@ximbiot.com>
73694         and Bruno Haible  <bruno@clisp.org>
73695
73696         Remove stat module & update lstat.
73697         * MODULES.html.sh (stat): Remove.
73698         * MODULES.html: Regenerated.
73699         * modules/lstat (Description): Correct function name.
73700         (Files): Add "lstat.h".
73701         (Depends-on): Remove stat, add xalloc, stat-macros.
73702         * modules/stat: Remove this file.
73703         (Include): Add "lstat.h", remove <sys/stat.h>.
73704
73705 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73708         (ranged_convert): Don't save conversion in a temporary struct.
73709         This causes a warning with GCC 4.0.0, and anyway in the typical
73710         case it's not worth the extra 100 bytes or so of code.
73711         (ranged_convert, __mktime_internal): When calling a function via a
73712         pointer P, use P () rather than (*P) (), as we now assume C89 or
73713         better.
73714
73715 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73718         "who -r" failed to give output.  Problem reported by Tim Waugh.
73719
73720         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73721         (xcalloc): Use it to avoid needless tests.
73722         Problem reported by Jim Meyering.
73723
73724 2005-06-20  Derek Price  <derek@ximbiot.com>
73725
73726         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73727         unnecessary for Autoconfs > 2.59c.
73728
73729 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73730
73731         * lib/argp.h (__option_is_short): Check upper limit of
73732         __key. Isprint() requires its argument to have the value
73733         of an unsigned char or EOF.
73734
73735 2005-06-16  Jim Meyering  <jim@meyering.net>
73736
73737         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73738         when either N or S is zero.
73739
73740 2005-06-16  Derek Price  <derek@ximbiot.com>
73741
73742         * m4/bison.m4: Declare YACC & YFLAGS precious.
73743
73744 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73747         multibyte string or pattern, fall back on unibyte matching.
73748         Problem reported by James Youngman.
73749
73750 2005-06-08  Bruno Haible  <bruno@clisp.org>
73751
73752         * modules/csharpcomp: New file.
73753         * MODULES.html.sh (C#): Add csharpcomp.
73754
73755 2005-06-08  Bruno Haible  <bruno@clisp.org>
73756
73757         * m4/csharpcomp.m4: New file, from GNU gettext.
73758
73759 2005-06-08  Bruno Haible  <bruno@clisp.org>
73760
73761         * lib/csharpcomp.h: New file, from GNU gettext.
73762         * lib/csharpcomp.c: New file, from GNU gettext.
73763         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73764
73765 2005-06-08  Bruno Haible  <bruno@clisp.org>
73766
73767         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73768         warning on mingw.
73769
73770 2005-06-07  Derek Price  <derek@ximbiot.com>
73771
73772         Sync from CVS.
73773         * lib/glob_.h: Indent nested #ifdef.
73774
73775 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         Sync from coreutils.
73778         Use "file name" when talking about file names, instead of "filename"
73779         or "path", as per the GNU coding standards.
73780         * lib/mkdir-p.c: Renamed from makepath.c.
73781         (make_dir_parents): Renamed from make_path.  All callers changed.
73782         * lib/mkdir-p.h: Likewise.  All includers changed.
73783         * lib/filenamecat.c: Renamed from path-concat.c.
73784         (file_name_concat): Renamed from path_concat.  All callers changed.
73785         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73786         * lib/filenamecat.h: Likewise.  All includers changed.
73787         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73788         in comments or local variable names.
73789         * lib/basename.c: Likewise.
73790         * lib/canonicalize.c, canonicalize.h: Likewise.
73791         * lib/dirname.c, dirname.h: Likewise.
73792         * lib/euidaccess.c: Likewise.
73793         * lib/exclude.c: Likewise
73794         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73795         * lib/fsusage.c, fsuage.h: Likewise.
73796         * lib/fts.c, fts_.h: Likewise.
73797         * lib/getcwd.c: Likewise.
73798         * lib/getloadavg.c: Likewise.
73799         * lib/mkstemp.c: Likewise.
73800         * lib/mountlist.c, mountlist.h: Likewise.
73801         * lib/openat.c, openat.h: Likewise.
73802         * lib/readlink-stub.c: Likewise.
73803         * lib/readutmp.c, readutmp.h: Likewise.
73804         * lib/rename.c: Likewise.
73805         * lib/rmdir.c: Likewise.
73806         * lib/same.c: Likewise.
73807         * lib/savedir.c: Likewise.
73808         * lib/stripslash.c: Likewise.
73809         * lib/tempname.c: Likewise.
73810         * lib/xreadlink.c: Likewise.
73811         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73812         All uses changed.
73813         * lib/exclude.h: Likewise.
73814
73815         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73816         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73817         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73818         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73819         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73820         files have been getting away with it for years (MORE/BSD 4.3
73821         is extinct now).
73822         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73823         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73824
73825         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73826         Define to 256, not 255, as per modern POSIX.
73827
73828 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         Sync from coreutils.
73831         Use "file name" when talking about file names, instead of "filename"
73832         or "path", as per the GNU coding standards.
73833         * MODULES.html.sh: mkdir-p renamed from makepath.
73834         filenamecat renamed from path-concat.
73835         * modules/filenamecat: Renamed from modules/path-concat.
73836         (Files): filenamecat.h and filenamecat.c renamed from
73837         path-concat.h and path-concat.c.
73838         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73839         (Include): filenamecat.h, not path-concat.h.
73840         * modules/mkdir-p: Renamed from modules/makepath.
73841         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73842         makepath.c.
73843         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73844         (Include): mkdir-p.h, not makepath.h.
73845
73846 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         Sync from coreutils.
73849         * m4/mkdir-p.m4: Renamed from makepath.m4.
73850         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73851         Rename files from makepath.c to mkdir-p.c, and from
73852         makepath.h to mkdir-p.h.
73853         * m4/filenamecat.m4: Renamed from path-concat.m4.
73854         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73855         Rename files from path-concat.c to filenamecat.c,
73856         and from path-concat.h to filenamecat.h.
73857         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73858         "file name" in local variables or comments.
73859         * m4/rename.m4: Likewise.
73860
73861 2005-06-01  Bruno Haible  <bruno@clisp.org>
73862
73863         * modules/csharpexec: New file.
73864         * MODULES.html.sh (C#): New section.
73865
73866 2005-06-01  Bruno Haible  <bruno@clisp.org>
73867
73868         * m4/csharp.m4: New file, from GNU gettext.
73869         * m4/csharpexec.m4: New file, from GNU gettext.
73870
73871 2005-06-01  Bruno Haible  <bruno@clisp.org>
73872
73873         * lib/csharpexec.h: New file, from GNU gettext.
73874         * lib/csharpexec.c: New file, from GNU gettext.
73875         * lib/csharpexec.sh.in: New file, from GNU gettext.
73876
73877 2005-05-31  Derek Price  <derek@ximbiot.com>
73878             Paul Eggert  <eggert@cs.ucla.edu>
73879
73880         Sync from cvs.
73881         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73882
73883 2005-05-31  Derek Price  <derek@ximbiot.com>
73884             Paul Eggert  <eggert@cs.ucla.edu>
73885
73886         Sync from cvs.
73887         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73888
73889 2005-05-29  Derek Price  <derek@ximbiot.com>
73890
73891         * config/srclist.txt (glob_.h, glob.c): Add these files.
73892
73893 2005-05-29  Derek Price  <derek@ximbiot.com>
73894
73895         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73896         * modules/glob: New file.
73897         * modules/getlogin_r: Add link to POSIX spec in description.
73898
73899 2005-05-29  Derek Price  <derek@ximbiot.com>
73900             Paul Eggert  <eggert@cs.ucla.edu>
73901
73902         * m4/glob.m4: New file.
73903
73904 2005-05-29  Derek Price  <derek@ximbiot.com>
73905             Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * lib/glob_.h, lib/glob.c: New files.
73908
73909 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73912         * modules/fts-lgpl (Depends-on): Remove gettext.
73913
73914 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73917         and don't require gt_INTTYPES_PRI.
73918
73919 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73922
73923         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73924         the configuration hassle isn't worth it.
73925         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73926         (LONGEST_MODIFIER, PRIuMAX): Remove.
73927
73928 2005-05-27  Bruno Haible  <bruno@clisp.org>
73929
73930         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73931
73932 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73933
73934         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73935         _POSIX_PTHREAD_SEMANTICS for Solaris.
73936
73937 2005-05-25  Derek Price  <derek@ximbiot.com>
73938
73939         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73940
73941 2005-05-25  Derek Price  <derek@ximbiot.com>
73942             Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73945         * lib/getlogin_r.c, getlogin_r.h: New files.
73946
73947 2005-05-25  Bruno Haible  <bruno@clisp.org>
73948             Derek Price  <derek@ximbiot.com>
73949
73950         * lib/getlogin_r.h: Simplify API documentation.
73951
73952 2005-05-23  Derek Price  <derek@ximbiot.com>
73953
73954         * modules/minmax (Files): Add m4/minmax.m4.
73955         (configure.ac): Add gl_MINMAX.
73956
73957 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73960         so that unistd-safer.h (GPL'ed code) need not be included.
73961
73962 2005-05-22  Bruno Haible  <bruno@clisp.org>
73963
73964         * m4/minmax.m4: New file.
73965         Based on a patch by Derek Price <derek@ximbiot.com>.
73966
73967 2005-05-22  Bruno Haible  <bruno@clisp.org>
73968
73969         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73970         (INT64_MIN): Fix definition.
73971         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73972
73973         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73974         NEED_SIGNED_INT_TYPES.
73975
73976         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73977         HAVE_SYSTEM_INTTYPES.
73978
73979 2005-05-22  Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73982         Also include <sys/param.h> if it defines MIN, MAX.
73983         Based on a patch by Derek Price <derek@ximbiot.com>.
73984
73985 2005-05-21  Jim Meyering  <jim@meyering.net>
73986
73987         * modules/fts (Files): Add m4/inttypes-pri.m4.
73988         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73989
73990 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73991
73992         New fts module.
73993         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73994         (setup_dir, free_dir): New functions.
73995         (enter_dir, leave_dir): Define trivial
73996         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73997         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73998         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73999         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74000         Move to fts-cycle.c.
74001         (fts_open): Use setup_dir.
74002         (fts_close): Use free_dir.
74003         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74004         This adds a label and some gotos, but the alternatives were messier.
74005         Check for memory allocation failure when entering a dir.
74006         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74007         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74008         (FTS): New member fts_cycle, that is a union that contains the
74009         old active_dir_ht and cycle_state.  All uses changed to mention
74010         fts_cycle.ht and fts_cycle.state.
74011         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74012         fts.c, with the following changes:
74013         (setup_dir, free_dir): New functions.
74014         (enter_dir): Now returns bool.  Return true if successful, false
74015         if memory exhausted.  All callers changed.
74016         Do not bother partly cleaning up on
74017         memory allocation failure; that is free_dir's job.
74018         However, free ad if hash_insert fails, to avoid memory leak.
74019         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74020         fts->fts_options to see which union member to use.
74021
74022 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74023
74024         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74025         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74026
74027 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74028
74029         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74030
74031 2005-05-20  Jim Meyering  <jim@meyering.net>
74032
74033         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74034         Now a macro, to pacify GCC.
74035
74036 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74037
74038         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74039         of -1.
74040
74041 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74042
74043         * lib/chown.c (rpl_chown): Return -1 on failure.
74044
74045 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74046
74047         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74048         Don't check for stddef.h.
74049         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74050         don't use its results.
74051         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74052         since we include them unconditionally.  Don't require
74053         AM_STDBOOL_H, since stdbool is a prerequisite.
74054         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74055         since we assume C89 or better.
74056         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74057         as we don't use their results.
74058         Don't check for fchdir, memmove, memset, strrchr, as we use
74059         them unconditionally.
74060         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74061         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74062
74063 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74064
74065         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74066         Include <stddef.h> unconditionally, since we assume C89 now.
74067         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74068         * lib/fts.c: Include fts_.h first, to check interface.
74069         Do not include intprops.h; no longer needed.
74070         Include cycle-check.h and hash.h, since fts_.h no longer does.
74071         Remove unnecessary casts of closedir to void.
74072         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74073         decide whether to decrement nlinks.
74074         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74075         (FTS): Use struct hash_table * instead of Hash_table, so that
74076         we no longer need to include hash.h here.
74077
74078 2005-05-18  Jim Meyering  <jim@meyering.net>
74079
74080         * modules/dirfd (License): Change to LGPL.  Most of the code
74081         is already in the public domain.
74082
74083 2005-05-18  Jim Meyering  <jim@meyering.net>
74084
74085         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74086         Reported by Yoann Vandoorselaere.
74087
74088 2005-05-17  Jim Meyering  <jim@meyering.net>
74089
74090         * m4/fts.m4: New file, from coreutils.
74091
74092 2005-05-17  Jim Meyering  <jim@meyering.net>
74093
74094         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74095
74096 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74097
74098         Sync from coreutils.
74099         * m4/unlinkdir.m4: New file.
74100
74101 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         Sync from coreutils.
74104         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74105         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74106         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74107         White space changes only.
74108         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74109         special.
74110         * lib/yesno.c: Include getline.h, not ctype.h.
74111         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74112         Use getline to remove arbitrary restriction on response length.
74113
74114 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * config/srclist-update: Spell out "Street" in FSF postal
74117         mail address; this is the style the FSF seems to prefer.
74118
74119         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74120         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74121         this updates FSF postal mail address.
74122
74123         Sync from coreutils.
74124         * modules/unlinkdir: New file.
74125         * modules/yesno (Depends-on): Add getline.
74126         * MODULES.html.sh (File system functions): Add unlinkdir.
74127
74128 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74131         lib/strsep.h:
74132         Change the initial comment to refer to GPL, not LGPL.
74133         gnulib-tool will change it to LGPL as needed.
74134
74135         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74136         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74137         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74138         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74139         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74140         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74141         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74142         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74143         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74144         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74145         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74146         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74147         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74148         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74149         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74150         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74151         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74152         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74153         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74154         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74155         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74156         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74157         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74158         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74159         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74160         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74161         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74162         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74163         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74164         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74165         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74166         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74167         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74168         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74169         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74170         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74171         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74172         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74173         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74174         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74175         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74176         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74177         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74178         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74179         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74180         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74181         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74182         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74183         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74184         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74185         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74186         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74187         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74188         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74189         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74190         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74191         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74192         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74193         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74194         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74195         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74196         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74197         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74198         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74199         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74200         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74201         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74202         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74203         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74204         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74205         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74206         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74207         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74208         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74209         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74210         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74211         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74212         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74213         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74214         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74215         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74216         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74217         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74218         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74219         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74220         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74221         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74222         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74223         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74224         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74225         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74226         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74227         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74228         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74229         lib/yesno.c, lib/yesno.h:
74230         Update FSF postal mail address.
74231
74232 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74233
74234         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74235         tests/test-memmem.c, tests/test-stpncpy.c:
74236         Update FSF postal mail address.
74237
74238 2005-05-13  Bruno Haible  <bruno@clisp.org>
74239
74240         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74241         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74242         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74243         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74244         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74245         Add support for 64-bit integers in the MSVC compiler.
74246
74247 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74248
74249         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74250
74251 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74252
74253         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74254
74255 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74256
74257         * doc/getdate.texi (General date syntax): Don't say that date
74258         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74259         Problem reported by Nic Ferrier.
74260
74261 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74262
74263         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74264         specified in ai_socktype. Fix invalid ai_protocol
74265         check. ai_protocol is usually set to 0 or depending on
74266         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74267         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74268         ai_socktype / ai_protocol in the returned addrinfo structure.
74269
74270 2005-05-10  Simon Josefsson  <jas@extundo.com>
74271
74272         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74273         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74274
74275 2005-05-10  Karl Berry  <karl@gnu.org>
74276
74277         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74278         (from http://www.gnu.org/licenses).
74279         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74280         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74281         fdl.texi suffices.
74282
74283 2005-05-10  Karl Berry  <karl@gnu.org>
74284
74285         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74286         (COPYING.DOC): remove.
74287
74288         * config/srclist-update: new FSF address.
74289
74290 2005-05-10  Derek Price  <derek@ximbiot.com>
74291
74292         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74293         possible.
74294
74295 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74296             Bruno Haible  <bruno@clisp.org>
74297
74298         * modules/inet_ntop: New file.
74299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74300         inet_ntop.
74301
74302 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74303             Bruno Haible  <bruno@clisp.org>
74304
74305         * m4/inet_ntop.m4: New file.
74306
74307 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74308             Bruno Haible  <bruno@clisp.org>
74309
74310         * lib/inet_ntop.h: New file.
74311         * lib/inet_ntop.c: New file, from glibc with modifications.
74312
74313 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74314
74315         * modules/time_r (License): Change to LGPL.
74316         * modules/extensions (License): Change to LGPL.  Actually,
74317         the license is more permissive than that, but currently gnulib-tool
74318         doesn't know how to handle more-permissive licenses.
74319
74320         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74321         Problem reported by Dave Love.
74322
74323 2005-05-08  Jim Meyering  <jim@meyering.net>
74324
74325         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74326         blank.
74327
74328 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74329
74330         * modules/argmatch (Depends-on): Add stdbool.
74331         * modules/backupfile (Depends-on): Likewise.
74332         * modules/chdir-long (Depends-on): Likewise.
74333         * modules/closeout (Depends-on): Likewise.
74334         * modules/cycle-check (Depends-on): Likewise.
74335         * modules/dirname (Depends-on): Likewise.
74336         * modules/fnmatch (Depends-on): Likewise.
74337         * modules/fsusage (Depends-on): Likewise.
74338         * modules/fwriteerror (Depends-on): Likewise.
74339         * modules/getcwd (Depends-on): Likewise.
74340         * modules/getloadavg (Depends-on): Likewise.
74341         * modules/hard-locale (Depends-on): Likewise.
74342         * modules/makepath (Depends-on): Likewise.
74343         * modules/mountlist (Depends-on): Likewise.
74344         * modules/nanosleep (Depends-on): Likewise.
74345         * modules/posixtm (Depends-on): Likewise.
74346         * modules/quotearg (Depends-on): Likewise.
74347         * modules/readtokens (Depends-on): Likewise.
74348         * modules/readtokens0 (Depends-on): Likewise.
74349         * modules/readutmp (Depends-on): Likewise.
74350         * modules/save-cwd (Depends-on): Likewise.
74351         * modules/strftime (Depends-on): Likewise.
74352         * modules/userspec (Depends-on): Likewise.
74353         * modules/utimecmp (Depends-on): Likewise.
74354         * modules/xgetcwd (Depends-on): Likewise.
74355         * modules/xnanosleep (Depends-on): Likewise.
74356         * modules/xstrtod (Depends-on): Likewise.
74357         * modules/yesno (Depends-on): Likewise.
74358
74359 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74362         needless checks.
74363
74364 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         Merge from coreutils.  Among other things,
74367         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74368         * lib/fd-safer.c: New file.
74369         * lib/fcntl-safer.h, open-safer.c: Remove.
74370         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74371         * lib/dup-safer.c: Include unistd-safer.h first.
74372         Don't include errno.h.
74373         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74374         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74375         * lib/file-type.c: Rely on file-type.h change.
74376         * lib/getloadavg.c: Include unistd-safer.h.
74377         (getloadavg): Use safer open.
74378         * lib/getusershell.c: Include "stdio-safer.h".
74379         (getusershell): Use safer fopen.
74380         * lib/long-options.c (long_options): Use NULL rather than 0.
74381         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74382         'free'.
74383         * lib/modechange.c: Likewise.
74384         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74385         (MODE_DONE): New constant.
74386         (struct mode_change): Remove 'next' member.
74387         (make_node_op_equals): New function; like the old one of the
74388         same name, except it allocates an array.
74389         (mode_compile, mode_create_from_ref): Use it.
74390         (mode_compile): Allocate result as an array, not a linked list.
74391         Parse octal string ourself, so that we catch mistakes like "+0".
74392         (mode_adjust): Arg is an array, not a linked list.
74393         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74394         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74395         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74396         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74397         Remove.  This is now stat-macros.h's job.
74398         (talloc): Remove.  All callers replaced by xalloc, so that
74399         our invokers don't have to worry about reporting memory failures.
74400         (make_node_op_equals): Remove.
74401         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74402         New constants.
74403         (struct mode_change): Moved here from modechange.h.
74404         (mode_append_entry): Remove.
74405         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74406         apps to have incorrect behavior.  Use simpler algorithm for head
74407         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74408         Detect more invalid usages rather than having somewhat-random behavior.
74409         Don't insert an "a=" action, as that leads to incorrect behavior.
74410         (mode_compile, mode_create_from_ref): Return NULL on error instead
74411         of an enum, since now there's only one way to have an error.  All
74412         callers changed.
74413         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74414         at the correct time.  Simplify calculation of "+u" and its ilk.
74415         Don't mishandle "+X".
74416         (mode_free): Remove "register" and localize decls.
74417         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74418         (struct mode_change): Move to modechange.c; callers don't
74419         need to see this stuff.
74420         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74421         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74422         (mode_change, mode_adjust): Reflect the new signatures noted above.
74423         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74424         that might redefine system include files.
74425         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74426         (my_usleep): Use NULL rather than (void *) 0.
74427         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74428         Use siginterrupt to specify that system calls should be interrupted.
74429         (rpl_nanosleep): Move initialization of suspended closer to call of
74430         my_usleep.
74431         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74432         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74433         (desirable_utmp_entry): New function.
74434         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74435         using x2nrealloc, to simplify logic.
74436         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74437         size calculation.  Do not assume utmp file is a regular file.
74438         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74439         (READ_UTMP_CHECK_PIDS): New constant.
74440         * lib/save-cwd.c: Include unistd-safer.h.
74441         (save_cwd): Use fd_safer.
74442         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74443         [!_LIBC] Include "stat-macros.h" instead.
74444         * lib/unistd-safer.h (fd_safer): New decl.
74445
74446 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74447
74448         * modules/getloadavg (Depends-on): Add unistd-safer.
74449         * modules/getusershell (Depends-on): Add stdio-safer.
74450         * modules/lstat (Depends-on): Remove xalloc.
74451         * modules/mkstemp (Depends-on): Add stat-macros.
74452         * modules/modechange (Depends-on): Remove xstrtol.
74453         Add stat-macros, xalloc.
74454         * modules/save-cwd (Depends-on): Add unistd-safer.
74455         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74456         * modules/unistd-safer (Files): Add lib/fd-safer.c
74457         (Makefile.am): Remove lib_SOURCES.
74458
74459         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74460         Remove fcntl-safer; unistd-safer supersedes it.
74461
74462 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74463
74464         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74465         AC_HEADER_STAT.
74466         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74467         (gl_PREREQ_CHOWN): Remove.
74468         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74469         it.  Don't require AC_HEADER_STAT.
74470         (gl_PREREQ_LSTAT): Remove.
74471         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74472         Don't require AC_HEADER_STAT.
74473         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74474         (gl_PREREQ_RMDIR): Remove.
74475         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74476         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74477         the stat-macros module a prerequisite.
74478         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74479         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74480         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74481         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74482         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74483         variable names.
74484         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74485         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74486         variable prefixes.
74487         * m4/fcntl-safer.m4: Remove.
74488         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74489         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74490         Invoke gl_PREREQ_FD_SAFER.
74491         (gl_PREREQ_FD_SAFER): New macro.
74492         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74493         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74494         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74495         Remove duplicate call to AC_LIBOBJ(readutmp).
74496         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74497
74498         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74499         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74500
74501 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74502
74503         * MODULES.html.sh (Misc): Add byteswap.
74504
74505 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74506
74507         * modules/getcwd (Depends-on): Add extensions.
74508         * modules/openat (Depends-on): Likewise.
74509
74510 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74511
74512         * modules/byteswap: New file.
74513
74514 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74515
74516         * m4/byteswap.m4: New file.
74517
74518 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74519
74520         * lib/byteswap_.h: New file.
74521
74522 2005-04-25  Karl Berry  <karl@gnu.org>
74523
74524         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74525
74526 2005-04-25  Albert Chin  <china@thewrittenword.com>
74527
74528         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74529         Toolkit C bug.
74530
74531 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74532
74533         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74534         (func_ln_if_changed): Remove forcibly for no error message
74535         in case file does not exist.
74536
74537 2005-04-19  Simon Josefsson  <jas@extundo.com>
74538
74539         * gnulib-tool (Options): Make --symlink mean --symbolic.
74540
74541 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74542
74543         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74544
74545 2005-04-16  Simon Josefsson  <jas@extundo.com>
74546
74547         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74548
74549 2005-04-15  Simon Josefsson  <jas@extundo.com>
74550
74551         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74552
74553 2005-04-15  Simon Josefsson  <jas@extundo.com>
74554
74555         * gnulib-tool: Rename --symlink to --symbolic.
74556
74557 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74558
74559         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74560         symbolic links to files instead of copying/moving.  Add --aux-dir,
74561         specifying directory relative --dir where auxiliary build tools
74562         are placed.
74563
74564 2005-04-14  Bruno Haible  <bruno@clisp.org>
74565
74566         * modules/allocsa (License): Change to LGPL.
74567         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74568
74569 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74572         that "UTC +1 second" continues to work.  Problem reported
74573         by Dmitry V. Levin.
74574         (relunit_snumber): New rule.
74575         (relunit): Use it.
74576
74577 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * lib/getdate.y (universal_time_zone_table): New constant.
74580         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74581         universal_time_zone_table.
74582         (lookup_zone): Prefer universal_time_zone_table to
74583         local_time_zone_table, so that "GMT" time stamps are allowed in
74584         London during the summer.  Problem reported by Ian Abbott.
74585
74586 2005-04-12  Jim Meyering  <jim@meyering.net>
74587
74588         * lib/human.c (humblock): Set *options even when returning due to
74589         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74590         warning from gcc-4.
74591
74592 2005-04-09  Jim Meyering  <jim@meyering.net>
74593
74594         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74595         -Wuninitialized: initialize tm0.tm_year.
74596
74597 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74600         count, since there's no maximum.  All uses changed.
74601         Add member dsts_seen.
74602         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74603         not being INT_MAX.
74604         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74605         Use pc_rels_seen to decide whther a date is absolute.
74606
74607         * lib/getdate.y (number): Don't overwrite year.
74608         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74609         check.
74610
74611 2005-04-02  Simon Josefsson  <jas@extundo.com>
74612
74613         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74614         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74615
74616 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74617
74618         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74619         where no absolute path name can be longer than PATH_MAX.
74620
74621 2005-03-27  Jim Meyering  <jim@meyering.net>
74622
74623         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74624
74625 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74628         "one's complement" -> "ones' complement" in comment, as per Knuth.
74629         "value of type" -> "type or expression" in comment.
74630         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74631
74632 2005-03-26  Jim Meyering  <jim@meyering.net>
74633
74634         Comment nits.
74635         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74636         Correct typos: s/or/of/.
74637
74638 2005-03-26  Jim Meyering  <jim@meyering.net>
74639
74640         * modules/check-include-files: Move to ../ and rename to...
74641         * check-module: ...this.
74642
74643 2005-03-25  Jim Meyering  <jim@meyering.net>
74644
74645         * modules/xvasprintf (Files): Add xalloc.h.
74646
74647 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74648
74649         * modules/gettext (Files): config/config.rpath ->
74650         build-aux/config.rpath
74651         * modules/iconv (Files): Likewise.
74652         Problem reported by Oskar Liljeblad.
74653
74654 2005-03-23  Jim Meyering  <jim@meyering.net>
74655
74656         * modules/check-include-files: New script to check for
74657         missing dependencies, multiple includes, etc.
74658
74659         * modules/c-strtold (Depends-on): Add xalloc.
74660         * modules/c-strtod (Depends-on): Add xalloc.
74661         * modules/hash (Depends-on): Add xalloc.
74662         (Files): Remove lib/xalloc.h.
74663
74664         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74665         * modules/userspec (Files): Add lib/inttostr.h.
74666
74667 2005-03-23  Jim Meyering  <jim@meyering.net>
74668
74669         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74670
74671 2005-03-22  Jim Meyering  <jim@meyering.net>
74672
74673         * modules/stat-macros: New module.
74674         * modules/canonicalize, modules/euidaccess, modules/file-type,
74675         * modules/filemode, modules/lchown, modules/makepath,
74676         * modules/rmdir, modules/stat: Depend on new stat-macros module
74677         rather than listing lib/stat-macros.h manually.
74678         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74679
74680 2005-03-22  Jim Meyering  <jim@meyering.net>
74681
74682         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74683
74684 2005-03-22  Bruno Haible  <bruno@clisp.org>
74685
74686         * config/srclist.txt: Replace target directory 'config' with
74687         'build-aux'.
74688         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74689         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74690         ../build-aux/.
74691
74692 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         * modules/chdir-long (Depends-on): Add mempcpy.
74695
74696         * modules/acl, modules/backupfile, modules/c-strtod,
74697         modules/c-strtold, modules/canon-host, modules/canonicalize,
74698         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74699         modules/exclude, modules/exitfail, modules/file-type,
74700         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74701         modules/getdate, modules/getline, modules/getpagesize,
74702         modules/getpass, modules/getugroups, modules/group-member,
74703         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74704         modules/inttostr, modules/long-options, modules/makepath,
74705         modules/md5, modules/memcasecmp, modules/memcoll,
74706         modules/modechange, modules/mountlist, modules/path-concat,
74707         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74708         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74709         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74710         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74711         modules/strftime, modules/strndup, modules/strverscmp,
74712         modules/timespec, modules/unlocked-io, modules/userspec,
74713         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74714         modules/yesno:
74715         Remove lib_SOURCES line from Makefile.am section, as this is now
74716         done automatically by the corresponding Autoconf macro.
74717
74718 2005-03-21  Jim Meyering  <jim@meyering.net>
74719
74720         Changes imported from coreutils.
74721
74722         * lib/cycle-check.c: Don't include xalloc.h.
74723
74724         * lib/path-concat.c: Don't include assert.h.
74725         (path_concat): Remove assertion that would have triggered
74726         for ABASE starting with more than one slash.
74727         Reported by Andreas Schwab.
74728
74729         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74730         properly when ABASE is an absolute file name.
74731         Correct the description of this function.
74732         Include <assert.h>.
74733         Add an assertion and a test driver.
74734         This fixes a bug introduced on 2004-07-02.
74735         Andreas Schwab reported the resulting failure of cp --parents:
74736         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74737
74738 2005-03-21  Jim Meyering  <jim@meyering.net>
74739
74740         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74741         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74742
74743 2005-03-21  Jim Meyering  <jim@meyering.net>
74744         and  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74747         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74748         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74749         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74750         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74751         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74752         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74753         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74754         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74755         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74756         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74757         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74758         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74759         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74760         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74761         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74762         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74763         for these modules.
74764
74765 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74766
74767         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74768         (which shouldn't happen), generate nothing instead of returning 0
74769         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74770
74771 2005-03-16  Bruno Haible  <bruno@clisp.org>
74772
74773         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74774         HAVE_LONGLONG_64BIT.
74775
74776 2005-03-16  Bruno Haible  <bruno@clisp.org>
74777
74778         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74779         HAVE_LONGLONG_64BIT.
74780
74781 2005-03-16  Bruno Haible  <bruno@clisp.org>
74782
74783         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74784         HAVE_LONGLONG_64BIT.
74785
74786 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74787
74788         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74789         reliably distinguish strftime failure from empty output on POSIX
74790         hosts.
74791
74792 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74795         (iconv_string): Don't guess a size-zero buffer, as that might cause
74796         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74797         result would be 'too large', where 'too large' is (heuristically)
74798         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74799         overflow concerns.  This will prevent some unwanted malloc failures
74800         when the inputs are very large.
74801
74802 2005-03-15  Karl Berry  <karl@gnu.org>
74803
74804         * config/srclist.txt (config.rpath): from gettext.
74805         * config/config.rpath: update.
74806
74807 2005-03-15  Bruno Haible  <bruno@clisp.org>
74808
74809         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74810         to 'negate'.
74811
74812         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74813         variable.
74814
74815         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74816         results.
74817
74818 2005-03-14  Simon Josefsson  <jas@extundo.com>
74819
74820         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74821         <fx@gnu.org>.
74822
74823 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74826         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74827         intprops.h.
74828         * lib/strtol.c: Likewise.
74829
74830 2005-03-14  Jim Meyering  <jim@meyering.net>
74831
74832         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74833         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74834         to be nonzero so that we (and caller) can detect the difference
74835         between a valid zero-length expansion and an error return, even
74836         when the underlying strftime fails before writing anything into
74837         that location.
74838
74839 2005-03-14  Bruno Haible  <bruno@clisp.org>
74840
74841         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74842         Update from GNU gettext 0.14.3.
74843
74844 2005-03-10  Jim Meyering  <jim@meyering.net>
74845
74846         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74847
74848 2005-03-10  Jim Meyering  <jim@meyering.net>
74849
74850         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74851         so that this module works on systems without fchdir.
74852
74853 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         Factor int-properties macros into a single file, except for
74856         glibc-related files.
74857         * lib/intprops.h: New file.
74858         * lib/getloadavg.c: Include it instead of limits.h.
74859         (INT_STRLEN_BOUND): Remove.
74860         * lib/human.c: Include intprops.h.
74861         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74862         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74863         302/1000.
74864         * lib/inttostr.h: Include intprops.h instead of limits.h.
74865         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74866         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74867         for consistency with intprops.h.
74868         (time_t_is_integer, twos_complement_arithmetic): Use them.
74869         * lib/sig2str.h: Include <signal.h>, intprops.h.
74870         (INT_STRLEN_BOUND): Remove.
74871         * lib/strftime.c (TYPE_SIGNED): Remove.
74872         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74873         * lib/strtol.c: Adjust comments to match intprops.h.
74874         * lib/userspec.c: Include intprops.h.
74875         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74876         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74877         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74878         instead of rolling our own expressions.
74879         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74880
74881         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74882         instead of int.
74883         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74884         the right thing even if adding 1900 would overflow.  Similarly
74885         for tm_mon + 1 and tm_yday + 1.
74886         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74887         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74888         (DO_SIGNED_NUMBER): New macro.
74889         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74890
74891 2005-03-07  Bruno Haible  <bruno@clisp.org>
74892
74893         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74894
74895 2005-03-07  Bruno Haible  <bruno@clisp.org>
74896
74897         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74898
74899 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74900
74901         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74902         (func_import): Only replace files via --import when they have actually
74903         changed.
74904
74905 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74906
74907         * m4/mmap-anon.m4: New file.
74908         * m4/pagealign_alloc.m4: New file.
74909
74910 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74911             Bruno Haible  <bruno@clisp.org>
74912
74913         * modules/pagealign_alloc: New file.
74914         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74915
74916 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74917             Bruno Haible  <bruno@clisp.org>
74918
74919         * lib/pagealign_alloc.h: New file.
74920         * lib/pagealign_alloc.c: New file.
74921
74922 2005-03-03  Bruno Haible  <bruno@clisp.org>
74923
74924         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74925         Use an all-permissive copyright notice, recommended by RMS.
74926
74927 2005-03-02  Bruno Haible  <bruno@clisp.org>
74928
74929         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74930         of AIX, the replacement has to be done only after <string.h> is
74931         included, therefore not in config.h. stpncpy.h does the replacement,
74932         and stpncpy.c uses it.
74933
74934 2005-03-02  Bruno Haible  <bruno@clisp.org>
74935
74936         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74937         stpncpy.c uses it.
74938
74939 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74942         The workaround isn't strictly needed for POSIX conformance, and
74943         it's too much of a pain to configure and maintain.  We'll ask
74944         people to fix their kernels instead.
74945         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74946         (NANOSLEEP_BUG_WORKAROUND): Remove.
74947         (xnanosleep): Remove the workaround.
74948
74949 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74952         Reported by Derek Price.
74953         (Include): Add "timespec.h".
74954
74955         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74956
74957 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74958
74959         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74960         to detect nanosleep bug.
74961
74962 2005-03-01  Bruno Haible  <bruno@clisp.org>
74963
74964         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74965
74966 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * modules/gethrxtime: New file.
74969         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74970         (Depends-on): Add gethrxtime.
74971         (configure.ac): Add gl_XNANOSLEEP.
74972         (Makefile.am): Remove lib_SOURCES line.
74973
74974 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74977         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74978
74979 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74980
74981         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74982         * lib/timespec.h (gettime): Return void, since it always
74983         succeeds now.  All uses changed.
74984         * lib/gettime.c (gettime): Likewise.
74985         [HAVE_NANOTIME]: Prefer nanotime.
74986         Assume gettimeofday succeeds, as POSIX requires.
74987         Assime time () succeeds, since other code already does.
74988         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74989         (timespec_subtract): Remove.
74990         (NANOSLEEP_BUG_WORKAROUND): New constant.
74991         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74992         things considerably.  Use it only on GNU/Linux hosts, since the
74993         workaround shouldn't be needed elsewhere.
74994
74995 2005-02-24  Bruno Haible  <bruno@clisp.org>
74996
74997         * modules/gettext (Files): Add m4/glibc2.m4.
74998
74999 2005-02-24  Bruno Haible  <bruno@clisp.org>
75000
75001         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75002         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75003         * m4/progtest.m4:
75004         Update from GNU gettext 0.14.2.
75005         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75006
75007 2005-02-24  Bruno Haible  <bruno@clisp.org>
75008
75009         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75010         * lib/config.charset: Update from GNU gettext 0.14.2.
75011
75012 2005-02-24  Bruno Haible  <bruno@clisp.org>
75013
75014         * lib/gettext.h: Update from GNU gettext 0.14.2.
75015
75016 2005-02-23  Simon Josefsson  <jas@extundo.com>
75017
75018         * m4/iconvme.m4: New file.
75019
75020 2005-02-23  Jim Meyering  <jim@meyering.net>
75021
75022         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75023         change.
75024         Thanks to Bruno Haible for catching it.
75025
75026 2005-02-22  Simon Josefsson  <jas@extundo.com>
75027
75028         * modules/iconvme: New file.
75029
75030         * MODULES.html.sh: Add iconvme.
75031
75032 2005-02-22  Simon Josefsson  <jas@extundo.com>
75033
75034         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75035
75036 2005-02-22  Simon Josefsson  <jas@extundo.com>
75037
75038         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75039
75040 2005-02-22  Jim Meyering  <jim@meyering.net>
75041
75042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75043         s/ifndef/ifdef/.
75044
75045 2005-02-20  Neil Conway  <neilc@samurai.com>
75046
75047         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75048         returned by OSX/Darwin if the specified buffer is not large
75049         enough for the hostname.
75050
75051 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75052
75053         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75054         pass it to _help, otherwise the latter coredumps trying to
75055         dereference state.root_argp.
75056
75057 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         * modules/chdir-long (Depends-on): Add memrchr.
75060         * modules/memrchr (Files): Add lib/memrchr.h.
75061         (Include): "memrchr.h".
75062
75063 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75066
75067 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * lib/memrchr.h: New file.
75070         * lib/chdir-long.c: Include it.
75071         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75072         Don't bother including stddef.h.
75073
75074 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75075
75076         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75077         inclusion.
75078         Include <sys/types.h>, for dev_t.
75079         (ME_DUMMY, ME_REMOTE): Move from here....
75080         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75081         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75082         Dmitry V. Levin.
75083         Include mountlist.h first, to test the interface.
75084
75085 2005-01-29  Bruno Haible  <bruno@clisp.org>
75086
75087         * lib/progname.c (program_name): Initialize.
75088         Needed when linking statically on MacOS X.
75089
75090 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75091
75092         Sync from coreutils.
75093         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75094         (Depends-on): Add c-strtod.
75095         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75096
75097 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75098
75099         Sync from coreutils.
75100         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75101
75102         Remove files that are specific to coreutils.
75103         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75104
75105 2005-01-28  Bruno Haible  <bruno@clisp.org>
75106
75107         * modules/javacomp: New file.
75108         * MODULES.html.sh (Java): Add javacomp.
75109
75110 2005-01-28  Bruno Haible  <bruno@clisp.org>
75111
75112         * m4/javacomp.m4: New file, from GNU gettext.
75113
75114 2005-01-28  Bruno Haible  <bruno@clisp.org>
75115
75116         * lib/javacomp.sh.in: New file, from GNU gettext.
75117         * lib/javacomp.h: New file, from GNU gettext.
75118         * lib/javacomp.c: New file, from GNU gettext.
75119
75120 2005-01-26  Simon Josefsson  <jas@extundo.com>
75121
75122         * lib/gai_strerror.c: Use GPL in header.
75123
75124 2005-01-26  Bruno Haible  <bruno@clisp.org>
75125
75126         * modules/javaexec: New file.
75127         * MODULES.html.sh (Java): Add javaexec.
75128
75129 2005-01-26  Bruno Haible  <bruno@clisp.org>
75130
75131         * m4/javaexec.m4: New file, from GNU gettext.
75132
75133 2005-01-26  Bruno Haible  <bruno@clisp.org>
75134
75135         * lib/javaexec.sh.in: New file, from GNU gettext.
75136         * lib/javaexec.h: New file, from GNU gettext.
75137         * lib/javaexec.c: New file, from GNU gettext.
75138
75139 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75140
75141         * modules/lchown (Depends-on): Remove lchown.h
75142
75143 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75144
75145         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75146         must be defined if the header file was not found, in order
75147         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75148
75149 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75150
75151         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75152         initializers for struct pentry_state.
75153         (__argp_error): Check return value of __asprintf
75154         (__argp_failure): Translate error message
75155
75156         * lib/argp-parse.c: Removed braces around the expansion of N_()
75157
75158 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75159
75160         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75161         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75162         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75163         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75164         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75165         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75166         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75167         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75168         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75169         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75170         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75171         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75172         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75173         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75174         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75175         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75176         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75177         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75178         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75179         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75180         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75181         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75182         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75183         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75184         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75185         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75186         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75187         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75188         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75189         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75190         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75191         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75192         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75193         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75194         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75195         Use an all-permissive copyright notice, recommended by RMS.
75196
75197 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * modules/chdir-long (Depends-on): Remove mempcpy.
75200
75201 2005-01-21  Jim Meyering  <jim@meyering.net>
75202
75203         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75204         same value as for Solaris 9.
75205
75206         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75207         component length.  This included changing the parameter to be
75208         of type `char *' rather than `char const *'.
75209         * lib/chdir-long.h (chdir_long): Update prototype.
75210
75211         * lib/openat.c (fdopendir, fstatat): New functions.
75212         * lib/openat.h: Include headers required for use of DIR and struct
75213         stat.
75214         [AT_SYMLINK_NOFOLLOW]: Define.
75215         (fdopendir, fstatat): Add prototypes.
75216
75217 2005-01-21  Bruno Haible  <bruno@clisp.org>
75218
75219         * modules/classpath: New file.
75220         * MODULES.html.sh (Java): Add classpath.
75221
75222 2005-01-21  Bruno Haible  <bruno@clisp.org>
75223
75224         * lib/classpath.h: New file, from GNU gettext.
75225         * lib/classpath.c: New file, from GNU gettext.
75226
75227 2005-01-20  Simon Josefsson  <jas@extundo.com>
75228
75229         * modules/version-etc-fsf: New file.
75230
75231 2005-01-20  Simon Josefsson  <jas@extundo.com>
75232
75233         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75234         * lib/version-etc.c: Remove version_etc_copyright.
75235         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75236         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75237
75238 2005-01-20  Simon Josefsson  <jas@extundo.com>
75239
75240         * lib/base64.h (isbase64): Add.
75241
75242         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75243         using a unsigned prototype, don't inline.
75244         (base64_decode): Use it.
75245
75246 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75249         it.
75250
75251 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * lib/save-cwd.c (save_cwd): Remove code to support the case
75254         where fchdir is missing or flaky.
75255
75256 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75257
75258         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75259
75260 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75263         AC_LIBSOURCES now does this.
75264         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75265         with new ullong_max module.
75266
75267 2005-01-19  Bruno Haible  <bruno@clisp.org>
75268
75269         * modules/sh-quote: New file.
75270         * MODULES.html.sh (Executing programs): Add sh-quote.
75271
75272 2005-01-19  Bruno Haible  <bruno@clisp.org>
75273
75274         * lib/sh-quote.h: New file, from GNU gettext.
75275         * lib/sh-quote.c: New file, from GNU gettext.
75276
75277 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75278
75279         Merge from coreutils.
75280         * m4/ullong_max.m4: New file.
75281         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75282         (gl_MACROS): Assume localeconv exists.
75283
75284 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         Merge changes from coreutils, as described below in several
75287         changelogs dated today.
75288
75289         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75290         (O_DIRECTORY): Remove; not needed here, since "." must be
75291         a directory.  All uses removed.
75292         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75293         universal on Suns, and we also need to test for IRIX.
75294         Revamp code to use 'if' rather than '#if'.
75295         Avoid unnecessary comparison of cwd->desc to 0.
75296
75297         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75298         for known valid error numbers rather than observed invalid ones.
75299
75300 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75301
75302         * modules/ullong_max: New file.
75303
75304         * modules/chdir-long, modules/openat: New files.
75305         * modules/save-cwd (Depends-on): Depend on chdir-long.
75306         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75307
75308 2005-01-18  Jim Meyering  <jim@meyering.net>
75309
75310         Merge from coreutils.
75311         * m4/chdir-long.m4, m4/openat.m4: New files.
75312         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75313         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75314         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75315         is sane and DOES follow symlinks.  Besides, testing 20 different
75316         systems found no broken chown implementations.
75317         Prompted by a change in rsync's copy of this macro.
75318         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75319
75320         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75321
75322         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75323         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75324         NULL-means-set-to-current-time semantics.
75325         Remove temporary file immediately, rather than waiting
75326         for configure's at-exit trap code to do it.
75327
75328 2005-01-18  Jim Meyering  <jim@meyering.net>
75329
75330         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75331
75332         * lib/utimens.c (futimens): Account for the fact that futimes
75333         can also fail with errno == ENOSYS or errno == ENOENT.
75334         Patch from Dmitry V. Levin.
75335
75336         Change the name of the robust chdir function from chdir to chdir_long.
75337         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75338         (restore_cwd): Use chdir_long, not chdir.
75339         * lib/chdir-long.c: Renamed from chdir.c.
75340         * lib/chdir-long.h: Renamed from chdir.h.
75341         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75342         Hurd.
75343
75344 2005-01-18  Bruno Haible  <bruno@clisp.org>
75345
75346         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75347         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75348         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75349         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75350         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75351         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75352         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75353         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75354         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75355         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75356         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75357         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75358         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75359         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75360         Use an all-permissive copyright notice, recommended by RMS.
75361
75362 2005-01-18  Bob Proulx  <bob@proulx.com>
75363
75364         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75365         simplify offsetof() macro construct to avoid compile failure with
75366         native HP-UX 11.0 ANSI C compiler.
75367
75368 2005-01-17  Bruno Haible  <bruno@clisp.org>
75369
75370         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75371         redundant because stpncpy.m4 takes care of it.
75372
75373 2005-01-17  Bruno Haible  <bruno@clisp.org>
75374
75375         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75376
75377 2005-01-17  Bruno Haible  <bruno@clisp.org>
75378
75379         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75380         used.
75381
75382 2005-01-17  Bruno Haible  <bruno@clisp.org>
75383
75384         * lib/fwriteerror.h (fwriteerror): Change specification to include
75385         fclose.
75386         * lib/fwriteerror.c: Include <stdbool.h>.
75387         (fwriteerror): At the end, close the file stream. Record whether
75388         stdout was already closed.
75389
75390 2005-01-17  Bruno Haible  <bruno@clisp.org>
75391
75392         * lib/execute.c (environ): Declare if needed.
75393         * lib/pipe.c (environ): Likewise.
75394         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75395
75396 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75397
75398         * modules/argp: Depend on vsnprintf
75399
75400 2005-01-10  Jim Meyering  <jim@meyering.net>
75401
75402         * modules/closeout (Depends-on): Add atexit.
75403
75404 2005-01-06  Bruno Haible  <bruno@clisp.org>
75405
75406         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75407
75408 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75411         definitions to be after all include files, to avoid collisions.
75412         Problem reported by Bob Proulx.
75413
75414 2005-01-04  Jim Meyering  <jim@meyering.net>
75415
75416         Changes imported from coreutils.
75417         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75418         as the mkstemp template, use a temporary directory and an
75419         8.3-friendly template to avoid trouble on systems like DJGPP.
75420         Reported by Juan M. Guerrero via Stepan Kasal.
75421         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75422         close. Remove the temporary directory right away, rather than waiting
75423         for configure's at-exit trap code to do it.
75424         Suggestion from Stepan Kasal.
75425
75426 2005-01-01  Simon Josefsson  <jas@extundo.com>
75427
75428         * gnulib-tool: Print #include directives when --import'ing.
75429
75430 2004-12-28  Simon Josefsson  <jas@extundo.com>
75431
75432         * tests/test-base64.c: Include required header files.  Remove
75433         unused variables.
75434
75435 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * modules/error (Depends-on): Remove gettext.
75438
75439 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75440
75441         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75442         not needed.  This removes a dependency on the gettext module.
75443         [defined _LIBC]: Do not include <libintl.h>; not needed.
75444
75445 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75448         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75449
75450 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75451
75452         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75453         HAVE_DECL_STRTOLD.
75454
75455 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         * modules/getdate (Depends-on): Remove alloca-opt.
75458
75459 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75462
75463 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75464
75465         * lib/argp-parse.c: Include <stddef.h>.
75466         (alignof, alignto): New macros.
75467         (parser_init): Don't assume that void * is aligned sufficiently
75468         for struct option.
75469
75470         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75471         need to extend the stack.
75472         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75473         large.
75474
75475 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75476
75477         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75478
75479 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75480
75481         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75482         (2004-10-24) change.  Apparently this was a false alarm.
75483
75484         * modules/getdate: Depend on alloca-opt, not alloca.
75485
75486 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75487
75488         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75489         Remove now-obsolete comment about AIX.
75490         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75491         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75492         (YYMAXDEPTH): New macro.
75493
75494 2004-12-18  Simon Josefsson  <jas@extundo.com>
75495
75496         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75497
75498 2004-12-18  Bruno Haible  <bruno@clisp.org>
75499
75500         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75501
75502 2004-12-18  Bruno Haible  <bruno@clisp.org>
75503
75504         * lib/fatal-signal.c (fatal_signals): Make non-const.
75505         (init_fatal_signals): New function.
75506         (uninstall_handlers, install_handlers): Ignore signals that were set to
75507         SIG_IGN.
75508         (at_fatal_signal): Call init_fatal_signals.
75509         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75510         SIG_IGN.
75511         Reported by Paul Eggert.
75512
75513 2004-12-18  Bruno Haible  <bruno@clisp.org>
75514
75515         * doc/alloca.texi: New file.
75516         * doc/alloca-opt.texi: New file.
75517
75518 2004-12-17  Jim Meyering  <jim@meyering.net>
75519
75520         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75521         Otherwise, install-sh could exit with improper exit status when
75522         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75523
75524 2004-12-16  Simon Josefsson  <jas@extundo.com>
75525
75526         * tests/test-base64.c: Add license.
75527
75528 2004-12-15  Stepan Kasal  <address@hidden>
75529
75530         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75531
75532 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * modules/getcwd (Files): Add m4/d-ino.m4.
75535         Suggested by Mark D. Baushke.
75536
75537 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * lib/getdate.y (textint): New member "negative".
75540         (time_zone_hhmm): New function.
75541         Expect 14 shift-reduce conflicts, not 13.
75542         (o_colon_minutes): New rule.
75543         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75544         (yylex): Set the "negative" member of signed numbers.
75545
75546 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * doc/getdate.texi (Time of day items, Time zone items):
75549         Describe new formats +00:00, UTC+00:00.
75550
75551 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75552
75553         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75554         spurious "-l"s.  Problem reported by Stepan Kasal.
75555
75556 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75559         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75560
75561 2004-12-04  Simon Josefsson  <jas@extundo.com>
75562
75563         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75564         Vandoorselaere <yoann@prelude-ids.org>.
75565
75566 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         Changes imported from coreutils.
75569         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75570         exist.
75571         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75572
75573 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         Changes imported from coreutils.
75576         * lib/hard-locale.c: Assume <locale.h> exists.
75577         Include "strdup.h".
75578         (GLIBC_VERSION): New macro.
75579         (hard_locale): Assume setlocale exists.
75580         Rewrite to avoid #ifdef.
75581         Use strdup rather than malloc + strcpy.
75582         * lib/human.c: Assume <locale.h> exists.
75583         (human_readable): Assume localeconv exists.
75584
75585 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * modules/hard-locale (Depends-on): Add strdup.
75588
75589 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75590
75591         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75592         convert T2, not T.  (Imported from libc.)
75593
75594 2004-11-30  Simon Josefsson  <jas@extundo.com>
75595
75596         * modules/restrict (License): Change to LGPL.
75597
75598 2004-11-30  Simon Josefsson  <jas@extundo.com>
75599
75600         * m4/restrict.m4: Add copyright and copying conditions.
75601
75602 2004-11-30  Simon Josefsson  <jas@extundo.com>
75603
75604         * m4/base64.m4: New file.
75605
75606 2004-11-30  Simon Josefsson  <jas@extundo.com>
75607
75608         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75609         base64.
75610
75611         * tests/test-base64.c: New file.
75612
75613         * modules/base64: New file.
75614
75615 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75616
75617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75618         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75619
75620         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75621
75622 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75625         (__getcwd.c): Don't restore errno; glibc doesn't.
75626         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75627         first, falling back to our code only if its results look suspicious.
75628         Ensure that the resulting buffer is only as large as necessary.
75629
75630         * lib/readutmp.c: Include readutmp.h first.
75631         Include <errno.h>, since readutmp.h no longer does that.
75632         * lib/readutmp.h: Don't include <errno.h>,
75633         <sys/param.h>, <time.h>; not needed to establish interface.
75634         (errno): Remove decl.
75635         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75636         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75637         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75638
75639 2004-11-28  Simon Josefsson  <jas@extundo.com>
75640
75641         * lib/base64.h, base64.c: New file.
75642
75643 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75646
75647 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75650         (Depends-on): Remove pathmax, same.  Add mempcpy.
75651         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75652         (Makefile.am): Append getcwd.h to lib_SOURCES.
75653         (Include): Add getcwd.h.
75654         (Maintainer): Change from Jim Meyering to "all, glibc",
75655         since getdate now uses intended-for-glibc code.
75656         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75657         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75658
75659 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75660
75661         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75662         HP's ANSI C compiler.
75663         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75664         Declaring int functions causes warnings on some modern systems and
75665         shouldn't be needed to compile on ancient ones.
75666         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75667         defined.
75668
75669         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75670         with the following changes.
75671         (__set_errno): Parenthesize properly.
75672         Include <stdbool.h>.
75673         (MIN, MAX, MATCHING_INO): New macros.
75674         (__getcwd): Define with prototype, not K&R form.
75675         Use heuristics to allocate default buffer on stack if possible.
75676         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75677         behavior, and to avoid the PATH_MAX limit when computing
75678         ../../../../...
75679         Use MATCHING_INO to compare inode number to file.
75680         Check for arithmetic overflow in size calculations.
75681         Fix bug in reallocation of dot array that caused getcwd to fail
75682         on directories nested deeper than 75.
75683         Be more careful about saving errno on error.
75684         Do not use realloc; use only free+malloc, as this is a bit
75685         more flexible and avoids a needless copy operation.
75686         Do not inspect st_dev and st_ino for symbolic links; POSIX
75687         doesn't specify the latter.
75688         Check for closedir errors.
75689         Avoid needless casts.
75690         Use "#ifdef weak_alias" around weak_alias, to be like other
75691         glibc code.
75692         The following changes to getcwd.c have effect only when used in
75693         gnulib; they have no effect inside glibc proper.
75694         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75695         as alloca isn't used.
75696         (alloca, __alloca): Likewise.
75697         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75698         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75699         unconditionally, as gnulib assumes C89 or better.
75700         Do not include <sys/param.h>.
75701         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75702         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75703         better.
75704         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75705         Include <dirent.h> in a way that is compatible with modern Autoconf.
75706         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75707         New macros, if not already defined.
75708         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75709         Use "_LIBC", not "defined _LIBC", for consistency.
75710         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75711         a mempcpy module.
75712         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75713         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75714         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75715         credit only to Jim Meyering and adjust the copyright dates.
75716         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75717         <stdlib.h>, <unistd.h>, "pathmax.h".
75718         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75719         (INITIAL_BUFFER_SIZE): Remove.
75720         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75721
75722 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75725         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75726         Use the _ONCE methods, for efficiency.
75727         Check for fcntl.h.  In test program, include <errno.h>
75728         and <fcntl.h> if available.  Remove old K&R cruft from
75729         test program.  Check for common errors in GNU/Linux,
75730         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75731         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75732         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75733         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75734         name accordingly.
75735         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75736         accommodate new getcwd.c.
75737         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75738         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75739         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75740         that's all we need now.
75741
75742 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75743
75744         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75745         argp-parse.c depends on getopt internals, that means we should
75746         always use our getopt, to be on the safe side.
75747         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75748         order not to spoil the result of an eventual previous invocation
75749         of gl_GETOPT_SUBSTITUTE.
75750
75751 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75752
75753         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75754         redefinition warnings. To avoid them, include the defines
75755         in `#if !defined __need_getopt ... #endif'. The only place
75756         where __getopt_argv_const is used is in definitions
75757         of getopt_long and getopt_long_only below, which are as well
75758         protected by `#ifndef __need_getopt'.
75759         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75760         __need_getopt after including <stdio.h> and <unistd.h> These
75761         headers might have defined it.
75762
75763 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75766
75767 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75768
75769         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75770         (futimens): New function, which uses futimes if available.
75771         (futimens, utimens): Support timespec==NULL, with same semantics
75772         as utime and utimens.
75773         * lib/utimens.h (futimens): New decl.
75774
75775 2004-11-23  Jim Meyering  <jim@meyering.net>
75776
75777         * lib/getopt_.h: Remove trailing blanks.
75778
75779 2004-11-23  Jim Meyering  <jim@meyering.net>
75780
75781         * lib/__fpending.c: Add comment.
75782
75783 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75784
75785         * modules/canonicalize (Depends-on): Add xreadlink.
75786         Problem reported by James Youngman.
75787
75788 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75789
75790         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75791         New macros.
75792         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75793         optopt): Use them instead of invoking ## directly; otherwise, the
75794         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75795
75796 2004-11-19  Bruno Haible  <bruno@clisp.org>
75797
75798         * lib/strtok_r.c: Move comments from here...
75799         * lib/strtok_r.h: ... to here.
75800
75801 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75804         implementations that mishandle size_t overflow.
75805
75806 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75809         might fail.  Problem reported by Yoann Vandoorselaere.
75810         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75811         implementations that mishandle size_t overflow.
75812
75813 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * modules/canon-host (Depends-on): Add strdup.
75816
75817 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75818
75819         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75820
75821 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/canon-host.c: Include "strdup.h".
75824         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75825         Use strdup instead of malloc/strcpy to duplicate strings.
75826
75827         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75828         (human_space_before_unit): New constant.
75829         * lib/human.c (human_readable): Support it.
75830
75831         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75832         (xgetcwd): Set errno correctly when failing.
75833         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75834         the failure is actually due to a PATH_MAX problem.
75835
75836         Further getopt changes to make it more likely that glibc will
75837         buy the changes back.
75838         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75839         (getopt): Use it, so to preserve glibc semantic
75840         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75841         when compiling for libc.
75842         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75843         (getopt_long, getopt_long_only): Use it.
75844
75845         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75846         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75847         (getopt): Argv is now char * const *, as per standard.
75848         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75849         not char *__getopt_argv_const *.
75850         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75851         _getopt_long_only_r): Likewise.
75852         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75853         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75854         _getopt_long_r, _getopt_long_only_r): Likewise.
75855         * lib/getopt_.h (__getopt_argv_const): Remove.
75856         (getopt): Argv is now char * const *, as per standard.
75857
75858         * lib/getdate.y (tORDINAL): New token.
75859         (day, relunit): Allow it for relative times.
75860         (relative_time_table): Use tORDINAL for ordinals.
75861
75862 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75863
75864         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75865         Document that "second" isn't allowed as an ordinal number.
75866
75867 2004-11-16  Jim Meyering  <jim@meyering.net>
75868
75869         * modules/closeout (Depends-on): Add fpending.
75870
75871 2004-11-15  Jim Meyering  <jim@meyering.net>
75872
75873         * lib/closeout.c: Include "__fpending.h" once again.
75874         Include <stdbool.h>.
75875         (close_stdout): Don't fail just because stdout was closed initially,
75876         since some programs don't write to stdout in the normal course of
75877         operation (other than --version and --help), and we don't want this
75878         function to make e.g. `touch file >&-' fail.
75879         But do fail if it was closed and someone has tried to write to it.
75880         E.g., `printf foo >&-' must fail.
75881
75882 2004-11-13  Jim Meyering  <jim@meyering.net>
75883
75884         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75885
75886 2004-11-12  Simon Josefsson  <jas@extundo.com>
75887
75888         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75889         small doc fix is still pending.
75890
75891 2004-11-11  Simon Josefsson  <jas@extundo.com>
75892
75893         * modules/strtok_r: New file.
75894
75895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75896         strtok_r.
75897
75898 2004-11-11  Simon Josefsson  <jas@extundo.com>
75899
75900         * m4/strtok_r.m4: New file.
75901
75902         * m4/getopt.m4: Replace opterr.
75903
75904 2004-11-11  Simon Josefsson  <jas@extundo.com>
75905
75906         * lib/strtok_r.h, strtok_r.c: New file.
75907
75908 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75909
75910         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75911         of replacing opterr, getopt, etc.  This should handle the
75912         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75913
75914 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75917         we can stop lying to compilers about the constness of argv when we
75918         are compiled outside glibc.
75919         (getopt, getopt_long, getopt_long_only): Use it.
75920         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75921         _getopt_internal, getopt): Likewise.
75922         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75923         _getopt_long_only_r): Likewise.
75924         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75925         _getopt_long_r, _getopt_long_only_r): Likewise.
75926
75927         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75928         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75929         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75930         the other external symbols.
75931         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75932         declaration, since the above renaming now works around collisions.
75933
75934 2004-11-11  Jim Meyering  <jim@meyering.net>
75935
75936         * lib/linebreak.c: Remove trailing blanks.
75937         * lib/alloca_.h: Likewise.
75938         * lib/acosl.c: Likewise.
75939         * lib/euidaccess.c: Likewise.
75940         * lib/allocsa.h: Likewise.
75941
75942 2004-11-10  Simon Josefsson  <jas@extundo.com>
75943
75944         * m4/getaddrinfo.m4: New file.
75945
75946 2004-11-10  Simon Josefsson  <jas@extundo.com>
75947
75948         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75949
75950 2004-11-10  Simon Josefsson  <jas@extundo.com>
75951
75952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75953         getaddrinfo.
75954
75955         * modules/getaddrinfo: New file.
75956
75957 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75958
75959         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75960
75961 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75962
75963         * lib/mktime.c (SHR): New macro, which is a portable
75964         substitute for >> that should work even on Crays.
75965         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75966         Problem reported by Mark D. Baushke in
75967         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75968         * lib/getdate.y (SHR): Likewise.
75969         (tm_diff): Use it.
75970         * lib/strftime.c (SHR): Likewise.
75971         (tm_diff): Use it.
75972         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75973         quote_these_too, so that right shifts are well defined.  All uses
75974         changed.
75975
75976 2004-11-10  Jim Meyering  <jim@meyering.net>
75977
75978         Ensure that no close failure goes unreported.
75979         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75980         return early when it seems there's nothing to flush.
75981         Don't include __fpending.h.
75982
75983 2004-11-10  Jim Meyering  <jim@meyering.net>
75984
75985         * modules/closeout (Depends-on): Remove fpending.
75986
75987 2004-11-10  Jim Meyering  <jim@meyering.net>
75988
75989         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75990
75991 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75994         gl_FUNC_STRFTIME.
75995         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75996         and AC_REQUIRE when possible, to avoid duplicate checks.
75997         Check for <wchar.h>.
75998
75999 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76002
76003 2004-11-09  Bruno Haible  <bruno@clisp.org>
76004
76005         * m4/sockpfaf.m4: New file.
76006
76007 2004-11-05  Bruno Haible  <bruno@clisp.org>
76008
76009         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76010         Reported by Mark D. Baushke <mdb@cvshome.org>.
76011
76012 2004-11-04  Bruno Haible  <bruno@clisp.org>
76013
76014         2004-09-11  Bruno Haible  <bruno@clisp.org>
76015                 * allocsa.valgrind: New file.
76016         2004-02-06  Bruno Haible  <bruno@clisp.org>
76017                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76018                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76019                 Reported by Christopher Seip <chris.seip@hp.com>.
76020
76021 2004-11-04  Bruno Haible  <bruno@clisp.org>
76022
76023         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76024         (Makefile.am): Distribute it.
76025
76026 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76027
76028         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76029         with errno == ERANGE if the buffer is too small.
76030         Problem reported by Mark D. Baushke.
76031
76032 2004-11-03  Albert Chin  <china@thewrittenword.com>
76033             Paul Eggert  <eggert@cs.ucla.edu>
76034
76035         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76036         equivalent, substitute $ac_type for equivalent type rather than
76037         blindly using uint32_t *always* which won't work if uint32_t is not
76038         available.  Define _UINT32_T to work around typedef of uint32_t if
76039         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76040         2.5.1.
76041
76042 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * m4/jm-macros.m4: Sync from coreutils.
76045         (gl_MACROS): Check for mbrlen, for pathchk.
76046         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76047
76048 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * lib/xreadlink.c (MAXSIZE): New macro.
76051         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76052         size does not exceed MAXSIZE.  Avoid cast.
76053         As suggested by Mark D. Baushke in
76054         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76055         if readlink fails with buffer size just under MAXSIZE, try again
76056         with MAXSIZE.
76057
76058 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76061
76062 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76063         and  Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76066         (get_date): Overparenthesize to avoid GCC warning.
76067
76068 2004-11-02  Bruno Haible  <bruno@clisp.org>
76069
76070         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76071         returns void.
76072
76073 2004-11-02  Bruno Haible  <bruno@clisp.org>
76074
76075         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76076         function returns void.
76077
76078 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76081         fflush_unlocked, flockfile, funlockfile, funlockfile,
76082         fputs_unlocked, putc_unlocked.
76083
76084 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76085
76086         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76087         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76088         already declared.
76089
76090 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * modules/getdate (Files): Add doc/getdate.texi.
76093         (Depends-on): Add setenv, xalloc.
76094
76095 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76096
76097         * lib/getdate.y: Add support for TZ="foo" within a date string.
76098         Fix some bugs near time_t boundaries.  Reject dates with
76099         out-of-range components, e.g., "Sept 31".
76100         Include <stdlib.h>, "setenv.h", "xalloc.h".
76101         (ISDIGIT_LOCALE): Remove; unused.
76102         Note that the TZ and time functions used here are not reentrant.
76103         (mktime_ok, get_tz): New functions.
76104         (TZBUFSIZE): New constant.
76105         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76106         This requires that we sometimes generate our own TZ="XXX..." setting.
76107
76108 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76109
76110         * doc/getdate.texi: New file, from coreutils with modifications for
76111         the new TZ parsing.
76112
76113 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76114
76115         * lib/mktime.c (not_equal_tm): Remove redundant check.
76116
76117 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76118
76119         * modules/regex (lib_SOURCES): Add regex.c.
76120         Reported by James Youngman in
76121         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76122
76123 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76124
76125         * lib/getdate.y: Use Bison 1.875 features, and some minor
76126         code cleanups.  This change does not affect semantics.
76127         Don't include <stdlib.h>; no longer needed.
76128         Don't include unlocked-io.h; only the "#if TEST" code uses
76129         stdio, and performance isn't crucial there.
76130         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76131         Bison 1.875 features as described below.
76132         All uses of "PC." replaced by "pc->".
76133         (YYSTYPE): Add a forward declaration.
76134         (yylex, yyerror): Use full prototypes in forward decls.
76135         Use "%pure-parser" rather than obsolescent "%pure_parser".
76136         Use %parse-param and %lex-param instead of obsolescent
76137         YYPARSE_PARAM and YYLEX_PARAM.
76138         (meridian_table, month_and_day_table, time_units_table,
76139         relative_time_table, time_zone_table, military_table,
76140         lookup_zone, lookup_word, get_date):
76141         Use NULL instead of 0 where appropriate.
76142         (to_hour): Avoid abort (), to avoid a dependency on
76143         stdlib.h.
76144         (yyerror, yylex): Now accepts parser_control * arg.
76145         (main) [TEST]: Use '\0' rather than 0 for char.
76146
76147 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76150
76151 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76152
76153         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76154         It's now the caller's responsibility to handle the case where
76155         !HAVE_GETPAGESIZE && !defined getpagesize.
76156
76157         * lib/mktime.c (leapyear): Arg is long int, not int.
76158
76159 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76160
76161         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76162
76163 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76164
76165         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76166         missing.  Problem reported by James Youngman.
76167
76168 2004-10-16  Simon Josefsson  <jas@extundo.com>
76169
76170         * gnulib-tool: Fix comments.  Fix parse problem.
76171         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76172
76173 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76176         implementation of getopt_long.  Problem reported by Alexander Taler in:
76177         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76178
76179 2004-10-15  Bruno Haible  <bruno@clisp.org>
76180
76181         * gnulib-tool: Untabify. Initialize supplied_libname.
76182         (func_usage): More homogenous output.
76183         (func_modules_transitive_closure, func_modules_to_filelist,
76184         func_emit_lib_Makefile_am): New functions.
76185         (func_import): New function, extracted from big case statement. Use
76186         func_get_license, func_modules_transitive_closure,
76187         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76188         opt_lgpl. Don't use test -a, as it's not portable.
76189         (func_create_testdir): Use func_modules_transitive_closure,
76190         func_modules_to_filelist, func_emit_lib_Makefile_am.
76191
76192 2004-10-15  Bruno Haible  <bruno@clisp.org>
76193
76194         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76195
76196 2004-10-15  Bruno Haible  <bruno@clisp.org>
76197
76198         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76199         the portions belonging to each module.
76200         Suggested by Derek Robert Price <derek@ximbiot.com>.
76201
76202 2004-10-12  Simon Josefsson  <jas@extundo.com>
76203
76204         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76205         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76206         to real functions.
76207
76208 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76209
76210         * modules/vsnprintf: New file.
76211
76212 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76213
76214         * m4/vsnprintf.m4: New file.
76215
76216 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76217
76218         * lib/vsnprintf.h: New file.
76219         * lib/vsnprintf.c: New file.
76220
76221 2004-10-11  Bruno Haible  <bruno@clisp.org>
76222
76223         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76224         vsnprintf.
76225
76226 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76227
76228         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76229
76230 2004-10-07  Bruno Haible  <bruno@clisp.org>
76231
76232         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76233         fits into the provided buffer.
76234
76235 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76236
76237         * lib/diacrit.c, diacrit.h: Add GPL notice.
76238
76239         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76240         notice.
76241         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76242         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76243         This avoids a potential constant-folding bug.
76244
76245 2004-10-05  Bruno Haible  <bruno@clisp.org>
76246
76247         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76248         for the declaration of strsep.
76249
76250 2004-10-05  Bruno Haible  <bruno@clisp.org>
76251
76252         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76253
76254 2004-10-04  Simon Josefsson  <jas@extundo.com>
76255
76256         * modules/memmem: New file.
76257         * tests/test-memmem.c: New file.
76258         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76259
76260 2004-10-04  Simon Josefsson  <jas@extundo.com>
76261
76262         * m4/memmem.m4: New file.
76263
76264 2004-10-04  Simon Josefsson  <jas@extundo.com>
76265
76266         * lib/memmem.h: New file.
76267         * lib/memmem.c: New file, taken from glibc.
76268
76269 2004-10-04  Simon Josefsson  <jas@extundo.com>
76270
76271         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76272         '#ifdef USE_UNLOCKED_IO'.
76273
76274 2004-10-04  Simon Josefsson  <jas@extundo.com>
76275
76276         * config/srclist.txt: Add memmem from glibc.
76277
76278 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76279
76280         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76281
76282         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76283         modules/exclude, modules/getdate, modules/getline,
76284         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76285         modules/getusershell, modules/linebuffer, modules/md5,
76286         modules/mountlist, modules/posixtm, modules/readtokens,
76287         modules/readutmp, modules/regex, modules/sha1,
76288         modules/version-etc, modules/yesno:
76289         Remove dependency on unlocked-io.
76290
76291 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76294
76295         * m4/unlocked-io.m4: Add copyright notice.
76296         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76297
76298 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76301         * lib/xmalloc.c (xmemdup): Likewise.
76302         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76303         XFREE): Remove these long-obsolescent macros.
76304         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76305         * lib/xstrdup.c: Remove.
76306
76307         * lib/regex.c (re_comp): Cast gettext return value to char *,
76308         Problem reported by Martin Neitzel via Mark D. Baushke.
76309
76310 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76311
76312         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76313         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76314         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76315         regex.c, sha1.c, version-etc.c, yesno.c:
76316         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76317         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76318         the includer's responsibility.
76319
76320         Sync from coreutils.
76321
76322         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76323         points to the start of a string, as the C Standard says the
76324         resulting behavior is undefined.
76325
76326         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76327         simple -> simple_backups, numbered_existing ->
76328         numbered_existing_backups, numbered -> numbered_backups
76329         to avoid shadowing problems.  All uses changed.
76330         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76331         * lib/backupfile.c (check_extension, numbered_backup):
76332         Rename locals to avoid shadowing 'basename'.
76333         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76334         once.
76335
76336         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76337         * lib/.cvsignore: Add getopt.h.
76338
76339 2004-10-04  Bruno Haible  <bruno@clisp.org>
76340
76341         * modules/README: New file.
76342         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76343         not a module.
76344
76345 2004-10-02  Jim Meyering  <jim@meyering.net>
76346
76347         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76348
76349 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76350
76351         * modules/strsep: New file.
76352
76353 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76354
76355         * m4/strsep.m4: New file.
76356
76357 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76358
76359         * lib/strsep.h: New file.
76360         * lib/strsep.c: New file.
76361
76362 2004-10-01  Simon Josefsson  <jas@extundo.com>
76363
76364         * lib/snprintf.c (snprintf): Handle size==0.
76365
76366 2004-10-01  Simon Josefsson  <jas@extundo.com>
76367             Bruno Haible  <bruno@clisp.org>
76368
76369         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76370         (snprintf): Declare 'args'.
76371
76372 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76373
76374         * lib/snprintf.c: Remove comments as to why each header is needed.
76375
76376 2004-10-01  Bruno Haible  <bruno@clisp.org>
76377
76378         * MODULES.html.sh: Add strsep.
76379
76380 2004-09-30  Simon Josefsson  <jas@extundo.com>
76381
76382         * modules/snprintf: New file.
76383
76384 2004-09-30  Simon Josefsson  <jas@extundo.com>
76385
76386         * m4/snprintf.m4: New file.
76387
76388 2004-09-30  Simon Josefsson  <jas@extundo.com>
76389
76390         * lib/snprintf.h, lib/snprintf.c: New files.
76391
76392 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76393
76394         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76395         (hol_entry_help): Never translate an empty string.
76396         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76397         * lib/argp.h (OPTION_NO_TRANS): New option.
76398
76399 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76400
76401         * modules/argp (Maintainer): Replace Simon Josefsson
76402         by Sergey Poznyakoff.
76403
76404 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76405
76406         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76407         changes merged back into glibc.
76408
76409 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76410
76411         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76412
76413 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76414
76415         * lib/xvasprintf.c: Include xalloc.h.
76416         (xvasprintf): Use xalloc_die, not xmalloc_die.
76417
76418 2004-09-29  Bruno Haible  <bruno@clisp.org>
76419
76420         * modules/alloca-opt: New file, derived from modules/alloca.
76421         * modules/allocsa: Depend on alloca-opt instead of alloca.
76422         * modules/setenv: Likewise.
76423         * modules/vasnprintf: Likewise.
76424         * MODULES.html.sh: Add alloca-opt.
76425
76426 2004-09-28  Simon Josefsson  <jas@extundo.com>
76427
76428         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76429         LGPL, and to replace license template from GPL to LGPL.
76430
76431 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76432
76433         * modules/dummy: Change license to LGPL.
76434
76435 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76438
76439 2004-09-24  Simon Josefsson  <jas@extundo.com>
76440
76441         * modules/minmax (License): Change from GPL to LGPL.
76442
76443 2004-09-23  Simon Josefsson  <jas@extundo.com>
76444
76445         * gnulib-tool (--import): Typo.
76446
76447 2004-09-23  Simon Josefsson  <jas@extundo.com>
76448
76449         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76450
76451 2004-09-22  Bruno Haible  <bruno@clisp.org>
76452
76453         * modules/*: Add 'License' field.
76454         * gnulib-tool: Accept --extract-license option.
76455         (func_get_license): New function.
76456
76457 2004-09-21  Bruno Haible  <bruno@clisp.org>
76458
76459         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76460         Reported by Simon Josefsson.
76461
76462 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76465         gl_AC_TYPE_LONG_LONG.
76466
76467 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76468
76469         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76470
76471 2004-09-18  Simon Josefsson  <jas@extundo.com>
76472         and  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76475         calls with autoreconf.  Define GL_LIB.
76476
76477 2004-09-14  Karl Berry  <karl@gnu.org>
76478
76479         * config/srclist.txt: unsync setenv.c, sigh.
76480
76481 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76482
76483         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76484         Problem reported by Bruno Haible in:
76485         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76486
76487 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76488
76489         * config/srclist.txt: Comment out argp-pvh.c.
76490
76491 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76494         in case some system header has #define'd it.  Problem reported by
76495         Soeren D. Schulze in
76496         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76497
76498 2004-09-09  Karl Berry  <karl@gnu.org>
76499
76500         * regex.[ch]: delete from the root.  These were supposed to be
76501                 synced with emacs cvs, but this has not happened for about
76502                 a year, and anyway nothing else uses emacs regex.[ch].
76503                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76504                 lib/regex[.ch] is untouched.
76505
76506 2004-09-09  Bruno Haible  <bruno@clisp.org>
76507
76508         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76509
76510 2004-09-09  Bruno Haible  <bruno@clisp.org>
76511
76512         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76513         modifications.
76514         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76515
76516 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76517
76518         * modules/xvasprintf: New file.
76519         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76520
76521 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76522
76523         * lib/xvasprintf.h: New file.
76524         * lib/xvasprintf.c: New file.
76525         * lib/xasprintf.c: New file.
76526
76527 2004-09-08  Bruno Haible  <bruno@clisp.org>
76528
76529         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76530
76531 2004-09-08  Bruno Haible  <bruno@clisp.org>
76532
76533         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76534         length is > INT_MAX.
76535         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76536         more.
76537
76538 2004-09-08  Bruno Haible  <bruno@clisp.org>
76539
76540         * lib/stdint_.h: New file, taken from GNU clisp.
76541
76542 2004-09-08  Bruno Haible  <bruno@clisp.org>
76543             Oskar Liljeblad  <oskar@osk.mine.nu>
76544
76545         * modules/stdint: New file.
76546         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76547
76548 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76549
76550         Import from coreutils.
76551         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76552         strings on unbounded length.  alloca's performance benefits aren't
76553         that important here.
76554         (V_STRDUP): Remove.
76555         (parse_with_separator): New function, with most of the internals
76556         of the old parse_user_spec.  Allow user to omit both user and group,
76557         for compatibility with FreeBSD.
76558         Clone only the user name, not the entire spec.
76559         Do not set *uid, *gid unless entirely successful.
76560         Avoid memory leak in some failing cases.
76561         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76562         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76563         (parse_user_spec): Rewrite to use parse_with_separator.
76564
76565 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * modules/userspec: Don't depend on alloca.
76568
76569 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76572
76573 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76576         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76577         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76578
76579 2004-08-16  Simon Josefsson  <jas@extundo.com>
76580
76581         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76582         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76583         Add --dry-run for --import.
76584         Let user provided command line parameters override configure.ac
76585         settings.
76586
76587 2004-08-12  Simon Josefsson  <jas@extundo.com>
76588
76589         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76590         as discussed with Paul Eggert in threads rooted at
76591         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76592         and
76593         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76594         Before, the test was empty, and relied on ELIDE_CODE in source
76595         code.)
76596         (gl_PREREQ_GETOPT): New macro.
76597         (gl_GETOPT): Use them.
76598
76599 2004-08-12  Simon Josefsson  <jas@extundo.com>
76600
76601         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76602         * lib/getopt_.h: Renamed from getopt.h.
76603
76604 2004-08-12  Simon Josefsson  <jas@extundo.com>
76605
76606         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76607         Change default library name from libfoo to libgnu.
76608         Now, if you have a configure.ac that says:
76609                 gl_SOURCE_BASE(gl)
76610                 gl_M4_BASE(gl/m4)
76611                 gl_MODULES(error getopt etcetera)
76612                 gl_INIT
76613         you can import all you need by running:
76614                 ../gnulib/gnulib-tool --import
76615
76616         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76617         (Makefile.am): Rewrite, use logic from argz.
76618         (Include): Use <getopt.h> instead of "getopt.h".
76619
76620 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * modules/argp (Files): Add m4/unlocked-io.m4.
76623         (Depends-on): Add extensions.
76624
76625 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76628         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76629         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76630         Check for program_invocation_name, program_invocation_short_name,
76631         flockfile, funlockfile, features.h, _getopt_long_only_r.
76632
76633 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76634
76635         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76636         its complicated substitute.
76637         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76638         and program_invocation_name.
76639         (__argp_basename) [!_LIBC]: Remove; the only use was
76640         replaced by its body.
76641         (__argp_short_program_name): Change condition from
76642         !defined __argp_short_program_name to
76643         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76644         to match argp-namefrob.h.
76645         (__argp_failure): Don't assume strerror_r returns char *.
76646         * lib/argp-parse.c (N_): Define unconditionally.
76647         (argp_default_options): Fill out initializers with 0 to avoid
76648         gcc warnings.
76649
76650 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76653         getopt1.c.
76654
76655 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         Merge from coreutils.
76658
76659         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76660
76661         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76662         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76663
76664 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         Merge from coreutils.
76667
76668         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76669         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76670         for Reliant Unix 5.43.
76671
76672         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76673         (union fooround): Use uintmax_t, not long int.
76674         The rest is a merge from libc:
76675         [defined _LIBC]: Include <shlib-compat.h>.
76676         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76677
76678         * lib/settime.c (settime): Recode to avoid warning with
76679         Sun Forte C 6U2.
76680
76681         * lib/strverscmp.c: Convert to UTF-8.
76682
76683 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76686         m4/uintmax_t.m4.
76687
76688 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76689
76690         * modules/xalloc-die: New file.
76691         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76692
76693         * modules/md5 (Files): Add m4/uint32_t.m4.
76694         * modules/sha1: Renamed from modules/sha.
76695         (Files):
76696         Rename lib/sha.h to lib/sha1.h.
76697         Rename lib/sha.c to lib/sha1.c.
76698         Rename m4/sha.m4 to m4/sha1.m4.
76699         (lib_SOURCES): Likewise.
76700         (configure.ac): Rename gl_SHA to gl_SHA1.
76701         (Include): sha.h -> sha1.h.
76702
76703 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76704
76705         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76706         * m4/sha1.m4: Renamed from sha.m4.
76707         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76708
76709 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * lib/obstack.h (obstack_empty_p):
76712         Don't assume that chunk->contents is suitably aligned.
76713         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76714         Likewise. Problem reported by Benno in
76715         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76716
76717         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76718         readable.  This could be improved further but it'd take some work.
76719
76720 2004-08-08  Simon Josefsson  <jas@extundo.com>
76721
76722         * modules/xgethostname (Depends-on): Remove exit and error (not
76723         used).
76724
76725         * modules/getpass-gnu: Add getpass.h.
76726         (Depends-on): Add stdbool.
76727         * modules/getpass: Add getpass.h.
76728
76729 2004-08-08  Simon Josefsson  <jas@extundo.com>
76730
76731         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76732         Check getpass declaration.
76733
76734 2004-08-08  Simon Josefsson  <jas@extundo.com>
76735
76736         * lib/xgethostname.c: Don't include error.h (not used).
76737
76738         * lib/getpass.h: Add.
76739         * lib/getpass.c: Include getpass.h first.
76740
76741 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         * lib/xalloc-die.c: New file.
76744         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76745         All uses removed.
76746         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76747         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76748         xalloc-die.c.
76749         (_, N_, xalloc_die): Move to xalloc-die.c.
76750         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76751         so that we needn't mess with xalloc_msg_memory_exhausted.
76752
76753         * lib/sha1.h: Renamed from sha.h.
76754         (SHA1_H): Renamed from _SHA_H.
76755         (sha1_ctx): Renamed from sha_ctx.
76756         (sha1_init_ctx): Renamed from sha_init_ctx.
76757         (sha1_process_block): Renamed from sha_process_block.
76758         (sha1_process_bytes): Renamed from sha_process_bytes.
76759         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76760         (sha1_read_ctx): Renamed from sha_read_ctx.
76761         (sha1_stream): Renamed from sha_stream.
76762         (sha1_buffer): Renamed from sha_buffer.
76763         * lib/sha1.c: Likewise; renamed from sha.c.
76764         Do not include <sys/types.h>.
76765         Include <stddef.h> rather than <stdlib.h>.
76766
76767 2004-08-08  Bruno Haible  <bruno@clisp.org>
76768
76769         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76770         FILESYSTEM_PREFIX_LEN.
76771         * lib/progreloc.c: Likewise.
76772         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76773
76774 2004-08-06  Simon Josefsson  <jas@extundo.com>
76775
76776         * modules/progname (Depends-on): Don't depend on stdbool.
76777
76778 2004-08-06  Simon Josefsson  <jas@extundo.com>
76779
76780         * modules/getsubopt: New file.
76781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76782         getsubopt.
76783
76784 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76785
76786         More merge from coreutils.
76787
76788         * m4/utimens.m4, m4/utimecmp.m4: New files.
76789         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76790         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76791         prereq.m4, sha.m4: Import changes from coreutils.
76792
76793 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76794
76795         More merge from coreutils.
76796         * modules/raise, modules/readtokens0, modules/utimens:
76797         * modules/utimecmp, module/xnanosleep: New files.
76798         * modules/strftime: Add lib/strftime.h.
76799         Change include from <time.h> to "strftime.h".
76800         * modules/yesno: Add lib/yesno.h.
76801         * modules/backupfile: Remove lib/addext.c.
76802         * modules/euidaccess: Add stat-macros.h.
76803         * modules/canonicalize, modules/euidaccess,
76804         modules/filemode, modules/lchown, modules/makepath,
76805         modules/rmdir, modules/stat: Likewise.
76806
76807 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76808
76809         Merge from tar.
76810         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76811         SIZE_MAX is a valid preprocessor constant.
76812         (__argp_basename): Change from "#ifndef _LIBC"
76813         to "#ifndef __argp_short_program_name", so that
76814         we don't compile these functions for tar.
76815
76816         More merges from coreutils.
76817         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76818         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76819         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76820         * lib/addext.c: Remove; no longer needed.
76821         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76822         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76823         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76824         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76825         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76826         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76827         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76828         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76829         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76830         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76831         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76832         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76833         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76834         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76835         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76836         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76837         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76838         Import changes from coreutils.
76839
76840 2004-08-05  Simon Josefsson  <jas@extundo.com>
76841
76842         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76843
76844 2004-08-05  Simon Josefsson  <jas@extundo.com>
76845
76846         * m4/getsubopt.m4: New file.
76847
76848 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         Merge from coreutils.
76851
76852         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76853         * m4/getcwd-path-max.m4: New files.
76854
76855         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76856         FILESYSTEM_PREFIX_LEN ->
76857         FILE_SYSTEM_PREFIX_LEN.
76858         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76859         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76860         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76861         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76862
76863         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76864         prerequisite modules now handle the DOS stuff.
76865         Don't check for unistd.h.
76866
76867 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         Merge from coreutils.
76870
76871         * lib/.gdb-history: Remove; this doesn't belong here.
76872
76873         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76874         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76875         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76876         * lib/getcwd.c: New files.
76877
76878         * lib/dirname.h: Include <stdbool.h>.
76879         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76880         for consistency with POSIX terminology.  All uses changed.
76881         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76882         (strip_trailing_slashes): Use bool for booleans.
76883         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76884
76885         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76886         sometimes returns a positive errno value even when it succeeds.
76887         (print_errno_message) [!LIBC]: Fall back on strerror if
76888         __strerror_r fails.
76889
76890         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76891         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76892         (longest_relative_suffix): New function.
76893         (path_concat): Use it.  Assume first argument is not NULL.
76894         Port to DOS.  Omit redundant separators.
76895         Report an error instead of returning NULL.
76896         Use mempcpy instead of memcpy.
76897         (xpath_concat): Remove: not declared or used.
76898
76899         * lib/same.h: Include <stdbool.h>
76900         (same_name): Return bool, not int.
76901         * lib/same.c (same_name): Likewise.
76902         (errno): Don't declare; we assume C89 or better now.
76903
76904         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76905         if not already defined.
76906
76907         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76908         * lib/dup-safer.c (errno): Likewise.
76909
76910 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         Merge from coreutils.
76913         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76914         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76915         * modules/path-concat: Don't depend on strdup.
76916
76917 2004-08-03  Simon Josefsson  <jas@extundo.com>
76918
76919         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76920         * lib/progname.h: Don't include stdbool.h.
76921
76922 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76925         * MODULES.html.sh (func_all_modules): Remove fatal.
76926
76927 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76930
76931 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76932
76933         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76934         working.
76935
76936 2004-08-02  Simon Josefsson  <jas@extundo.com>
76937
76938         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76939         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76940         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76941
76942 2004-08-01  Simon Josefsson  <jas@extundo.com>
76943
76944         * lib/xgetdomainname.c: Include stdlib.h, for free().
76945
76946 2004-07-19  Bruno Haible  <bruno@clisp.org>
76947
76948         * MODULES.html.sh (func_all_modules): Add dummy.
76949
76950 2004-07-16  Simon Josefsson  <jas@extundo.com>
76951
76952         * modules/dummy: New file.
76953
76954 2004-07-16  Simon Josefsson  <jas@extundo.com>
76955
76956         * lib/dummy.c: New file.
76957
76958 2004-07-16  Bruno Haible  <bruno@clisp.org>
76959
76960         * lib/backupfile.h: Add extern "C" for C++.
76961         * lib/closeout.h: Likewise.
76962         * lib/copy-file.h: Likewise.
76963         * lib/findprog.h: Likewise.
76964         * lib/full-write.h: Likewise.
76965         * lib/pathname.h: Likewise.
76966         * lib/progname.h: Likewise.
76967         * lib/stpcpy.h: Likewise.
76968         * lib/stpncpy.h: Likewise.
76969         * lib/strcase.h: Likewise.
76970         * lib/strstr.h: Likewise.
76971         * lib/xalloc.h: Likewise.
76972
76973         * lib/mbswidth.h: Add extern "C" for C++.
76974         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76975
76976 2004-07-13  Robert Millan  <robertmh@gnu.org>
76977
76978         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76979
76980 2004-07-09  Simon Josefsson  <jas@extundo.com>
76981
76982         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76983         failed without this.)
76984
76985 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76986
76987         * modules/chown (Files): Add lib/fchown-stub.c, since
76988         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76989
76990 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76991
76992         * lib/fchown-stub.c: New file.
76993
76994 2004-06-24  Jim Meyering  <jim@meyering.net>
76995
76996         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76997
76998 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76999
77000         * modules/argz: Omit "#include".
77001
77002         * MODULES.html.sh (func_all_modules): Add calloc, to match
77003         2004-06-01 addition of calloc module.
77004
77005 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * m4/argz.m4: New file, which is autoupdated from libtool.
77008
77009 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77012         libtool.
77013
77014 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77015
77016         * config/srclist-update: Don't insist on "USA." before the
77017         close-comment, as libtool omits the period and puts the */ on a
77018         separate line.
77019         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77020         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77021
77022 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77023
77024         * modules/argz: New file.
77025         * MODULES.html.sh (func_all_modules): Add argz.
77026
77027 2004-06-12  Jim Meyering  <jim@meyering.net>
77028         and  Paul Eggert  <eggert@cs.ucla.edu>
77029
77030         * modules/hash (Files): Add lib/xalloc.h.
77031         * modules/pipe (Depends-on): Add wait-process.
77032         * modules/stat (Depends-on): Add xalloc.
77033         * modules/userspec (Files): Add lib/userspec.h.
77034         * modules/xstrto
77035
77036         Upgrade from gettext-0.13.
77037         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77038         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77039         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77040
77041 2004-06-10  Jim Meyering  <jim@meyering.net>
77042
77043         * lib/calloc.c: New file.
77044
77045 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         * lib/getdate.y (yylex): Allow space between sign and number.
77048         Problem reported by Dan Jacobson.
77049
77050 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77051
77052         Merge from coreutils CVS.
77053
77054         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77055         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77056         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77057         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77058         xstrtol.m4: Fix copyright date and/or serial number.
77059
77060         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77061         See if we need an fchown replacement.
77062         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77063         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77064         and use the replacement function if we detect either defect.
77065
77066         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77067         gl_UTIMECMP.
77068
77069 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77070         and  Jim Meyering  <jim@meyering.net>
77071
77072         Merge from coreutils CVS.
77073
77074         * lib/stat-macros.h: New file, with contents from file-type.h
77075         and coreutils' system.h.
77076         * lib/file-type.c: Include "stat-macros.h".
77077         * lib/file-type.h (file_type): Move all macro definitions to new file,
77078         stat-macros.h.
77079
77080         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77081         Wrap old code with this conditional.
77082         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77083         function that does not dereference symlinks.
77084         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77085
77086         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77087         dependency problems.
77088         (xreadlink): Accept new arg SIZE, for efficiency.
77089         All decls and uses changed.
77090         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77091
77092         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77093         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77094
77095         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77096         sysexits.h.
77097
77098 2004-06-01  Jim Meyering  <jim@meyering.net>
77099
77100         * m4/calloc.m4: New file.
77101
77102 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77103
77104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77105         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77106         Also, fix a typo in a diagnostic.
77107
77108 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77111         or AC_FUNC_REALLOC.
77112
77113 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77116         macros to be defined.
77117         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77118         the allocator returns NULL because the requested size is zero.
77119
77120 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77123         var.  Add comment explaining why libc still defines it.  This
77124         merges the following patch from glibc:
77125         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77126
77127 2004-05-20  Andreas Schwab  <schwab@suse.de>
77128
77129         * m4/free.m4: Replace free if it not known to work, not the other
77130         way round.
77131
77132 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77133
77134         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77135         present in glibc since revision 1.1 of this file.
77136         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77137         obstack_alignment_mask, obstack_alloc, obstack_base,
77138         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77139         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77140         obstack_grow0, obstack_init, obstack_int_grow,
77141         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77142         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77143         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77144         nonexistent functions.
77145
77146 2004-05-18  Karl Berry  <karl@gnu.org>
77147
77148         * config/srclist.txt: break link for vasnprintf.c.
77149
77150 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77151
77152         Port obstack to the AS/400, where pointers are 16 bytes wide and
77153         you cannot cast an integer to a valid pointer.  This patch is
77154         currently waiting to be integrated into glibc; see
77155         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77156
77157         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77158         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77159         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77160         (struct obstack): temp member is now a union of a pointer and
77161         an integer, instead of an integer.  All integer uses changed.
77162         This does not affect the physical layout of struct obstack,
77163         except on hosts (like the AS/400) where the size or alignment of
77164         void * is greater than that of ptrdiff_t.
77165         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77166         __STDC__)]: Store temporary in pointer member of union, not
77167         integer member.
77168         * lib/obstack.c: Include <stddef.h>, for offsetof.
77169         (struct fooalign): Remove; it doesn't need a name.
77170         (union fooround): Change double to long double, and add void *.
77171         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77172         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77173         not a macro.  Hence the values are always int; so remove all
77174         casts-to-int in uses.
77175
77176 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77179         we can get this patch merged into glibc.
77180
77181 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77182             Paul Eggert  <eggert@cs.ucla.edu>
77183
77184         * m4/argp: Depend on alloca.
77185
77186 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77187             Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77190         freecoding.
77191
77192 2004-05-17  Bruno Haible  <bruno@clisp.org>
77193
77194         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77195         precision that consists of a '.' followed by an empty digit string.
77196         Patch by Tor Lillqvist <tml@iki.fi>.
77197
77198 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77201         for backward compatibility with older code.  We need our own
77202         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77203         it under some other name, and our alloca.h will define it.
77204
77205 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77206             Derek Price  <derek@ximbiot.com>
77207
77208         * lib/alloca.c: Include <alloca.h>, to get our interface.
77209         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77210         include <alloca.h> first.  Use C89 prototype for alloca; this
77211         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77212         Use #elif for simplicity, since we can assume C89 now.
77213         Don't try to source the system alloca.h since it will not be found
77214         and to prevent recursively including its replacement.
77215         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77216         * lib/regex.c: Likewise.
77217
77218 2004-05-16  Derek Price  <derek@ximbiot.com>
77219             Paul Eggert  <eggert@cs.ucla.edu>
77220
77221         getline cleanup.  This changes the getndelim2 API: both order of
77222         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77223         no delimiter).
77224
77225         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77226         interface does that.
77227         (getline): Always use getdelim, so that we don't have two
77228         copies of this code.
77229         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77230         if available.
77231         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77232         (GETNDELIM2_MAXIMUM): New macro.
77233         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77234         instead of the old practice of delim2==0.  All callers changed.
77235         Return -1 on overflow, instead of returning junk.
77236         Do not set *linesize unless allocation succeeds.
77237         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77238         that we include sys/types.h.
77239         * lib/getnline.h: Likewise.
77240         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77241         (getndelim2): Reorder arguments.
77242         * lib/getnline.c (getnline, getndelim):
77243         Don't discard the NMAX argument.
77244         (getnline): Invoke getndelim, to avoid code duplication.
77245         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77246         of (size_t) -1 by callers of the getnline family.
77247
77248 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77249
77250         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77251         Check for gettimeofday.
77252         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77253         Check for settimeofday, stime.
77254
77255 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * lib/nanosleep.c (suspended): Change its type from int to
77258         sig_atomic_t volatile.
77259         (first_call): Make it private to rpl_nanosleep, and have it
77260         be zero initially as that's a bit faster.
77261         (my_usleep): Round up fractional times instead of truncating them,
77262         as this is the usual meaning for 'sleep'.
77263
77264         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77265         doesn't work.
77266         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77267         (ENOSYS): Define if not defined.
77268         (settime): Fall back on stime if it exists and settimeofday fails.
77269         But don't bother with fallbacks if a method fails with errno == EPERM.
77270
77271 2004-05-11  Jim Meyering  <jim@meyering.net>
77272
77273         Prior to this change, the save_cwd caller required read access to the
77274         current directory on most systems (ones with the fchdir function).
77275
77276         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77277         fails, try write-only, and finally, resort to using xgetcwd.
77278
77279 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77280
77281         * lib/obstack.c, obstack.h: Import changes from libc.
77282
77283 2004-04-28  Bruno Haible  <bruno@clisp.org>
77284
77285         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77286         also implicitly appends .exe to executables.
77287         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77288         accepts Windows pathnames.
77289         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77290         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77291         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77292         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77293         Reported by Derek Robert Price <derek@ximbiot.com>.
77294
77295 2004-04-21  Karl Berry  <karl@gnu.org>
77296
77297         * config/srclist.txt (localcharset.c): break sync.
77298
77299 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77300
77301         * m4/host-os.m4: Add a copyright notice.
77302
77303 2004-04-20  Jim Meyering  <jim@meyering.net>
77304
77305         Change UTILS_ to gl_ in AC_DEFINE'd names.
77306         Change utils_- and jm_-prefixed variables, too.
77307         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77308         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77309         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77310
77311         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77312         Don't emit trailing blanks.
77313         Also rename jm_-prefixed variables to have gl_ prefix.
77314
77315         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77316         Also rename jm_-prefixed variables to have gl_ prefix.
77317
77318         * m4/jm-macros.m4: Reflect the renamings.
77319         * m4/prereq.m4: Likewise.
77320
77321 2004-04-20  Jim Meyering  <jim@meyering.net>
77322
77323         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77324         memory.
77325
77326 2004-04-20  Jim Meyering  <jim@meyering.net>
77327             Bruno Haible  <bruno@clisp.org>
77328
77329         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77330         memory when realloc fails.
77331
77332 2004-04-19  Jim Meyering  <jim@meyering.net>
77333
77334         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77335         now that readutmp.c may call `free (0)'.
77336
77337 2004-04-19  Bruno Haible  <bruno@clisp.org>
77338
77339         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77340         * m4/inttypes_h.m4: Likewise.
77341         * m4/stdint_h.m4: Likewise.
77342         * m4/intmax_t.m4: Likewise.
77343         * m4/uintmax_t.m4: Likewise.
77344
77345 2004-04-18  Jim Meyering  <jim@meyering.net>
77346
77347         * m4/prereq.m4: Don't forbid jm_ prefix.
77348
77349         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77350         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77351         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77352         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77353         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77354         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77355         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77356         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77357         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77358         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77359         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77360         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77361         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77362         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77363         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77364         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77365         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77366         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77367         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77368
77369 2004-04-18  Jim Meyering  <jim@meyering.net>
77370
77371         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77372         failure, don't leak memory and do call END_UTMP_ENT.
77373
77374 2004-04-16  Jim Meyering  <jim@meyering.net>
77375
77376         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77377         coreutils' stat program.
77378         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77379
77380 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77381
77382         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77383         C89.
77384         (CHAR_BIT): Remove, since we assume C89.
77385         Include <stdint.h> if available, as per current Autoconf CVS advice.
77386
77387 2004-03-31  Jim Meyering  <jim@meyering.net>
77388
77389         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77390         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77391         * m4/xalloc.m4: Likewise.
77392
77393 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77394
77395         Merge from coreutils.
77396
77397         * m4/inttostr.m4: New file.
77398         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77399         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77400         Require gl_CLOCK_TIME.
77401         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77402
77403 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77404
77405         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77406         not bool, to be more consistent with Unix conventions.
77407         Suggested by Bruno Haible.
77408
77409         Merge from coreutils.
77410
77411         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77412         * lib/umaxtostr.c: New files.
77413
77414         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77415         the usual <time.h> dance.
77416         (get_date): Change signature to support fractional time stamps.
77417         All callers changed.
77418         * lib/getdate.y: Include "getdate.h" first, as we can now
77419         assume C89 and don't need to worry about 'const'.
77420         Similarly, include "unlocked-io.h" near start, not in middle.
77421         Include <limits.h>.
77422         (textint.value): Use long int rather than int.
77423         (textint.digits): Use size_t rather than int.
77424         (BILLION, LOG10_BILLION): New constants.
77425         (parser_control): New member rel_ns.  Members day_ordinal,
77426         time_zone, month, day, hour, minutes, rel_year, rel_month,
77427         rel_day, rel_hour, rel_minutes, rel_seconds
77428         are now long int, not int.  Member seconds is now struct timespec,
77429         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77430         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77431         not int.
77432         (%union.intval): Now long int, not int.
77433         New member timespec.
77434         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77435         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77436         (spec): Now is a timespec or an item list.
77437         (timespec, items): New nonterminals.
77438         (time, rel, relunit, number, get_date):
77439         Add support for fractional seconds.
77440         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77441         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77442         (to_hour): First arg is now long int, not int.
77443         (to_year): Returns long int, not int.
77444         Don't treat year -70 like 70.
77445         (tm_diff): Returns long int, not int.
77446         (lookup_word): Use bool instead of int when appropriate.
77447         (yylex): Use size_t for count, not int.
77448         Detect overflow when parsing large integer constants.
77449         Add support for fractions.
77450         (get_date): Make pointers 'const' if possible.
77451         Use more-portable code to detect integer overflow.
77452         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77453         Don't use ctime; it's not reliable if the year has >4 digits.
77454
77455         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77456         This is for compatibility with BSD.
77457
77458         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77459         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77460         From coreutils' system.h.
77461
77462         * lib/userspec.c: Don't include "posixver.h".
77463         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77464         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77465         compatible extension.  Simplify code by removing a boolean int
77466         that was always nonzero if a string was nonnull.
77467
77468 2004-03-30  Jim Meyering  <jim@meyering.net>
77469
77470         Merge from coreutils.
77471
77472         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77473         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77474         on some systems one must include <grp.h> before it.
77475         Reported by Christian Krackowizer.
77476
77477 2004-03-30  Jim Meyering  <jim@meyering.net>
77478
77479         Merge from coreutils.
77480
77481         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77482
77483         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77484         an empty input stream.
77485
77486         * lib/readtokens.c: Include <stdbool.h>.
77487         (readtoken): Use `size_t' rather than int/long.
77488         All callers adjusted.
77489         Use `bool' rather than `int' where appropriate.
77490         Use memset rather than an explicit loop.
77491         Use x2nrealloc rather than xrealloc.
77492         Allow the use of `\0' as a delimiter.
77493         (readtokens): Likewise.
77494         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77495
77496 2004-03-30  Jim Meyering  <jim@meyering.net>
77497
77498         * m4/realloc.m4: Remove file, since now it does no more than
77499         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77500         the `configure.ac' section of module/realloc.
77501         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77502
77503 2004-03-30  Bruno Haible  <bruno@clisp.org>
77504
77505         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77506         nonnull.
77507
77508 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77509
77510         Merge changes to getloadavg.c from coreutils and Emacs.
77511
77512         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77513         Define to an expression, not to the empty string.
77514         Include cloexec.h and xalloc.h.
77515         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77516         Use set_cloexec_flag rather than rolling our own.
77517         * lib/cloexec.c, lib/cloexec.h: New files.
77518
77519 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77520
77521         * m4/cloexec.m4: New file.
77522
77523 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77524
77525         * lib/getopt.h: Sync with libc CVS.
77526
77527 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77528             Bruno Haible  <bruno@clisp.org>
77529
77530         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77531         mbswidth.
77532
77533 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77534             Bruno Haible  <bruno@clisp.org>
77535
77536         * lib/mbswidth.h: Include <wchar.h> only if
77537         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77538         <wchar.h>.
77539         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77540
77541 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77542
77543         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77544         Sync with libc CVS.
77545         * lib/getopt_int.h: New file, also synced from libc.
77546
77547 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77548
77549         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77550         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77551         Bring back getopt.c, getopt.h, getopt1.c.
77552
77553 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77554
77555         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77556         All uses changed.  Check for sa_sigaction member; this fixes
77557         a bug first reported by Jason Andrade in
77558         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77559
77560 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77561
77562         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77563         '#if' expressions.  Unlike the code it replaces, it does not
77564         depend on (defined _SC_PAGESIZE).  However, it does depend on
77565         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77566         first reported by Jason Andrade in
77567         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77568
77569 2004-02-25  Simon Josefsson  <jas@extundo.com>
77570
77571         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77572
77573 2004-02-25  Simon Josefsson  <jas@extundo.com>
77574
77575         * lib/strdup.h: New file.
77576         * lib/strdup.c: Include it.
77577         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77578         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77579
77580 2004-02-23  Karl Berry  <karl@gnu.org>
77581
77582         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77583         (from fencepost.gnu.org:/gd/gnuorg).
77584
77585 2004-02-23  Karl Berry  <karl@gnu.org>
77586
77587         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77588         * config/srclist.txt: add maintain/standards documents.
77589
77590 2004-02-18  Bruno Haible  <bruno@clisp.org>
77591
77592         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77593         Reported by Derek Robert Price <derek@ximbiot.com>.
77594
77595 2004-02-16  Karl Berry  <karl@gnu.org>
77596
77597         * config/mkinstalldirs, install-sh: update from automake.
77598
77599 2004-02-06  Karl Berry  <karl@gnu.org>
77600
77601         * m4/po.m4: update from gettext 0.14.1.
77602
77603 2004-02-06  Karl Berry  <karl@gnu.org>
77604
77605         * lib/config.charset: update from gettext 0.14.1.
77606
77607 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77608
77609         Add comments and code, prompted by suggestions from Bruno Haible
77610         for sh-quote.
77611         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77612         describing the enum quoting_style values.
77613         * lib/quotearg.c (quotearg_alloc): New function.
77614         (quotearg_buffer_restyled): Treat lone { and } as special.
77615         Treat = as special.  Work around bug with older shells
77616         that "see" a '\' that is really the 2nd byte of a multibyte char.
77617         Quote empty string with shell_quoting_style.
77618
77619 2004-02-03  Bruno Haible  <bruno@clisp.org>
77620
77621         * m4/pipe.m4: New file, from GNU gettext.
77622
77623 2004-02-03  Bruno Haible  <bruno@clisp.org>
77624
77625         * lib/pipe.h: New file, from GNU gettext.
77626         * lib/pipe.c: New file, from GNU gettext.
77627
77628 2004-01-27  Bruno Haible  <bruno@clisp.org>
77629
77630         * m4/execute.m4: New file, from GNU gettext.
77631
77632 2004-01-27  Bruno Haible  <bruno@clisp.org>
77633
77634         * lib/execute.h: New file, from GNU gettext.
77635         * lib/execute.c: New file, from GNU gettext.
77636         * lib/w32spawn.h: New file, from GNU gettext.
77637
77638 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77639
77640         Merge from diffutils.
77641
77642         * lib/file-type.c (file_type): Add typed memory objects.
77643         * lib/file-type.h (S_TYPEISTMO): New macro.
77644
77645         * lib/c-stack.h (c_stack_action): Remove argv argument.
77646         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77647         (die): Don't calculate message unless segv_action returns.
77648         (get_stack_location, min_address_from_argv, max_address_from_argv,
77649         volatile stack_base, volatile_stack_size): Remove.
77650         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77651         that every segmentation violation is a stack overflow.  (Ouch!)
77652         See Debian bug 136249 (still outstanding) for more info about why
77653         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77654
77655 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77656
77657         Exit-status fix from coreutils.
77658
77659         Use exit_failure consistently in place of EXIT_FAILURE,
77660         so that program exit statuses are consistent on failure.
77661
77662         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77663         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77664         * lib/argmatch.h: Comment fix to match the above.
77665         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77666         Now a macro referring to exit_failure, instead of a separate
77667         variable.  Include "exitfail.h" to get it.
77668         * lib/xstrtol.h: Include "exitfail.h".
77669         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77670
77671         * lib/long-options.c (parse_long_options): Use prototype
77672         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77673         for clarity.
77674
77675 2004-01-21  Jim Meyering  <jim@meyering.net>
77676
77677         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77678         so as not to conflict with a different-sized __mktime_internal
77679         function in GNU libc.
77680         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77681         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77682
77683 2004-01-20  Karl Berry  <karl@gnu.org>
77684
77685         * config/config.guess: update from config.
77686
77687         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77688
77689 2004-01-20  Bruno Haible  <bruno@clisp.org>
77690
77691         Safer stack allocation.
77692         * lib/setenv.c: Include allocsa.h.
77693         (alloca): Remove fallback definition.
77694         (freea): Remove macro.
77695         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77696         instead of freea.
77697
77698 2004-01-20  Bruno Haible  <bruno@clisp.org>
77699
77700         * m4/eealloc.m4: New file, from GNU gettext.
77701
77702 2004-01-20  Bruno Haible  <bruno@clisp.org>
77703
77704         * m4/allocsa.m4: New file, from GNU gettext.
77705
77706 2004-01-20  Bruno Haible  <bruno@clisp.org>
77707
77708         * lib/xallocsa.h: New file, from GNU gettext.
77709         * lib/xallocsa.c: New file, from GNU gettext.
77710
77711 2004-01-20  Bruno Haible  <bruno@clisp.org>
77712
77713         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77714
77715 2004-01-20  Bruno Haible  <bruno@clisp.org>
77716
77717         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77718         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77719         specially.
77720
77721 2004-01-20  Bruno Haible  <bruno@clisp.org>
77722
77723         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77724         patch.
77725
77726 2004-01-20  Bruno Haible  <bruno@clisp.org>
77727
77728         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77729
77730 2004-01-20  Bruno Haible  <bruno@clisp.org>
77731
77732         * lib/eealloc.h: New file.
77733
77734 2004-01-20  Bruno Haible  <bruno@clisp.org>
77735
77736         * lib/binary-io.h: Avoid warnings on Cygwin.
77737
77738 2004-01-20  Bruno Haible  <bruno@clisp.org>
77739
77740         * lib/allocsa.h: New file, from GNU gettext.
77741         * lib/allocsa.c: New file, from GNU gettext.
77742
77743 2004-01-18  Karl Berry  <karl@gnu.org>
77744
77745         * doc/gpl.texi, doc/lgpl.texi: new files.
77746
77747 2004-01-18  Karl Berry  <karl@gnu.org>
77748
77749         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77750         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77751
77752 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77753
77754         Merge from coreutils.
77755
77756         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77757         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77758         (gl_DEFAULT_POSIX2_VERSION): Move
77759         the documentation from 'configure' into 'config.hin',
77760         so that 'configure --help' isn't burdened by it and
77761         we don't have to worry about its formatting there.
77762         Reword the documentation so that it's more succinct
77763         and can be run together into a single paragraph.
77764         * m4/same.m4 (gl_SAME): Check for pathconf.
77765
77766 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77767
77768         Merge from coreutils.
77769
77770         * lib/posixver.c: Include posixver.h.
77771
77772         * lib/same.c: Include <stdbool.h>, <limits.h>.
77773         (_POSIX_NAME_MAX): Define if not defined.
77774         (MIN): New macro.
77775         (same_name): If file names are silently truncated, report
77776         that the file names are the same if they are the same after
77777         the silent truncation.
77778
77779         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77780         conversion function.
77781         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77782         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77783         longer needed.
77784
77785 2004-01-15  Jim Meyering  <jim@meyering.net>
77786
77787         Merge from coreutils.
77788
77789         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77790         if no library is required.
77791         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77792         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77793         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77794         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77795         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77796         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77797         value, $ac_cv_search_crypt, if it's "none required".
77798         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77799         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77800         not gl_FUNC_GETLOADAVG.
77801         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77802         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77803
77804 2004-01-15  Jim Meyering  <jim@meyering.net>
77805
77806         Merge from coreutils.
77807
77808         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77809         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77810         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77811
77812         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77813         optional configure-time default.
77814
77815         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77816
77817         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77818
77819 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77820
77821         Merge from coreutils.
77822
77823         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77824         value, $ac_cv_search_nanosleep, if it's "none required".
77825
77826 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77827
77828         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77829         with like-named macro in fnmatch.c.
77830         (EXT): Use an internal constant instead.
77831
77832         Merge fnmatch patches from glibc.
77833         * lib/fnmatch.c (mbsinit): Remove define.
77834         Add libc_hidden_ver (__fnmatch, fnmatch).
77835         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77836         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77837
77838 2004-01-14  Karl Berry  <karl@gnu.org>
77839
77840         * config/install-sh: update from automake.
77841
77842 2004-01-13  Karl Berry  <karl@gnu.org>
77843
77844         * config/install-sh: update from automake.
77845
77846 2004-01-09  Karl Berry  <karl@gnu.org>
77847
77848         * config/install-sh: update from automake.
77849
77850 2004-01-05  Karl Berry  <karl@gnu.org>
77851
77852         * config/config.{sub,guess}: update from config.
77853
77854 2003-12-31  Karl Berry  <karl@gnu.org>
77855
77856         * config/depcomp: update from automake.
77857
77858 2003-12-14  Karl Berry  <karl@gnu.org>
77859
77860         * lib/config.charset: update from gettext-runtime.
77861
77862 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77863
77864         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77865         Bug reported by Alfred M. Szmidt.
77866
77867 2003-12-03  Bruno Haible  <bruno@clisp.org>
77868
77869         * m4/gettext.m4: Upgrade from gettext-0.13.
77870         * m4/po.m4: Upgrade from gettext-0.13.
77871         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77872         * m4/intmax.m4: New file, from gettext-0.13.
77873         * m4/printf-posix.m4: New file, from gettext-0.13.
77874
77875 2003-11-29  Karl Berry  <karl@gnu.org>
77876
77877         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77878
77879 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77880             Bruno Haible  <bruno@clisp.org>
77881
77882         * lib/printf-parse.h: Don't include sys/types.h.
77883         (ARG_NONE): New macro.
77884         (char_directive): Change type of *arg_index fields to size_t.
77885         * lib/printf-parse.c: Don't include sys/types.h.
77886         (SSIZE_MAX): Remove macro.
77887         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77888         Remove unnecessary overflow check.
77889         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77890         fields.
77891
77892 2003-11-25  Bruno Haible  <bruno@clisp.org>
77893
77894         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77895
77896 2003-11-25  Bruno Haible  <bruno@clisp.org>
77897
77898         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77899         gt_TYPE_SSIZE_T.
77900
77901 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77902
77903         * modules/alloca: Remove dependency on xalloc.
77904
77905 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77906
77907         * lib/alloca.c: Remove dependency on xalloc module.
77908         (xalloc_die): Remove.
77909         (memory_full) [!defined emacs]: New macro.
77910         [!defined emacs]: Don't include xalloc.h.
77911         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77912         address arithmetic overflows.  Change datatypes a bit to avoid
77913         unnecessary casts.
77914
77915 2003-11-22  Jim Meyering  <jim@meyering.net>
77916
77917         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77918         s/size/size_t/.
77919
77920 2003-11-21  Karl Berry  <karl@gnu.org>
77921
77922         * config/config.{sub,guess}: update from config.
77923
77924 2003-11-18  Karl Berry  <karl@gnu.org>
77925
77926         * config/config.{sub,guess}: update from config.
77927
77928         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77929
77930 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77931
77932         * README: Mention that S+T cannot overflow if S is the size of
77933         an existing object and T is sufficiently small.
77934
77935 2003-11-17  Jim Meyering  <jim@meyering.net>
77936
77937         On systems without utime and without a utimes function capable of
77938         dealing with a NULL struct utimbuf* argument, this utime replacement
77939         could -- in unusual circumstances -- leak a file descriptor.
77940         * lib/utime.c: Include <unistd.h> and <errno.h>.
77941         (utime_null): Be sure to close `fd' and to preserve errno.
77942         Reported by Geoff Collyer via Arnold Robbins.
77943
77944 2003-11-17  Bruno Haible  <bruno@clisp.org>
77945
77946         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77947         (Depends-on): Add xsize.
77948
77949 2003-11-17  Bruno Haible  <bruno@clisp.org>
77950
77951         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77952
77953 2003-11-17  Bruno Haible  <bruno@clisp.org>
77954
77955         * lib/vasnprintf.c (alloca): Remove fallback definition.
77956         (freea): Remove definition.
77957         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77958         Reported by Paul Eggert.
77959
77960 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77961             Bruno Haible  <bruno@clisp.org>
77962
77963         Protect against address arithmetic overflow.
77964         * lib/printf-args.h: Include stddef.h.
77965         (arguments): Change type of field 'count' to size_t.
77966         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77967         'unsigned int' where appropriate.
77968         * lib/printf-parse.h: Include sys/types.h.
77969         (char_directive): Change type of *arg_index fields to ssize_t.
77970         (char_directives): Change type of fields 'count', max_*_length to
77971         size_t.
77972         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77973         (SSIZE_MAX): Define fallback value.
77974         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77975         instead of 'int' where appropriate. Check a_allocated, d_allocated
77976         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77977         * lib/vasnprintf.c: Include xsize.h.
77978         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77979         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77980         overflow. Avoid wraparound when converting a width or precision from
77981         decimal to binary.
77982
77983 2003-11-16  Bruno Haible  <bruno@clisp.org>
77984
77985         Update from GNU gettext.
77986         * lib/printf-parse.c: Generalize to it can be compiled for wide
77987         strings.
77988         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77989         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77990         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77991         SNPRINTF): New macros.
77992         Don't include <alloca.h> if the file is used inside libintl.
77993         (local_wcslen): New function, for Solaris 2.5.1.
77994         (VASNPRINTF): Use it instead of wcslen.
77995
77996 2003-11-16  Bruno Haible  <bruno@clisp.org>
77997
77998         * lib/xsize.h (xmax): New function.
77999         (xsum, xsum3, xsum4): Declare as "pure" functions.
78000
78001 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78002
78003         * modules/xalloc (Files): Undo latest change, since xalloc.h
78004         no longer needs SIZE_MAX or PTRDIFF_MAX.
78005
78006 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78007
78008         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78009         gl_PTRDIFF_MAX.
78010
78011 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78012
78013         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78014         "return", to pacify some unknown compiler.  Problem reported
78015         by Joerg Schilling.
78016
78017 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78018
78019         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78020         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78021         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78022         heuristic is just as accurate as far as we know, and it removes a
78023         dependency on size_max.m4 and ptrdiff_max.m4.
78024
78025 2003-11-11  Bruno Haible  <bruno@clisp.org>
78026
78027         * modules/xsize (Files): Add m4/size_max.m4.
78028         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78029
78030 2003-11-11  Bruno Haible  <bruno@clisp.org>
78031
78032         * m4/size_max.m4: New file.
78033         * m4/ptrdiff_max.m4: New file.
78034         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78035         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78036         (gl_XALLOC): Invoke it.
78037
78038 2003-11-11  Bruno Haible  <bruno@clisp.org>
78039
78040         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78041         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78042         defined.
78043
78044 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78045
78046         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78047         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78048         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78049         From Bruno Haible.
78050         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78051         not (size_t) -1, since it's defined here.
78052
78053 2003-11-09  Karl Berry  <karl@gnu.org>
78054
78055         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78056
78057 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78058
78059         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78060         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78061         Reject sizes of exactly SIZE_MAX bytes.
78062         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78063         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78064
78065 2003-11-05  Bruno Haible  <bruno@clisp.org>
78066
78067         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78068         SIZE_MAX defined in <limits.h> on Solaris.
78069
78070 2003-11-04  Jim Meyering  <jim@meyering.net>
78071
78072         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78073         variable names, rather than @VAR@.
78074         * modules/poll: Likewise.
78075
78076 2003-11-04  Bruno Haible  <bruno@clisp.org>
78077
78078         * modules/xsize: New file.
78079         * modules/linebreak: Depend on xsize.
78080         * MODULES.html.sh (func_all_modules): Add xsize.
78081
78082 2003-11-04  Bruno Haible  <bruno@clisp.org>
78083
78084         * m4/xsize.m4: New file.
78085
78086 2003-11-04  Bruno Haible  <bruno@clisp.org>
78087
78088         * lib/xsize.h: New file.
78089         * lib/linebreak.c: Include xsize.h.
78090         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78091         argument for overflow.
78092         Suggested by Paul Eggert.
78093
78094 2003-11-03  Karl Berry  <karl@gnu.org>
78095
78096         * config/config.{guess,sub}: update from config.
78097
78098 2003-11-03  Jim Meyering  <jim@meyering.net>
78099
78100         * modules/userspec (lib_SOURCES): Add userspec.h.
78101         (Include): Add "userspec.h".
78102         Improve description.
78103
78104 2003-11-03  Jim Meyering  <jim@meyering.net>
78105
78106         * lib/userspec.c: Include "userspec.h".
78107         * lib/userspec.h: New file.
78108
78109 2003-11-03  Bruno Haible  <bruno@clisp.org>
78110
78111         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78112
78113 2003-11-03  Bruno Haible  <bruno@clisp.org>
78114
78115         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78116         available, to avoid (extremely rare) race condition.
78117         Suggested by Paul Eggert.
78118
78119 2003-11-02  Karl Berry  <karl@gnu.org>
78120
78121         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78122
78123 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78124
78125         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78126         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78127         (read_filesystem_list): Set and use me_type_malloced.
78128         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78129         whatever the type happens to be), for brevity and consistency.
78130         Check for size calculation overflow on Alphas running OSF/1.
78131
78132 2003-10-31  Jim Meyering  <jim@meyering.net>
78133
78134         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78135
78136         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78137
78138 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78139             Bruno Haible  <bruno@clisp.org>
78140
78141         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78142         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78143
78144 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78147         netbsd*-gnu*.  Suggested by Robert Millan.
78148
78149 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78150
78151         * modules/group-member: Depend on stdbool.
78152
78153 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78154
78155         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78156
78157 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78158
78159         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78160         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78161         after the 'gnu' in these cases.  This fixes some bugs in the
78162         previous change, and is based on suggestions by Robert Millan.
78163
78164 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78165
78166         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78167         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78168         no longer needed.
78169         * lib/quotearg.c (quotearg_n_options): Use it.
78170         * lib/group-member.c: Include <stdbool.h>.
78171         (free_group_info): Arg is now const *; don't free arg.
78172         (get_group_info): Now returns bool and accepts struct group_info *,
78173         rather than returning a malloc'ed struct group_info *.
78174         All uses changed.  Check for overflow in internal size calculation.
78175
78176         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78177         rather than xmalloc/xrealloc.
78178         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78179         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78180         conformance bug: the old code used a pointer after freeing the
78181         storage that it addressed.
78182         * lib/hash.c (hash_initialize): Simplify the code by using
78183         xalloc_oversized rather than doing it by hand.
78184         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78185         the buffer preserved.  Use free and xmalloc instead.
78186         * lib/quotearg.c (quotearg_n_options): Likewise.
78187         Use a simpler test for size overflow.  Don't use xalloc_oversized
78188         because unsigned int might be wider than size_t (!); this suggests
78189         that we should switch from unsigned int to size_t for slot numbers.
78190
78191 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78192
78193         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78194         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78195         NetBSD kernels.  Requested by Richard Stallman.
78196
78197 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78198
78199         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78200         to allocate the returned structure.  Do not allocate a subarray,
78201         as x2nrealloc will do that.
78202         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78203         instead of xnrealloc.
78204         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78205
78206 2003-10-27  Bruno Haible  <bruno@clisp.org>
78207
78208         * lib/stdbool_.h: Better support for BeOS.
78209
78210 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78211
78212         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78213         now uses inline.
78214
78215 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78216
78217         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78218         callers that want to do their own size-overflow checking.  Include
78219         <stdbool.h>, since xalloc_oversized returns bool.
78220         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78221         to use xalloc_oversized.
78222
78223         Add two functions x2realloc, x2nrealloc, for programs that grow
78224         arrays dynamically by doubling their sizes.
78225         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78226         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78227         New functions.
78228
78229         Port to C99 semantics for 'inline' of external functions.
78230         Bug reported by Bruno Haible.
78231         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78232         with the old contents of xnmalloc.
78233         (xnmalloc, xmalloc): Use it.
78234         (xnrealloc_inline): New static inline function,
78235         with the old contents of xnrealloc.
78236         (xnrealloc, xrealloc): Use it.
78237
78238         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78239         that.
78240
78241 2003-10-26  Karl Berry  <karl@gnu.org>
78242
78243         * config/srclist.txt (COPYING.DOC): no longer available from
78244         /gd/gnuorg; don't know where the ultimate source is.
78245
78246 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78247
78248         Fix several address-calculation bugs in the hash modules,
78249         plus some minor code cleanup.
78250
78251         * lib/hash.h: Include <stdbool.h>, for bool.
78252         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78253         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78254         hash_get_n_entries, hash_get_max_bucket_length,
78255         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78256         hash_rehash): Use size_t rather than unsigned.
78257         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78258         hash_get_n_buckets_used, hash_get_n_entries,
78259         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78260         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78261         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78262         Likewise.
78263         (SIZE_MAX): Define if not defined.
78264         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78265         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78266         hash_print):
78267         Use const * when possible.
78268         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78269         (check_tuning): Fix bug: if tuning parameters were very close to
78270         0 or 1, rounding errors could have caused subscript violations.
78271         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78272         (hash_initialize): Add 'fail:' label
78273         to free table and return NULL, and use it to simplify code.
78274         Use calloc rather than clearing the storage ourself.
78275         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78276         buffer size calculations.
78277         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78278         Include <stddef.h>, for size_t.
78279         * lib/hash-pjw.c (hash_pjw): Likewise.
78280         Switch to method described by Bruno Haible.
78281         Include <limits.h>, for CHAR_BIT.
78282         (SIZE_BITS): New macro.
78283
78284 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78285
78286         * m4/getline.m4 (AM_FUNC_GETLINE):
78287         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78288         hosts.  Problem reported by Derek Robert Price in
78289         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78290         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78291         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78292
78293 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78294
78295         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78296         ceiling the allocation at NMAX bytes rather than silently
78297         discarding input bytes before NMAX is reached.  This makes
78298         a difference only if NMAX exceeds SIZE_MAX / 2.
78299
78300         * lib/obstack.c: Merge from glibc.
78301         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78302         Add libc_hidden_def (_obstack_newchunk).
78303         (_obstack_free) [! defined _LIBC]: Remove.
78304         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78305         a clone of the function body.
78306         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78307         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78308
78309         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78310         glibc.
78311         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78312         arg to memcpy.
78313
78314         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78315         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78316         Don't use lvalue casts, as GCC plans to remove support for them
78317         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78318         was also present in the non-GCC version, indicating that this
78319         code had always been buggy and had never been widely used.
78320         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78321         Use the fast variant of each macro, rather than copying the
78322         definiens of the fast variant; that way, we'll be more likely to
78323         catch future bugs in the fast variants.
78324
78325 2003-10-20  Bruno Haible  <bruno@clisp.org>
78326
78327         * modules/wait-process: New file.
78328         * MODULES.html.sh (func_all_modules): Add wait-process.
78329
78330 2003-10-20  Bruno Haible  <bruno@clisp.org>
78331
78332         * m4/wait-process.m4: New file.
78333
78334 2003-10-20  Bruno Haible  <bruno@clisp.org>
78335
78336         * lib/wait-process.h: New file, from GNU gettext.
78337         * lib/wait-process.c: New file, from GNU gettext.
78338
78339 2003-10-19  Jim Meyering  <jim@meyering.net>
78340
78341         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78342         HPUX 10.20.
78343
78344 2003-10-18  Karl Berry  <karl@gnu.org>
78345
78346         * config/config.guess: update from config.
78347
78348 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78349
78350         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78351         (getgroups): First arg is int, not size_t.
78352         Don't let 'free' mangle errno.
78353
78354 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78355
78356         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78357
78358 2003-10-16  Karl Berry  <karl@gnu.org>
78359
78360         * config/config.{guess,sub}: update from config.
78361
78362 2003-10-16  Jim Meyering  <jim@meyering.net>
78363
78364         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78365         memcpy.
78366
78367 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78368
78369         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78370         (SIZE_MAX): Remove.
78371         (new_exclude, add_exclude_file): Initial size no longer needs to
78372         be a power of 2.
78373         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78374         our own address arithmetic overflow checking.
78375
78376         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78377         (fnmatch): Do not alloca more than 2000 wide characters;
78378         instead, use malloc for large buffers.
78379         Check for address arithmetic overflow, and return -1
78380         with errno set to ENOMEM in that case.
78381         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78382         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78383         instead, return -1.  Check for address arithmetic overflow.
78384
78385 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78386
78387         Handle invalid suffixes and overflow independently, so that
78388         callers can treat them independently as needed.  Fix some bugs in
78389         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78390         suffix for a human-readable blocksize.  The major caller-visible
78391         change is the addition of a new
78392         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78393         that both overflow and suffix chars were found.
78394
78395         * lib/human.c (humblock): Don't check separately for invalid suffix
78396         char; that is xstrtoumax's job (now that its bug is fixed).
78397         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78398         INTMAX_MAX]: New macros.
78399         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78400         TYPE_MAXIMUM): New macros.
78401         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78402         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78403         if overflow occurs, as it's what __strtol does and it's more useful
78404         in practice.
78405         (__xstrtol): If __strtol reports some error other than ERANGE,
78406         reflect it to the caller as LONGINT_INVALID.  If it reports
78407         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78408         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78409         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78410         value.
78411         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78412         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78413         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78414         [defined UINTMAX_MAX]: New macros.
78415
78416 2003-10-14  Bruno Haible  <bruno@clisp.org>
78417
78418         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78419
78420 2003-10-14  Bruno Haible  <bruno@clisp.org>
78421
78422         * m4/sig_atomic_t: New file, from GNU gettext.
78423         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78424
78425 2003-10-14  Bruno Haible  <bruno@clisp.org>
78426
78427         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78428         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78429         Also use volatile where needed.
78430
78431 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78432
78433         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78434         Change maintainer from Bruno Haible to 'all'.
78435
78436 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78437
78438         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78439
78440 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78441
78442         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78443         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78444         and define in terms of the other primitives.
78445         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78446         (SIZE_MAX): Define if not already defined.
78447         (array_size_overflow): New function.
78448         (xalloc_die): Abort instead of exiting if 'error' returns.
78449         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78450         (xmalloc, xrealloc): Use them.
78451         (xcalloc): Check for address arithmetic overflow.
78452         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78453         a bit faster than strcpy.
78454
78455 2003-10-10  Simon Josefsson  <jas@extundo.com>
78456
78457         * modules/argp (Depends-on): Add restrict and strcase.
78458
78459 2003-10-10  Simon Josefsson  <jas@extundo.com>
78460
78461         * m4/argp.m4: Add AC_C_INLINE.
78462
78463 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78464
78465         Merge getpass from libc, plus a few fixes.
78466
78467         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78468         Include <stdbool.h>.
78469         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78470         __fsetlocking to empty.
78471         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78472         do include <bits/libc-lock.h>.
78473         Do not include <fcntl.h>; not needed.
78474         [_LIBC]: Include <wchar.h>.
78475         (NOTCANCEL_MODE): New macro.
78476         (flockfile, funlockfile) [_LIBC]: New macros.
78477         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78478         [!_LIBC]: New macros.
78479         (call_fclose): New function.
78480         (getpass): Use it.  Save tty stream separately; this simplifies the
78481         code and makes it more reliable if stdin happens to equal stdout.
78482         Invoke __fsetlocking on tty.
78483         Handle thread cancellation if needed.
78484         Namespace cleanup (use __tcgetattr, __getline).
78485         Use bool for Booleans.
78486         [USE_IN_LIBIO]: Handle wide streams.
78487         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78488         stream might go where.
78489
78490         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78491         doesn't have to include <stdio.h> before us.
78492         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78493         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78494         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78495         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78496         if not declared, so that we can use getpass.c code from libc without
78497         rewriting it.
78498         (flockfile, ftrylockfile, funlockfile): New macros.
78499
78500 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78501
78502         * modules/getpass: Depend on stdbool.
78503
78504 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78505
78506         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78507
78508 2003-10-07  Karl Berry  <karl@gnu.org>
78509
78510         * config/config.{guess,sub}: update from config.
78511
78512 2003-10-06  Jim Meyering  <jim@meyering.net>
78513             Bruno Haible  <bruno@clisp.org>
78514
78515         This lets translators provide better translations for the
78516         "Written by ..." part of --version output.
78517         * lib/version-etc.h: Include stdarg.h.
78518         (version_etc_copyright): Declare as readonly.
78519         (version_etc): Make this function variadic with a NULL-terminated list
78520         of author name strings.
78521         (version_etc_va): New declaration.
78522         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78523         (version_etc_copyright): Declare as readonly.
78524         (version_etc_va): New function. Provide a different translatable string
78525         for each possible number of authors < 10. Abbreviate when there are 10
78526         authors or more.
78527         (version_etc): Make this function variadic. Call version_etc_va.
78528         Suggestion from Gary V. Vaughan.
78529
78530         * lib/long-options.h (parse_long_options): Change prototype: the
78531         authors string is moved to the end and becomes variadic.
78532         * lib/long-options.c: Include stdarg.h.
78533         (parse_long_options): Make this function variadic, too.
78534         Call version_etc_va, not version_etc.
78535
78536 2003-10-06  Bruno Haible  <bruno@clisp.org>
78537
78538         * modules/version-etc-2: Remove file.
78539         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78540
78541 2003-10-06  Bruno Haible  <bruno@clisp.org>
78542
78543         * modules/fatal-signal: New file.
78544         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78545
78546 2003-10-06  Bruno Haible  <bruno@clisp.org>
78547
78548         * m4/fatal-signal.m4: New file.
78549         * m4/signalblocking.m4: New file, from GNU gettext.
78550
78551 2003-10-06  Bruno Haible  <bruno@clisp.org>
78552
78553         * lib/version-etc-2.h: Remove file.
78554         * lib/version-etc-2.c: Remove file.
78555
78556 2003-10-06  Bruno Haible  <bruno@clisp.org>
78557
78558         * lib/fatal-signal.h: New file, from GNU gettext.
78559         * lib/fatal-signal.c: New file, from GNU gettext.
78560
78561 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78562
78563         * README: Rework advice for preventing empty .o files.
78564         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78565         not <sys/types.h>.
78566
78567 2003-10-04  Karl Berry  <karl@gnu.org>
78568
78569         * lib/argp*: update from libc.
78570
78571 2003-10-04  Karl Berry  <karl@gnu.org>
78572
78573         * config/config.{guess,sub}: update from config.
78574
78575 2003-10-02  Bruno Haible  <bruno@clisp.org>
78576
78577         * modules/lchown (Include): Add lchown.h.
78578         * modules/time_r (Include): Use "..." syntax.
78579         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78580
78581 2003-10-01  Simon Josefsson  <jas@extundo.com>
78582
78583         * MODULES.html.sh (func_all_modules): Move gethostname from section
78584         'based on' to section 'lacking' POSIX:2001.
78585
78586 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78587
78588         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78589         to output mode on the same stream.
78590
78591 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78592
78593         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78594         Fix arg typo in previous patch.
78595
78596 2003-09-28  Jim Meyering  <jim@meyering.net>
78597
78598         * lib/error.c: Correct cpp indentation.
78599
78600 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78601
78602         * modules/free: New file.
78603
78604 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78605
78606         * m4/free.m4: New file.
78607
78608 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78609
78610         * lib/minmax.h (MIN, MAX)
78611         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78612         Omit the special code that used __typeof__, since we worry that
78613         it could be more trouble than it's worth.  See:
78614         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78615         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78616
78617         * lib/free.c: New file.
78618
78619 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78620
78621         Trivial fixes to Makefile.am parts of module listings.
78622         * modules/strstr: Append strstr.h to lib_SOURCES.
78623         * modules/strcase: Likewise, for strcase.h.
78624
78625 2003-09-27  Karl Berry  <karl@gnu.org>
78626
78627         * config/mkinstalldirs: update from automake.
78628
78629 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78630
78631         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78632         (error_tail): Do not loop, reallocating temporary buffer, since
78633         the output cannot contain more wide characters than the input
78634         contains bytes, the size must be big enough already.  This avoids
78635         one potential size overflow calculation.  Check for size overflow
78636         when calculating temporary buffer size.  Free temporary buffer
78637         when done, if it was allocated with malloc; this plugs a memory
78638         leak.  Remove casts from void * to pointers, that are no longer
78639         needed now that we're assuming C89 or better.
78640
78641         Merge error changes from glibc.
78642
78643         * lib/error.c, error.h: Update copyright notice header to match glibc.
78644         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78645         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78646         Disable cancellation while printing error.
78647         * lib/error.h: Prepend __ to parameter names.
78648
78649 2003-09-26  Jim Meyering  <jim@meyering.net>
78650
78651         * lib/error.c (error_tail): Move some declarations
78652         into inner scope where the local variables are used.
78653
78654 2003-09-26  Bruno Haible  <bruno@clisp.org>
78655
78656         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78657         stpncpy().
78658         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78659
78660 2003-09-26  Bruno Haible  <bruno@clisp.org>
78661
78662         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78663         (stpncpy): Define as alias for gnu_stpncpy.
78664         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78665
78666 2003-09-25  Simon Josefsson  <jas@extundo.com>
78667
78668         * lib/xgetdomainname.h: New file.
78669         * lib/xgetdomainname.c: New file.
78670
78671 2003-09-25  Simon Josefsson  <jas@extundo.com>
78672             Bruno Haible  <bruno@clisp.org>
78673
78674         * modules/getdomainname: New file.
78675         * modules/xgetdomainname: New file.
78676         * MODULES.html.sh (func_all_modules): Add getdomainname,
78677         xgetdomainname.
78678
78679 2003-09-25  Simon Josefsson  <jas@extundo.com>
78680             Bruno Haible  <bruno@clisp.org>
78681
78682         * m4/getdomainname.m4: New file.
78683
78684 2003-09-25  Simon Josefsson  <jas@extundo.com>
78685             Bruno Haible  <bruno@clisp.org>
78686
78687         * lib/getdomainname.h: New file.
78688         * lib/getdomainname.c: New file.
78689
78690 2003-09-25  Karl Berry  <karl@gnu.org>
78691
78692         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78693
78694 2003-09-25  Karl Berry  <karl@gnu.org>
78695
78696         * config/install-sh: update from automake.
78697
78698 2003-09-25  Bruno Haible  <bruno@clisp.org>
78699
78700         * modules/version-etc-2: New file, from modules/version-etc with
78701         modifications.
78702         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78703
78704 2003-09-25  Bruno Haible  <bruno@clisp.org>
78705
78706         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78707         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78708
78709 2003-09-24  Simon Josefsson  <jas@extundo.com>
78710
78711         * modules/xgethostname: Add xgethostname.h.
78712
78713 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78714
78715         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78716         the buffer associated with the argument.  Bug reported by
78717         Simon Josefsson.
78718
78719 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78720
78721         * README: Document assumptions that 'int' is at least 32 bits
78722         wide, that integer arithmetic is 2's complement without overflow,
78723         that there are no holes in integer values, that adding sizes of
78724         two nonoverlapping objects can't overflow, and that all-bits-zero
78725         yields scalar zero.  Fix spelling and capitalization typos.
78726
78727 2003-09-19  Karl Berry  <karl@gnu.org>
78728
78729         * lib/argp.h: update from libc.
78730
78731 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78732
78733         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78734         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78735         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78736
78737 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78738
78739         * gnulib-tool: Use "test -h", not "test -L", for portability
78740         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78741         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78742         (sed_extract_prog): Issue s commands one-by-one, rather than
78743         using \| in one s command.
78744
78745 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78746
78747         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78748         input error, instead of returning NULL the next time we are called
78749         (and therefore losing track of errno).
78750
78751 2003-09-16  Bruno Haible  <bruno@clisp.org>
78752
78753         * gnulib-tool (func_create_testdir): Warn about duplicated
78754         dependencies.
78755
78756 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78757
78758         * modules/argmatch, modules/fatal, modules/obstack,
78759         modules/xalloc, modules/xgethostname: Sort dependencies by
78760         importance, not alphabetically.
78761
78762 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78763
78764         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78765         fails, so that the caller gets the proper errno.
78766
78767         * lib/readutmp.c (read_utmp): Likewise.
78768         Check for fstat error.  Close stream and free storage
78769         when failing.
78770
78771 2003-09-14  Karl Berry  <karl@gnu.org>
78772
78773         * config/srclist.txt (strdup.c): disable for c89 changes.
78774
78775 2003-09-14  Jim Meyering  <jim@meyering.net>
78776
78777         * lib/getloadavg.c: Correct cpp indentation.
78778         * lib/strdup.c: Likewise.
78779         * lib/vasnprintf.c: Likewise.
78780
78781 2003-09-14  Bruno Haible  <bruno@clisp.org>
78782
78783         * modules/fwriteerror: New file.
78784         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78785
78786 2003-09-14  Bruno Haible  <bruno@clisp.org>
78787
78788         * lib/fwriteerror.h: New file.
78789         * lib/fwriteerror.c: New file.
78790
78791 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78792
78793         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78794         modules/xgethostname, modules/xalloc: Depend on exit.
78795
78796 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78797
78798         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78799
78800         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78801         and AC_MINIX, too, so that their extensions are available.
78802
78803         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78804         This macro has been superseded by gl_BACKUPFILE.
78805
78806         More patches to assume C89 or better.
78807
78808         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78809
78810         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78811         unconditionally.
78812         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78813         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78814         Include <string.h>, <stdlib.h> unconditionally.
78815         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78816         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78817         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78818         headers or for string.h.
78819         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78820         or strtoul.
78821
78822         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78823         headers.
78824         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78825         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78826         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78827         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78828         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78829         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78830         memcpy, memset.
78831         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78832         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78833         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78834         strtol.
78835         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78836         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78837         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78838         strtoul.
78839
78840 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78841
78842         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78843         * lib/obstack.c [!defined _LIBC]: Likewise.
78844         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78845         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78846         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78847
78848         More changes to assume C89 or better.
78849
78850         * lib/error.c (error_tail): Assume vprintf.
78851
78852         * lib/argmatch.c (getenv): Remove decl.
78853         * lib/progreloc.c (get_full_program_name): Define via prototype.
78854         * lib/setenv.c (clearenv): Likewise.
78855         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78856         needed.
78857         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78858         (malloc, memcpy): Remove decls.
78859         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78860         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78861         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78862         (memcpy): Remove macro.
78863         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78864         (__P): Remove.  All uses removed.
78865         (PTR): Remove.  All uses changed to void *.
78866         (CHAR_BIT, NULL): Remove.
78867         (spaces, zeros, memset_space, memset_zero)
78868         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78869         Remove.
78870         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78871         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78872         Define with prototype.
78873         Remove now-unnecessary prototype decl.
78874         (extra_args_spec): Assume ANSI C.  All uses changed.
78875         (extra_args_spec_iso): Remove.
78876         (my_strftime, emacs_strftimeu): Define via prototype.
78877         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78878         unconditionally.
78879         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78880         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78881         (strtoul, strtol): Remove decls.
78882         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78883         LONG_MAX): Remove.
78884         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78885         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78886         (LOCALE_PARAM_PROTO): New macro.
78887         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78888         (INTERNAL (strtol), strtol): Define with a prototype.
78889         (PARAMS): Remove.  All uses removed.
78890         * lib/tempname.c: Include <string.h> unconditionally.
78891         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78892         * lib/xgethostname.c (main): Define with a prototype.
78893         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78894         Include <stdlib.h> unconditionally.
78895         (calloc, malloc, realloc, free): Remove decls.
78896         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78897         Include <stdlib.h> unconditionally.  Sort include file names.
78898         (strtod): Remove.
78899         (xstrtod): Define with a prototype.
78900         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78901         (strtol, strtoul): Remove decls.
78902
78903 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78904
78905         More patches to assume C89 or better.
78906         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78907         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78908         string.h, memchr, STDC_HEADERS.
78909
78910 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78911
78912         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78913         Include <stdlib.h>, <string.h> unconditionally.
78914         Remove now-unnecessary cast to char *.
78915         * lib/strnlen.c: Include <string.h> unconditionally.
78916         * lib/yesno.c (yesno): Define with a prototype.
78917
78918 2003-09-11  Bruno Haible  <bruno@clisp.org>
78919
78920         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78921
78922 2003-09-10  Jim Meyering  <jim@meyering.net>
78923
78924         * lib/error.c: Correct indentation of cpp directives.
78925
78926 2003-09-10  Bruno Haible  <bruno@clisp.org>
78927
78928         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78929         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78930         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78931         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78932         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78933         <stdlib.h> and <string.h> checks.
78934         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78935         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78936
78937 2003-09-10  Bruno Haible  <bruno@clisp.org>
78938
78939         * lib/strcspn.c: Include <string.h> unconditionally.
78940         * lib/strpbrk.c: Include <string.h> unconditionally.
78941         * lib/strstr.c: Include <string.h> unconditionally.
78942         * lib/unicodeio.c: Include <string.h> unconditionally.
78943         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78944         * lib/unsetenv.c: Likewise.
78945         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78946         * lib/yesno.c: Include <stdlib.h> unconditionally.
78947         (rpmatch): Add prototype.
78948
78949 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78950
78951         More patches to assume C89 or better.
78952         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78953         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78954         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78955         or for string.h.
78956         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78957         stdlib.h.
78958         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78959         C headers.
78960         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78961         string.h.
78962         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78963         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78964         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78965         or for string.h.
78966         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78967         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78968         C headers.
78969         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78970         memcpy.
78971         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78972         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78973         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78974         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78975         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78976         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78977         string.h, free.
78978         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78979         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78980         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78981         C headers, or for string.h.
78982         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78983         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78984         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78985         headers, memory.h, stdlib.h, string.h, strings.h.
78986         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78987         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78988         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78989         strchr.
78990         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78991         headers, memory.h, string.h.
78992         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78993         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78994         free.
78995         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78996         headers.
78997         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78998         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78999         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79000         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79001         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79002
79003 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79004
79005         More K&R removal.
79006
79007         * lib/acosl.c (main): Use a prototype.
79008         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79009         tanl.c: Likewise.
79010
79011         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79012
79013         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79014         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79015         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79016         with a prototype.
79017         * lib/getopt.c (const): Remove macro.
79018         Include <string.h> unconditionally.
79019         (my_index): Remove; all uses changed to strchr.
79020         (strlen): Remove decl.
79021         (exchange): Remove forward decl; no longer needed.
79022         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79023         Define with prototype.
79024         * lib/getopt1.c (const): Remove macro.
79025         (getopt_long, getopt_long_only, main): Define with prototype.
79026
79027         * lib/getugroups.c: Include <string.h> unconditionally.
79028
79029         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79030         (getusershell, setusershell, endusershell, readname, main):
79031         Define with prototypes.
79032
79033         * lib/group-member.c: Include group-member.h first.
79034         Include <stdlib.h> unconditionally.
79035
79036         * lib/hard-locale.c: Include hard-locale.h first.
79037         Include <stdlib.h>, <string.h> unconditionally.
79038
79039         * lib/hash.c (free, malloc): Remove decls.
79040         Include <stdlib.h> unconditionally.
79041
79042         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79043         (getenv): Do not declare.
79044
79045         * lib/idcache.c: Include <string.h> unconditionally.
79046
79047         * lib/long-options.c: Include long-options.h first, to test interface.
79048         Include <stdlib.h> unconditionally.
79049
79050         * lib/makepath.c: Include makepath.h first, to test interface.
79051         Include <stdlib.h> and <string.h> unconditionally.
79052
79053         * lib/linebuffer.c: Include <stdlib.h>.
79054         (free): Remove decl.
79055
79056         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79057         stddef.h. rpl_malloc returns void *, not char *.
79058         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79059         prototype.
79060
79061         * lib/md5.h: Include <limits.h> unconditionally.
79062         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79063         (__P): Remove; all uses removed.
79064         * lib/md5.c: Include "md5.h" first.
79065         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79066         md5_buffer, md5_process_bytes, md5_process_block):
79067         Define with prototypes.
79068         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79069         * lib/sha.c: Include "sha.h" first.
79070         Include <stdlib.h>, <string.h> unconditionally.
79071
79072         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79073         * lib/memcmp.c (__ptr_t): Likewise.
79074         * lib/memrchr.c (__ptr_t): Likewise.
79075         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79076         Include <string.h> unconditionally.
79077         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79078         * lib/memchr.c: Include <stdlib.h> unconditionally.
79079         * lib/memchr.c (LONG_MAX): Remove.
79080         * lib/memrchr.c (LONG_MAX): Likewise.
79081         * lib/memchr.c (__memchr): Define via a prototype.
79082         * lib/memrchr.c (__memrchr): Likewise.
79083         * lib/memcmp.c (__P): Remove, and remove all uses.
79084         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79085         Remove forward decls; no longer needed.
79086         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79087         Use types required by C89 in prototype.
79088
79089         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79090         * lib/savedir.c: Likewise.
79091         * lib/mkdir.c (free): Remove decl.
79092         * lib/rmdir.c (rmdir): Define with a prototype.
79093         * lib/savedir.c: Include savedir.h first, to test interface.
79094
79095         * lib/mktime.c (STDC_HEADERS): Remove.
79096         Include <stdlib.h>, <string.h> unconditionally.
79097
79098         * lib/modechange.c: Include <stdlib.h> unconditionally.
79099         (malloc): Remove decl.
79100
79101         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79102         (free): Remove decl.
79103
79104         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79105         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79106         (This type really should be intptr_t, but that's a C99ism.)
79107         (_obstack_memcpy): Remove: all uses changed to memcpy.
79108         Include <string.h> unconditionally.
79109         (struct obstack): Assume __STDC__ for types of members
79110         chunkfun, freefun, extra_arg.
79111         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79112         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79113         obstack_begin, obstack_specify_allocation,
79114         obstack_specify_allocation_with_arg, obstack_chunkfun,
79115         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79116         Remove unprototyped decls and the macros that use them.
79117         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79118         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79119         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79120         (defined __STDC__ && __STDC__)]:
79121         Remove nonprototyped code.
79122         Include <stdlib.h> unconditionally.
79123         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79124         _obstack_allocated_p, _obstack_free, obstack_free,
79125         _obstack_memory_used, print_and_abort):
79126         Define using prototypes.
79127         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79128         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79129         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79130         obstack_next_free, obstack_object_size, obstack_room) [0]:
79131         Remove unused, unprototyped code.
79132
79133         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79134
79135         * lib/physmem.c (physmem_total, physmem_available, main): Define
79136         with prototypes.
79137
79138         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79139         (main): Define with a prototype.
79140
79141         * lib/posixver.c (getenv): Remove decl.
79142
79143         * lib/putenv.c (malloc): Returns void *, not char *.
79144         Include <string.h> unconditionally.
79145         (strchr, memcpy, NULL): Do not define.
79146
79147         * lib/readtokens.c: Include readtokens.h first, to test interface.
79148         Include <stdlib.h>, <string.h> unconditionally.
79149         (init_tokenbuffer): Define with a prototype.
79150
79151         * lib/regex.c (PARAMS): Remove.  All uses removed.
79152         All uses of _RE_ARGS removed, too.
79153         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79154         unconditionally.
79155         (bzero): Assume memset exists.
79156         (memcmp, memcpy, NULL): Remove.
79157         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79158         char, or assignments to local vars of type signed char.
79159         (init_syntax_once, PREFIX(extract_number_and_incr),
79160         PREFIX(print_partial_compiled_pattern),
79161         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79162         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79163         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79164         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79165         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79166         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79167         wcs_compile_range, byte_compile_range, truncate_wchar,
79168         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79169         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79170         count_mbs_length, wcs_re_match_2_internal,
79171         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79172         PREFIX(alt_match_null_string_p),
79173         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79174         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79175         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79176         now-unnecessary declaration, if any.
79177         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79178         regcomp, regexec):
79179         Remove now-unnecessary casts among pointer types.
79180         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79181
79182         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79183         (free): Remove decl.
79184
79185         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79186
79187         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79188         (free): Remove decl.
79189
79190         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79191         * lib/xgetcwd.c: Likewise.
79192
79193         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79194         (free): Remove decl.
79195
79196         * lib/strchrnul.c (strchrnul): Define with a prototype.
79197         Fix bug: c_in was not converted to char before searching.
79198
79199         The following changes are not K&R related:
79200
79201         * lib/group-member.h: Include <sys/types.h>, so that this file is
79202         self-contained.
79203         * lib/makepath.h: Likewise.
79204
79205         * lib/getusershell.c (readname, default_index, line_size, readname):
79206         Use size_t, not int, for sizes.
79207         (readname): If the size overflows, report an error instead of
79208         looping forever.
79209
79210 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79211
79212         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79213         libc.
79214
79215 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79216
79217         * README: New section: portability guidelines.
79218
79219 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79220
79221         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79222         C89 spec.
79223
79224 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79225
79226         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79227
79228 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79229
79230         Assume C89 or better; remove K&R cruft.
79231         A few of these changes were first proposed by Derek Robert Price
79232         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79233
79234         * lib/addext.c: Include <string.h> unconditionally.
79235         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79236         Don't declare getenv or malloc.
79237
79238         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79239         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79240         (NULL): Remove.
79241         (find_stack_direction, alloca): Use prototypes.
79242
79243         * lib/atexit.c (atexit): Define using a prototype.
79244
79245         * lib/basename.c, dirname.c, stripslash.c:
79246         Include <string.h> unconditionally.
79247
79248         * lib/bcopy.c: Include <stddef.h>.
79249         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79250
79251         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79252
79253         * lib/error.h (error, error_at_line, error_print_progname)
79254         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79255         * lib/error.c: Include error.h first, to check interface.
79256         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79257         (VA_START): Remove; all uses changeed to va_start.
79258         (exit, strerror): Remove decls.
79259         (error_print_progname): Prototype uncondionally.
79260         Don't include <errno.h>; no longer needed.
79261         (private_strerror): Remove.
79262         (error_tail): Always define.
79263         (error, error_at_line): Assume C89 or better; always use prototypes.
79264         * lib/fatal.c: Include "fatal.h" first, to test interface.
79265         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79266         (VA_START): Remove; all uses changed to va_start.
79267         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79268         this case.
79269         (exit): Remove decl.
79270         (fatal): Prototype unconditionally.  Assume va_start works.
79271         Abort at end, to pacify gcc.
79272
79273         * lib/euidaccess.c (main): Define with a prototype.
79274
79275         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79276
79277         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79278
79279         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79280         prototypes.
79281         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79282         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79283         (getenv): Remove decl.
79284         (fnmatch): Define using a prototype.
79285         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79286         (FCT): Define using a prototype.
79287
79288         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79289
79290         * lib/gethostname.c: Include <stddef.h>.
79291         (gethostname): Define with prototype.  Length is size_t, not int.
79292
79293 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79294
79295         Assume C89 or better; remove K&R cruft.
79296         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79297         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79298         string.h, getenv, malloc.
79299         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79300         headers.
79301         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79302         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79303         do not check for strerror.
79304         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79305         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79306         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79307         do not check for doprnt or vprintf.
79308         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79309         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79310
79311 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79312
79313         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79314         getversion.c should have been removed then, but was accidentally
79315         preserved.
79316
79317         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79318         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79319
79320 2003-09-08  Karl Berry  <karl@gnu.org>
79321
79322         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79323                 config, forget about prep.
79324
79325         * config/depcomp, missing: update from automake.
79326
79327 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79328
79329         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79330         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79331
79332 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79333
79334         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79335         copy_tm_result.  Bug reported by Simon Josefsson in
79336         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79337
79338 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79339
79340         * m4/time_r.m4: New file.
79341         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79342         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79343         is. Check for timegm declaration.
79344         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79345         Do not check for gmtime_r.
79346         Replace mktime if __mktime_internal does not exist and if mktime
79347         hasn't been replaced already.
79348
79349 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79350
79351         * lib/time_r.c, lib/time_r.h: New files.
79352
79353         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79354         __localtime_r.
79355         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79356         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79357
79358         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79359         __gmtime_r.
79360         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79361         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79362         Include <time_r.h>.
79363
79364         * lib/timegm.c: Switch to glibc implementation, with the following
79365         changes:
79366         [defined HAVE_CONFIG_H]: Include <config.h>.
79367         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79368         (__mktime_internal) [!defined _LIBC]: New decl.
79369         (__gmtime_r) [!defined _LIBC]: New macro and function.
79370         (timegm): Use a prototype, since gnulib assumes C89.
79371         Do not bother declaring tmp to be const, as it's not really usefu.
79372         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79373         (timegm): Declare only if HAVE_DECL_TIMEGM.
79374
79375 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79376
79377         * MODULES.html.sh (func_all_modules): Add time_r.
79378         * modules/time_r: New file.
79379         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79380         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79381
79382 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79383
79384         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79385         Bug reported by Lute Kamstra in
79386         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79387
79388         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79389         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79390         course with correspondingly smaller numbers for tomorrow and
79391         yesterday.  From Tadayoshi Funaba.  Originally installed into
79392         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79393         coreutils merge?).
79394
79395 2003-08-31  Simon Josefsson  <jas@extundo.com>
79396
79397         * modules/timegm: New file.
79398         * MODULES.html.sh (func_all_modules): Add timegm.
79399
79400 2003-08-31  Simon Josefsson  <jas@extundo.com>
79401
79402         * m4/timegm.m4: New file.
79403
79404 2003-08-31  Simon Josefsson  <jas@extundo.com>
79405
79406         * lib/timegm.h: New file.
79407         * lib/timegm.c: New file.  Based on
79408         wget-1.8.2/src/http.c:mktime_from_utc.
79409
79410 2003-08-31  Karl Berry  <karl@gnu.org>
79411
79412         * lib/argp.h: update from libc.
79413
79414 2003-08-28  Bruno Haible  <bruno@clisp.org>
79415
79416         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79417         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79418         followed by '#define fnmatch fnmatch_posix' gives an error.
79419
79420 2003-08-28  Bruno Haible  <bruno@clisp.org>
79421
79422         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79423         warning on QNX, which defines O_BINARY to 000000.
79424
79425 2003-08-27  Jim Meyering  <jim@meyering.net>
79426
79427         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79428         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79429         would fail after 32.  Reported by Danny Levinson.  Details here:
79430         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79431
79432 2003-08-24  Bruno Haible  <bruno@clisp.org>
79433
79434         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79435         MSVC7 <stdio.h> is included later.
79436
79437 2003-08-22  Simon Josefsson  <jas@extundo.com>
79438
79439         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79440
79441 2003-08-20  Karl Berry  <karl@gnu.org>
79442
79443         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79444
79445 2003-08-20  Bruno Haible  <bruno@clisp.org>
79446
79447         * modules/progname: New file.
79448         * MODULES.html.sh (func_all_modules): Add progname.
79449
79450 2003-08-20  Bruno Haible  <bruno@clisp.org>
79451
79452         * lib/progname.h: New file, from GNU gettext.
79453         * lib/progname.c: New file, from GNU gettext.
79454         * lib/progreloc.c: New file, from GNU gettext.
79455
79456 2003-08-19  Jim Meyering  <jim@meyering.net>
79457
79458         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79459         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79460
79461 2003-08-19  Bruno Haible  <bruno@clisp.org>
79462
79463         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79464         more.
79465
79466 2003-08-19  Bruno Haible  <bruno@clisp.org>
79467
79468         * lib/xstrdup.c: Assume <string.h> exists.
79469
79470 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79471
79472         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79473         in makefile rules.
79474
79475 2003-08-18  Jim Meyering  <jim@meyering.net>
79476
79477         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79478         * m4/lib-ld.m4: Likewise.
79479
79480 2003-08-18  Jim Meyering  <jim@meyering.net>
79481
79482         * lib/setenv.h: Indent nested cpp directive.
79483         * lib/vasnprintf.c: Remove trailing blanks.
79484
79485 2003-08-17  Simon Josefsson  <jas@extundo.com>
79486
79487         * modules/xstrndup: New file.
79488         * MODULES.html.sh (func_all_modules): Add xstrndup.
79489
79490 2003-08-17  Simon Josefsson  <jas@extundo.com>
79491
79492         * modules/argp: Fix autoconf macro name. Add more dependencies.
79493
79494 2003-08-17  Simon Josefsson  <jas@extundo.com>
79495
79496         * m4/xstrndup.m4: New file.
79497
79498 2003-08-17  Simon Josefsson  <jas@extundo.com>
79499
79500         * m4/argp.m4: New file.
79501
79502 2003-08-17  Simon Josefsson  <jas@extundo.com>
79503             Bruno Haible  <bruno@clisp.org>
79504
79505         * lib/xstrndup.h: New file.
79506         * lib/xstrndup.c: New file.
79507
79508 2003-08-17  Bruno Haible  <bruno@clisp.org>
79509
79510         * modules/strndup (Files, Include): Add lib/strndup.h.
79511
79512 2003-08-17  Bruno Haible  <bruno@clisp.org>
79513
79514         * modules/euidaccess (Files): Add lib/euidaccess.h.
79515
79516 2003-08-17  Bruno Haible  <bruno@clisp.org>
79517
79518         * lib/strndup.h: New file.
79519
79520 2003-08-17  Bruno Haible  <bruno@clisp.org>
79521
79522         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79523         like AC_GNU_SOURCE.
79524         * modules/extensions (configure.ac): Comment out the invocation of
79525         gl_USE_SYSTEM_EXTENSIONS.
79526
79527 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79528
79529         Merges from coreutils, etc.
79530         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79531         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79532         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79533         fixing a typo.
79534         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79535         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79536
79537 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79538
79539         Document merge from coreutils.
79540         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79541         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79542         * modules/utime: Add m4/utimes-null.m4.
79543
79544 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79545
79546         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79547         space, undoing this 2003-08-12 change:
79548         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79549
79550 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79551
79552         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79553         strtoul.c from libc, undoing this 2003-08-12 change:
79554         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79555
79556 2003-08-16  Jim Meyering  <jim@meyering.net>
79557
79558         Merges from coreutils.
79559         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79560         prefix.  Adjust cache variables similarly.  Create 500 rather than
79561         just 300 files, to exercise bug on Darwin6.5, too.
79562         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79563         $missing_dir.
79564         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79565         AM_SYS_POSIX_TERMIOS.
79566         Reported by mkc@mathdogs.com.
79567         Also change use of $am_cv_sys_posix_termios
79568         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79569         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79570         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79571         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79572         in /proc/mounts until it finds one with matching device number.  This
79573         is unnecessary when the FILE argument *is* a mount point.  No stat call
79574         is necessary in that case.  So, disable the statvfs-testing code on
79575         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79576         as RedHat bug# 84846.
79577         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79578         to 1MB, so as not to render systems with no stack size limit (e.g.,
79579         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79580         Include <unistd.h>.  On some systems,
79581         it is required for the definition of _SC_PAGESIZE.
79582
79583 2003-08-16  Jim Meyering  <jim@meyering.net>
79584
79585         Merge from coreutils.
79586         * lib/xstrtoimax.c: #else #if -> #elif.
79587         * lib/xstrtoumax.c: Likewise.
79588
79589 2003-08-16  Jim Meyering  <jim@meyering.net>
79590
79591         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79592         * m4/utimes.m4: Removed.
79593         * m4/utimes-null.m4: Renamed from utimes.m4.
79594
79595         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79596         to 1MB, so as not to render systems with no stack size limit (e.g.,
79597         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79598         Include <unistd.h>.  On some systems,
79599         it is required for the definition of _SC_PAGESIZE.
79600
79601 2003-08-16  Jim Meyering  <jim@meyering.net>
79602         and Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         Merges from coreutils, etc.
79605
79606         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79607         using the latest version from cvs.  This avoids problems with #line
79608         directives using a vendor (Sun) compiler.
79609         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79610         Don't set GETGROUPS_LIB here; now it's
79611         done via getgroups.m4's wrapper function.
79612         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79613         rather than just in sh-util/configure.in, so that the
79614         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79615         same.
79616         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79617         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79618         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79619         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79620         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79621         Remove code that is now done by the newly-required macros.
79622         Append $(EXEEXT) to DF_PROG.
79623         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79624         Do not invoke or require the following here,
79625         since prereq.m4 or some gnulib .m4 now does this for us:
79626         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79627         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79628         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79629         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79630         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79631         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79632         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79633         AC_FUNC_OBSTACK.
79634         Do not replace the following functions, as this is now the job
79635         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79636         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79637         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79638         atexit getpass, strdup, getpagesize.
79639         Replace 'raise'.
79640         Do not check for the following functions, as this is now the job
79641         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79642         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79643         setregid.
79644         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79645         Check for sys/sysctl.h.
79646         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79647         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79648         of checking for ssize_t ourselves.
79649
79650         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79651         Require every macro that gnulib/modules/* suggests for us.
79652         (jm_PREREQ_ADDEXT): New macro.
79653         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79654         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79655
79656         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79657         (gl_PHYSMEM): Use it.
79658         Also check for `table' function.
79659         Check for new headers and functions.
79660         Add check for sys/sysmp.h.
79661         With suggestions from Kaveh Ghazi.
79662         Ignore headers that are present but cannot be compiled.  This
79663         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79664         C 5.4.
79665
79666 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79667
79668         Document merge from coreutils.
79669         * modules/userspec: Depend on posixver.
79670         * modules/strftime: Depend on tzset.
79671
79672 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79673
79674         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79675         rather than tab, after '#' in shell-script copyright notices.
79676         Suggested by Bruno Haible.
79677
79678 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79679
79680         * config/srclist-update: Use three spaces, rather than tab, after '#'
79681         in shell-script copyright notices.  Suggested by Bruno Haible.
79682         Remove unnecessary parenthesization in regular expression.
79683
79684 2003-08-15  Jim Meyering  <jim@meyering.net>
79685
79686         Merge from coreutils.
79687         * lib/xgethostname.c: Include <stdlib.h>.
79688         (xghostname): Don't exit for anything other than memory-related
79689         failure; just return NULL.
79690         * lib/userspec.c: Include "posixver.h".
79691         (parse_user_spec): Accept `.' as a separator only
79692         in pre-POSIX-200112 mode.
79693         * lib/strtoimax.c: Use #elif rather than #else #if.
79694         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79695         Remove function, now that we can rely on a working tzset function.
79696         [!_LIBC]: Ensure that the required autoconf test has been run.
79697         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79698         Use underlying_strftime for %r.
79699         * lib/sha.c: Merge in some clean-up and optimization changes from
79700         glibc.
79701         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79702         Ensure that it is a multiple of 64.
79703         Rearrange loop exit tests so as to avoid performing an
79704         additional fread after encountering an error or EOF.
79705         * lib/realloc.c: Update copyright date.
79706
79707 2003-08-15  Jim Meyering  <jim@meyering.net>
79708         and Paul Eggert  <eggert@twinsun.com>
79709
79710         Merge from coreutils.
79711         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79712         member but strut utmpx does not.  Needed for AIX 4.3.3.
79713         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79714
79715 2003-08-15  Jim Meyering  <jim@meyering.net>
79716         and Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         Merges from coreutils, etc.
79719         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79720         Require gl_FUNC_TZSET_CLOBBER.
79721         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79722         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79723         members.
79724
79725 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79726
79727         Help the merge from coreutils.
79728         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79729         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79730         * m4/tzset.m4: Use it too.
79731
79732 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79733
79734         * modules/tzset: New file.
79735
79736 2003-08-14  Jim Meyering  <jim@meyering.net>
79737
79738         Merges from coreutils.
79739         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79740         variable names, rather than @FNMATCH_H@.
79741         * modules/alloca: Likewise for $(ALLOCA_H).
79742
79743         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79744         the three copies of the literal target, `fnmatch.h'.
79745         * modules/alloca (alloca.h): Likewise.
79746
79747 2003-08-14  Jim Meyering  <jim@meyering.net>
79748
79749         Merge from coreutils.
79750         * m4/tzset.m4: New file.
79751         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79752         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79753         otherwise, AIX 5.1 systems would end up using the latter.
79754         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79755         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79756         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79757         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79758
79759 2003-08-14  Jim Meyering  <jim@meyering.net>
79760
79761         Merge from coreutils.
79762         * lib/obstack.h: Whitespace changes.
79763         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79764         and xcalloc return values.
79765         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79766         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79767         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79768         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79769         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79770         error from mntctl.
79771         Use mntctl's return value to drive the entry-processing loop, since
79772         we can't rely on the value of the vmt_length member in the last
79773         entry.  On some systems doing so could result in exhausting
79774         virtual memory.  Based in part on a patch from Mike Jetzer.
79775
79776 2003-08-14  Jim Meyering  <jim@meyering.net>
79777         and Paul Eggert  <eggert@twinsun.com>
79778
79779         Merges from coreutils, plus other fixes.
79780         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79781         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79782         for credits and details.  Thanks to Kaveh Ghazi for helping
79783         to keep these files in sync.
79784         (ARRAY_SIZE): Define it.
79785         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79786         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79787         (memcasecmp): Don't assume size_t fits in unsigned int.
79788         Remove casts and duplicate code.
79789         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79790         (memcpy): Remove definition.
79791         Merge in some clean-up and optimization changes from glibc.
79792         [BLOCKSIZE]: Move definition to top of file.
79793         Ensure that it is a multiple of 64.
79794         Rearrange loop exit tests so as to avoid performing an
79795         additional fread after encountering an error or EOF.
79796         * lib/md5.h (md5_uintptr): Define.
79797         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79798         return to the initial working directory.  Preserve errno
79799         for caller.
79800         * lib/idcache.c: Include "xalloc.h".
79801         (xmalloc, xrealloc): Remove decls.
79802         (getuser): Remove casts no longer required in C89.
79803         * lib/human.c: Include stdio.h, for sprintf.
79804         * lib/group-member.c: Include "xalloc.h".
79805         (xmalloc, xrealloc): Remove decls.
79806         (get_group_info): Remove casts no longer required in C89.
79807         * lib/getusershell.c (readname): Remove casts no longer required in
79808         C89.
79809         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79810         * lib/getline.c: Whitespace fix, from coreutils.
79811
79812 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79813
79814         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79815         Check for isascii.
79816
79817         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79818         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79819         Undo previous (whitespace-only) change.
79820
79821 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79822
79823         * lib/exclude.c: Include <ctype.h>
79824         (IN_CTYPE_DOMAIN): New macro.
79825         (is_space): New fn.
79826         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79827         and empty lines.
79828
79829         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79830         Undo previous (whitespace-only) change.
79831
79832 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79833
79834         * config/srclist-update: Change update back to the old behavior,
79835         leaving whitespace alone.  Use one 'sed' command rather than a
79836         pipeline.
79837         (fixlicense): Now a variable, not a function.
79838         (remove_trailing_blanks): Remove.
79839         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79840         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79841         Undo previous (whitespace-only) change.
79842
79843 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79844
79845         Merge from coreutils.
79846         * modules/euidaccess: Add lib_SOURCES, include for new
79847         file euidaccess.h
79848
79849 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79850
79851         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79852         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79853         Normalize leading white space and remove trailing white space.
79854
79855         Merge from coreutils
79856         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79857
79858         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79859         0.12.1.  These files are now being upgraded automatically by
79860         ../config/srclist-update.
79861
79862 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79863
79864         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79865         Normalize leading white space and remove trailing white space.
79866         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79867         notice, as per ../config/srclist-update.
79868
79869         Merge from coreutils.
79870         * lib/euidaccess.h: New file.
79871         * lib/euidaccess.c: Include it.
79872         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79873         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79874         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79875
79876 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79877
79878         * config/srclist-update: Add copyright notice.
79879         (remove_id_lines, remove_trailing_blanks): New constants.
79880         (fixfile): Use them to normalize spacing a bit in copied files.
79881         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79882         Normalize leading white space and remove trailing white space.
79883
79884         * config/texinfo.tex: Sync with texinfo.
79885
79886         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79887         strtoul.c from libc, to merge coreutils whitespace changes.
79888
79889         * config/srclist.txt: Get the following m4 files from gettext:
79890         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79891         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79892         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79893         wint_t.m4.
79894
79895 2003-08-12  Karl Berry  <karl@gnu.org>
79896
79897         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79898         been made.
79899
79900 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79901
79902         * modules/gnu-source, m4/gnu-source.m4:
79903         Remove; we're assuming Autoconf 2.54 or later now.
79904         Suggested by Bruno Haible.
79905         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79906
79907 2003-08-11  Bruno Haible  <bruno@clisp.org>
79908
79909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79910
79911 2003-08-11  Bruno Haible  <bruno@clisp.org>
79912
79913         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79914         (vasnprintf): Use it instead of wcslen.
79915
79916 2003-08-11  Bruno Haible  <bruno@clisp.org>
79917
79918         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79919         value to ensure that _Bool promotes to int. Use #define for _Bool when
79920         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79921
79922 2003-08-10  Karl Berry  <karl@gnu.org>
79923
79924         * lib/regex.h: update from libc (whitespace fix).
79925
79926 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79927
79928         Merge some files from coreutils.  These changes were
79929         originally made by Jim Meyering.
79930         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79931         many older Unixes require this.
79932         * lib/alloca.c (alloca): Remove cast to argument of free;
79933         no longer needed in C89.
79934         * lib/alloca_.h, regex.h: Fix white space to match
79935         what GNU indent does.
79936
79937 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79938
79939         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79940         apparently Emacs's Unicode mode got confused before my 2003-08-05
79941         checkin.
79942
79943 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79944
79945         * m4/extensions.m4: New file.
79946         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79947         Require gl_USE_SYSTEM_EXTENSIONS.
79948         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79949         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79950
79951 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79952
79953         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79954         * modules/extensions, modules/gnu-source: New files.
79955         * modules/timespec, modules/unlocked-io: Depend on extensions.
79956
79957 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79958
79959         * modules/restrict: New file.
79960         * MODULES.html.sh (func_all_modules): Add restrict.
79961         * modules/regex: Depend on restrict.
79962
79963 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79964
79965         * m4/restrict.m4: New file.
79966         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79967
79968 2003-08-07  Bruno Haible  <bruno@clisp.org>
79969
79970         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79971         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79972
79973 2003-08-07  Bruno Haible  <bruno@clisp.org>
79974
79975         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79976         makes the module 'getndelim2' compatible with the module 'getline'.
79977
79978 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79979
79980         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79981         byte with "\201" to avoid glitches when editing that source file
79982         with multi-gnome-terminal.
79983
79984 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79985
79986         * lib/bumpalloc.h: Remove.
79987
79988 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79989
79990         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79991         * modules/bumpalloc: Remove.
79992
79993 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79994
79995         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79996         GNU coding style.
79997
79998         Merge from coreutils.
79999         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80000         1. From glibc.
80001         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80002         from Karl Berry, implemented by Jim Meyering.
80003         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80004         from Dmitry V. Levin.
80005         Remove anachronistic cast of xrealloc.
80006         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80007         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80008         type. Otherwise, it wouldn't compile with at least /bin/cc on
80009         ymp-cray-unicos9.0.2.X.
80010         Combine two mostly-identical uses of alloca into one.
80011         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80012
80013 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80014
80015         [From Emacs.]
80016
80017         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80018         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80019         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80020         obsolete NLIST_NAME_UNION.
80021         [__GNU__]: Undef BSD and FSCALE.
80022         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80023
80024 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80025
80026         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80027         an enum type, so that it's guaranteed to promote to int.  See:
80028         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80029
80030 2003-08-03  Karl Berry  <karl@gnu.org>
80031
80032         * config/depcomp: update from automake.
80033
80034 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80035
80036         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80037         (strerror): Don't assume that a printable int fits in 14 bytes.
80038
80039 2003-07-31  Bruno Haible  <bruno@clisp.org>
80040
80041         * modules/getpass-gnu: New file.
80042         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80043
80044 2003-07-31  Bruno Haible  <bruno@clisp.org>
80045
80046         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80047
80048 2003-07-24  Karl Berry  <karl@gnu.org>
80049
80050         * config/missing: update from automake.
80051
80052 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80053             Bruno Haible  <bruno@clisp.org>
80054
80055         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80056         * lib/getline.c (getline, getdelim): Likewise.
80057         Remove _GNU_SOURCE define; now it's defined in config.h through
80058         m4/getline.m4.
80059
80060 2003-07-23  Karl Berry  <karl@gnu.org>
80061
80062         * config/config.sub: update from prep.
80063
80064 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80065
80066         * modules/xalloc (Depends-on): Add exitfail.
80067         * modules/xmemcoll: Likewise.
80068
80069 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80070
80071         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80072         over-parenthesization in macros.
80073
80074         Sync with coreutils.
80075
80076         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80077         required by C99.
80078
80079         Use `exit_failure' for xalloc and xmemcoll instead of their own
80080         private exit-failure variables.
80081         * lib/xalloc.h (xalloc_exit_failure): Remove.
80082         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80083         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80084         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80085         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80086         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80087
80088 2003-07-20  Jim Meyering  <jim@meyering.net>
80089
80090         * modules/closeout (Depends-on): Add exitfail.
80091         Suggestion from Bruno Haible.
80092
80093 2003-07-19  Karl Berry  <karl@gnu.org>
80094
80095         * config/config.sub: update from prep.
80096
80097 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80098
80099         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80100         Remove.
80101         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80102         to test that it can stand by itself.  Include "exitfail.h".
80103         Clients should set exit_failure instead.
80104         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80105
80106 2003-07-18  Bruno Haible  <bruno@clisp.org>
80107
80108         * modules/getndelim2: New file.
80109         * modules/getline: Share files with module getndelim2.
80110         * modules/getnline: Depend on getndelim2 instead of sharing files with
80111         it. Add getnline.c to lib_SOURCES.
80112         * MODULES.html.sh (func_all_modules): Add getndelim2.
80113
80114 2003-07-18  Bruno Haible  <bruno@clisp.org>
80115
80116         * m4/getndelim2.m4: New file.
80117         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80118         invoke gl_PREREQ_GETNDELIM2.
80119         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80120         gl_PREREQ_GETNDELIM2.
80121         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80122         gl_GETNDELIM2.
80123
80124 2003-07-18  Bruno Haible  <bruno@clisp.org>
80125
80126         * lib/getndelim2.h: New file.
80127         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80128         getndelim2.h.
80129         (getndelim2): Make non-static. Change return type to ssize_t.
80130         * lib/getline.h: Change argument names.
80131         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80132         * lib/getnline.c: Include getndelim2.h.
80133
80134 2003-07-18  Andreas Schwab  <schwab@suse.de>
80135
80136         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80137
80138 2003-07-17  Karl Berry  <karl@gnu.org>
80139
80140         * config/config.sub: update from prep.
80141
80142 2003-07-17  Bruno Haible  <bruno@clisp.org>
80143
80144         * modules/getnline: New file.
80145         * modules/getline: Add lib/getndelim2.c to source file list.
80146         * MODULES.html.sh (func_all_modules): Add getnline.
80147
80148 2003-07-17  Bruno Haible  <bruno@clisp.org>
80149
80150         * m4/getnline.m4: New file.
80151
80152 2003-07-17  Bruno Haible  <bruno@clisp.org>
80153
80154         * m4/Makefile.am.in: Remove file.
80155         * m4/Makefile.am: Remove file.
80156         * m4/Makefile.in: Remove file.
80157
80158 2003-07-17  Bruno Haible  <bruno@clisp.org>
80159
80160         * lib/getnline.h: New file.
80161         * lib/getnline.c: New file.
80162         * lib/getndelim2.c: New file, extracted from getline.c.
80163         (getndelim2): Renamed from getdelim2, with added nmax argument.
80164         * lib/getline.c: Include getndelim2.c.
80165         (getdelim2): Moved out to getndelim2.c.
80166         (getline, getdelim): Update.
80167
80168 2003-07-17  Bruno Haible  <bruno@clisp.org>
80169
80170         * lib/Makefile.am: Remove file.
80171         * lib/Makefile.in: Remove file.
80172
80173 2003-07-17  Bruno Haible  <bruno@clisp.org>
80174
80175         * configure.in: Remove file.
80176         * Makefile.in: Remove file.
80177
80178 2003-07-17  Bruno Haible  <bruno@clisp.org>
80179
80180         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80181
80182 2003-07-16  Karl Berry  <karl@gnu.org>
80183
80184         * config/srclist-update: was running fixlicense twice, which caused
80185                 texinfo.tex to be nullified for some reason.  Simplify,
80186                 $gplsrc is no longer needed as far as I can see?
80187
80188 2003-07-16  Jim Meyering  <jim@meyering.net>
80189
80190         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80191
80192 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80193
80194         * config/srclist.txt: Get the following files from gettext-runtime/intl
80195         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80196         ref-del.sin.  From Bruno Haible.
80197         * config/srclist-update (fixfile): Change grep pattern again, since the
80198         previous fix didn't work (there was another trailing $).  Use
80199         '[$]' to escape the $s.
80200
80201 2003-07-15  Karl Berry  <karl@gnu.org>
80202
80203         * lib/vasnprintf.c: update from gettext.
80204
80205 2003-07-15  Karl Berry  <karl@gnu.org>
80206
80207         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80208         gets expanded when surrounded by '$'.
80209
80210 2003-07-15  Jim Meyering  <jim@meyering.net>
80211
80212         * modules/save-cwd: Don't depend on error.  From Derek Price.
80213
80214 2003-07-15  Jim Meyering  <jim@meyering.net>
80215
80216         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80217
80218 2003-07-14  Simon Josefsson  <jas@extundo.com>
80219
80220         * modules/mempcpy: New file.
80221         * MODULES.html.sh (func_all_modules): Add mempcpy.
80222
80223 2003-07-14  Simon Josefsson  <jas@extundo.com>
80224
80225         * m4/mempcpy.m4: New file.
80226
80227 2003-07-14  Simon Josefsson  <jas@extundo.com>
80228
80229         * lib/mempcpy.h: New file.
80230         * lib/mempcpy.c: New file.
80231
80232 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80233
80234         * modules/getdate, modules/posixtm: Depend on mktime.
80235
80236 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80237
80238         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80239         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80240         unicodeio.c, unicodeio.h, unlocked-io.h:
80241         Switch from LGPL to GPL.
80242
80243 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80244
80245         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80246         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80247         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80248         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80249         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80250         updated automatically by ../config/srclist-update.  This changes
80251         their license from LPGL to GPL.
80252
80253 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80254
80255         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80256         assumed to refer to the root of the most recent stable gettext version.
80257         * config/srclistvars.sh: Add defaults for eggert.
80258         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80259         Match "This program" as well as "The program".  This is needed
80260         for gettext.
80261
80262 2003-07-14  Jim Meyering  <jim@meyering.net>
80263
80264         Don't emit diagnostics.  Let callers do that.
80265         * lib/save-cwd.c: Don't include "error.h".
80266         (save_cwd): Don't call error.  Ensure that errno is valid
80267         when returning nonzero.
80268
80269         * lib/save-cwd.h (restore_cwd): Update prototype.
80270         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80271         Simplify.  Don't call error upon failure.  Let callers do that.
80272         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80273         when auditing is enabled.  But don't bother updating the #if.
80274
80275 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80276
80277         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80278         it breaks C++ compilation.
80279         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80280
80281 2003-07-10  Simon Josefsson  <jas@extundo.com>
80282
80283         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80284
80285 2003-07-10  Jim Meyering  <jim@meyering.net>
80286
80287         * m4/clock_time.m4: Remove trailing blank.
80288         * m4/intmax_t.m4: Likewise.
80289
80290 2003-07-10  Jim Meyering  <jim@meyering.net>
80291
80292         * lib/vasnprintf.c: Remove trailing blanks.
80293         Make cpp indentation consistent.
80294
80295 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80296
80297         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80298         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80299         Switch from LGPL to GPL.
80300
80301 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80302
80303         * config/srclist.txt: Sort sublists.  Add
80304         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80305         that differ from gnulib for one reason or another; we'd like this list
80306         to be smaller but for now let's document what we have.
80307
80308 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80309
80310         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80311         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80312         and sweeter "eval x=$x".
80313         * config/srclist.txt: Get lib/argp* from glibc.
80314
80315 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80316
80317         * lib/mktime.c: Fix some boundary cases and remove need for floating
80318         point.
80319
80320         Issue a compile-time diagnostic if time_t is floating point, or if
80321         two's complement arithmetic is not in effect, or if arithmetic
80322         right shift does not propagate the sign.  These assumptions were
80323         all in the original code but they weren't checked.
80324
80325         (TIME_T_MIDPOINT, verify): New macros.
80326         (__isleap): Remove; it has integer overflow problems.
80327         (leapyear): New function, without those problems.
80328         (ydhms_tm_diff): Remove; splitting into two parts.
80329         (ydhms_diff): New function, containing the arithmetic part of
80330         the old ydhms_tm_diff function.  Issue a compile-time
80331         diagnostic if we are not using C99 integer division.
80332         Avoid casts when possible.
80333         (guess_time_tm): New function, containing the checking part of
80334         the old ydhms_tm_diff function.  Return the new value, rather than
80335         the difference between it and the old.  Accept a new argument T
80336         so that *T specifies the old value.  Check for overflow in the result.
80337
80338         (__mktime_internal): Use a time_t offset, not a long int offset.
80339         This undoes the 2003-06-04 change, which is no longer needed now
80340         that we have better overflow checking.
80341         (localtime_offset): Likewise.
80342
80343         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80344         and long are 64-bit but int is only 32-bit.
80345         (ydhms_diff): Use long int to store year1 and yday1.
80346         Issue a compile-time diagnostic if long int is not wide enough.
80347
80348         (__mktime_internal): Use long int to store adjusted year and yday.
80349         Use plain C rather than preprocessor commands, if that doesn't
80350         affect efficiency.
80351         Check for overflow (and try to repair) after each probe
80352         rather than checking only at the very end.  This avoids some bugs
80353         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80354         does not equal GMT offset at maximum time).
80355         Use integer to check for overflow rather than floating point; this
80356         is more portable to non-IEEE hosts, and is a tad faster.
80357         When we detect that we are oscillating between two values,
80358         don't check whether tm_isdst has the requested value, since
80359         we already know the answer.  When tm_isdst has the wrong value,
80360         use a different heuristic to find the right one, based on the
80361         extreme values actually observed in practice in tz2003a,
80362         rather than the (overly optimistic) "previous 3 calendar quarters".
80363
80364         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80365         "T const" to accommodate glibc style.
80366         (check_result): Use less-confusing report format.  "long" -> "long int.
80367         (main): Likewise.
80368         Don't loop if the iteration overflows time_t.
80369         Allow a negative step in the iteration.
80370
80371 2003-07-06  Karl Berry  <karl@gnu.org>
80372
80373         * config/depcomp: update from automake.
80374         * config/config.sub: update from prep.
80375
80376 2003-07-03  Karl Berry  <karl@gnu.org>
80377
80378         * config/config.guess: update from prep.
80379
80380 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80381
80382         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80383         xreadlink.c now includes it unconditionally.
80384
80385 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80386
80387         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80388         having it depend on HAVE_SYS_TYPES_H.
80389
80390 2003-07-01  Bruno Haible  <bruno@clisp.org>
80391
80392         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80393         <sys/types.h> should be sufficient.
80394         Reported by Paul Eggert.
80395
80396 2003-06-26  Karl Berry  <karl@gnu.org>
80397
80398         * config/depcomp: update from automake.
80399
80400 2003-06-26  Bruno Haible  <bruno@clisp.org>
80401
80402         * modules/human: Depend on module stdbool.
80403
80404 2003-06-25  Bruno Haible  <bruno@clisp.org>
80405
80406         * modules/readlink: New file.
80407         * modules/xreadlink: Depend on it.
80408         * MODULES.html.sh (func_all_modules): Add readlink.
80409
80410 2003-06-25  Bruno Haible  <bruno@clisp.org>
80411
80412         * m4/readlink.m4: New file.
80413
80414 2003-06-25  Bruno Haible  <bruno@clisp.org>
80415
80416         * lib/readlink.c: New file.
80417
80418 2003-06-22  Karl Berry  <karl@gnu.org>
80419
80420         * config/srclist.txt: update mkinstalldirs from automake.
80421         * config/mkinstalldirs: update.
80422
80423 2003-06-22  Bruno Haible  <bruno@clisp.org>
80424
80425         Portability to mingw32.
80426         * m4/ssize_t.m4: New file, from GNU gettext.
80427         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80428         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80429
80430 2003-06-22  Bruno Haible  <bruno@clisp.org>
80431
80432         * modules/safe-read: Add m4/ssize_t.m4.
80433         * modules/xreadlink: Add m4/ssize_t.m4.
80434
80435 2003-06-20  Bruno Haible  <bruno@clisp.org>
80436
80437         Assume C89, so PARAMS isn't needed.
80438         * lib/unicodeio.h (PARAMS): Remove.
80439         * lib/unicodeio.c: Don't use PARAMS.
80440
80441 2003-06-18  Karl Berry  <karl@gnu.org>
80442
80443         * config/config.{guess,sub}: update from prep.
80444
80445 2003-06-18  Jim Meyering  <jim@meyering.net>
80446
80447         Merge changes from coreutils.
80448         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80449         Remove explicit declarations of xmalloc and realloc.
80450         Include xalloc.h.
80451         (read_utmp): Remove anachronistic cast of xmalloc.
80452
80453 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80454
80455         Assume C89, so PARAMS isn't needed.
80456         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80457         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80458         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80459         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80460         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80461         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80462         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80463         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80464         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80465         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80466         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80467         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80468         no longer needed. Anyway, config.h should always be included before any
80469         other file.
80470
80471 2003-06-11  Simon Josefsson  <jas@extundo.com>
80472
80473         * modules/sysexits: New file.
80474         * MODULES.html.sh (func_all_modules): Add sysexits.
80475
80476 2003-06-11  Simon Josefsson  <jas@extundo.com>
80477
80478         * lib/sysexit_.h: New file.
80479
80480 2003-06-11  Derek Price  <derek@ximbiot.com>
80481
80482         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80483         necessary.
80484
80485 2003-06-11  Bruno Haible  <bruno@clisp.org>
80486
80487         * m4/sysexits.m4: New file.
80488
80489 2003-06-10  Simon Josefsson  <jas@extundo.com>
80490
80491         * lib/argp.h: New file, from glibc.
80492         * lib/argp-ba.c: New file, from glibc.
80493         * lib/argp-eexst.c: New file, from glibc.
80494         * lib/argp-fmtstream.c: New file, from glibc.
80495         * lib/argp-fmtstream.h: New file, from glibc.
80496         * lib/argp-fs-xinl.c: New file, from glibc.
80497         * lib/argp-help.c: New file, from glibc.
80498         * lib/argp-namefrob.h: New file, from glibc.
80499         * lib/argp-parse.c: New file, from glibc.
80500         * lib/argp-pv.c: New file, from glibc.
80501         * lib/argp-pvh.c: New file, from glibc.
80502         * lib/argp-xinl.c: New file, from glibc.
80503
80504 2003-06-10  Simon Josefsson  <jas@extundo.com>
80505
80506         * modules/strchrnul: New file.
80507
80508 2003-06-10  Simon Josefsson  <jas@extundo.com>
80509
80510         * modules/argp: New file.
80511
80512 2003-06-10  Simon Josefsson  <jas@extundo.com>
80513
80514         * m4/strchrnul.m4: New file.
80515
80516 2003-06-10  Simon Josefsson  <jas@extundo.com>
80517
80518         * lib/strchrnul.h: New file.
80519         * lib/strchrnul.c: New file.
80520
80521 2003-06-10  Bruno Haible  <bruno@clisp.org>
80522
80523         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80524
80525 2003-06-07  Karl Berry  <karl@gnu.org>
80526
80527         * config/config.{guess,sub}: update from prep.
80528
80529 2003-06-07  Jim Meyering  <jim@meyering.net>
80530
80531         * modules/strtod: Use $(...) notation, not @...@ for
80532         AC_REPLACE'd variables.
80533         * modules/localcharset: Likewise.
80534
80535 2003-06-07  Jim Meyering  <jim@meyering.net>
80536
80537         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80538         in place of my name in the copyright comment.
80539         Remove definition and uses of __P.
80540
80541         From coreutils.
80542         * lib/stat.c: Don't declare xmalloc explicitly.
80543         Instead, include "xalloc.h".
80544         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80545         xrealloc, and xcalloc return values.
80546         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80547         Improve comment.
80548         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80549
80550 2003-06-07  Bruno Haible  <bruno@clisp.org>
80551
80552         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80553         avoid AC_CONFIG_LINKS.
80554         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80555         fnmatch.h, to avoid AC_CONFIG_LINKS.
80556         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80557
80558 2003-06-07  Bruno Haible  <bruno@clisp.org>
80559
80560         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80561         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80562         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80563         directory.
80564         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80565         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80566         directory.
80567
80568 2003-06-06  Jim Meyering  <jim@meyering.net>
80569
80570         Merge from coreutils.
80571         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80572         Consolidate declarations and initializations of *_base* locals.
80573
80574         Merge from coreutils.
80575         This avoids a core dump on systems without GNU putenv,
80576         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80577         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80578         (unsetenv): New static function, from GNU libc.
80579         (rpl_putenv): Use it.
80580
80581         * lib/modechange.c: Remove trailing blanks.
80582
80583         Merge from coreutils.
80584         * lib/fsusage.c: Remove declaration of statfs.
80585         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80586
80587         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80588
80589 2003-06-06  Jim Meyering  <jim@meyering.net>
80590
80591         * lib/stdbool_.h: Renamed from stdbool.h.in.
80592
80593 2003-06-06  Jim Meyering  <jim@meyering.net>
80594             Bruno Haible  <bruno@clisp.org>
80595
80596         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80597         Adjust Makefile.am snippet not to redirect directly to target.
80598         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80599
80600 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80601
80602         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80603         mismatch, look in future quarters as well as past.  This fixes a
80604         bug when processing fall-backwards gaps immediately after a long
80605         period of daylight-saving time.
80606
80607         * lib/mktime.c: Assume freestanding C89 or better.
80608         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80609         (__P): Remove; not used.
80610         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80611         (mktime, not_equal_tm, print_tm, check_result,
80612         main): Use prototypes.  Use const * where appropriate.
80613         (main): Fix typo in testing code that uncovered by above changes.
80614         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80615
80616 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80617
80618         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80619         locale.h, localeconv.  This merges changes from coreutils.
80620
80621         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80622         It can be removed after the next Autoconf is released.
80623         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80624         needed.
80625
80626 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80627
80628         * lib/mktime.c: Fix Debian bug 177940
80629         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80630         (localtime_offset): Now long int, not time_t, because we want it
80631         to be guaranteed to be signed.  All uses changed.
80632         (__mktime_internal): If overflow would occur when adding offset,
80633         don't add it.
80634
80635         Merge 'human' changes from coreutils.  Rewrite to support
80636         locale-specific notations like thousands separators.
80637         * lib/human.c: Simplify authorship notice.
80638         Include human.h immediately after config.h.
80639         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80640         <limits.h>: Do not include, since human.h does.
80641         (SIZE_MAX, UINTMAX_MAX): New macros.
80642         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80643         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80644         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80645         (power_letter): Renamed from suffixes.
80646         (generate_suffix_backwards): Remove.
80647         (adjust_value): Now takes int style (because of human.h changes)
80648         and long double value (for greater precision on some platforms).
80649         (group_number): New function.
80650         (human_readable): Use it.  Use integer options, not enum.
80651         Put the options before the sizes in the arg list.
80652         Support all the new options.
80653         The old human_readable function has been removed;
80654         use inttostr.h instead.
80655         (human_readable, default_block_size, humblock):
80656         Use uintmax_t, not int, for block sizes.
80657         (human_readable_inexact, block_size_types): Remove.
80658         (block_size_opts): New constant.
80659         (human_options): Renamed from human_block_size, with new signature
80660         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80661         * lib/human.h: Add copyright and authorship notice.
80662         Include <limits.h> and <stdbool.h> unconditionally.
80663         (PARAMS): Remove.  All uses removed.
80664         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80665         (enum human_inexact_style): Remove tag; now a nameless enum.
80666         (human_floor, human_ceiling, human_round_to_even): Now have
80667         values 2, 0, 1 rather than -1, 1, 0.
80668         (human_group_digits, human_suppress_point_zero, human_autoscale,
80669         human_base_1024, human_SI, human_B): New constants.
80670         (human_readable_inexact, human_block_size): Remove.
80671         (human_readable): Size args are now uintmax_t, not int.
80672         (human_options): New decl.
80673
80674         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80675         unnecessary now that we assume C89 or better.  This change
80676         imported from coreutils.
80677
80678         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80679         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80680         in the 2003-05-30 sync from glibc.
80681
80682         .h files should stand alone, but we shouldn't include <sys/types.h>
80683         if we can get away with just <stddef.h>.
80684
80685         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80686         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80687         rather than <sys/types.h>, as we merely need size_t.
80688         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80689         to get size_t.
80690         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80691         Include <stdio.h>, to get FILE.
80692         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80693         memcasecmp.h has included <stddef.h> and all we need is size_t.
80694         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80695         our interface, instead of including <sys/types.h>
80696
80697 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80698
80699         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80700         now, as glibc mktime is buggy on non-glibc systems.
80701
80702 2003-06-03  Karl Berry  <karl@gnu.org>
80703
80704         * config/config.sub: update from prep.
80705
80706 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80707
80708         [from coreutils]
80709         Fix some minor time-related bugs with POSIX time arguments.
80710         Some valid time stamps were being rejected (notably -1, and
80711         time stamps before 1900 on 64-bit hosts).  And some invalid
80712         time stamps were being accepted, e.g. September 31.
80713
80714         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80715         that we can return (time_t) -1 successfully.
80716         * lib/posixtm.c: Likewise.
80717         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80718         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80719         (t): Remove static var.
80720         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80721         of static var.  All uses changed.
80722         (year): Do not reject years before 1900; they can occur with
80723         64-bit time_t.
80724         (posix_time_parse): Do not check for out-of-range components;
80725         that is now the caller's responsibility, since our checks were
80726         only approximations.
80727         (posixtime): Use mktime to check for out-of-range components,
80728         since it knows them exactly.
80729         If mktime returns (time_t) -1, check whether an error actually occurred
80730         by invoking localtime on -1.
80731         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80732         posixtime failures better.
80733         Improve the test data (in comments only).
80734
80735 2003-06-02  Karl Berry  <karl@gnu.org>
80736
80737         * config/mkinstalldirs (version): new variable.
80738         (--version): new option.
80739         (usage): improve message.
80740
80741 2003-05-30  Karl Berry  <karl@gnu.org>
80742
80743         * lib/mktime.c: update from libc.
80744
80745 2003-05-30  Bruno Haible  <bruno@clisp.org>
80746
80747         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80748         * config/config.rpath: Upgrade to gettext-0.12.1.
80749
80750 2003-05-30  Bruno Haible  <bruno@clisp.org>
80751
80752         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80753         * m4/nls.m4: New file, from gettext-0.12.1.
80754         * m4/po.m4: New file, from gettext-0.12.1.
80755         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80756
80757 2003-05-30  Bruno Haible  <bruno@clisp.org>
80758
80759         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80760         * lib/localcharset.h: Likewise.
80761         * lib/localcharset.c: Likewise.
80762
80763 2003-05-29  Karl Berry  <karl@gnu.org>
80764
80765         * config/config.rpath: update from gettext.
80766
80767 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80768
80769         Assume the headers required for C89 freestanding compilers.
80770         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80771         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80772         * m4/human.m4 (gl_HUMAN): Likewise.
80773         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80774         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80775         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80776         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80777         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80778         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80779
80780 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80781
80782         Assume the headers required for C89 freestanding compilers.
80783         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80784         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80785         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80786         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80787         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80788         define, since <limits.h> is guaranteed to do that.
80789         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80790         * lib/exclude.c: Include <stdbool.h> unconditionally.
80791         * lib/tempname.c: Include <stddef.h> unconditionally.
80792         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80793         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80794         <stddef.h> does that.
80795         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80796         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80797         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80798         needed.
80799         * lib/xstrtol.c: Likewise.
80800         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80801         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80802
80803         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80804         warnings on some platforms.
80805
80806         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80807         arbitrarily.
80808
80809 2003-05-26  Jim Meyering  <jim@meyering.net>
80810
80811         Merge in a change from coreutils:
80812         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80813         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80814         that condition, rather than `-1' which is slightly misleading.
80815         Change the name of the cache variable to have the gl_ prefix.
80816         Prompted by a patch from Richard Dawe for DJGPP.
80817
80818 2003-05-24  Karl Berry  <karl@gnu.org>
80819
80820         * config/config.guess: update from prep.
80821
80822 2003-05-22  Karl Berry  <karl@gnu.org>
80823
80824         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80825
80826 2003-05-20  Karl Berry  <karl@gnu.org>
80827
80828         * config/config.guess: update from prep.
80829
80830 2003-05-18  Karl Berry  <karl@gnu.org>
80831
80832         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80833         might actually be set by the user.
80834
80835         * config/depcomp, install-sh, mdate-sh: update from automake.
80836
80837 2003-05-17  Bruno Haible  <bruno@clisp.org>
80838
80839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80840         invalid expansion for AC_EGREP_CPP.
80841         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80842         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80843         Suggested by Akim Demaille <akim@epita.fr> in
80844         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80845
80846 2003-05-12  Jim Meyering  <jim@meyering.net>
80847
80848         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80849         the space-padded-by-default conversion specifiers, %e, %k, %l.
80850
80851 2003-05-12  Bruno Haible  <bruno@clisp.org>
80852
80853         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80854         the string is longer than 4 KB.
80855
80856 2003-05-11  Karl Berry  <karl@gnu.org>
80857
80858         * config/config.{guess,sub}: update from prep.
80859
80860 2003-05-09  Bruno Haible  <bruno@clisp.org>
80861
80862         * modules/error: Add m4/strerror_r.m4 to file list.
80863
80864 2003-05-03  Bruno Haible  <bruno@clisp.org>
80865
80866         Upgrade to Unicode-4.0.
80867         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80868         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80869         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80870         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80871         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80872         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80873         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80874         Change width of U+E0100..U+E01EF from 1 to 0.
80875
80876 2003-04-25  Jim Meyering  <jim@meyering.net>
80877
80878         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80879         of type size_t, not int.
80880
80881 2003-04-25  Bruno Haible  <bruno@clisp.org>
80882
80883         * lib/copy-file.c: Include <stddef.h>, for size_t.
80884
80885 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80886
80887         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80888         code which expansion is under static control.  Patch imported from
80889         Akim Demaille's patch to Bison; see
80890         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80891
80892 2003-04-14  Bruno Haible  <bruno@clisp.org>
80893
80894         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80895
80896 2003-04-11  Jim Meyering  <jim@meyering.net>
80897
80898         Merge changes from Coreutils.
80899
80900         2003-03-22  Jim Meyering  <jim@meyering.net>
80901
80902         * lib/strftime.c (widen): Cast alloca return value to proper type.
80903
80904         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80905
80906         From GNU libc.
80907         * lib/strftime.c (my_strftime): Handle very large width
80908         specifications for numeric values correctly.  Improve checks for
80909         overflow.
80910
80911         2003-01-19  Jim Meyering  <jim@meyering.net>
80912
80913         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80914         definitions.
80915         (nl_get_alt_digit) [! defined my_strftime]: Define.
80916         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80917         _nl_get_alt_digit and _nl_get_walt_digit.
80918
80919         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80920         libc. These changes have no effect outside of _LIBC.
80921
80922 2003-04-10  Bruno Haible  <bruno@clisp.org>
80923
80924         * modules/findprog: New file.
80925         * MODULES.html.sh (func_all_modules): Add it.
80926
80927 2003-04-10  Bruno Haible  <bruno@clisp.org>
80928
80929         * m4/findprog.m4: New file.
80930         * m4/eaccess.m4: New file.
80931
80932 2003-04-10  Bruno Haible  <bruno@clisp.org>
80933
80934         * lib/findprog.h: New file, from GNU gettext.
80935         * lib/findprog.c: New file, from GNU gettext.
80936
80937 2003-04-05  Jim Meyering  <jim@meyering.net>
80938
80939         Merge changes from Coreutils.
80940
80941         * lib/exclude.h (PARAMS): Remove definition and uses.
80942         * lib/exclude.c: Remove uses of `PARAMS'.
80943
80944         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80945         Add test-cases for DOS filenames. Declare program_name.
80946         (main): Set up program_name.  Patch by Rich Dawe.
80947
80948         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80949         error from mntctl.
80950         Use mntctl's return value to drive the entry-processing loop, since
80951         we can't rely on the value of the vmt_length member in the last
80952         entry.  On some systems doing so could result in exhausting
80953         virtual memory.  Based in part on a patch from Mike Jetzer.
80954
80955 2003-04-04  Bruno Haible  <bruno@clisp.org>
80956
80957         * modules/linebreak: New file.
80958         * MODULES.html.sh (func_all_modules): Add it.
80959
80960 2003-04-04  Bruno Haible  <bruno@clisp.org>
80961
80962         * m4/linebreak.m4: New file.
80963
80964 2003-04-04  Bruno Haible  <bruno@clisp.org>
80965
80966         * lib/linebreak.h: New file, from GNU gettext.
80967         * lib/linebreak.c: New file, from GNU gettext with slight
80968         modifications.
80969         * lib/lbrkprop.h: New file, from GNU gettext.
80970
80971 2003-04-03  Bruno Haible  <bruno@clisp.org>
80972
80973         * modules/utf8-ucs4: New file.
80974         * modules/utf16-ucs4: New file.
80975         * modules/ucs4-utf8: New file.
80976         * modules/ucs4-utf16: New file.
80977         * MODULES.html.sh (func_all_modules): Add them.
80978
80979 2003-04-03  Bruno Haible  <bruno@clisp.org>
80980
80981         * m4/utf-ucs4.m4: New file.
80982         * m4/ucs4-utf.m4: New file.
80983
80984 2003-04-03  Bruno Haible  <bruno@clisp.org>
80985
80986         * lib/utf8-ucs4.h: New file, from GNU gettext.
80987         * lib/utf16-ucs4.h: New file, from GNU gettext.
80988         * lib/ucs4-utf8.h: New file, from GNU gettext.
80989         * lib/ucs4-utf16.h: New file, from GNU gettext.
80990
80991 2003-04-02  Bruno Haible  <bruno@clisp.org>
80992
80993         * modules/binary-io: New file.
80994         * MODULES.html.sh (func_all_modules): Add it.
80995
80996 2003-04-02  Bruno Haible  <bruno@clisp.org>
80997
80998         * lib/binary-io.h: New file, from GNU gettext.
80999
81000 2003-04-01  Bruno Haible  <bruno@clisp.org>
81001
81002         * modules/pathname: New file.
81003         * MODULES.html.sh (func_all_modules): Add it.
81004
81005 2003-04-01  Bruno Haible  <bruno@clisp.org>
81006
81007         * lib/pathname.h: New file, from GNU gettext.
81008         * lib/concatpath.c: New file, from GNU gettext.
81009
81010 2003-03-30  Bruno Haible  <bruno@clisp.org>
81011
81012         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81013
81014 2003-03-30  Bruno Haible  <bruno@clisp.org>
81015
81016         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81017         function chown() doesn't exist.
81018
81019 2003-03-28  Bruno Haible  <bruno@clisp.org>
81020
81021         * modules/copy-file: New file.
81022         * MODULES.html.sh (func_all_modules): Add it.
81023
81024 2003-03-28  Bruno Haible  <bruno@clisp.org>
81025
81026         * m4/copy-file.m4: New file.
81027
81028 2003-03-28  Bruno Haible  <bruno@clisp.org>
81029
81030         * lib/copy-file.h: New file, from GNU gettext.
81031         * lib/copy-file.c: New file, from GNU gettext.
81032
81033 2003-03-18  Jim Meyering  <jim@meyering.net>
81034
81035         * lib/quote.c (quote_n): Fix typo in comment.
81036
81037 2003-03-18  Bruno Haible  <bruno@clisp.org>
81038
81039         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81040         checking.
81041         * m4/onceonly_2_57.m4: Likewise.
81042
81043 2003-03-17  Bruno Haible  <bruno@clisp.org>
81044
81045         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81046         (m4_quote): Remove macro.
81047         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81048
81049 2003-03-14  Jim Meyering  <jim@meyering.net>
81050
81051         Merge changes from Coreutils.
81052         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81053         to be const, in order to avoid warnings.
81054         (obstack_room): Likewise.
81055         (obstack_empty_p): Likewise.
81056
81057 2003-03-14  Bruno Haible  <bruno@clisp.org>
81058
81059         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81060         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81061
81062 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81063
81064         Merge changes from Bison.
81065         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81066         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81067         when compiling Bison 1.875's `bitset bset = obstack_alloc
81068         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81069         * lib/hash.c: Include <stdbool.h> unconditionally.
81070
81071 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81072
81073         * m4/onceonly.m4 (m4_quote): New macro.
81074         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81075         Quote AC_FOREACH variable-expansions properly.
81076
81077 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81078
81079         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81080
81081 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81082
81083         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81084         Reported by Bruce Becker; see:
81085         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81086
81087 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81088             Bruno Haible  <bruno@clisp.org>
81089
81090         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81091         Reported by John Hughes, see
81092         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81093
81094 2003-02-20  Bruno Haible  <bruno@clisp.org>
81095
81096         * MODULES.html.sh (func_all_modules): Add poll.
81097
81098 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81099
81100         * modules/poll: New file.
81101
81102 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81103
81104         * lib/poll_.h: New file.
81105         * lib/poll.c: New file.
81106
81107 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81108
81109         * m4/poll.m4: New file.
81110
81111 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81112
81113         * modules/mathl: New file.
81114
81115 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81116
81117         * lib/mathl.h: New file.
81118         * lib/acosl.c: New file.
81119         * lib/asinl.c: New file.
81120         * lib/atanl.c: New file.
81121         * lib/ceill.c: New file.
81122         * lib/cosl.c: New file.
81123         * lib/expl.c: New file.
81124         * lib/floorl.c: New file.
81125         * lib/frexpl.c: New file.
81126         * lib/ldexpl.c: New file.
81127         * lib/logl.c: New file.
81128         * lib/sincosl.c: New file.
81129         * lib/sinl.c: New file.
81130         * lib/sqrtl.c: New file.
81131         * lib/tanl.c: New file.
81132         * lib/trigl.c: New file.
81133         * lib/trigl.h: New file.
81134
81135 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81136
81137         * m4/mathl.m4: New file.
81138
81139 2003-02-18  Bruno Haible  <bruno@clisp.org>
81140
81141         * MODULES.html.sh (func_all_modules): Add mathl.
81142
81143 2003-02-17  Bruno Haible  <bruno@clisp.org>
81144
81145         * modules/mkdtemp: New module.
81146         * MODULES.html.sh (func_all_modules): Add it.
81147
81148 2003-02-17  Bruno Haible  <bruno@clisp.org>
81149
81150         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81151
81152 2003-02-17  Bruno Haible  <bruno@clisp.org>
81153
81154         * lib/mkdtemp.h: New file, from GNU gettext.
81155         * lib/mkdtemp.c: New file, from GNU gettext.
81156
81157 2003-02-02  Jim Meyering  <jim@meyering.net>
81158
81159         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81160         e.g. glibc-2.2.93.
81161
81162 2003-01-31  Bruno Haible  <bruno@clisp.org>
81163
81164         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81165         'rpl_rename'.
81166         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81167         'rpl_strnlen'.
81168         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81169         'rpl_strtod'.
81170         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81171         'rpl_utime'.
81172
81173 2003-01-31  Bruno Haible  <bruno@clisp.org>
81174
81175         * lib/rename.c: #undef rename before defining rpl_rename.
81176         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81177
81178 2003-01-30  Bruno Haible  <bruno@clisp.org>
81179
81180         * modules/vasnprintf, modules/vasprintf: New modules.
81181         * MODULES.html.sh (func_all_modules): Add them.
81182
81183 2003-01-30  Bruno Haible  <bruno@clisp.org>
81184
81185         * m4/signed.m4: New file, from GNU gettext.
81186         * m4/longdouble.m4: New file, from GNU gettext.
81187         * m4/wchar_t.m4: New file, from GNU gettext.
81188         * m4/wint_t.m4: New file, from GNU gettext.
81189         * m4/vasnprintf.m4: New file.
81190         * m4/vasprintf.m4: New file.
81191
81192 2003-01-30  Bruno Haible  <bruno@clisp.org>
81193
81194         * lib/printf-args.h: New file, from GNU gettext.
81195         * lib/printf-args.c: New file, from GNU gettext.
81196         * lib/printf-parse.h: New file, from GNU gettext.
81197         * lib/printf-parse.c: New file, from GNU gettext.
81198         * lib/vasnprintf.h: New file, from GNU gettext.
81199         * lib/vasnprintf.c: New file, from GNU gettext.
81200         * lib/asnprintf.c: New file, from GNU gettext.
81201         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81202         * lib/vasprintf.c: New file, from GNU gettext.
81203         * lib/asprintf.c: New file, from GNU gettext.
81204
81205 2003-01-29  Bruno Haible  <bruno@clisp.org>
81206
81207         * modules/stpncpy: New module.
81208         * MODULES.html.sh (func_all_modules): Add it.
81209
81210 2003-01-29  Bruno Haible  <bruno@clisp.org>
81211
81212         * m4/stpncpy.m4: New file.
81213
81214 2003-01-29  Bruno Haible  <bruno@clisp.org>
81215
81216         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81217         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81218
81219 2003-01-28  Bruno Haible  <bruno@clisp.org>
81220
81221         * modules/c-ctype: New module.
81222         * MODULES.html.sh (func_all_modules): Add it.
81223
81224 2003-01-28  Bruno Haible  <bruno@clisp.org>
81225
81226         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81227         Paul Eggert.
81228         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81229         Paul Eggert.
81230
81231 2003-01-27  Bruno Haible  <bruno@clisp.org>
81232
81233         * modules/xsetenv: New module.
81234         * MODULES.html.sh (func_all_modules): Add it.
81235
81236 2003-01-27  Bruno Haible  <bruno@clisp.org>
81237
81238         * lib/xsetenv.h: New file, from GNU gettext.
81239         * lib/xsetenv.c: New file, from GNU gettext.
81240
81241 2003-01-23  Jim Meyering  <jim@meyering.net>
81242
81243         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81244         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81245
81246 2003-01-23  Bruno Haible  <bruno@clisp.org>
81247
81248         * modules/minmax: New module.
81249         * MODULES.html.sh (func_all_modules): Add it.
81250
81251 2003-01-23  Bruno Haible  <bruno@clisp.org>
81252
81253         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81254         Eggert.
81255
81256 2003-01-22  Bruno Haible  <bruno@clisp.org>
81257
81258         * modules/exit: New module.
81259         * MODULES.html.sh (func_all_modules): Add it.
81260
81261 2003-01-22  Bruno Haible  <bruno@clisp.org>
81262
81263         * lib/exit.h: New file, from GNU gettext.
81264
81265 2003-01-19  Bruno Haible  <bruno@clisp.org>
81266
81267         * gnulib-tool: Recognize option --extract-maintainer.
81268         (func_get_maintainer): New function.
81269         * modules/*: Add Maintainer entry.
81270
81271 2003-01-16  Jim Meyering  <jim@meyering.net>
81272
81273         * m4/regex.m4: The `regex' struct is both input and output.
81274         Initialize it before each use.  Patch by Tim Waugh.
81275
81276 2003-01-16  Bruno Haible  <bruno@clisp.org>
81277
81278         * MODULES.html.sh: Add a table of contents. Add the module name as
81279         leftmost column. Add hyperlinks.
81280
81281 2003-01-15  Bruno Haible  <bruno@clisp.org>
81282
81283         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81284
81285 2003-01-15  Bruno Haible  <bruno@clisp.org>
81286
81287         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81288         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81289         suffix.
81290
81291 2003-01-15  Bruno Haible  <bruno@clisp.org>
81292
81293         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81294
81295 2003-01-15  Bruno Haible  <bruno@clisp.org>
81296
81297         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81298         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81299
81300 2003-01-14  Jim Meyering  <jim@meyering.net>
81301
81302         * lib/same.c (same_name): Tweak a comment.
81303
81304 2003-01-14  Bruno Haible  <bruno@clisp.org>
81305
81306         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81307         when a string comparison is sufficient.
81308
81309 2003-01-14  Bruno Haible  <bruno@clisp.org>
81310
81311         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81312         'unsigned int'.
81313
81314 2003-01-14  Bruno Haible  <bruno@clisp.org>
81315
81316         * lib/hash-pjw.c: Add comment about low quality of this function.
81317
81318 2003-01-13  Bruno Haible  <bruno@clisp.org>
81319
81320         * modules/stpcpy: Distribute lib/stpcpy.h.
81321         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81322
81323 2003-01-13  Bruno Haible  <bruno@clisp.org>
81324
81325         * modules/*: Add a description.
81326         * modules/strpbrk: Fix Makefile.am snippet.
81327         * modules/strtoimax: Fix dependencies.
81328         * modules/strtoumax: Likewise.
81329
81330 2003-01-13  Bruno Haible  <bruno@clisp.org>
81331
81332         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81333         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81334         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81335
81336 2003-01-13  Bruno Haible  <bruno@clisp.org>
81337
81338         * gnulib-tool (func_create_testdir): Store config/* files in the main
81339         directory.
81340         * config.rpath: Move to ...
81341         * config/config.rpath: ... here.
81342         * modules/gettext: Contains config/config.rpath, not config.rpath.
81343         * modules/iconv: Likewise.
81344
81345 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81346
81347         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81348         to avoid collisions with libcurses and libreadline.
81349
81350         * m4/getstr.m4: Remove.
81351         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81352
81353 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81354
81355         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81356         to avoid collisions with libcurses and libreadline.
81357
81358         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81359         * lib/getstr.h, getstr.c: Remove.
81360         * lib/getline.c: Include "getline.h", to check interface.
81361         Move body of old getstr.c here: this defines MIN_CHUNK and
81362         declares getdelim2, which is renamed from getstr.
81363         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81364
81365         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81366         All uses changed.
81367         * lib/linebuffer.h: Likewise.
81368         (readline): Remove backward-compatibility macro.
81369
81370 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81371
81372         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81373         to avoid collisions with libcurses and libreadline.
81374         * getstr: Remove.
81375         * MODULES.html.sh: Remove getstr.
81376         * modules/getline: Depend on unlocked-io, not getstr.
81377
81378 2003-01-12  Jim Meyering  <jim@meyering.net>
81379
81380         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81381
81382 2003-01-10  Bruno Haible  <bruno@clisp.org>
81383
81384         * modules/alloca: Change Makefile.am requirements. Simplify Include
81385         requirements. Add lib/alloca_.h to file list.
81386
81387 2003-01-10  Bruno Haible  <bruno@clisp.org>
81388
81389         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81390
81391 2003-01-10  Bruno Haible  <bruno@clisp.org>
81392
81393         * lib/alloca_.h: New file.
81394         * lib/getdate.y: Unconditionally include alloca.h.
81395         * lib/makepath.c: Likewise.
81396         * lib/setenv.c: Likewise.
81397         * lib/userspec.c: Likewise.
81398
81399 2003-01-09  Karl Berry  <karl@gnu.org>
81400
81401         * MODULES.html.sh: include `dirname $0` in PATH, to find
81402         gnulib-tool.
81403
81404 2003-01-09  Bruno Haible  <bruno@clisp.org>
81405
81406         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81407         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81408
81409 2003-01-09  Bruno Haible  <bruno@clisp.org>
81410
81411         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81412
81413 2003-01-09  Bruno Haible  <bruno@clisp.org>
81414
81415         * lib/stdbool.h.in: New file.
81416
81417 2003-01-09  Bruno Haible  <bruno@clisp.org>
81418
81419         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81420         * MODULES.html.sh: Likewise.
81421
81422 2003-01-08  Jim Meyering  <jim@meyering.net>
81423
81424         * lib/full-write.c: Undefine and define-away `const' after inclusion
81425         of errno.h, not before.  Suggestion from Bruno Haible.
81426
81427 2003-01-08  Bruno Haible  <bruno@clisp.org>
81428
81429         * modules/full-read: Depend on full-write.
81430
81431 2003-01-08  Bruno Haible  <bruno@clisp.org>
81432
81433         * lib/safe-read.c: Include specification header first, to ensure its
81434         selfcontainedness.
81435         * lib/full-write.c: Likewise.
81436
81437 2003-01-07  Jim Meyering  <jim@meyering.net>
81438
81439         * lib/full-write.c: Rework so that it may serve to define full_read,
81440         too.
81441         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81442
81443 2003-01-07  Bruno Haible  <bruno@clisp.org>
81444
81445         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81446         <inttypes.h>.
81447         * lib/xstrtol.h: Likewise.
81448         * lib/xstrtoimax.c: Likewise.
81449         * lib/xstrtoumax.c: Likewise.
81450         * lib/human.h: Likewise.
81451
81452         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81453         on systems that have <inttypes.h> but not <stdint.h>.
81454
81455 2003-01-07  Bruno Haible  <bruno@clisp.org>
81456
81457         * MODULES.html.sh: Add copyright notice.
81458         (missed_files): Omit CVS directory entries.
81459         (func_module): Make it work with sed-3.02.
81460         * MODULES.txt: Remove file.
81461
81462 2003-01-06  Jim Meyering  <jim@meyering.net>
81463
81464         * lib/version-etc.c: Update year in translatable copyright string.
81465
81466 2003-01-03  Karl Berry  <karl@gnu.org>
81467
81468         * config/config.{guess,sub}: update from prep.
81469
81470 2003-01-02  Karl Berry  <karl@gnu.org>
81471
81472         * doc/COPYING.DOC: belatedly updated to 1.2.
81473
81474 2003-01-01  Karl Berry  <karl@gnu.org>
81475
81476         * gnulib-tool (func_verify_module): report module name $module in
81477         error message, not $1.
81478         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81479         be created, only if it doesn't exist.
81480         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81481
81482 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81483
81484         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81485
81486 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81487
81488         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81489         memcmp if strcoll doesn't work.
81490
81491 2002-12-31  Bruno Haible  <bruno@clisp.org>
81492
81493         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81494         nonempty.
81495
81496 2002-12-31  Bruno Haible  <bruno@clisp.org>
81497
81498         * lib/memcoll.c (STRCOLL): New macro.
81499         (memcoll): Use it.
81500
81501 2002-12-31  Bruno Haible  <bruno@clisp.org>
81502
81503         * lib/localcharset.h: New file.
81504         * lib/localcharset.c: Include it.
81505         * lib/unicodeio.c: Likewise.
81506
81507 2002-12-31  Bruno Haible  <bruno@clisp.org>
81508
81509         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81510         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81511
81512 2002-12-31  Bruno Haible  <bruno@clisp.org>
81513
81514         * lib/getline.h: Include <stddef.h>, for size_t.
81515
81516         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81517         * lib/unicodeio.c: Don't include <stddef.h>.
81518
81519 2002-12-31  Bruno Haible  <bruno@clisp.org>
81520
81521         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81522         HAVE_TM_ZONE.
81523
81524 2002-12-24  Karl Berry  <karl@gnu.org>
81525
81526         * config/config.guess: update from prep.
81527
81528 2002-12-24  Bruno Haible  <bruno@clisp.org>
81529
81530         General infrasructure.
81531         * m4/README: Rewritten.
81532         * m4/onceonly.m4: New file.
81533         * m4/onceonly_2_57.m4: New file.
81534
81535         Module atexit.
81536         * m4/atexit.m4: New file.
81537
81538         Module strtod.
81539         * m4/strtod.m4: New file.
81540
81541         Module strtol.
81542         * m4/strtol.m4: New file.
81543
81544         Module strtoul.
81545         * m4/strtoul.m4: New file.
81546
81547         Module memchr.
81548         * m4/memchr.m4: New file.
81549
81550         Module memcmp.
81551         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81552         (jm_FUNC_MEMCMP): Invoke it.
81553
81554         Module memcpy.
81555         * m4/memcpy.m4: New file.
81556
81557         Module memmove.
81558         * m4/memmove.m4: New file.
81559
81560         Module memset.
81561         * m4/memset.m4: New file.
81562
81563         Module strcspn.
81564         * m4/strcspn.m4: New file.
81565
81566         Module strpbrk.
81567         * m4/strpbrk.m4: New file.
81568
81569         Module strstr.
81570         * m4/strstr.m4: New file.
81571
81572         Module strerror.
81573         * m4/strerror.m4: New file.
81574
81575         Module mktime.
81576         * m4/mktime.m4: Renamed from jm-mktime.m4.
81577         (gl_PREREQ_MKTIME): New macro.
81578         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81579
81580         Module malloc.
81581         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81582         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81583         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81584
81585         Module realloc.
81586         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81587         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81588         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81589
81590         Module strftime.
81591         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81592         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81593         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81594         gl_TM_GMTOFF.
81595         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81596
81597         Module xalloc.
81598         * m4/xalloc.m4: New file.
81599
81600         Module alloca.
81601         * m4/alloca.m4: New file.
81602
81603         Module putenv.
81604         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81605         (jm_FUNC_PUTENV): Invoke it.
81606
81607         Module setenv.
81608         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81609         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81610         when invoked twice.
81611         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81612         gt_FUNC_SETENV.
81613
81614         Module memrchr.
81615         * m4/memrchr.m4: New file.
81616
81617         Module stpcpy.
81618         * m4/stpcpy.m4: New file.
81619
81620         Module strcase.
81621         * m4/strcase.m4: New file.
81622
81623         Module strdup.
81624         * m4/strdup.m4: New file.
81625
81626         Module strnlen.
81627         * m4/strnlen.m4: New file.
81628
81629         Module strndup.
81630         * m4/strndup.m4: New file.
81631
81632         Module xstrtod.
81633         * m4/xstrtod.m4: New file.
81634
81635         Module xstrtol.
81636         * m4/xstrtol.m4: New file.
81637
81638         Module getdate.
81639         * m4/getdate.m4: New file.
81640
81641         Module unlocked-io.
81642         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81643         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81644         * m4/jm-glibc-io.m4n: Remove file.
81645
81646         Module long-options.
81647         * m4/long-options.m4: New file.
81648
81649         Module md5.
81650         * m4/md5.m4: New file.
81651
81652         Module sha.
81653         * m4/sha.m4: New file.
81654
81655         Module getstr.
81656         * m4/getstr.m4: New file.
81657
81658         Module getline.
81659         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81660         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81661         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81662         simply getline. Infoke gl_PREREQ_GETLINE.
81663
81664         Module obstack.
81665         * m4/obstack.m4: New file.
81666
81667         Module hash.
81668         * m4/hash.m4: New file.
81669
81670         Module readtokens.
81671         * m4/readtokens.m4: New file.
81672
81673         Module strverscmp.
81674         * m4/strverscmp.m4: New file.
81675
81676         Module stdbool.
81677         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81678         OSF/1.
81679
81680         Module strtoll.
81681         * m4/strtoll.m4: New file.
81682
81683         Module strtoull.
81684         * m4/strtoull.m4: New file.
81685
81686         Module strtoimax.
81687         * m4/strtoimax.m4: New file.
81688
81689         Module strtoumax.
81690         * m4/strtoumax.m4: New file.
81691
81692         Module xstrtoimax.
81693         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81694         jm_AC_PREREQ_XSTRTOIMAX.
81695         Moved the strtol prerequisites to strtol.m4.
81696         Moved the strtoll prerequisites to strtoll.m4.
81697         Moved the strtoimax prerequisites to strtoimax.m4.
81698
81699         Module xstrtoumax.
81700         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81701         jm_AC_PREREQ_XSTRTOUMAX.
81702         Moved the strtoul prerequisites to strtoul.m4.
81703         Moved the strtoull prerequisites to strtoull.m4.
81704         Moved the strtoumax prerequisites to strtoumax.m4.
81705
81706         Module chown.
81707         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81708         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81709
81710         Module dup2.
81711         * m4/dup2.m4: New file.
81712
81713         Module ftruncate.
81714         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81715         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81716
81717         Module getgroups.
81718         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81719         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81720
81721         Module gettimeofday.
81722         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81723         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81724         gl_PREREQ_GETTIMEOFDAY.
81725
81726         Module mkdir.
81727         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81728         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81729
81730         Module mkstemp.
81731         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81732         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81733         jm_AC_TYPE_UINTMAX_T.
81734         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81735
81736         Module stat.
81737         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81738         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81739
81740         Module lstat.
81741         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81742         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81743
81744         Module timespec.
81745         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81746         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81747         * m4/st_mtim.m4: Indentation.
81748
81749         Module nanosleep.
81750         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81751         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81752         gl_PREREQ_NANOSLEEP.
81753
81754         Module regex.
81755         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81756         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81757         (gl_REGEX): New macro.
81758
81759         Module rename.
81760         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81761         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81762
81763         Module rmdir.
81764         * m4/rmdir.m4: New file.
81765
81766         Module utime.
81767         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81768         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81769         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81770
81771         Module dirname.
81772         * m4/dirname.m4: New file.
81773
81774         Module getopt.
81775         * m4/getopt.m4: New file.
81776
81777         Module unistd-safer.
81778         * m4/unistd-safer.m4: New file.
81779
81780         Module fnmatch.
81781         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81782         declaration.
81783         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81784         (gl_FUNC_FNMATCH_POSIX): New macro.
81785         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81786         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81787         simply fnmatch.
81788
81789         Module exclude.
81790         * m4/exclude.m4: New file.
81791
81792         Module human.
81793         * m4/human.m4: New file.
81794
81795         Module acl.
81796         * m4/acl.m4: Nop.
81797
81798         Module backupfile.
81799         * m4/backupfile.m4: New file.
81800         * m4/d-ino.m4: Indentation.
81801
81802         Module fsusage.
81803         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81804         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81805         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81806
81807         Module dirfd.
81808         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81809         requirements.
81810
81811         Module euidaccess.
81812         * m4/euidaccess.m4: New file.
81813
81814         Module file-type.
81815         * m4/file-type.m4: New file.
81816
81817         Module fileblocks.
81818         * m4/fileblocks.m4: New file.
81819
81820         Module filemode.
81821         * m4/filemode.m4: New file.
81822
81823         Module isdir.
81824         * m4/isdir.m4: New file.
81825
81826         Module lchown.
81827         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81828         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81829
81830         Module makepath.
81831         * m4/makepath.m4: New file.
81832
81833         Module modechange.
81834         * m4/modechange.m4: New file.
81835
81836         Module mountlist.
81837         * m4/mountlist.m4: New file.
81838         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81839         Indentation.
81840
81841         Module path-concat.
81842         * m4/path-concat.m4: New file.
81843
81844         Module pathmax.
81845         * m4/pathmax.m4: New file.
81846
81847         Module same.
81848         * m4/same.m4: New file.
81849
81850         Module save-cwd.
81851         * m4/save-cwd.m4: New file.
81852
81853         Module savedir.
81854         * m4/savedir.m4: New file.
81855
81856         Module xgetcwd.
81857         * m4/xgetcwd.m4: New file.
81858         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81859
81860         Module xreadlink.
81861         * m4/xreadlink.m4: New file.
81862
81863         Module safe-read.
81864         * m4/safe-read.m4: New file.
81865
81866         Module safe-write.
81867         * m4/safe-write.m4: New file.
81868
81869         Module closeout.
81870         * m4/closeout.m4: New file.
81871
81872         Module stdio-safer.
81873         * m4/stdio-safer.m4: New file.
81874
81875         Module getpass.
81876         * m4/getpass.m4: New file.
81877
81878         Module getugroups.
81879         * m4/getugroups.m4: New file.
81880
81881         Module group-member.
81882         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81883         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81884
81885         Module idcache.
81886         * m4/idcache.m4: New file.
81887
81888         Module userspec.
81889         * m4/userspec.m4: New file.
81890
81891         Module gettime.
81892         * m4/clock_time.m4: New file.
81893         * m4/gettime.m4: New file.
81894
81895         Module settime.
81896         * m4/settime.m4: New file.
81897
81898         Module posixtm.
81899         * m4/posixtm.m4: New file.
81900
81901         Module gethostname.
81902         * m4/gethostname.m4: New file.
81903
81904         Module canon-host.
81905         * m4/canon-host.m4: New file.
81906
81907         Module gettext.
81908         * m4/codeset.m4: New file, from gettext-0.11.5.
81909         * m4/gettext.m4: New file, from gettext-0.11.5.
81910         * m4/glibc21.m4: New file, from gettext-0.11.5.
81911         * m4/iconv.m4: New file, from gettext-0.11.5.
81912         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81913         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81914         * m4/inttypes.m4: New file, from gettext-0.11.5.
81915         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81916         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81917         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81918         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81919         * m4/lib-link.m4: New file, from gettext-0.11.5.
81920         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81921         * m4/progtest.m4: New file, from gettext-0.11.5.
81922         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81923         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81924         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81925
81926         Module localcharset.
81927         * m4/localcharset.m4: New file.
81928
81929         Module hard-locale.
81930         * m4/hard-locale.m4: New file.
81931
81932         Module mbswidth.
81933         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81934         onceonly macros.
81935         * m4/mbrtowc.m4: Add comment.
81936
81937         Module memcasecmp.
81938         * m4/memcasecmp.m4: New file.
81939
81940         Module memcoll.
81941         * m4/memcoll.m4: New file.
81942
81943         Module unicodeio.
81944         * m4/unicodeio.m4: New file.
81945
81946         Module rpmatch.
81947         * m4/rpmatch.m4: New file.
81948
81949         Module yesno.
81950         * m4/yesno.m4: New file.
81951
81952         Module exitfail.
81953         * m4/exitfail.m4: New file.
81954
81955         Module c-stack.
81956         * m4/c-stack.m4 (gl_C_STACK): New macro.
81957         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81958
81959         Module error.
81960         * m4/error.m4 (gl_ERROR): New macro.
81961         (jm_PREREQ_ERROR): Use onceonly macros.
81962
81963         Module fatal.
81964         * m4/fatal.m4: New file.
81965
81966         Module getloadavg.
81967         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81968         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81969
81970         Module getpagesize.
81971         * m4/getpagesize.m4: New file.
81972
81973         Module getusershell.
81974         * m4/getusershell.m4: New file.
81975
81976         Module physmem.
81977         * m4/physmem.m4: New file.
81978
81979         Module posixver.
81980         * m4/posixver.m4: New file.
81981
81982         Module quotearg.
81983         * m4/quotearg.m4: New file.
81984
81985         Module quote.
81986         * m4/quote.m4: New file.
81987
81988         Module readutmp.
81989         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81990
81991         Module sig2str.
81992         * m4/sig2str.m4: New file.
81993
81994         Other.
81995         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81996         ulonglong.m4.
81997         * m4/intmax_t.m4: New file.
81998         * m4/d-type.m4: Indentation.
81999         * m4/jm-macros.m4: Update.
82000         * m4/prereq.m4 (jm_PREREQ): Update.
82001         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82002         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82003         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82004         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82005         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82006         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82007         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82008         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82009         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82010         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82011         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82012         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82013         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82014         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82015         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82016         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82017         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82018         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82019         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82020
82021 2002-12-24  Bruno Haible  <bruno@clisp.org>
82022
82023         * MODULES.txt: Update according to m4/ changes.
82024
82025         Module gettext.
82026         * config.rpath: New file, from gettext-0.11.5.
82027
82028         * modules/*: New module descriptions.
82029         * gnulib-tool: New file.
82030         * MODULES.html.sh: New file.
82031
82032 2002-12-21  Karl Berry  <karl@gnu.org>
82033
82034         * doc/fdl.texi: update to version 1.2.
82035
82036 2002-12-19  Karl Berry  <karl@gnu.org>
82037
82038         * config/config.guess: update from prep.
82039
82040 2002-12-18  Bruno Haible  <bruno@clisp.org>
82041
82042         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82043         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82044
82045 2002-12-17  Bruno Haible  <bruno@clisp.org>
82046
82047         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82048         stdlib.h, string.h.
82049
82050 2002-12-17  Bruno Haible  <bruno@clisp.org>
82051
82052         * lib/canon-host.c (strdup): Remove unused declaration.
82053
82054         * lib/fsusage.c: Include full_read.h.
82055         (get_fs_usage): Use full_read instead of safe_read.
82056
82057         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82058
82059 2002-12-12  Karl Berry  <karl@gnu.org>
82060
82061         * config/config.guess: update from prep.
82062
82063 2002-12-11  Bruno Haible  <bruno@clisp.org>
82064
82065         * m4/setenv.m4: New file, from gettext-0.11.5.
82066
82067 2002-12-11  Bruno Haible  <bruno@clisp.org>
82068
82069         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82070         not unsetenv().
82071         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82072         modifications:
82073
82074         2002-12-11  Bruno Haible  <bruno@clisp.org>
82075
82076                 * setenv.c (alloca): Fall back to malloc.
82077                 (freea): New macro.
82078                 (setenv): Use freea() to free memory allocated with alloca().
82079
82080         2002-11-13  Bruno Haible  <bruno@clisp.org>
82081
82082                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82083                 function declarations.
82084                 * unsetenv.c (unsetenv): Likewise.
82085
82086         2002-03-04  Bruno Haible  <bruno@clisp.org>
82087
82088                 Portability to AIX 4.3.3.
82089                 * unsetenv.c: New file, extracted from setenv.c.
82090                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82091
82092         2001-12-20  Bruno Haible  <bruno@clisp.org>
82093
82094                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82095                 use malloc instead. For SunOS 4.
82096
82097         2001-12-11  Bruno Haible  <bruno@clisp.org>
82098
82099                 * setenv.c: Declare alloca.
82100                 (compar_fn_t): New typedef.
82101                 (KNOWN_VALUE, STORE_VALUE): Use it.
82102
82103         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82104         setenv.h.
82105
82106 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82107
82108         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82109         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82110         Choose values that are less likely to collide with system fnmatch
82111         options.
82112         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82113         defined (e.g., a pure POSIX system).
82114         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82115         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82116
82117 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82118
82119         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82120         a pain in practice to deal with generated m4 files.  This change
82121         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82122
82123         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82124         and jm-glibc-io.m4, as they are no longer a special case.
82125         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82126         kludge and the auto-generation stuff.  Check only whether the
82127         functions are declared, not whether they exist, since older hosts
82128         that don't declare the functions can't use the optimization anyway.
82129
82130 2002-12-06  Jim Meyering  <jim@meyering.net>
82131
82132         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82133
82134         Merge in changes from libc's misc/error.c, in preparation
82135         for the merge of gnulib's changes back into libc.
82136
82137         * lib/error.c (_): Define only if not already defined.
82138         Move definition to follow all #include directives.
82139         Include unlocked-io.h only if !_LIBC.
82140         [_LIBC]: Include <libio/libioP.h>.
82141         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82142         (fflush): Tweak definition to use INTUSE.
82143         (putc): Define.
82144
82145 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82146
82147         * lib/alloca.c [defined emacs]: Include "lisp.h".
82148         (xalloc_die) [defined emacs]: New macro.
82149         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82150         [! defined emacs]: Include <xalloc.h>.
82151         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82152         (pointer): Typedef to POINTER_TYPE *.
82153         (malloc): Remove decl; we now always use xmalloc.
82154         (alloca): Use old-style definition, since Emacs needs this.
82155         Check for arithmetic overflow when computing combined size.
82156
82157 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82158
82159         Do not generate unlocked-io.h automatically, since it's easier to
82160         maintain it by hand.
82161
82162         * lib/unlocked-io.h: New file, from GNU diffutils,
82163         but with proper copyright notice and attribution.
82164         * lib/gen-uio: Remove.
82165         * lib/Makefile.am: Add copyright notice.
82166         (libfetish_a_SOURCES): Add unlocked-io.h.
82167         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82168         (DISTCLEANFILES, io_functions): Remove macros.
82169         (EXTRA_DIST): Remove gen_uio.
82170         (unlocked-io.h): Remove rule.
82171
82172 2002-12-04  Jim Meyering  <jim@meyering.net>
82173
82174         Reflect the fact that stat.c and lstat.c are no longer generated.
82175         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82176         (DISTCLEANFILES): Likewise.
82177         (EXTRA_DIST): Likewise.
82178         (all_local): Don't depend on stat.c or lstat.c.
82179         (stat.c, lstat.c): Remove rules.
82180         (EXTRA_DIST): Remove xstat.in.
82181
82182         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82183         * lib/stat.c: New file.  Contents mostly from xstat.in.
82184         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82185         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82186
82187         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82188         too.
82189         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82190
82191 2002-12-03  Jim Meyering  <jim@meyering.net>
82192
82193         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82194         but not semantics, to minimize the differences between these two files.
82195         (safe_read): Change comment to mention SAFE_READ_ERROR.
82196
82197         * lib/safe-read.c (IS_EINTR): Define.
82198         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82199
82200 2002-12-02  Jim Meyering  <jim@meyering.net>
82201
82202         * lib/safe-read.c (EINTR): Define.
82203         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82204         (INT_MAX): Provide fallback.
82205         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82206
82207         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82208
82209 2002-12-02  Bruno Haible  <bruno@clisp.org>
82210
82211         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82212         Define, taken from safe-read.c.
82213         (INT_MAX): Provide fallback.
82214         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82215         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82216
82217         * lib/safe-read.c (EINTR): Remove definition.
82218         (safe_read): Don't use EINTR if it is absent.
82219
82220 2002-12-01  Jim Meyering  <jim@meyering.net>
82221
82222         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82223         zero.
82224         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82225
82226 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82227
82228         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82229         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82230         with `if (! (value < limit)) abort ();', for readability.
82231
82232 2002-11-26  Karl Berry  <karl@gnu.org>
82233
82234         * lib/strdup.c: copy from libc again, with jim's ok.
82235         * lib/.cppi-disable: re-add strdup.c
82236
82237 2002-11-25  Karl Berry  <karl@gnu.org>
82238
82239         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82240         instead of "strtol.c".
82241
82242 2002-11-25  Karl Berry  <karl@gnu.org>
82243
82244         * config/install-sh: update from automake for variable quoting, $0 in
82245         error msgs, etc.
82246
82247         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82248         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82249         entry.
82250
82251 2002-11-25  Jim Meyering  <jim@meyering.net>
82252
82253         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82254
82255 2002-11-24  Karl Berry  <karl@gnu.org>
82256
82257         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82258         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82259
82260 2002-11-24  Jim Meyering  <jim@meyering.net>
82261
82262         Update from coreutils:
82263
82264         * lib/mktime.c: Merge in changes from libc.
82265
82266         Avoid a link-time failure on some Linux systems.
82267         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82268         (otherwise).
82269         (__mon_yday): Declare with the STATIC attribute.
82270         (__mktime_internal): Likewise.
82271         Based on a report from Greg Schafer.
82272
82273 2002-11-23  Jim Meyering  <jim@meyering.net>
82274
82275         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82276         Use `unsigned', not `int', as type of index.
82277
82278         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82279
82280         * lib/fsusage.c: Remove unneeded parentheses around operands of
82281         `defined'.
82282
82283 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82284
82285         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82286         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82287         so that we can be included first.
82288         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82289         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82290         No need to include stddef.h or sys/types.h any more.
82291         Surround local include files with "", not "<>".
82292         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82293         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82294         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82295         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82296         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82297         (ISPRINT): Remove; no longer needed now that we assume C89.
82298
82299         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82300         Preserve errno.
82301
82302         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82303         quotearg_char): Use SIZE_MAX rather than
82304         (size_t) -1 when we are talking about "infinity".
82305
82306         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82307
82308 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82309
82310         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82311         hint that one should use `if (! x) abort ();' rather than `assert
82312         (x);', and anyway it's one less thing to worry about configuring.
82313         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82314         hash_rehash, hash_insert): Use abort rather than assert.
82315
82316 2002-11-22  Bruno Haible  <bruno@clisp.org>
82317
82318         * lib/safe-read.h: Assume C89. Add comments.
82319         (safe_read): Change return type to size_t.
82320         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82321         byte counts > SSIZE_MAX correctly.
82322         * lib/safe-write.h: New file.
82323         * lib/safe-write.c: New file.
82324         * lib/full-read.h: New file.
82325         * lib/full-read.c: New file.
82326         * lib/full-write.h: Assume C89. Add comments.
82327         * lib/full-write.c: Include safe-write.h.
82328         (full_write): Rewritten to use safe_write.
82329         Suggested by Jim Meyering and Paul Eggert.
82330
82331 2002-11-21  Jim Meyering  <jim@meyering.net>
82332
82333         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82334
82335         Merge in changes from the coreutils.
82336
82337         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82338         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82339         <stdint.h>.
82340         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82341         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82342         int.  Work more efficiently if X is the same width as uintmax_t.
82343         Do not compare X to -1, to avoid bogus compiler warning.
82344         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82345         Don't assume that f_frsize and f_bsize are the same type.
82346
82347         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82348         warning on FreeBSD.
82349
82350         * lib/makepath.c (make_path): Restore umask *before* creating the final
82351         component.
82352         (make_path): Minor reformatting.
82353
82354         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82355         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82356         HAVE_MALLOC/HAVE_REALLOC.
82357
82358         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82359         dummy ones.  At least on GNU/Linux systems, `auto' means something
82360         else.
82361         From Michael Stone.
82362
82363 2002-11-21  Bruno Haible  <bruno@clisp.org>
82364
82365         Remove case insensitive option matching.
82366         * lib/argmatch.h (argcasematch): Remove declaration.
82367         (ARGCASEMATCH): Remove macro.
82368         (__xargmatch_internal): Remove case_sensitive argument.
82369         (XARGMATCH): Update.
82370         (XARGCASEMATCH): Remove macro.
82371         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82372         case_sensitive argument.
82373         (argcasematch): Remove function.
82374         (__xargmatch_internal): Remove case_sensitive argument.
82375         (main): Use XARGMATCH instead of XARGCASEMATCH.
82376
82377         * lib/xmalloc.c: Change compile-time error message. Add comment about
82378         required autoconf version.
82379
82380 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82381
82382         Merge argmatch cleanups from Bison.  Assume C89.
82383
82384         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82385         Include stdlib.h, for EXIT_FAILURE.
82386         Always include <string.h>, since we assume C89.
82387         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82388         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82389         Include <stddef.h> instead, since it's all we need for size_t.
82390         (PARAMS): Remove.  All uses removed.
82391         (ARRAY_CARDINALITY): Do not bother to #undef.
82392         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82393         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82394         Remove unnecessary parentheses.
82395         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82396         Insert necessary parentheses.
82397         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82398         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82399
82400 2002-11-19  Bruno Haible  <bruno@clisp.org>
82401
82402         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82403         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82404
82405         * lib/mbswidth.h (PARAMS): Remove macro.
82406         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82407         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82408
82409         * lib/gcd.h (PARAMS): Remove macro.
82410         (gcd): Use ANSI C function declarations.
82411         * lib/gcd.c (gcd): Likewise.
82412
82413 2002-11-15  Bruno Haible  <bruno@clisp.org>
82414
82415         * lib/strcspn.c: Include <stddef.h>.
82416         (strcspn): Use ANSI C function declaration. Change return type to
82417         size_t. Use NULL.
82418         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82419         (strpbrk): Use NULL.
82420         * lib/strpbrk.h (PARAMS): Remove macro.
82421         (strpbrk): Use ANSI C function declaration.
82422         * lib/strstr.c: Don't include <sys/types.h>.
82423         * lib/strstr.h (PARAMS): Remove macro.
82424         (strstr): Use ANSI C function declarations.
82425
82426 2002-11-14  Karl Berry  <karl@gnu.org>
82427
82428         * config/mkinstalldirs: `do' on separate line, instead of
82429         `for var; do'.
82430
82431 2002-11-06  Bruno Haible  <bruno@clisp.org>
82432
82433         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82434         * lib/gcd.c (gcd): Likewise.
82435
82436 2002-11-05  Bruno Haible  <bruno@clisp.org>
82437
82438         * lib/gcd.h: New file, from gettext-0.11.5.
82439         * lib/gcd.c: New file, from gettext-0.11.5.
82440
82441 2002-11-05  Bruno Haible  <bruno@clisp.org>
82442
82443         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82444         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82445         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82446         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82447
82448         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82449         <libintl.h>.
82450         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82451         <libintl.h>.
82452
82453         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82454         * lib/human.c: Include gettext.h instead of <libintl.h>.
82455         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82456         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82457         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82458         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82459         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82460         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82461         (textdomain): Remove definition.
82462         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82463
82464         * lib/long-options.c: Remove include of <libintl.h> and definition of
82465         _.
82466         * lib/same.c: Remove include of <libintl.h> and definition of _.
82467
82468 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82469
82470         * lib/config.charset: A few additions for Solaris.
82471
82472 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82473
82474         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82475         * lib/localcharset.c (locale_charset): Declare as extern "C".
82476
82477 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82478
82479         * lib/config.charset: msdos in uk_UA uses CP1125.
82480
82481 2002-11-04  Bruno Haible  <bruno@clisp.org>
82482
82483         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82484         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82485         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82486         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82487         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82488
82489 2002-11-04  Bruno Haible  <bruno@clisp.org>
82490
82491         * lib/localcharset.c (locale_charset): Don't return an empty string.
82492
82493 2002-11-04  Bruno Haible  <bruno@clisp.org>
82494
82495         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82496         aliases.
82497
82498 2002-11-04  Bruno Haible  <bruno@clisp.org>
82499
82500         * lib/config.charset: Update for newest glibc. Add canonical names
82501         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82502
82503 2002-11-04  Bruno Haible  <bruno@clisp.org>
82504
82505         * lib/config.charset: Add support for NetBSD.
82506
82507 2002-11-04  Bruno Haible  <bruno@clisp.org>
82508
82509         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82510
82511 2002-11-01  Bruno Haible  <bruno@clisp.org>
82512
82513         * configure.in: Add AC_CONFIG_AUX_DIR call.
82514         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82515         test/Makefile.
82516         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82517
82518 2002-09-28  Karl Berry  <karl@gnu.org>
82519
82520         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82521         installed automake until the next release, since changes have been
82522         made.
82523
82524 2002-09-25  Karl Berry  <karl@gnu.org>
82525
82526         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82527         * lib/getopt*: copy from libc/posix.
82528         * lib/gettext.h: copy from gettext.
82529         * lib/.cppi-disable: add strdup.c, gettext.h.
82530
82531 2002-09-25  Karl Berry  <karl@gnu.org>
82532
82533         * config/srclist.txt: enable gettext.h check.
82534         * config/config.{guess,sub}: update from prep.
82535         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82536                 from automake 1.6.3.
82537         See srclist*.
82538
82539 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82540
82541         * regex.c (PATFETCH): Remove the translating fetch.
82542         (PATFETCH_RAW): Rename to PATFETCH.
82543         (set_image_of_range): New fun.
82544         (SET_RANGE_TABLE_WORK_AREA): Use it.
82545         (regex_compile): Don't translate the pattern chars so eagerly.
82546         Only do it when inserting an `exactn' bytecode or when handling
82547         a char-range.
82548         (mutually_exclusive_p): Avoid empty statement.
82549
82550 2002-07-06  Jim Meyering  <meyering@lucent.com>
82551
82552         * m4/README: Don't mention Makefile.am.in.
82553         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82554
82555 2002-07-01  Jim Meyering  <meyering@lucent.com>
82556
82557         * lib/c-stack.c: Include sys/time.h.
82558         From Volker Borchert.
82559
82560 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82561
82562         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82563
82564 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82565
82566         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82567         New macro.  Use it uniformly instead of
82568         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82569         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82570         reported by Vin Shelton.
82571
82572 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82573
82574         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82575         Do not assume SA_SIGINFO behavior.
82576         Bug reported by Jim Meyering on NetBSD 1.5.2.
82577
82578 2002-06-22  Jim Meyering  <meyering@lucent.com>
82579
82580         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82581         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82582
82583         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82584         now that configure.ac uses AC_GNU_SOURCE.
82585         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82586         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82587
82588         Update to latest tools.  Suggestions from Paul Eggert.
82589         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82590         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82591         * m4/fnmatch.m4: Likewise.
82592         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82593         to AC_HEADER_STDBOOL
82594
82595 2002-06-22  Jim Meyering  <meyering@lucent.com>
82596
82597         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82598         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82599
82600 2002-06-22  Jim Meyering  <meyering@lucent.com>
82601
82602         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82603
82604         * lib/exitfail.c, exitfail.h: Likewise.
82605         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82606
82607         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82608         of fnmatch.h.
82609         (EXTRA_DIST): Add fnmatch_loop.c.
82610         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82611
82612         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82613         * lib/fnmatch.c: Update from diffutils-2.8.2.
82614         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82615         * lib/fnmatch.h: Remove file.
82616
82617 2002-06-21  Jim Meyering  <meyering@lucent.com>
82618
82619         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82620         * m4/mbrtowc.m4: Likewise.
82621
82622         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82623         * m4/mbswidth.m4: Reflect name change:
82624         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82625         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82626
82627         * m4/lib-link.m4: Update from gettext-0.11.2.
82628         * m4/gettext.m4: Likewise.
82629
82630         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82631         From Alfred M. Szmidt.
82632
82633 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82634
82635         * lib/file-type.h: Report an error if neither S_ISREG nor
82636         S_IFREG is defined, instead of using a test specific to glibc
82637         2.2.  This should be safe, since POSIX requires S_ISREG and
82638         Unix Version 7 had S_IFREG.  We don't need to check for
82639         <sys/types.h> since we don't use any symbols that it defines.
82640
82641 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82642
82643         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82644         $@-t, so that each temporary file name is unique and valid in the first
82645         8 characters, for operation under DOS.
82646
82647 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82648
82649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82650
82651 2002-06-15  Jim Meyering  <meyering@lucent.com>
82652
82653         Work even with DJGPP 2.03, which lacks support for symlinks.
82654         From Richard Dawe.
82655         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82656         is defined.
82657         * lib/lchown.c (S_ISLNK): Likewise.
82658
82659 2002-06-15  Jim Meyering  <meyering@lucent.com>
82660
82661         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82662         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82663         have been included before this file.
82664
82665 2002-06-14  Jim Meyering  <meyering@lucent.com>
82666
82667         * lib/file-type.h: Use the version from diffutils-2.8.2.
82668         * lib/file-type.c: Likewise.
82669
82670 2002-06-07  Jim Meyering  <meyering@lucent.com>
82671
82672         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82673         They're needed at least for NetBSD 1.5.2.
82674         ($statxfs_includes): Include those same headers.
82675         ($statxfs_includes): Include sys/vfs.h if available.
82676         ($statxfs_includes): Likewise for sys/statvfs.h.
82677         Check for the following members in both structs statfs and statvfs:
82678         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82679
82680 2002-06-01  Jim Meyering  <meyering@lucent.com>
82681
82682         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82683         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82684
82685 2002-05-28  Jim Meyering  <meyering@lucent.com>
82686
82687         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82688         Reported by Volker Borchert.
82689
82690 2002-05-27  Jim Meyering  <meyering@lucent.com>
82691
82692         Fix a problem seen only on nonconforming systems whereby ls.c's
82693         use of localtime, and then of gettimeofday would cause trouble:
82694         the localtime call used to initialize rpl_gettimeofday's save
82695         mechanism would clobber ls's current local time information so
82696         that in any long listing the first file would always be listed
82697         with date 1970-01-01.  Analysis by Volker Borchert.
82698
82699         * lib/gettimeofday.c (localtime): Undefine.
82700         (rpl_localtime): New function.
82701
82702 2002-05-27  Jim Meyering  <meyering@lucent.com>
82703
82704         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82705         localtime.
82706
82707         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82708         use the replacement function; it wouldn't resolve at link time.
82709         Reported by Volker Borchert.
82710
82711 2002-05-22  Jim Meyering  <meyering@lucent.com>
82712
82713         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82714         file-type.h.
82715         * lib/file-type.h: New file.
82716         * lib/file-type.c (file_type): New file/function.  Extracted from
82717         diffutils.
82718
82719 2002-04-30  Jim Meyering  <meyering@lucent.com>
82720
82721         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82722
82723 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82724
82725         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82726
82727 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82728
82729         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82730         Do not check for alloca.h (no longer used) or stdbool.h (was never
82731         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82732
82733 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82734
82735         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82736
82737 2002-04-29  Jim Meyering  <meyering@lucent.com>
82738
82739         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82740         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82741         Use AC_FUNC_STRNLEN here instead.
82742
82743         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82744         With autoconf-2.53a, it's part of AC_PROG_CC.
82745
82746 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82747
82748         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82749         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82750
82751 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82752
82753         * lib/sig2str.h, lib/sig2str.c: New files.
82754         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82755
82756 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82757
82758         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82759         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82760         of 127, since 64 is the largest conceivable number for ancient
82761         nonstandard hosts.
82762         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82763
82764 2002-04-28  Jim Meyering  <meyering@lucent.com>
82765
82766         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82767
82768 2002-04-24  Jim Meyering  <meyering@lucent.com>
82769
82770         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82771         (jm_PREREQ): Use it.
82772
82773         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82774         mach/mach.h fcntl.h.
82775         Check for this function: setlocale.
82776
82777 2002-04-24  Jim Meyering  <meyering@lucent.com>
82778
82779         * lib/gettext.h: New file, from Gettext.
82780         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82781         (libfetish_a_SOURCES): Add gettext.h.
82782
82783 2002-04-16  Jim Meyering  <meyering@lucent.com>
82784
82785         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82786         ut_pid, ut_id, ut_exit.
82787
82788 2002-04-16  Jim Meyering  <meyering@lucent.com>
82789
82790         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82791         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82792         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82793
82794 2002-04-12  Jim Meyering  <meyering@lucent.com>
82795
82796         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82797         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82798         existence of the getmntinfo function.  Needed for Darwin 5.3.
82799
82800         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82801         This is necessary at least on Darwin 5.3.
82802
82803         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82804         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82805         strnlen.o in the library, and that makes some versions of ranlib
82806         object.
82807
82808 2002-04-12  Jim Meyering  <meyering@lucent.com>
82809
82810         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82811
82812 2002-04-09  Jim Meyering  <meyering@lucent.com>
82813
82814         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82815         to be more precise.  Rather than saying we're checking whether the
82816         function `works', say what we're testing.
82817         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82818         Reported by Bruno Haible.
82819
82820 2002-03-10  Jim Meyering  <meyering@lucent.com>
82821
82822         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82823         Suggestion from Santiago Vila.
82824
82825 2002-03-08  Jim Meyering  <meyering@lucent.com>
82826
82827         * lib/rename.c: Mention that this wrapper is needed also on
82828         mips-dec-ultrix4.4 systems.
82829
82830 2002-03-02  Jim Meyering  <meyering@lucent.com>
82831
82832         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82833         not HAVE_CLOCK_SETTIME.
82834
82835 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82836
82837         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82838         Check for clock_settime.
82839
82840 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82841
82842         * lib/nanosleep.h: Rename to....
82843         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82844
82845         * lib/gettime.c: New file.
82846         * lib/settime.c: New file.
82847         * lib/stime.c: Remove.
82848
82849         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82850         timespec.h.  Remove nanosleep.h.
82851
82852 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82853
82854         * m4/acl.m4: New file.
82855         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82856         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82857
82858 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82859
82860         * lib/acl.c, lib/acl.h: New files.
82861         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82862
82863 2002-02-24  Jim Meyering  <meyering@lucent.com>
82864
82865         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82866         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82867         cause trouble.  Reported by Nelson Beebe.
82868
82869 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82870
82871         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82872         compilers that don't know that xalloc_die never returns.
82873
82874 2002-02-20  Jim Meyering  <meyering@lucent.com>
82875
82876         * lib/getdate.c: Regenerate using bison-1.33.
82877
82878 2002-02-17  Jim Meyering  <meyering@lucent.com>
82879
82880         * config/config.guess (main): Don't use `head -1'; it's no longer
82881         portable. Use `sed 1q' instead.
82882
82883 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82884
82885         * m4/codeset.m4: Upgrade to gettext-0.11.
82886         * m4/gettext.m4: Upgrade to gettext-0.11.
82887         * m4/glibc21.m4: Upgrade to gettext-0.11.
82888         * m4/iconv.m4: Upgrade to gettext-0.11.
82889         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82890         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82891         * m4/lib-ld.m4: New file, from gettext-0.11.
82892         * m4/lib-link.m4: New file, from gettext-0.11.
82893         * m4/lib-prefix.m4: New file, from gettext-0.11.
82894         * m4/progtest.m4: Upgrade to gettext-0.11.
82895
82896 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82897
82898         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82899         (jm_PREREQ): Use it.
82900
82901 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82902
82903         * lib/posixver.c, lib/posixver.h: New files.
82904         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82905
82906 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82907             Bruno Haible  <bruno@clisp.org>
82908
82909         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82910         (fwrite_success_callback): New declaration.
82911         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82912         print_unicode_char. Call failure callback instead of error.
82913         (fwrite_success_callback): New function.
82914         (exit_failure_callback): New function.
82915         (fallback_failure_callback): New function.
82916         (print_unicode_char): Call unicode_to_mb.
82917
82918 2002-01-26  Jim Meyering  <meyering@lucent.com>
82919
82920         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82921         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82922
82923 2002-01-26  Jim Meyering  <meyering@lucent.com>
82924
82925         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82926
82927 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82928
82929         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82930
82931 2002-01-22  Jim Meyering  <meyering@lucent.com>
82932
82933         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82934         Otherwise, some versions of automake would omit the rule that makes
82935         Makefile from Makefile.in.
82936
82937 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82938
82939         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82940         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82941         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82942         (memcoll): Set errno to zero if there is no error.
82943
82944         * lib/quotearg.c (quotearg_buffer_restyled):
82945         Fix bug with quoting buffers containing NUL when backslashing escapes.
82946         This bug was exposed by the other changes in this patch.
82947         (quotearg_n_options): New arg ARGSIZE.
82948         All callers changed.
82949         (quoting_options_from_style): New function.
82950         (quotearg_n_style): Use it.
82951         (quotearg_n_style_mem): New function.
82952
82953         * lib/quotearg.h (quotearg_n_style_mem): New function.
82954
82955 2002-01-19  Jim Meyering  <meyering@lucent.com>
82956
82957         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82958         Remove useless quotes: DF_PROG="df".
82959         * m4/strnlen.m4: New file.
82960
82961 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82962
82963         * lib/backupfile.c (ISDIGIT): Comment fix.
82964         * lib/getdate.y (ISDIGIT): Likewise.
82965         * lib/posixtm.c (ISDIGIT, year): Likewise.
82966         * lib/strverscmp.c (ISDIGIT): Likewise.
82967         * lib/userspec.c (ISDIGIT): Likewise.
82968
82969 2002-01-16  Jim Meyering  <meyering@lucent.com>
82970
82971         * lib/getdate.y: Add three semicolons, each just before a closing
82972         brace. Bison (as of version 1.31) no longer papers over that mistake.
82973
82974 2002-01-05  Jim Meyering  <meyering@lucent.com>
82975
82976         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82977
82978 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82979
82980         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82981         not silently exit merely because the output buffer happens to
82982         have nothing pending.
82983
82984 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82985
82986         See the big note in ../ChangeLog.
82987         * lib/human.c (suffixes): Prefer K to k for 1024.
82988         (generate_suffix_backwards): New function.
82989         (human_readable_inexact): Use it.
82990         * lib/xstrtol.c (__xstrtol): If there is no number but there
82991         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82992         Accept 'K' as well as 'k'.
82993
82994 2001-12-15  Jim Meyering  <meyering@lucent.com>
82995
82996         * lib/regex.h (__restrict_arr): Update from libc.
82997
82998         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82999         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83000         (STREQ): Define.
83001
83002 2001-12-14  Jim Meyering  <meyering@lucent.com>
83003
83004         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83005         Suggestion from Bruno Haible.
83006
83007 2001-12-10  Jim Meyering  <meyering@lucent.com>
83008
83009         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83010         xrealloc, Instead, include "xalloc.h".
83011         (initbuffer): Don't cast xmalloc return value to char*.
83012         (readline): Reword comment.
83013         Don't cast xrealloc return value to char*
83014         Return NULL, not 0.
83015
83016 2001-12-09  Jim Meyering  <meyering@lucent.com>
83017
83018         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83019         about `signed and unsigned type in conditional expression'.
83020         * lib/posixtm.c (posix_time_parse): Likewise.
83021
83022         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83023
83024         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83025         to avoid a pedantic warning.
83026
83027         * lib/getstr.c: Don't include assert.h.
83028         (getstr): Remove warning-evoking assertions.
83029         Return -1 if offset parameter is out of bounds.
83030         Change the type of a local from int to size_t.
83031
83032         * lib/strftime.c (my_strftime_localtime_r): Include this function
83033         definition in the `#if ! HAVE_TM_GMTOFF' block.
83034
83035         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83036         Include xalloc.h instead.
83037
83038 2001-12-02  Jim Meyering  <meyering@lucent.com>
83039
83040         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83041         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83042         included.
83043
83044         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83045         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83046
83047 2001-11-30  Akim Demaille  <akim@epita.fr>
83048
83049         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83050         before being defined.
83051
83052 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83053
83054         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83055         First arg is int, not unsigned.
83056         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83057         (SIZE_MAX, UINT_MAX): New macros.
83058         (quotearg_n_options): Abort if N is negative.
83059         Avoid overflow check on hosts where size_t is 64 bits and int
83060         is 32 bits, as overflow is impossible there.
83061         Fix off-by-one typo that caused unnecessary reallocation.
83062
83063 2001-11-27  Jim Meyering  <meyering@lucent.com>
83064
83065         * lib/tempname.c: Merge with version from libc.
83066         * lib/regex.c: Likewise.
83067
83068         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83069         systems for which STDC_HEADERS is 0, it was not included, resulting in
83070         a warning about an integer-to-pointer conversion problem with getenv.
83071         Reported by Volker Borchert.
83072
83073 2001-11-26  Jim Meyering  <meyering@lucent.com>
83074
83075         * lib/gtod.h: Remove file.
83076         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83077         * lib/gettimeofday.c: Don't include gtod.h.
83078         (GTOD_init): Remove function.
83079         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83080         Suggestion from Volker Borchert.
83081
83082 2001-11-23  Jim Meyering  <meyering@lucent.com>
83083
83084         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83085         it.
83086         * lib/hash.c (struct hash_table): Define it here instead.
83087
83088 2001-11-22  Jim Meyering  <meyering@lucent.com>
83089
83090         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83091
83092 2001-11-20  Jim Meyering  <meyering@lucent.com>
83093
83094         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83095         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83096
83097 2001-11-19  Jim Meyering  <meyering@lucent.com>
83098
83099         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83100         directory.  Use "conftestXXXXXX" as the template.
83101         Suggestion from Paul Eggert.
83102
83103         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83104         immediately, so the test doesn't mistakenly hit the max-open-files
83105         limit.
83106
83107 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83108
83109         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83110         (TEMPORARIES): New macro.
83111         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83112         removes an artificial limitation (e.g. HP-UX 10.20, where
83113         TMP_MAX is 17576).
83114
83115 2001-11-18  Jim Meyering  <meyering@lucent.com>
83116
83117         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83118
83119 2001-11-18  Jim Meyering  <meyering@lucent.com>
83120
83121         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83122         on SunOS 4.
83123
83124         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83125         files will be created before anything else.
83126
83127 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83128
83129         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83130         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83131
83132 2001-11-17  Jim Meyering  <meyering@lucent.com>
83133
83134         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83135         Prompted by a report from Bob Proulx.
83136
83137         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83138         Instead, require UTILS_FUNC_MKSTEMP.
83139
83140 2001-11-17  Jim Meyering  <meyering@lucent.com>
83141
83142         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83143         Now, that's done as part of AC_FUNC_STRTOD.
83144
83145 2001-11-17  Jim Meyering  <meyering@lucent.com>
83146
83147         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83148         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83149         rather than group writable.  Patch by Juan F. Codagnone.
83150
83151         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83152         xrealloc, Instead, include "xalloc.h".
83153
83154         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83155         Remove explicit declarations of xmalloc, xrealloc,
83156         and xstrdup.  Instead, include "xalloc.h".
83157
83158         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83159         unlocked-io.h.
83160         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83161         Likewise.
83162         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83163
83164         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83165         Reported by Padraig Brady.
83166
83167         * lib/mkstemp.c: #undef mkstemp.
83168         Include config.h.
83169         (rpl_mkstemp): Rename from mkstemp.
83170         Protoize.
83171
83172 2001-11-16  Jim Meyering  <meyering@lucent.com>
83173
83174         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83175         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83176         determine the amount of total physical memory, use pstat_getstatic.
83177         HPUX-11 doesn't define _SC_PHYS_PAGES.
83178         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83179         If sysconf couldn't be used to determine the amount of available
83180         physical memory, use both pstat_getstatic and pstat_getdynamic.
83181         Based on a patch from Bob Proulx.
83182
83183 2001-11-10  Jim Meyering  <meyering@lucent.com>
83184
83185         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83186         (jm_PREREQ): Use it.
83187
83188 2001-11-09  Jim Meyering  <meyering@lucent.com>
83189
83190         * m4/jm-macros.m4: Require autoconf-2.52f.
83191         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83192         Use these AC_-prefixed names, not the AM_-prefixed ones.
83193
83194         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83195
83196 2001-11-05  Jim Meyering  <meyering@lucent.com>
83197
83198         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83199
83200 2001-11-04  Jim Meyering  <meyering@lucent.com>
83201
83202         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83203         $DEFS.
83204
83205 2001-11-03  Jim Meyering  <meyering@lucent.com>
83206
83207         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83208         of AC_DEFUN.
83209
83210         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83211         know the name of the variable in the macro definition.
83212
83213 2001-11-03  Jim Meyering  <meyering@lucent.com>
83214
83215         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83216         in argmatch_to_argument call.
83217
83218         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83219         argument.
83220
83221         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83222         e.g., a fault due to an attempt to free a NULL pointer.
83223
83224 2001-11-01  Jim Meyering  <meyering@lucent.com>
83225
83226         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83227         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83228
83229 2001-11-01  Jim Meyering  <meyering@lucent.com>
83230
83231         * lib/dirfd.c, lib/dirfd.h: New files.
83232         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83233
83234         * lib/hash.c (hash_print) [TESTING]: Clean up.
83235
83236 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83237
83238         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83239         to avoid a warning if -Wall.
83240
83241 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83242
83243         * README: New file
83244         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83245         (per RMS's instructions, this is now the canonical source)
83246         * lgpl/, gpl/: New directories.
83247
83248 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83249
83250         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83251
83252 2001-10-21  Jim Meyering  <meyering@lucent.com>
83253
83254         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83255         this code would end up calling gettext even in packages built
83256         with --disable-nls.
83257         * lib/getopt.c (_): Likewise.
83258         * lib/regex.c (_): Likewise.
83259
83260 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83261
83262         * m4/error.m4 (jm_PREREQ_ERROR):
83263         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83264         AC_FUNC_STRERROR_R does that.
83265         Check for strerror declaration.
83266
83267         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83268         are supposed to have them these days.
83269         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83270         Merge changes from latest Autoconf CVS.
83271         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83272         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83273         POSIX decided to standardize on the int flavor of strerror_r.
83274
83275 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83276
83277         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83278         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83279         Use strerror_r that is only a macro, even if it is not a function.
83280         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83281         (private_strerror): Use prototypes, not old-style function definition.
83282         (print_errno_message): New function.
83283         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83284         char*-flavored one.
83285         (error_tail, error, error_at_line): Use it.
83286
83287 2001-10-11  Jim Meyering  <meyering@lucent.com>
83288
83289         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83290         and quote_n (1, ... to avoid clobbering a buffer.
83291
83292 2001-10-05  Jim Meyering  <meyering@lucent.com>
83293
83294         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83295         hash-pjw.h.
83296         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83297         * lib/hash-pjw.h: New file.
83298
83299 2001-09-30  Jim Meyering  <meyering@lucent.com>
83300
83301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83302         `struct fsstat' has the `f_fstypename' member.
83303         Use that to define FS_TYPE, which is now used to make
83304         the getfsstat link test tighter.
83305
83306 2001-09-30  Jim Meyering  <meyering@lucent.com>
83307
83308         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83309         Include <sys/ucred.h>, for Apple Darwin.
83310         Include sys/mount.h and sys/fs_types.h only if available.
83311         (FS_TYPE): Define.
83312         (read_filesystem_list): Use FS_TYPE.
83313
83314 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83315
83316         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83317         a boolean context.
83318
83319 2001-09-29  Jim Meyering  <meyering@lucent.com>
83320
83321         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83322         [one-argument getmntent function]): Include stdio.h before mntent.h.
83323         SunOS 4.1.x needs it for the declaration of `FILE'.
83324         Patch by Volker Borchert.
83325
83326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83327         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83328         sys/fs_types.h, and make the link-test for getfsstat guard #include
83329         directives with appropriate #if HAVE_*_H tests so that we can
83330         detect getfsstat on Apple Darwin1.3.7 systems.
83331         Reported by Nelson Beebe.
83332         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83333
83334 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83335
83336         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83337         #defines strtoimax.  Also treat the other strto* functions
83338         like strtoimax.
83339
83340         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83341         Check for strtoul and strtoumax,
83342         as those declarations are made even in the signed case.
83343         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83344         Likewise, for strtol and strtoimax.
83345
83346 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83347
83348         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83349         #defines strtoimax.  Also treat the other strto* functions
83350         like strtoimax.
83351
83352         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83353         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83354         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83355
83356 2001-09-26  Jim Meyering  <meyering@lucent.com>
83357
83358         Most macros in unlocked-io.h had the wrong number of arguments.
83359         * lib/gen-uio: New script.
83360         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83361         * lib/unlocked-io.hin: Remove file.
83362         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83363         rather than trying to embed it here.
83364         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83365         Reported by Padraig Brady.
83366
83367 2001-09-25  Volker Borchert  <bt@teknon.de>
83368
83369         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83370         `result'.
83371
83372 2001-09-24  Jim Meyering  <meyering@lucent.com>
83373
83374         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83375
83376 2001-09-23  Jim Meyering  <meyering@lucent.com>
83377
83378         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83379         instead of the mere test for existence of mntent.h.  The latter
83380         would get a false-positive on AIX 3.4 systems.
83381         In the outer getmntent if-block, don't die if neither of the getmntent
83382         tests succeeds.  Instead, just fall through and continue with the
83383         remaining tests.
83384
83385 2001-09-23  Jim Meyering  <meyering@lucent.com>
83386
83387         * lib/mountlist.c: Remove useless parentheses in #if directives.
83388         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83389         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83390
83391 2001-09-22  Jim Meyering  <meyering@lucent.com>
83392
83393         * m4/gettext.m4: New file.  From gettext.
83394         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83395         * m4/progtest.m4: Likewise
83396         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83397         * m4/glibc21.m4: Likewise.
83398
83399         * m4/libintl.m4: Remove.  No longer used.
83400
83401 2001-09-22  Jim Meyering  <meyering@lucent.com>
83402
83403         * lib/localcharset.c: Update from latest gettext.
83404         * lib/config.charset: Likewise.
83405
83406 2001-09-20  Jim Meyering  <meyering@lucent.com>
83407
83408         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83409         strtoimax.
83410         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83411         strtoumax.
83412
83413 2001-09-20  Jim Meyering  <meyering@lucent.com>
83414
83415         * lib/xstrtol.c (strtoimax): Guard declaration with
83416         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83417         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83418         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83419         (strtoumax): Likewise, for completeness (it wasn't necessary).
83420
83421 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83422
83423         * lib/strtoimax.c (HAVE_LONG_LONG):
83424         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83425         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83426         to work around bug in IBM C compiler.
83427
83428 2001-09-17  Jim Meyering  <meyering@lucent.com>
83429
83430         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83431         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83432         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83433         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83434         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83435         whenever the right hand side need not be expanded by the shell.
83436
83437 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83438
83439         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83440         library.  It's not correct, as some older glibcs are buggy.
83441         fnmatch wasn't fixed until glibc 2.2.
83442
83443         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83444         special shell magic here.
83445
83446 2001-09-16  Jim Meyering  <meyering@lucent.com>
83447
83448         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83449         * m4/jm-macros.m4: Require it.
83450
83451 2001-09-16  Jim Meyering  <meyering@lucent.com>
83452
83453         * lib/mkdir.c: New file.
83454
83455 2001-09-15  Jim Meyering  <meyering@lucent.com>
83456
83457         * m4/jm-macros.m4: Check for help2man.
83458
83459 2001-09-11  Jim Meyering  <meyering@lucent.com>
83460
83461         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83462         The body, by Paul Eggert, was moved here from configure.in.
83463         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83464
83465 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83466
83467         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83468         (jm_PREREQ): Use it.
83469
83470 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83471
83472         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83473         Use ssize_t, not int, to store result of readlink.
83474         Check for ssize_t overflow as well as size_t overflow,
83475         as POSIX says the result of readlink is implementation-defined
83476         when ssize_t overflows.
83477         Remove unnecessary cast to char*.
83478         Use free+malloc instead of realloc, as the storage doesn't need
83479         to be preserved and it's clearer and can be more efficient that way.
83480         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83481         * lib/xreadlink.h (xreadlink): Update prototype.
83482
83483 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83484
83485         * lib/xgetcwd.c: Revert some of the previous change; intead,
83486         fix the HAVE_GETCWD_NULL code to behave more like the
83487         !HAVE_GETCWD_NULL code used to.
83488
83489         Include "xalloc.h".
83490         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83491         invoke xalloc_die.
83492
83493 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83494
83495         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83496         sys/param.h, as pathmax.h includes them.
83497
83498 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83499
83500         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83501         (jm_PREREQ_XGETCWD): New macro.
83502
83503         * m4/getcwd.m4: New file.
83504
83505 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83506
83507         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83508         like the HAVE_GETCWD_NULL code.
83509         Include pathmax.h if not HAVE_GETCWD.
83510         Do not include xalloc.h.
83511         (INITIAL_BUFFER_SIZE): New symbol.
83512         Do not use xmalloc / xrealloc, since the caller is responsible for
83513         handling errors.  Preserve errno around `free' during failure.
83514         Do not overrun buffer when using getwd.
83515
83516 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83517
83518         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83519         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83520         getcwd (NULL, 0).
83521
83522 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83523
83524         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83525         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83526         spotted by Jim Meyering.
83527
83528 2001-09-03  Jim Meyering  <meyering@lucent.com>
83529
83530         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83531         failure.
83532
83533 2001-09-02  Jim Meyering  <meyering@lucent.com>
83534
83535         * lib/error.c: Update from GNU libc.
83536
83537 2001-09-01  Jim Meyering  <meyering@lucent.com>
83538
83539         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83540         Used by df.
83541
83542 2001-09-01  Jim Meyering  <meyering@lucent.com>
83543
83544         * lib/xreadlink.c: New file.
83545         * lib/xreadlink.h: New file.
83546         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83547         xreadlink.h.
83548
83549         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83550         doesn't conflict with sparc Solaris 7's definition in
83551         /usr/include/sys/int_types.h.
83552
83553         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83554         files.
83555         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83556         and strncasecmp as r-values.  Unixware didn't have declarations.
83557
83558 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83559
83560         * lib/xstrtol.h: Add copyright notice.
83561         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83562         LONGINT_INVALID_SUFFIX_CHAR.
83563
83564 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83565
83566         * lib/xstrtol.c (strtoimax): New decl.
83567
83568 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83569
83570         * lib/xgetcwd.c: Don't include pathmax.h.
83571         Include stdlib.h and unistd.h if available.
83572         Include xalloc.h.
83573         (xmalloc, xstrdup, free): Remove decls.
83574         (xgetcwd): Don't assume sizes fit in unsigned.
83575         Check for overflow when computing sizes.
83576         Simplify reallocation code.
83577
83578 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83579
83580         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83581         a directory's st_size can have an arbitrary value, so the old
83582         usage could waste an arbitrary amount of memory.  All uses
83583         changed.
83584         * lib/savedir.h: Update prototype.
83585
83586 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83587
83588         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83589
83590         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83591         old strtoimax.c.
83592
83593         Also, make the following further changes to make this file's
83594         configuration more similar to that of strtol.c:
83595         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83596         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83597         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83598         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83599         changed to signed values.
83600
83601         And make the following changes as well:
83602         Fix copyright notice, as 1999 was missing.
83603         (verify): New macro.
83604         (strtoimax): Check sizes at compile-time, not run-time.
83605         Prefer strtol to strtoll if both work.
83606         (main): Remove; it was not that useful and was a pain to maintain.
83607
83608         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83609
83610 2001-08-31  Jim Meyering  <meyering@lucent.com>
83611
83612         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83613         Use an initial, malloc'd, buffer of length 128 rather than
83614         a statically allocated one of length 1024.
83615
83616 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83617
83618         Simplify code, partly by assuming autoconf 2.52 semantics.
83619
83620         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83621
83622         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83623         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83624         All uses removed.
83625         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83626         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83627         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83628         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83629         jm_AC_HEADER_INTTYPES_H.
83630         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83631
83632         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83633
83634         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83635         Quote first arg of AC_DEFUN.
83636         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83637         since they are needed to parse the include file even if we need
83638         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83639         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83640         but with opposite signedness.
83641
83642 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83643
83644         Merge 'exclude' changes from tar 1.13.22.
83645         This fixes one or two unlikely storage allocation overflow bugs,
83646         but doesn't change user-visible behavior otherwise.
83647
83648 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83649
83650         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83651         (jm_PREREQ_EXCLUDE): New macro.
83652
83653 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83654
83655         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83656         tm to be declared.
83657
83658 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83659
83660         * lib/hash.c: Remove '2001' from copyright notice.
83661
83662 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83663
83664         * lib/full-write.h: New file.
83665         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83666         * lib/full-write.c: Correct credits, as cccp.c no longer
83667         exists and anyway it was so heavily changed from the old cccp
83668         code as to be unrecognizable.  Include full-write.h.
83669         (full_write): Return size_t, with short writes meaning failure.
83670         All callers changed.  This fixes a bug with large buffers
83671         on 64-bit hosts.
83672         * lib/utime.c: Include full-write.h.
83673
83674 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83675
83676         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83677         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83678         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83679         Include if available.
83680         (<xalloc.h>): Include
83681         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83682         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83683         collide with FNM macros.
83684         (struct patopts): New struct.
83685         (struct exclude): Use it, as exclude patterns now come with options.
83686         (new_exclude): Support above changes.
83687         (new_exclude, add_exclude_file):
83688         Initial size must now be a power of two to simplify overflow checking.
83689         (free_exclude, fnmatch_no_wildcards): New function.
83690         (excluded_filename): No longer requires options arg, as the options
83691         are determined by add_exclude.  Now returns bool, not int.
83692         (excluded_filename, add_exclude):
83693         Add support for the fancy new exclusion options.
83694         (add_exclude, add_exclude_file): Now takes int options arg.
83695         Check for arithmetic overflow when computing sizes.
83696         (add_exclude_file): xrealloc might modify errno, so don't
83697         realloc until after errno might be used.
83698
83699         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83700         New macros.
83701         (free_exclude): New decl.
83702         (add_exclude, add_exclude_file): Now takes int options arg.
83703         (excluded_filename): No longer requires options arg, as the options
83704         are determined by add_exclude.  Now returns bool, not int.
83705
83706 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83707
83708         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83709
83710 2001-08-27  Jim Meyering  <meyering@lucent.com>
83711
83712         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83713
83714         * lib/version-etc.c (N_): Remove definition.
83715         Revert most of last change.
83716         Instead, simply don't mark the `Copyright...' string for translation.
83717         Based on advice from Paul Eggert.
83718
83719         * lib/strtoxmax.c: Tweak comment.
83720
83721 2001-08-26  Jim Meyering  <meyering@lucent.com>
83722
83723         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83724
83725         * m4/xstrtoimax.m4: New file.
83726         * m4/xstrtoumax.m4: Add comments explaining why we
83727         AC_REPLACE_FUNCS(strtol).
83728
83729 2001-08-26  Jim Meyering  <meyering@lucent.com>
83730
83731         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83732         of copyright with `%s' so translators don't get an untranslated
83733         message in 2002.
83734         (COPYRIGHT_YEAR): Define.
83735         (version_etc): Use fprintf rather than fputs.
83736         Suggestion from Ulrich Drepper.
83737
83738         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83739
83740         * lib/strtoll.c: New file, from GNU libc.
83741         * lib/xstrtoimax.c: New file.
83742
83743         * lib/xstrtol.h: Add xstrtoimax.
83744         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83745         * lib/strtoimax.c: New file.  Likewise, but first define
83746         STRTOUXMAX_SIGNED.
83747
83748         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83749         ...
83750         * lib/strtoxmax.c: ... then renamed to this.
83751
83752 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83753
83754         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83755         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83756         (jm_AC_TYPE_INTMAX_T): New macro.
83757         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83758
83759         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83760
83761         * m4/longlong.m4: Renamed from ulonglong.m4.
83762         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83763         * m4/uintmax_t.m4: Removed.
83764
83765 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83766
83767         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83768         Port to Solaris 8, where 'sed' requires a space after the 'r'
83769         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83770         Redirect output to $tmp just once.
83771
83772 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83773
83774         * lib/addext.c (<errno.h>): Include.
83775         (errno): Declare if not defined.
83776         (addext): Work correctly when pathconf returns -1 and leaves
83777         errno alone because there is no limit.  Also, work even if
83778         pathconf returns a value greater than SIZE_MAX.
83779
83780 2001-08-12  Jim Meyering  <meyering@lucent.com>
83781
83782         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83783         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83784         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83785         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83786         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83787         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83788         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83789         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83790         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83791         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83792         utime.m4, utimes.m4, xstrtoumax.m4:
83793         Quote the first argument in each use of AC_DEFUN.
83794
83795 2001-08-12  Jim Meyering  <meyering@lucent.com>
83796
83797         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83798         Simply `return getcwd (NULL, 0);'.
83799         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83800         Use 1300 as initial value for length, not PATH_MAX.
83801
83802         * lib/pathmax.h: Clean up cpp syntax.
83803
83804 2001-08-12  Jim Meyering  <meyering@lucent.com>
83805
83806         * lib/gettimeofday.c: New file.
83807         * lib/gtod.h: New file.
83808         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83809
83810 2001-08-05  Jim Meyering  <meyering@lucent.com>
83811
83812         * m4/jm-macros.m4: Require autoconf-2.52.
83813
83814 2001-08-04  Jim Meyering  <meyering@lucent.com>
83815
83816         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83817         stmt, to get in sync with glibc.
83818
83819 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83820
83821         The following changes are from gettext 0.10.39 as maintained by
83822         Bruno Haible.
83823
83824         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83825         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83826         with inverted sense.  All uses changed.
83827
83828         * lib/mbswidth.c: Don't include <limits.h>.
83829         Include <stdlib.h> and <string.h> unconditionally.
83830         (iswcntrl, mbsinit, ISCNTRL): New macros.
83831         (mbsnwidth): Use K&R style function declarations.
83832         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83833         can optimize it when MB_CUR_MAX == 1.
83834         The width of control characters is zero, not 1.
83835
83836 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83837
83838         The following changes are from gettext 0.10.39 as maintained by
83839         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83840
83841         * m4/codeset.m4: Upgrade to serial AM1.
83842         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83843         all uses changed.  Quote first arg of AC_DEFUN.
83844         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83845
83846         * m4/iconv.m4: Upgrade to serial AM2.
83847         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83848         Add --with-libconv-prefix.
83849         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83850         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83851         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83852         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83853         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83854
83855         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83856         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83857         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83858         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83859         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83860         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83861         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83862         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83863         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83864
83865         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83866         string.h any more.
83867
83868         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83869         not the default value.
83870
83871         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83872         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83873         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83874         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83875         Also check for iswcntrl, used for wcwidth fallback.
83876         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83877         to Autoconf 2.13.
83878
83879 2001-08-03  Jim Meyering  <meyering@lucent.com>
83880
83881         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83882         as it was in the original.  Reported by Paul Eggert.
83883
83884 2001-07-16  Jim Meyering  <meyering@lucent.com>
83885
83886         * m4/gettimeofday.m4: New file.
83887         Prompted by a report from Bernhard Baehr.
83888
83889 2001-07-15  Jim Meyering  <meyering@lucent.com>
83890
83891         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83892         stuff. Now it's in ../Makefile.cfg.
83893
83894 2001-07-15  Jim Meyering  <meyering@lucent.com>
83895
83896         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83897         (BUILT_SOURCES): Add unlocked-io.h.
83898         (io_functions): Define.
83899         (unlocked-io.h): New rule.
83900         (DISTCLEANFILES): Add unlocked-io.h.
83901         (all-local): Depend on unlocked-io.h, to ensure it is created.
83902
83903         * lib/unlocked-io.hin: New file
83904
83905         * lib/regex.c: Update from glibc.
83906
83907 2001-07-05  Jim Meyering  <meyering@lucent.com>
83908
83909         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83910         recommendation.
83911         (libfetish_a_SOURCES): Put all .h files here instead.
83912         Remove a thus-exposed (better checks in automake) duplicate and
83913         two unnecessary .h files.
83914
83915 2001-07-04  Jim Meyering  <meyering@lucent.com>
83916
83917         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83918         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83919         distcheck failure.
83920
83921 2001-07-02  Jim Meyering  <meyering@lucent.com>
83922
83923         The following changes were prompted by suggestions from Bruno Haible.
83924
83925         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83926         is now generated.
83927         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83928         definition of EXTRA_DIST.
83929         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83930         ensure that the generated file is created/updated whenever the list
83931         of $(unlocked_functions) is changed.
83932         (jm-glibc-io.m4): New rule.
83933         (unlocked-io.h): New rule -- currently unused.
83934
83935 2001-06-24  Jim Meyering  <meyering@lucent.com>
83936
83937         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83938         unmatched right bracket, rather than kludging it with an extra,
83939         falsely-matching quote in a comment.  Patch by Akim Demaille.
83940
83941 2001-06-11  Jim Meyering  <meyering@lucent.com>
83942
83943         * lib/regex.c: Update from GNU libc.
83944
83945 2001-05-27  Jim Meyering  <meyering@lucent.com>
83946
83947         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83948         Check for ut_type in struct utmp.
83949
83950 2001-05-27  Jim Meyering  <meyering@lucent.com>
83951
83952         * lib/readutmp.h (UT_TYPE): Define.
83953
83954 2001-05-24  Jim Meyering  <meyering@lucent.com>
83955
83956         * lib/argmatch.c: Include "quote.h".
83957         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83958         quote function.  Reported by Göran Uddeborg.
83959
83960 2001-05-22  Jim Meyering  <meyering@lucent.com>
83961
83962         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83963         now that we use the package-supplied version unconditionally.
83964         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83965
83966 2001-05-21  Jim Meyering  <meyering@lucent.com>
83967
83968         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83969         shell syntax errors.
83970
83971 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83972
83973         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83974
83975 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83976
83977         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83978         Don't bother to check library strftime, since
83979         we'll be using our own my_strftime function anyway.
83980         Define my_strftime instead of strftime.
83981
83982 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83983
83984         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83985         which is not yet declared.
83986
83987 2001-05-15  Jim Meyering  <meyering@lucent.com>
83988
83989         * m4/regex.m4: Use proper quoting so brackets appear in the test
83990         program.
83991         Reported by, and with help from, Bruno Haible.
83992
83993 2001-05-13  Jim Meyering  <meyering@lucent.com>
83994
83995         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83996         undefined.
83997
83998 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83999
84000         dirname code cleanup.  base_name now behaves more compatibly
84001         with POSIX basename when given file names that have trailing
84002         slashes, and similarly for dir_name.  Add new primitives
84003         base_len and dir_len.  Put the directory-name-related decls
84004         into dirname.h.
84005
84006         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84007         * lib/backupfile.c (base_name): Likewise.
84008         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84009         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84010         * lib/makepath.c (strip_trailing_slashes): Likewise.
84011         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84012         ISSLASH): Likewise.
84013         * lib/rename.c (strip_trailing_slashes): Likewise.
84014         * lib/same.c (base_name): Likewise.
84015         * lib/stripslash.c (ISSLASH): Likewise.
84016
84017         * lib/addext.c: Include <dirname.h> after size_t is defined.
84018         * lib/backupfile.c: Likewise.
84019
84020         * lib/addext.c (addext): Use base_len to trim redundant
84021         trailing slashes instead of doing it ourselves.
84022         But do not trim the last slash if it is not redundant.
84023
84024         * lib/backupfile.c (find_backup_file_name,
84025         max_backup_version): Use base_len instead of rolling it ourselves.
84026         Handle the case of "" and (on DOS) "C:" correctly.
84027
84028         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84029         needed. Include <string.h>, <dirname.h>.
84030         (base_name): Allow file names ending in slashes, other than names
84031         that are all slashes.  In this case, return the basename followed
84032         by the slashes.  This is more general, and can be used in places
84033         where the original base_name purposely had an assertion failure.
84034         (base_len): New function.
84035
84036         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84037         Do not include <assert.h>; no longer needed.
84038         Include xalloc.h.
84039         (memrchr): Remove decl.
84040         (dir_name_r): Remove.
84041         (dir_len): Renamed from dirlen.  All callers changed.
84042         Rewrite in terms of base_name, for simplicity and consistency.
84043         (dir_name): Never return NULL.  All callers changed.
84044         Do not include <stdlib.h> in test program; no longer needed.
84045         return 0; is fine for test program.
84046
84047         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84048         New macros.
84049         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84050
84051         * lib/path-concat.c (path_concat): Use base_len to compute
84052         base length, not strlen; this means we cannot rely on memcpy
84053         to null-terminate.
84054
84055         * lib/same.c (STREQ): Remove.
84056         (same_name): Handle the case where the basename ends in trailing '/'.
84057
84058         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84059         a slash was stripped.  Do not strip the last slash after a
84060         file system prefix.
84061
84062 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84063
84064         * lib/Makefile.am (libfetish_a_SOURCES):
84065         Add strftime.c, since we now compile it on all hosts.
84066
84067         * lib/strftime.c (my_strftime):
84068         Define to nstrftime if emacs, but only if my_strftime is not defined.
84069         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84070         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84071         Add one more extra argument: a nanoseconds value.
84072         All uses changed.
84073         (ns): New macro.
84074         (my_strftime function): Add %N format.
84075         (emacs_strftimeu): Renamed from emacs_strftime,
84076         with extra ut argument.
84077
84078 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84079
84080         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84081
84082 2001-04-21  Jim Meyering  <meyering@lucent.com>
84083
84084         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84085         doesn't interfere.
84086
84087 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84088
84089         * m4/ftruncate.m4: Check for chsize.
84090         Link with ftruncate.o unconditionally if ftruncate is missing.
84091         This was required when cross-compiling to i586-mingw32msvc.
84092
84093 2001-04-08  Jim Meyering  <meyering@lucent.com>
84094
84095         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84096         recomputed; that's necessary when the offset spans a DST transition.
84097         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84098
84099 2001-04-02  Jim Meyering  <meyering@lucent.com>
84100
84101         * lib/regex.h, regex.c: Update from GNU libc.
84102
84103 2001-03-24  Jim Meyering  <meyering@lucent.com>
84104
84105         * m4/jm-macros.m4: Require autoconf-2.49d.
84106
84107 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84108
84109         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84110
84111 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84112
84113         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84114
84115 2001-03-17  Jim Meyering  <meyering@lucent.com>
84116
84117         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84118         now that the version in autoconf is equivalent.
84119         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84120
84121         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84122         Suggestion from Akim Demaille.
84123
84124         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84125         (jm_PREREQ_TEMPNAME): New function.
84126
84127 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84128
84129         * lib/tempname.c (uint64_t): Define to uintmax_t if
84130         not defined, and if UINT64_MAX is not defined.
84131         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84132         Reported by John David Anglin.
84133
84134 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84135
84136         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84137         resolve alias if codeset is empty.
84138         * lib/config.charset (BeOS): Use wildcard syntax.
84139
84140 2001-03-13  Jim Meyering  <meyering@lucent.com>
84141
84142         * lib/path-concat.c (path_concat)
84143         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84144         concatenating e.g., `C:' and `foo'.
84145         From Bruno Haible.
84146
84147 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84148
84149         * lib/localcharset.c (locale_charset): Don't use
84150         setlocale(LC_CTYPE,NULL). Don't return NULL.
84151         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84152
84153 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84154
84155         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84156         support for DOS/DJGPP.
84157
84158 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84159
84160         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84161         lacks mkstemp.  Compile our own tempname.c if we compile our own
84162         mkstemp.c, as mkstemp relies on tempname.
84163
84164 2001-03-01  Jim Meyering  <meyering@lucent.com>
84165
84166         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84167         AH_VERBATIM really does output its argument verbatim.
84168
84169 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84170
84171         * lib/Makefile.am (libfetish_a_SOURCES):
84172         Add dup-safer.c, fopen-safer.c.
84173         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84174
84175         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84176         * lib/unistd-safer.h: New files.
84177
84178 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84179
84180         The mkstemp replacement is taken from glibc 2.2.2, with some
84181         portability fixes for use outside glibc, as follows:
84182
84183         * lib/tempname.c (struct_stat64): New macro.
84184         (direxists, __gen_tempname): Use it.
84185         This avoids a portability problem with Solaris 8.
84186
84187         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84188         (<stddef.h>, <stdint.h>, <string.h>):
84189         Include only if STDC_HEADERS || _LIBC.
84190         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84191         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84192         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84193         (__set_errno): Define this macro if <errno.h> doesn't.
84194         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84195         Define these macros if <stdio.h> doesn't.
84196         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84197         Define these macros if <sys/stat.h>
84198         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84199         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84200         __xstat64): Define if not _LIBC.
84201         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84202         (__gen_tempname): Invoke gettimeofday only if
84203         HAVE_GETTIMEOFDAY || _LIBC;
84204         otherwise, fall back on plain "time".
84205         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84206
84207         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84208
84209         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84210
84211 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84212
84213         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84214
84215 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84216
84217         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84218         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84219         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84220         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84221
84222 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84223
84224         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84225         Remove workaround macros for hosts that have mbrtowc but not
84226         mbstate_t, as we now insist on proper declarations for both
84227         before using mbrtowc.
84228
84229 2001-02-17  Jim Meyering  <meyering@lucent.com>
84230
84231         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84232         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84233         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84234         UnixWare 7.1.1.
84235
84236         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84237         rather than AC_CACHE_VAL.
84238
84239 2001-02-17  Jim Meyering  <meyering@lucent.com>
84240
84241         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84242         around included file name.
84243
84244         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84245
84246         * lib/strftime.c: Update from GNU libc (the only changes were to
84247         comments).
84248
84249 2001-02-17  Jim Meyering  <meyering@lucent.com>
84250
84251         * lib/regex.c: Update from libc.
84252
84253 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84254
84255         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84256         clash.
84257
84258 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84259
84260         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84261         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84262         Reported by Mark Hounschell via Paul Eggert.
84263
84264 2001-02-07  Jim Meyering  <meyering@lucent.com>
84265
84266         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84267
84268 2001-02-05  Jim Meyering  <meyering@lucent.com>
84269
84270         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84271         it includes the patch required for `large file' support with at least
84272         HP-UX's 10.20 /bin/cc.
84273
84274 2001-02-03  Jim Meyering  <meyering@lucent.com>
84275
84276         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84277         AS_IF, now that it works once again (mysteriously).
84278         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84279
84280 2001-01-30  Jim Meyering  <meyering@lucent.com>
84281
84282         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84283         * m4/chown.m4: Rename conftestchown to conftest.chown.
84284         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84285         s/conftestdir2/conftest.d2/.
84286         * m4/utimes.m4: s/conftestdata/conftest.data/
84287         Inspired by Pavel Roskin's change in autoconf.
84288
84289 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84290
84291         * lib/config.charset: Update for FreeBSD 4.2.
84292
84293 2001-01-27  Jim Meyering  <meyering@lucent.com>
84294
84295         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84296         a use of AS_IF.
84297         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84298
84299 2001-01-26  Jim Meyering  <meyering@lucent.com>
84300
84301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84302         quotearg.c includes it.
84303
84304 2001-01-26  Jim Meyering  <meyering@lucent.com>
84305
84306         * lib/quotearg.c: Include stddef.h.
84307         * lib/quote.c: Include stddef.h.
84308         Reported by Axel Kittenberger.
84309
84310         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84311         line in double quotes so that it evokes a better diagnostic.
84312         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84313         Reported by Axel Kittenberger.
84314
84315 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84316
84317         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84318         as if it was a `charset'.
84319
84320 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84321
84322         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84323         has const.
84324
84325 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84326
84327         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84328         to avoid a warning.  Add back 'const' to inptr.
84329
84330 2001-01-20  Jim Meyering  <meyering@lucent.com>
84331
84332         Be sure that headers are checked before used in code compiled
84333         for the type checks.
84334         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84335         In place of that, invoke jm_CHECK_ALL_TYPES.
84336         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84337         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84338         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84339         The check for ssize_t was mistakenly run before the test for unistd.h.
84340
84341         The configure-time check for stdbool.h was missing.
84342         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84343         (jm_PREREQ_HASH): New function.
84344
84345 2001-01-17  Jim Meyering  <meyering@lucent.com>
84346
84347         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84348         for autoconf-2.49c.
84349         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84350
84351 2001-01-16  Jim Meyering  <meyering@lucent.com>
84352
84353         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84354         From Bruno Haible.
84355
84356 2001-01-14  Jim Meyering  <meyering@lucent.com>
84357
84358         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84359         foo and bar.  Create conftestdir/ in the script, not in the C code.
84360         Remove directories in the script, not in the C code.
84361         Remove conftestdir{,2} before trying to create the directory.
84362         Make the entire configure script fail if the mkdir fails.
84363
84364 2001-01-14  Jim Meyering  <meyering@lucent.com>
84365
84366         * lib/rename.c: New file.  From Volker Borchert.
84367         Include stdlib.h, string.h or strings.h, and xalloc.h.
84368         Use strip_trailing_slashes rather than open-coding it.
84369
84370 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84371
84372         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84373
84374 2001-01-03  Jim Meyering  <meyering@lucent.com>
84375
84376         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84377         of local `inptr' to avoid warning with some system declarations of
84378         iconv.
84379
84380 2001-01-02  Volker Borchert  <bt@teknon.de>
84381
84382         * m4/rename.m4: New file.
84383         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84384
84385 2001-01-01  Jim Meyering  <meyering@lucent.com>
84386
84387         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84388         even on systems with utmpx.h.  It's necessary for the declaration of
84389         utmp's ut_user member.  Reported by Andreas Jaeger.
84390
84391         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84392         available. They are required for the declarations of getgrgid and
84393         getpwuid resp.
84394         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84395         Reported by Andreas Jaeger.
84396
84397 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84398
84399         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84400         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84401         so `make install' also works in VPATH builds.
84402
84403 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84404
84405         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84406         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84407         can be used in subdirectories.
84408
84409 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84410
84411         * lib/modechange.c: Do not assume that mode_t uses the
84412         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84413         the other-execute bit of FOO even if S_IXOTH != 1.
84414
84415         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84416         WOTH, XOTH, ALLM): New macros.
84417         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84418          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84419         Use them.
84420         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84421         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84422         (mode_compile):
84423         No need to use uintmax_t; unsigned long is long enough.
84424         Don't bother to get suffix since we don't use it.
84425
84426 2000-12-26  Jim Meyering  <meyering@lucent.com>
84427
84428         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84429         better with autoheader.
84430
84431 2000-12-24  Jim Meyering  <meyering@lucent.com>
84432
84433         * lib/hash.c (is_prime): Return explicit boolean values.
84434         (hash_get_first): Return NULL to appease Irix5.6's 89.
84435         Reported by Nelson Beebe.
84436
84437 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84438
84439         * lib/localcharset.c (locale_charset): Add support for Win32.
84440
84441 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84442
84443         * lib/physmem.h, lib/physmem.c: New files.
84444
84445         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84446         (noinst_HEADERS): Add physmem.h.
84447
84448         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84449         't' for compatibility with Solaris 8 sort.
84450
84451 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84452
84453         * lib/config.charset: Add support for BeOS.
84454
84455 2000-12-17  Jim Meyering  <meyering@lucent.com>
84456
84457         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84458         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84459
84460 2000-12-16  Jim Meyering  <meyering@lucent.com>
84461
84462         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84463         N and M) would have treated it like `chown N:N FILE'.
84464
84465         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84466
84467 2000-12-16  Jim Meyering  <meyering@lucent.com>
84468
84469         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84470         SHELLS_FILE to a file name that's useful on djgpp systems.
84471         Include stdlib.h.
84472         (ADDITIONAL_DEFAULT_SHELLS): Define.
84473         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84474         Based mostly on a patch from Prashant TR.
84475
84476 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84477
84478         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84479         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84480         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84481
84482 2000-12-08  Andreas Schwab  <schwab@suse.de>
84483
84484         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84485         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84486
84487 2000-12-07  Jim Meyering  <meyering@lucent.com>
84488
84489         * lib/stripslash.c (ISSLASH): Define.
84490         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84491         `/'.
84492         From Prashant TR.
84493
84494         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84495         (dir_name_r): Declare this function as static.
84496         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84497         manifest itself on a name containing a mix of slashes and
84498         backslashes.
84499         Make this function work with names starting with a DOS-style
84500         drive letter and colon prefix.
84501         (dir_name): Append `.' if necessary.
84502         Based mostly on patches from Prashant TR and Eli Zaretskii.
84503
84504         * lib/dirname.h (dir_name_r): Remove prototype.
84505
84506 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84507
84508         * m4/off_t-format.m4: Remove this file.
84509         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84510
84511 2000-12-06  Jim Meyering  <meyering@lucent.com>
84512
84513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84514         replacement strtoull, we may well need the replacement strtoul, too.
84515         Check for declarations of strtoul and strtoull.
84516         Check for strtol.  Mainly as a cue to cause automake to include
84517         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84518         Check for limits.h -- strtol.c needs it.
84519
84520 2000-12-05  Jim Meyering  <meyering@lucent.com>
84521
84522         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84523
84524 2000-12-04  Jim Meyering  <meyering@lucent.com>
84525
84526         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84527         Also include memory.h, stdlib.h, unistd.h if appropriate.
84528         Reported by Andreas Jaeger (conflicting declaration of malloc).
84529
84530 2000-12-02  Jim Meyering  <meyering@lucent.com>
84531
84532         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84533         * m4/jm-macros.m4 (jm_MACROS): require it.
84534
84535 2000-12-02  Jim Meyering  <meyering@lucent.com>
84536
84537         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84538
84539 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84540
84541         * lib/memrchr.c: Include <config.h> before any system include file.
84542
84543 2000-11-30  Jim Meyering  <meyering@lucent.com>
84544
84545         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84546
84547 2000-11-30  Jim Meyering  <meyering@lucent.com>
84548
84549         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84550
84551 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84552
84553         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84554
84555 2000-11-26  Jim Meyering  <meyering@lucent.com>
84556
84557         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84558
84559 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84560
84561         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84562         size of (size_t) -1; it's not portable.
84563
84564 2000-11-17  Jim Meyering  <meyering@lucent.com>
84565
84566         * lib/strstr.c: Update from GNU libc.
84567
84568 2000-11-17  Akim Demaille  <akim@epita.fr>
84569
84570         * lib/obstack.h: Formatting changes.
84571         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84572         prevent type checking.
84573         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84574         cast the value to (void *): assigning a `foo *' to a `void *'
84575         variable is valid.
84576         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84577
84578 2000-11-16  Jim Meyering  <meyering@lucent.com>
84579
84580         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84581
84582 2000-11-11  Jim Meyering  <meyering@lucent.com>
84583
84584         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84585
84586 2000-11-10  Jim Meyering  <meyering@lucent.com>
84587
84588         * lib/obstack.h: Update from GNU libc.
84589         * lib/obstack.c: Likewise.
84590
84591 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84592
84593         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84594
84595 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84596
84597         * lib/getusershell.c (setusershell): Use rewind rather than
84598         fseek/fseeko, to avoid configuration hassles with fseeko.
84599         Don't bother opening SHELLS_FILE if shellstream is NULL;
84600         it's not necessary.
84601
84602 2000-11-05  Jim Meyering  <meyering@lucent.com>
84603
84604         * lib/makepath.h (make_dir): Declare.
84605         * lib/makepath.c (make_dir): Remove `static' attribute.
84606         Tweak a comment.
84607
84608 2000-11-04  Jim Meyering  <meyering@lucent.com>
84609
84610         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84611
84612 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84613
84614         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84615         last one in a bucket, advance to the next bucket.
84616
84617 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84618
84619         * lib/fnmatch.c: Do not comment out all the code if we are using
84620         the GNU C library, because in some cases we are replacing buggy
84621         code in the GNU C library itself.
84622
84623 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84624
84625         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84626         (regex_compile): Catch bogus \(\1\).
84627
84628 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84629
84630         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84631         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84632         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84633
84634 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84635
84636         * lib/error.h, getline.h, modechange.h:
84637         Remove "2000" from Copyright line, as the file hasn't been
84638         changed this year other than in the copyright notice.
84639
84640         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84641         was changed this year.
84642
84643 2000-10-29  Jim Meyering  <meyering@lucent.com>
84644
84645         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84646         renaming.
84647         * m4/ls-mntd-fs.m4: Likewise
84648
84649 2000-10-29  Jim Meyering  <meyering@lucent.com>
84650
84651         * lib/xstat.in: Fix grammar in comment.
84652
84653 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84654
84655         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84656         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84657         doesn't define __restrict_arr.
84658
84659 2000-10-28  Jim Meyering  <meyering@lucent.com>
84660
84661         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84662         (jm_PREREQ_MEMCHR): New function.
84663
84664 2000-10-28  Jim Meyering  <meyering@lucent.com>
84665
84666         * lib/memchr.c: Update from libc.
84667         Adjust for portability:
84668         [HAVE_STDLIB_H]: Include stdlib.h.
84669         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84670         Undef __memchr, too.
84671         [!weak_alias]: Define __memchr to memchr.
84672
84673         * lib/regex.c: Update from libc.
84674         * lib/regex.h: Likewise.
84675         * lib/getopt1.c: Likewise.
84676         * lib/memcmp.c: Likewise.
84677
84678         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84679         Avoid using fseek, when possible -- it's broken by design.
84680         Patch by Ulrich Drepper.
84681
84682 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84683
84684         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84685         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84686         Giving in to popular pressure to shut up the compiler with casts.
84687
84688 2000-10-26  Jim Meyering  <meyering@lucent.com>
84689
84690         * lib/strftime.c: Update from libc.
84691
84692 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84693
84694         * regex.c: More `unsigned char' -> `re_char' changes.
84695         Also change several `int' into `re_wchar_t'.
84696         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84697         (PUSH_FAILURE_POINTER): Don't cast any more.
84698         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84699         We want GCC to complain, since this piece of code makes
84700         re_match non-reentrant, which *should* be fixed.
84701         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84702         (EXTEND_BUFFER): Use RETALLOC.
84703         (SET_LIST_BIT): Don't cast.
84704         (re_wchar_t): New type.
84705         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84706         that those two functions will always properly return.
84707         (IMMEDIATE_QUIT_CHECK): Cast to void.
84708         (analyse_first): Use recursion rather than an explicit stack.
84709         (re_compile_fastmap): Can't fail anymore.
84710         (re_search_2): Don't check re_compile_fastmap for failure.
84711         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84712         Now also sets the new value (passed in a new argument).
84713         (re_match_2_internal): Use it.
84714         Also, use a new var `reg' of type size_t when looping through regs
84715         rather than reuse the inappropriate `mcnt'.
84716
84717 2000-10-25  Jim Meyering  <meyering@lucent.com>
84718
84719         * lib/obstack.c: Update from libc.
84720
84721 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84722
84723         * regex.c (regex_compile): Change the way of handling a range from
84724         a char less than 256 to a char not less than 256.
84725
84726 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84727
84728         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84729         NT-Emacs only.
84730         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84731         so that re_search functions only quit when callers expect them to.
84732
84733 2000-10-23  Jim Meyering  <meyering@lucent.com>
84734
84735         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84736         wrong.  That set_locale call must not have any side effects.
84737         From Paul Eggert.
84738
84739 2000-10-22  Jim Meyering  <meyering@lucent.com>
84740
84741         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84742         [CYCLIC]: Remove now-unused definition.
84743
84744         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84745         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84746         Suggestion from Ulrich Drepper.
84747
84748 2000-10-21  Jim Meyering  <meyering@lucent.com>
84749
84750         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84751         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84752         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84753
84754 2000-10-21  Jim Meyering  <meyering@lucent.com>
84755
84756         * lib/dirname.c (memrchr): Declare if necessary.
84757         (dir_name): Remove the restriction that there be no
84758         trailing slashes.  Now, this code skips past them, effectively
84759         ignoring them.
84760         [TEST_DIRNAME] (main): New unit tests.
84761
84762         * lib/memrchr.c: New file from GNU libc.
84763         Undef __memrchr, too.
84764         [!weak_alias]: Define __memrchr to memrchr.
84765         Guard weak_alias use with `#ifdef weak_alias'.
84766
84767 2000-10-21  Jim Meyering  <meyering@lucent.com>
84768
84769         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84770         (dir_name): Use dir_name_r.
84771         * lib/dirname.h (dir_name_r): Declare it.
84772
84773 2000-10-17  Jim Meyering  <meyering@lucent.com>
84774
84775         * lib/quote.h (PARAMS): Define and use.
84776         Reported by Akim Demaille.
84777
84778         * lib/getopt.c: Update from libc.
84779
84780 2000-10-16  Jim Meyering  <meyering@lucent.com>
84781
84782         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84783         setlocale.
84784         From Jan Fedak.
84785
84786 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84787
84788         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84789
84790 2000-09-25  Jim Meyering  <meyering@lucent.com>
84791
84792         * lib/md5.h (rol): Define (from GnuPG).
84793
84794         * lib/sha.c: Give credit (GnuPG) where due.
84795         (M): Use rol rather than open-coding it.
84796         Add a FIXME comment.
84797
84798 2000-09-21  Jim Meyering  <meyering@lucent.com>
84799
84800         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84801         Reported by Michael Stone.
84802
84803 2000-09-20  Jim Meyering  <meyering@lucent.com>
84804
84805         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84806         (noinst_HEADERS): Add sha.h.
84807         Based on code from Scott G. Miller and from GnuPG.
84808
84809 2000-09-18  Jim Meyering  <meyering@lucent.com>
84810
84811         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84812         LIBS. Otherwise, everyone ends up linking with -lelf for some
84813         configurations.
84814         Reported by Mike Stone.
84815
84816 2000-09-15  Jim Meyering  <meyering@lucent.com>
84817
84818         * lib/regex.c: Update from libc.
84819
84820 2000-09-10  Jim Meyering  <meyering@lucent.com>
84821
84822         * lib/getopt.c (_getopt_internal): Update from glibc.
84823
84824 2000-09-09  Jim Meyering  <meyering@lucent.com>
84825
84826         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84827         think it should be used as a general replacement for isascii.
84828         * lib/fnmatch.c: Likewise.
84829         * lib/mbswidth.c: Likewise
84830         * lib/regex.c: Likewise.
84831
84832         Don't use atoi.
84833         * lib/userspec.c: Include sys/param.h and limits.h.
84834         Include xstrtol.h.
84835         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84836         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84837         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84838         UID, GID.  Check range.
84839
84840 2000-09-06  Jim Meyering  <meyering@lucent.com>
84841
84842         * lib/getopt.c (_getopt_internal): Update from glibc.
84843
84844 2000-08-30  Jim Meyering  <meyering@lucent.com>
84845
84846         * lib/strftime.c: Merge in changes from GNU libc.
84847
84848 2000-08-26  Jim Meyering  <meyering@lucent.com>
84849
84850         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84851         * m4/fpending.m4: New file.
84852
84853 2000-08-26  Jim Meyering  <meyering@lucent.com>
84854
84855         * lib/closeout.c: Include "__fpending.h".
84856         (close_stdout_status): Return right away if there's nothing to flush.
84857
84858         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84859         * lib/__fpending.c: New file.
84860         * lib/__fpending.h: New file.
84861
84862 2000-08-20  Jim Meyering  <meyering@lucent.com>
84863
84864         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84865         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84866         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84867
84868 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84869
84870         Improve fileutils installation on systems where running
84871         programs (like install) can't be unlinked.
84872         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84873         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84874
84875 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84876
84877         Standardize on "memory exhausted" instead of "Memory exhausted"
84878         or "virtual memory exhausted".
84879         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84880         "virtual memory exhausted".
84881         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84882         our own message.
84883         * lib/userspec.c (parse_user_spec): Likewise.
84884         * lib/bumpalloc.h: comment fix
84885         * lib/same.c, userspec.c: Include xalloc.h.
84886
84887         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84888         not char *const and pointing to a constant array.
84889         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84890         (xrealloc): Comment fix.
84891
84892         * lib/userspec.c (parse_user_spec):
84893         Don't translate a message until just before returning,
84894         to avoid unnecessary translation.
84895
84896 2000-08-07  Jim Meyering  <meyering@lucent.com>
84897
84898         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84899         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84900         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84901         getgroups.c, gethostname.c, getopt.h, group-member.c,
84902         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84903         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84904         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84905         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84906         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84907         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84908         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84909         yesno.c: Back out Copyright date changes for each file with no change
84910         this year.  This eases coordination with other programs using the same
84911         source code modules.  From Paul Eggert.
84912
84913 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84914
84915         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84916         not char, for compatibility with glibc 2.1.3 strftime.c.
84917
84918 2000-08-03  Greg McGary  <greg@mcgary.org>
84919
84920         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84921         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84922         (EXTEND_BUFFER): Use them.
84923
84924 2000-08-01  Jim Meyering  <meyering@lucent.com>
84925
84926         * lib/dirname.c (ISSLASH): Define.
84927         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84928         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84929         both `\' and `/' may be use as path separators.
84930         Based on a patch from Prashant TR.
84931
84932 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84933
84934         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84935         slot vector a constant, since it might get modified.
84936
84937 2000-07-31  Jim Meyering  <meyering@lucent.com>
84938
84939         * lib/xmalloc.c: Use `virtual memory exhausted', not
84940         `Memory exhausted'.
84941         * lib/obstack.c (print_and_abort): Likewise.
84942
84943 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84944
84945         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84946         buffer, so that the caller can always quote one small
84947         component of a "memory exhausted" message in slot 0.
84948         From a suggestion by Jim Meyering.
84949
84950 2000-07-30  Jim Meyering  <meyering@lucent.com>
84951
84952         * lib/makepath.c (make_path): Quote the other instance, too.
84953
84954         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84955         (STATIC_BUF_SIZE): Define.
84956         (quotearg_n_options): Use only statically allocated storage when
84957         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84958         than STATIC_BUF_SIZE.
84959
84960 2000-07-29  Jim Meyering  <meyering@lucent.com>
84961
84962         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84963         * lib/dirname.c (dir_name): Likewise.
84964
84965         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84966         `/'.
84967
84968         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84969         (dir_name): Assert that there are no trailing slashes.
84970
84971 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84972
84973         * lib/mbswidth.h (mbswidth): Add a flags argument.
84974         (mbswidth): New declaration.
84975         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84976         * lib/mbswidth.c (mbswidth): Add a flags argument.
84977         (mbsnwidth): New function.
84978
84979 2000-07-24  Jim Meyering  <meyering@lucent.com>
84980
84981         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84982
84983 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84984
84985         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84986
84987 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84988
84989         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84990         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84991         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84992         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84993         invoke multibyte primitives.
84994
84995 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84996
84997         * lib/quotearg.c:
84998         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84999         so that mbstate_t is always defined.
85000
85001         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85002         be 1 in at least one GCC installation, and this configuration
85003         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85004         performance on hosts that have mbrtowc but have only unibyte
85005         locales, but I assume these hosts are rare.
85006
85007 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85008
85009         * lib/mbswidth.c (_XOPEN_SOURCE):
85010         Don't define; this causes problems on Solaris 7.
85011         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85012
85013 2000-07-23  Jim Meyering  <meyering@lucent.com>
85014
85015         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85016         too: getgrgid, getpwuid, getuid.
85017
85018 2000-07-23  Jim Meyering  <meyering@lucent.com>
85019
85020         * lib/basename.c (base_name): Add an assertion.
85021
85022 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85023
85024         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85025         shadow its mbsinit function.
85026
85027 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85028
85029         * lib/mbswidth.h: New file.
85030         * lib/mbswidth.c: New file.
85031         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85032         (noinst_HEADERS): Add mbswidth.h.
85033
85034 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85035
85036         * lib/config.charset: Add support for FreeBSD. Improve support for
85037         HP-UX and IRIX 6.
85038
85039 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85040
85041         * m4/mbswidth.m4: New file.
85042         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85043
85044 2000-07-15  Jim Meyering  <meyering@lucent.com>
85045
85046         * lib/makepath.c: Include quote.h.
85047         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85048         corresponding argument in a `quote (...)' call.
85049         Give better diagnostics.
85050
85051         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85052         (noinst_HEADERS): Add quote.h.
85053
85054         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85055         from tar's src/misc.c.
85056         * lib/quote.h: New file.  Prototypes for same.
85057
85058 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85059
85060         From a suggestion by Bruno Haible.
85061         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85062         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85063         to decide whether to define the BeOS workaround macro;
85064         this adjusts to the change to AC_MBSTATE_T.
85065
85066 2000-07-14  Jim Meyering  <meyering@lucent.com>
85067
85068         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85069         jm_AC_TYPE_UINTMAX_T.
85070
85071 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85072
85073         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85074
85075         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85076         quotearg_buffer_restyled): Add support for
85077         clocale_quoting_style.  Undo previous change to
85078         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85079         and "{RIGHT QUOTATION MARK}" msgids.
85080
85081 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85082
85083         From a suggestion by Bruno Haible.
85084         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85085         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85086         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85087         and mbstate_t, to a single-part test that simply defines mbstate_t.
85088         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85089         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85090
85091 2000-07-10  Jim Meyering  <meyering@lucent.com>
85092
85093         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85094
85095         * m4/gnu-source.m4: Output to confdefs.h directly.
85096         Suggestion from Akim Demaille.
85097
85098 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85099
85100         The old behavior of quoting `like this' doesn't look good with
85101         newer, ISO-style fonts.  See:
85102         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85103
85104         Instead, quote "like this" by default.  Let the translator
85105         tailor the locale-specific quoting behavior by providing
85106         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85107
85108         * lib/quotearg.c (N_): New macro.
85109         (gettext_default): New function.
85110         (quotearg_buffer_restyled): Use
85111         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85112         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85113
85114 2000-07-09  Jim Meyering  <meyering@lucent.com>
85115
85116         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85117         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85118
85119         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85120         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85121
85122 2000-07-09  Jim Meyering  <meyering@lucent.com>
85123
85124         * lib/Most files: Update copyright dates to include 2000.
85125
85126 2000-07-08  Jim Meyering  <meyering@lucent.com>
85127
85128         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85129         if not defined.
85130         (xgethostname): Remove now-unnecessary #ifdef.
85131         Move declaration of `err' into loop where it's used.
85132
85133 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85134         and Bruno Haible  <haible@clisp.cons.org>
85135
85136         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85137         only if the test for an object-type mbstate_t fails.  This
85138         prevents us from mistakenly reporting that mbstate_t is a
85139         system object type after we "#define mbstate_t int" to work
85140         around its lack.
85141
85142 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85143         and Bruno Haible  <haible@clisp.cons.org>
85144
85145         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85146
85147 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85148
85149         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85150         to strerror_r.
85151         Include <ctype.h> for use of isalpha.
85152
85153 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85154
85155         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85156         by allocating a larger buffer. Test the gethostname return value for
85157         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85158         returns an error and ENAMETOOLONG isn't defined.
85159
85160 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85161
85162         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85163         dimension.
85164
85165 2000-07-04  Jim Meyering  <meyering@lucent.com>
85166
85167         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85168         of the deprecated AC_CHECKING.
85169
85170 2000-07-04  Jim Meyering  <meyering@lucent.com>
85171
85172         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85173         Reported by Bruno Haible.
85174
85175 2000-07-04  Jim Meyering  <meyering@lucent.com>
85176
85177         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85178         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85179         lacks mbrtowc.
85180
85181 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85182
85183         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85184         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85185
85186 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85187         and Bruno Haible  <haible@clisp.cons.org>
85188
85189         * lib/quotearg.c (mbrtowc):
85190         Assign to *pwc, and return 1 only if result is nonzero.
85191         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85192
85193 2000-07-03  Jim Meyering  <meyering@lucent.com>
85194
85195         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85196
85197 2000-07-03  Jim Meyering  <meyering@lucent.com>
85198
85199         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85200         This is necessary to get a definition of e.g., UTMP_FILE on
85201         HP-UX 10.20.
85202         From Bob Proulx.
85203
85204 2000-07-02  Jim Meyering  <meyering@lucent.com>
85205
85206         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85207
85208         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85209         AC_LIBOBJ(function_name).
85210         * m4/chown.m4: Likewise.
85211         * m4/fnmatch.m4: Likewise.
85212         * m4/ftruncate.m4: Likewise.
85213         * m4/getgroups.m4: Likewise.
85214         * m4/getline.m4: Likewise.
85215         * m4/group-member.m4: Likewise.
85216         * m4/jm-macros.m4: Likewise.
85217         * m4/lstat.m4: Likewise.
85218         * m4/malloc.m4: Likewise.
85219         * m4/memcmp.m4: Likewise.
85220         * m4/nanosleep.m4: Likewise.
85221         * m4/putenv.m4: Likewise.
85222         * m4/realloc.m4: Likewise.
85223         * m4/regex.m4: Likewise.
85224         * m4/stat.m4: Likewise.
85225         * m4/strftime.m4: Likewise.
85226
85227 2000-07-02  Jim Meyering  <meyering@lucent.com>
85228
85229         * lib/quotearg.c (mbstate_t): Don't define here.
85230
85231 2000-07-02  Jim Meyering  <meyering@lucent.com>
85232
85233         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85234
85235 2000-07-01  Jim Meyering  <meyering@lucent.com>
85236
85237         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85238
85239 2000-07-01  Jim Meyering  <meyering@lucent.com>
85240
85241         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85242         problem.
85243
85244 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85245
85246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85247         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85248
85249 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85250
85251         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85252         per change in ../m4/ls-mntd-fs.m4.
85253         (read_filesystem_list): Ignore symbolic links.
85254
85255 2000-06-29  Jim Meyering  <meyering@lucent.com>
85256
85257         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85258         for declaration of strcmp.
85259
85260         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85261
85262         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85263         Avoid warning by casting result to `char *' to remove `const'.
85264
85265 2000-06-28  Jim Meyering  <meyering@lucent.com>
85266
85267         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85268         included by quotearg.c, for which we perform this test.  From
85269         Bruno Haible.
85270
85271 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85272
85273         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85274         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85275         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85276
85277 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85278
85279         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85280
85281 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85282
85283         savedir now sets errno on failure and invokes xmalloc to get memory.
85284         Fix a couple of other minor bugs while we're at it.
85285
85286         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85287         (NAMLEN): Remove macro.
85288         (malloc, realloc): Remove decls.
85289         (stpcpy): Likewise.
85290         ("xalloc.h"): Include.
85291         (NAME_SIZE_DEFAULT): New macro.
85292         (savedir): Use xmalloc / xrealloc to allocate memory.
85293         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85294         Skip "" directory entries.
85295         Use strlen to calculate directory entry length, since the old method
85296         is rarely used these days and isn't worth supporting.
85297         Don't use a pointer after freeing it.
85298         Check for integer overflow when calculating allocation size.
85299         Use memcpy to copy entries, instead of stpcpy.
85300         Set errno properly when returning NULL.
85301         Check for readdir error.
85302
85303 2000-06-26  Jim Meyering  <meyering@lucent.com>
85304
85305         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85306
85307 2000-06-25  Jim Meyering  <meyering@lucent.com>
85308
85309         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85310         Linux header bug when _XOPEN_SOURCE is defined to 500.
85311
85312 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85313
85314         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85315         deficiency.
85316
85317 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85318
85319         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85320         Include xalloc.h.
85321         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85322
85323 2000-06-24  Jim Meyering  <meyering@lucent.com>
85324
85325         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85326         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85327         for which strerror does return char*, but which lacks a conveniently
85328         accessible declaration of the function.  If the compile-test says
85329         strerror_r doesn't work, then resort to a `run'-test that works on
85330         BeOS and segfaults on DEC Unix.
85331
85332 2000-06-24  Jim Meyering  <meyering@lucent.com>
85333
85334         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85335
85336 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85337
85338         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85340
85341 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85342
85343         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85344         (mbrtowc, mbstate_t): Define substitutes if
85345         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85346         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85347         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85348
85349 2000-06-23  Jim Meyering  <meyering@lucent.com>
85350
85351         * m4/afs.m4: Add missing AC_MSG_RESULT.
85352         Reported by Bruno Haible.
85353
85354         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85355         Suggestion from Bruno Haible.
85356
85357 2000-06-23  Jim Meyering  <meyering@lucent.com>
85358
85359         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85360
85361 2000-06-21  Jim Meyering  <meyering@lucent.com>
85362
85363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85364
85365 2000-06-21  Jim Meyering  <meyering@lucent.com>
85366
85367         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85368         (noinst_HEADERS): Add getstr.h.
85369
85370         * lib/getline.c (getstr): Move into a separate file.
85371         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85372         the following changes: new parameter, delim2; both delim[12]
85373         parameters have type `int', not `char'.  The latter would lose
85374         with 8-bit delimiters.
85375         * lib/getstr.h: New file.
85376
85377 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85378
85379         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85380         than 1024, return a memory chunk of least possible size, instead
85381         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85382         Use free/xmalloc instead of xrealloc to avoid copying for very long
85383         paths.
85384
85385 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85386
85387         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85388         the empty string.
85389
85390 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85391
85392         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85393         address, not strdup.  Include <stdlib.h> and don't declare free().
85394
85395 2000-06-19  Jim Meyering  <meyering@lucent.com>
85396
85397         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85398
85399 2000-06-18  Jim Meyering  <meyering@lucent.com>
85400
85401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85402
85403         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85404         `checking whether...' message to be consistent with that of the
85405         lstat test.
85406
85407 2000-06-18  Jim Meyering  <meyering@lucent.com>
85408
85409         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85410         Besides, these days every porting target provides a mkdir function.
85411
85412         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85413         needed. (this snippet comes from src/system.h).
85414
85415 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85416
85417         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85418
85419 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85420
85421         * lib/human.c (adjust_value): New function.
85422         (human_readable_inexact): Apply rounding style even when
85423         printing approximate values.
85424
85425 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85426
85427         * lib/human.c (human_readable_inexact): Allow an input block
85428         size that is not a multiple of the output block size, and vice versa.
85429         Reported by Piergiorgio Sartor.
85430
85431 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85432
85433         * lib/getdate.y (get_date): Apply relative times after time
85434         zone indicator, not before.  Reported by Todd A. Jacobs.
85435
85436 2000-06-13  Jim Meyering  <meyering@lucent.com>
85437
85438         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85439
85440         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85441
85442 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85443
85444         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85445
85446 2000-06-12  Jim Meyering  <meyering@lucent.com>
85447
85448         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85449         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85450         optional argument.
85451         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85452         the optional argument, `lib'.
85453
85454 2000-06-08  Jim Meyering  <meyering@lucent.com>
85455
85456         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85457
85458 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85459
85460         Rewrite largefile configuration so that we don't need to run
85461         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85462         AC_CANONICAL_HOST in configure.in -- jmm]
85463
85464         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85465         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85466         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85467         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85468         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85469         All uses changed.
85470         Instead of inspecting the output of getconf, try to compile the
85471         test program without and with the macro definition.
85472         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85473         for getconf.  Instead, check for the needed flags by compiling
85474         test programs.
85475
85476 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85477
85478         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85479
85480 2000-06-04  Jim Meyering  <meyering@lucent.com>
85481
85482         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85483         SunOS 4.1.4 for which gid_t is an unsigned type.
85484
85485 2000-06-03  Jim Meyering  <meyering@lucent.com>
85486
85487         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85488         now that autoconf requires that.
85489
85490         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85491         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85492         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85493
85494 2000-06-03  Jim Meyering  <meyering@lucent.com>
85495
85496         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85497
85498 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85499
85500         * m4/glibc21.m4: New file.
85501         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85502
85503 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85504
85505         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85506         newer, don't install charset.alias.
85507         * lib/config.charset: Change the Linux/glibc rules so they become empty
85508         on glibc-2.1 or newer.
85509
85510 2000-06-02  Jim Meyering  <meyering@lucent.com>
85511
85512         * lib/mountlist.c: Back out last change.  Instead, do this...
85513         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85514         me_dummy member using the same `ignore'-testing code.
85515         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85516         fs_type strings.
85517         From Mark D. Roth.
85518
85519 2000-05-29  Jim Meyering  <meyering@lucent.com>
85520
85521         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85522         mounts with the `ignore' attribute.  Based on a patch from
85523         Mark D. Roth.
85524
85525 2000-05-28  Jim Meyering  <meyering@lucent.com>
85526
85527         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85528         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85529         * m4/stat.m4: Likewise.
85530         * m4/lstat.m4: Likewise.
85531         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85532
85533         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85534         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85535
85536 2000-05-26  Jim Meyering  <meyering@lucent.com>
85537
85538         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85539
85540 2000-05-24  Jim Meyering  <meyering@lucent.com>
85541
85542         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85543         autoconf requires that.
85544         * m4/lib-check.m4: Likewise.
85545         * m4/jm-macros.m4: Likewise.
85546         * m4/strftime.m4: Likewise.
85547
85548         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85549         AC_CHECK_DECLS, now that autoconf requires that.
85550
85551 2000-05-22  Jim Meyering  <meyering@lucent.com>
85552
85553         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85554         * m4/lstat.m4: Likewise.
85555
85556 2000-05-22  Jim Meyering  <meyering@lucent.com>
85557
85558         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85559
85560 2000-05-20  Jim Meyering  <meyering@lucent.com>
85561
85562         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85563         (jm_PREREQ): Use it.
85564
85565 2000-05-18  Jim Meyering  <meyering@lucent.com>
85566
85567         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85568         back, too, since it may have been modified by allocate_entry.
85569         (hash_delete): Rewrite to use neither the assignment operator
85570         nor the comma operator in an if-expression.
85571
85572 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85573
85574         * lib/closeout.c:
85575         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85576         Remove; no longer needed.
85577         "quotearg.h": Add include.
85578         (file_name): Do not bother to explicitly initialize to NULL; it's less
85579         efficient on some hosts.
85580         (close_stdout_status): Remove test as to whether stdout was already
85581         closed; it breaks for the case "echo x | sort >&-".
85582         Quote file name colons.
85583         Do not assume that _("write error") lacks format strings.
85584
85585 2000-05-15  Jim Meyering  <meyering@lucent.com>
85586
85587         * lib/version-etc.c (version_etc_copyright): Update the copyright
85588         string used in all --version output.
85589
85590 2000-05-14  Jim Meyering  <meyering@lucent.com>
85591
85592         * lib/closeout.c (close_stdout_set_file_name): New function.
85593         (close_stdout_status): Use new file-scoped global.
85594         Return right away if fstat says the stdout file descriptor is invalid.
85595         * lib/closeout.h (close_stdout_set_file_name): Declare.
85596
85597 2000-05-10  Jim Meyering  <meyering@lucent.com>
85598
85599         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85600         (close_stdout_set_status): New function.
85601         * lib/closeout.h (close_stdout_set_status): Declare.
85602
85603 2000-05-09  Jim Meyering  <meyering@lucent.com>
85604
85605         * m4/gettext.m4: Rename this...
85606         * m4/libintl.m4: ...to this.
85607
85608 2000-05-08  Jim Meyering  <meyering@lucent.com>
85609
85610         * lib/long-options.c: Don't include closeout.h.
85611         (parse_long_options): Don't call close_stdout for --version.
85612
85613 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85614
85615         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85616         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85617         2.1.3 bug.  This avoids a clash when files like regex.c define
85618         _GNU_SOURCE.
85619
85620 2000-05-06  Jim Meyering  <meyering@lucent.com>
85621
85622         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85623         (AC_REPLACE_FUNCS): Add strnlen.
85624
85625         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85626         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85627
85628         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85629         AC_SEARCH_LIBS call for nanosleep.
85630         (LIB_NANOSLEEP): Set and AC_SUBST.
85631
85632 2000-05-06  Jim Meyering  <meyering@lucent.com>
85633
85634         * lib/strnlen.c: Undefine __strnlen and strnlen.
85635         [!weak_alias]: Define __strnlen to strnlen.
85636
85637         * lib/atexit.c: New file, from libiberty.
85638
85639 2000-05-06  Jim Meyering  <meyering@lucent.com>
85640
85641         * lib/closeout.c (close_stdout_status): Also check for errors on the
85642         stderr stream.
85643
85644 2000-05-05  Jim Meyering  <meyering@lucent.com>
85645
85646         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85647         AC_SEARCH_LIBS call for clock_gettime.
85648         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85649
85650         * m4/search-libs.m4: Update from autoconf.
85651
85652         su doesn't work on Solaris 2.6.
85653         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85654         <shadow.h>.  Reported by Dragos Harabor.
85655
85656 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85657
85658         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85659         memcpy instead of xmalloc, xrealloc, path_concat.
85660         (locale_charset): Treat empty environment variables as absent.
85661         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85662
85663 2000-05-04  Jim Meyering  <meyering@lucent.com>
85664
85665         * lib/getopt.c: Update from glibc.
85666         * lib/obstack.c: Likewise.
85667         * lib/obstack.h: Likewise.
85668         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85669         file
85670
85671         * lib/regex.h: Likewise.
85672         * lib/strndup.c: Likewise.
85673         * lib/strnlen.c: New file, from glibc.
85674
85675 2000-05-03  Jim Meyering  <meyering@lucent.com>
85676
85677         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85678
85679 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85680
85681         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85682         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85683         compile-time test, rather than inspecting host and OS, to
85684         decide whether to define _LARGEFILE_SOURCE.
85685
85686 2000-05-01  Jim Meyering  <meyering@lucent.com>
85687
85688         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85689
85690         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85691         Based on a patch from Bruno Haible.
85692
85693 2000-05-01  Jim Meyering  <meyering@lucent.com>
85694
85695         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85696
85697 2000-04-29  Jim Meyering  <meyering@lucent.com>
85698
85699         * lib/path-concat.c: Declare strdup only if it's not defined.
85700         * lib/canon-host.c: Likewise.
85701
85702 2000-04-28  Jim Meyering  <meyering@lucent.com>
85703
85704         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85705         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85706         is included first, then limits.h is included by locale.h by libintl.h.
85707         From John David Anglin.
85708
85709 2000-04-25  Jim Meyering  <meyering@lucent.com>
85710
85711         * lib/makepath.c (S_IRWXUGO): Define.
85712         (make_path): Always perform explicit chmod if MODE specifies any
85713         of the `special' permission bits.  Prompted by a bug report against
85714         install from Mate Wierdl and Joost van Baal.
85715
85716 2000-04-18  Jim Meyering  <meyering@lucent.com>
85717
85718         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85719         (jm_PREREQ): Use it.
85720
85721 2000-04-18  Jim Meyering  <meyering@lucent.com>
85722
85723         * lib/README: New file.
85724
85725         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85726         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85727
85728 2000-04-17  Jim Meyering  <meyering@lucent.com>
85729
85730         Get it right :-)
85731         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85732         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85733         Suggestion from Akim Demaille.
85734
85735 2000-04-17  Jim Meyering  <meyering@lucent.com>
85736
85737         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85738         the definition of it to rpl_strftime also defined-away the system's
85739         declaration.
85740
85741 2000-04-15  Jim Meyering  <meyering@lucent.com>
85742
85743         Use `C' to denote so-called `contiguous' files, the same way
85744         that tar does.
85745         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85746         (ftypelet): Use S_ISCTG.
85747         From Michael Deutschmann.
85748
85749 2000-04-14  Jim Meyering  <meyering@lucent.com>
85750
85751         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85752         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85753         clobbered.
85754
85755 2000-04-14  Jim Meyering  <meyering@lucent.com>
85756
85757         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85758
85759 2000-04-13  Jim Meyering  <meyering@lucent.com>
85760
85761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85762         AH_VERBATIM to insert required #ifndef into config.h.in.
85763         Suggestion from Akim Demaille.
85764
85765 2000-04-12  Jim Meyering  <meyering@lucent.com>
85766
85767         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85768         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85769         Christian Krackowizer.
85770
85771         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85772         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85773         (AC_SYS_LARGEFILE): Require.
85774         (AM_C_PROTOTYPES): Require.
85775
85776 2000-04-08  Jim Meyering  <meyering@lucent.com>
85777
85778         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85779         names don't conflict.  Reported by Eli Zaretskii.
85780
85781 2000-04-07  Jim Meyering  <meyering@lucent.com>
85782
85783         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85784         sys/types.h, to work around system header problems on AIX 3.2.5.
85785         From Bruno Haible.
85786
85787 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85788
85789         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85790         bug.  Deal with the different error behavior of Irix iconv.
85791
85792 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85793
85794         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85795         IRIX if the installer said otherwise.
85796
85797 2000-04-05  Jim Meyering  <meyering@lucent.com>
85798
85799         Portability tweaks required for ultrix4.3.
85800         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85801         (jm_CHECK_DECLS): Add getutent to the list of functions.
85802         (_jm_DECL_HEADERS): Add utmpx.h.
85803         From John David Anglin.
85804
85805         * m4/strftime.m4: Back out the 2000-04-02 change.
85806         Instead of that change, simply undefine putenv in the test program.
85807
85808 2000-04-05  Jim Meyering  <meyering@lucent.com>
85809
85810         Portability tweaks required for ultrix4.3.
85811         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85812         getutent.
85813         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85814         * lib/canon-host.c: Declare strdup.
85815         * lib/path-concat.c: Likewise.
85816         From John David Anglin.
85817
85818 2000-04-04  Jim Meyering  <meyering@lucent.com>
85819
85820         Be more DOS 8.3-friendly.
85821         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85822         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85823         * lib/Makefile.am: Reflect renaming.
85824         Reported by Eli Zaretskii.
85825
85826         Use a temporary file name that won't clash with `charset.alias'
85827         in the DOS 8.3 name space.
85828         * lib/Makefile.am (charset_tmp): Define.
85829         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85830         (uninstall-local): Likewise.
85831         Reported by Eli Zaretskii.
85832
85833 2000-04-03  Jim Meyering  <meyering@lucent.com>
85834
85835         * m4/gettext.m4: Fix typo in comment.
85836
85837         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85838         textutils/configure.in).  Suggestion from Paul Eggert.
85839         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85840
85841 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85842
85843         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85844         variable in the shell rather than using putenv, which isn't
85845         portable.  This avoids the configure-time inter-test dependency
85846         on the potentially-renamed putenv function.
85847
85848 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85849
85850         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85851         before checking struct stat.st_blksize, so that
85852         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85853
85854 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85855
85856         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85857         since strftime.c uses HAVE_STRFTIME to decide whether to use
85858         the underlying strftime.
85859
85860 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85861
85862         * lib/time/strftime.c (my_strftime): Make sure we call the system
85863         strftime, not ourselves, when invoking the underlying strftime.
85864
85865 2000-03-24  Jim Meyering  <meyering@lucent.com>
85866
85867         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85868         (charset_alias): Define.
85869         (install-exec-local): Factor out common code.
85870         (uninstall-local): Split lines longer than 80.
85871         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85872         (SUFFIXES): Define.
85873         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85874         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85875
85876 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85877
85878         * lib/config.charset: Output a line containing "Packages using this
85879         file".
85880         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85881         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85882         ref-del.sed): New rules.
85883
85884 2000-03-17  Jim Meyering  <meyering@lucent.com>
85885
85886         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85887         Otherwise, include <strings.h>
85888
85889 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85890
85891         * lib/unicodeio.c (utf8_wctomb): New function.
85892         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85893         format instead of in UCS-4 with platform dependent endianness.
85894
85895 2000-03-10  Jim Meyering  <meyering@lucent.com>
85896
85897         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85898         From Marco Franzen.
85899
85900 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85901
85902         * lib/savedir.c (savedir): Work even if directory size is
85903         negative; this can happen with some screwy NFS configurations.
85904
85905 2000-03-06  Jim Meyering  <meyering@lucent.com>
85906
85907         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85908         if it's NULL (because we ran out of memory).  From Bruno Haible.
85909
85910 2000-03-05  Jim Meyering  <meyering@lucent.com>
85911
85912         * lib/localcharset.c ("path-concat.h"): Include.
85913         (get_charset_aliases): Use path_concat instead of ANSI string
85914         concatenation.
85915
85916         * lib/unicodeio.h (PARAMS): Define.
85917         Use it to guard prototype.
85918
85919 2000-03-04  Jim Meyering  <meyering@lucent.com>
85920
85921         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85922         for lib/localcharset.c.
85923
85924 2000-03-04  Jim Meyering  <meyering@lucent.com>
85925
85926         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85927         installing into it.
85928         (uninstall-local): Uncomment this rule so `make distcheck' works
85929         once again.
85930
85931         * lib/unicodeio.c (<errno.h>): Include it.
85932         (errno): Declare if not defined.
85933
85934         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85935
85936         * lib/config.charset: New version, incorporating remarks from a linux
85937         i18n mailing list.  From Bruno Haible.
85938
85939 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85940
85941         * m4/codeset.m4: New file.
85942         * m4/iconv.m4: New file.
85943         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85944
85945 2000-03-03  Jim Meyering  <meyering@lucent.com>
85946
85947         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85948
85949 2000-03-02  Jim Meyering  <meyering@lucent.com>
85950
85951         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85952         the messages come out on separate lines.
85953
85954         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85955         rather than jm_CHECK_DECLARATIONS.
85956         * m4/decl.m4: Remove now-unused file.
85957
85958         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85959         geteuid.
85960
85961 2000-03-02  Jim Meyering  <meyering@lucent.com>
85962
85963         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85964
85965 2000-03-01  Jim Meyering  <meyering@lucent.com>
85966
85967         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85968         * lib/unicodeio.c: Likewise.
85969
85970 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85971
85972         * lib/config.charset: New file.
85973         * lib/localcharset.c: New file.
85974         * lib/unicodeio.h, lib/unicodeio.c: New files.
85975         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85976         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85977         (noinst_HEADERS): Add unicodeio.h.
85978         (all-local, install-exec-local, charset.alias): New targets.
85979
85980 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85981
85982         * lib/quotearg.c (ALERT_CHAR): New macro.
85983         (quotearg_buffer_restyled): Use it.
85984
85985 2000-02-27  Jim Meyering  <meyering@lucent.com>
85986
85987         * m4/check-decl.m4: Add getenv to the list.
85988
85989 2000-02-27  Jim Meyering  <meyering@lucent.com>
85990
85991         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85992         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85993
85994         * lib/backupfile.c: Guard inclusion of stdlib.h with
85995         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85996         Declare malloc if needed.
85997
85998         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85999         `#ifndef HAVE_DECL..'
86000         now that autoconf always defines the HAVE_DECL_ symbols.
86001         * lib/human.c: Likewise.
86002         * lib/same.c: Likewise.
86003         * lib/strtoumax.c: Likewise.
86004
86005         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86006         declaration check was not run.
86007         * lib/hash.c: Likewise.
86008         * lib/human.c: Likewise.
86009         * lib/same.c: Likewise.
86010         * lib/strtoumax.c: Likewise.
86011
86012         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86013         `.', then first look up the entire `.'-containing string as a login
86014         name.
86015
86016 2000-02-23  Jim Meyering  <meyering@lucent.com>
86017
86018         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86019         in place of my hack.
86020
86021 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86022
86023         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86024         (textint): New typedef.
86025         (parser_control): Member year changed from int to textint.
86026         All uses changed.
86027         (YYSTYPE): Removed; replaced by %union with int and textint members.
86028         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86029         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86030         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86031         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86032         (date, number, to_year): Use width of number in digits, not its value,
86033         to determine whether it's a 2-digit year, or a 2-digit time.
86034         (yylex): Store number of digits of numeric tokens.
86035         Reported by John Kendall.
86036
86037         (parser_control): Changed from struct parser_control to typedef (for
86038         consistency).  All uses changed.
86039
86040         (tID): Removed; not used.
86041         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86042
86043 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86044
86045         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86046         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86047
86048 2000-02-12  Jim Meyering  <meyering@lucent.com>
86049
86050         * lib/userspec.c (ISDIGIT): Define it.
86051         (isdigit): Remove definition.
86052         (is_number): Use ISDIGIT, not isdigit.
86053         <libintl.h>: Include.
86054         (_ and N_): Define.
86055         (parse_user_spec): Mark translatable strings.
86056
86057 2000-02-10  Jim Meyering  <meyering@lucent.com>
86058
86059         With these changes, nanosleep.[ch] are finally enough like the other
86060         lib/* replacement files to compile on a few more losing systems.
86061
86062         * lib/nanosleep.h: Don't include config.h.
86063         Remove prototype from declaration of nanosleep.
86064         (PARAMS): Remove now-unneeded definition.
86065         * lib/nanosleep.c: #undef nanosleep.
86066         (rpl_nanosleep): Rename from nanosleep.
86067
86068 2000-02-10  Jim Meyering  <meyering@lucent.com>
86069
86070         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86071         gnu_nanosleep to rpl_nanosleep.
86072
86073 2000-02-09  Jim Meyering  <meyering@lucent.com>
86074
86075         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86076         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86077
86078 2000-02-08  Akim Demaille  <akim@epita.fr>
86079
86080         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86081         `[' and `]' and remove uses of `changequote'.
86082         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86083         (AC_SYS_LARGEFILE): Likewise.
86084         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86085         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86086         of changequote.
86087         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86088         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86089         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86090         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86091
86092 2000-02-05  Jim Meyering  <meyering@lucent.com>
86093
86094         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86095         Remove explicit use of AC_HEADER_TIME.  It is required by
86096         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86097         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86098         in autoconf whereby the expansion of the latter ended up preceding
86099         the expansion of its prerequisite, AC_HEADER_TIME.
86100         Reported by Volker Borchert.
86101
86102 2000-02-03  Jim Meyering  <meyering@lucent.com>
86103
86104         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86105
86106 2000-02-03  Jim Meyering  <meyering@lucent.com>
86107
86108         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86109         rather than with `#if HAVE_UTMPNAME'.
86110
86111 2000-02-02  Jim Meyering  <meyering@lucent.com>
86112
86113         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86114         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86115         Reported by Eli Zaretskii.
86116
86117 2000-02-01  Jim Meyering  <meyering@lucent.com>
86118
86119         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86120
86121 2000-01-31  Jim Meyering  <meyering@lucent.com>
86122
86123         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86124         functions.  Add the time.h and sys/time.h headers along with the
86125         AC_REQUIRE'ment of AC_HEADER_TIME.
86126
86127 2000-01-31  Jim Meyering  <meyering@lucent.com>
86128
86129         * lib/nanosleep.h (nanosleep): Guard declaration with
86130         `#if ! HAVE_DECL_NANOSLEEP'.
86131         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86132         the declaration in that vendor's sys/timers.h.
86133         Reported by Christian Krackowizer.
86134
86135         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86136         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86137         (ISPRINT): Likewise.
86138         Reported by Tom Tromey.
86139
86140 2000-01-30  Jim Meyering  <meyering@lucent.com>
86141
86142         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86143
86144         * m4/prereq.m4 (utmp_includes): Define.
86145         Check for ut_user and ut_name members in both struct utmpx
86146         and struct utmp.
86147
86148 2000-01-30  Jim Meyering  <meyering@lucent.com>
86149
86150         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86151         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86152         header files where only utmpx.ut_user is declared.
86153
86154         * lib/readutmp.h (UT_USER): Define.
86155
86156 2000-01-29  Jim Meyering  <meyering@lucent.com>
86157
86158         * m4/lib-check.m4: New file containing library-related checks from
86159         fileutils and sh-utils (textutils had none).
86160
86161 2000-01-28  Jim Meyering  <meyering@lucent.com>
86162
86163         * m4/perl.m4: Change format of warning message to look more like that
86164         from the missing script.  Suggestion from François Pinard.
86165
86166 2000-01-25  Jim Meyering  <meyering@lucent.com>
86167
86168         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86169         well as time.h in the compile check.
86170         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86171         Fix typo in cross-compiling case: s/yes/no/.
86172
86173 2000-01-23  Jim Meyering  <meyering@lucent.com>
86174
86175         * m4/jm-macros.m4: Move df-related tests here from
86176         fileutils/configure.in
86177
86178         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86179         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86180
86181         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86182         s/space/ac_fsusage_space/.
86183         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86184
86185         * m4/ftruncate.m4: New file (derived from part of
86186         fileutils/configure.in).
86187         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86188         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86189
86190         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86191         AC_SUBST these here, rather than just in sh-util/configure.in, so
86192         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86193         all the same.
86194         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86195         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86196         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86197         (AC_SUBST(POW_LIBM)): Likewise.
86198         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86199
86200 2000-01-23  Jim Meyering  <meyering@lucent.com>
86201
86202         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86203         obstack.c.
86204
86205 2000-01-22  Jim Meyering  <meyering@lucent.com>
86206
86207         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86208
86209         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86210
86211         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86212         configure.in
86213         (AC_CHECK_HEADERS): Likewise for sh-utils.
86214         (AC_CHECK_HEADERS): Likewise for textutils.
86215         Merge the three lists of headers.
86216
86217         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86218         from fileutils' configure.in.
86219
86220         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86221         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86222         check-decl.m4.
86223
86224         * m4/check-decl.m4: Use #if rather than #ifdef.
86225         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86226         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86227         (_jm_DECL_HEADERS): Define new function.
86228         (jm_CHECK_DECLARATIONS): Require it.
86229
86230 2000-01-22  Jim Meyering  <meyering@lucent.com>
86231
86232         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86233         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86234         Required for some AIX systems.  Reported by Christian Krackowizer.
86235         [TESTING] (main): New function.
86236
86237         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86238         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86239         letters.
86240
86241         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86242         iswprint.
86243
86244         * lib/strverscmp.c (ISDIGIT): Define.
86245         (strverscmp): Use ISDIGIT, not isdigit.
86246
86247 2000-01-19  Jim Meyering  <meyering@lucent.com>
86248
86249         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86250         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86251         defines `struct timespec' in <sys/time.h>
86252
86253         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86254         Thanks to Akim for explaining.
86255
86256 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86257
86258         * lib/nanosleep.c (nanosleep):
86259         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86260         POSIX.1 doesn't require SA_INTERRUPT and some systems
86261         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86262         it's been part of POSIX.1 since day 1 (in 1988).
86263
86264 2000-01-17  Jim Meyering  <meyering@lucent.com>
86265
86266         * lib/interlock: Remove unused file.  Reported by François Pinard.
86267
86268 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86269
86270         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86271         alert, backslash, formfeed, and vertical tab unnecessarily in
86272         shell quoting style.
86273
86274 2000-01-16  Jim Meyering  <meyering@lucent.com>
86275
86276         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86277         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86278         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86279         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86280
86281 2000-01-16  Jim Meyering  <meyering@lucent.com>
86282
86283         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86284         because the latter didn't work.
86285
86286 2000-01-15  Jim Meyering  <meyering@lucent.com>
86287
86288         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86289         (AC_REPLACE_FUNCS): Add memcpy and memset.
86290         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86291         Add strpbrk.
86292         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86293
86294 2000-01-12  Jim Meyering  <meyering@lucent.com>
86295
86296         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86297         (jm_PREREQ): Use it.
86298         (jm_PREREQ_READUTMP): New macro.
86299         (jm_PREREQ): Use it.
86300
86301 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86302
86303         Quote multibyte characters correctly.
86304         * m4/c-bs-a.m4: New file.
86305         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86306         (jm_PREREQ): Use it.
86307
86308 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86309
86310         * m4/uintmax_t.m4: Port to autoconf 2.13.
86311
86312 2000-01-08  Jim Meyering  <meyering@ascend.com>
86313
86314         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86315         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86316
86317 2000-01-04  Jim Meyering  <meyering@ascend.com>
86318
86319         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86320         jm_STRUCT_DIRENT_D_TYPE.
86321         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86322         jm_STRUCT_DIRENT_D_INO.
86323         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86324         jm_STRUCT_UTIMBUF.
86325         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86326         renamings.
86327         * m4/utime.m4: Likewise.
86328
86329         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86330         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86331
86332 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86333
86334         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86335         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86336
86337 2000-01-02  Jim Meyering  <meyering@ascend.com>
86338
86339         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86340         remember if this is necessary.
86341
86342 1999-12-26  Jim Meyering  <meyering@ascend.com>
86343
86344         * m4/jm-macros.m4: Use it here.
86345         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86346
86347 1999-12-23  Jim Meyering  <meyering@ascend.com>
86348
86349         * m4/jm-macros.m4: Check for clock_gettime (moved from
86350         fileutils/configure.in)
86351         Check for gettimeofday.
86352
86353 1999-12-20  Jim Meyering  <meyering@ascend.com>
86354
86355         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86356         autoconf-2.14a-1999-12-20.
86357
86358 1999-12-19  Jim Meyering  <meyering@ascend.com>
86359
86360         * m4/lstat-slash.m4: New file.
86361         * m4/jm-macros.m4: Use the new macro:
86362         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86363
86364 1999-12-07  Jim Meyering  <meyering@ascend.com>
86365
86366         * m4/perl.m4: Require that File::Compare be available, too.
86367         Too many systems seem to lack it.
86368
86369         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86370         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86371
86372 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86373
86374         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86375         problem with the QNX 4.25 shell, which doesn't propagate exit
86376         status of failed commands inside shell assignments.
86377
86378 1999-11-17  Jim Meyering  <meyering@ascend.com>
86379
86380         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86381
86382 1999-11-07  Jim Meyering  <meyering@ascend.com>
86383
86384         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86385
86386 1999-11-06  Jim Meyering  <meyering@ascend.com>
86387
86388         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86389         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86390
86391 1999-11-05  Jim Meyering  <meyering@ascend.com>
86392
86393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86394         configure.in of textutils, fileutils, and sh-utils into this one
86395         (shared between those packages) file.
86396         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86397         AC_STRUCT_ST_BLKSIZE.
86398
86399 1999-11-03  Jim Meyering  <meyering@ascend.com>
86400
86401         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86402         of AC_CHECK_TYPE checks includes unistd.h.
86403         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86404         Suggestion from Akim Demaille.
86405
86406 1999-10-30  Jim Meyering  <meyering@ascend.com>
86407
86408         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86409         m4-quoted string.
86410         * m4/ls-mntd-fs.m4: Likewise.
86411         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86412         * m4/jm-winsz1.m4: Likewise.
86413
86414         * m4/const.m4: Remove file, since the fix made it into the experimental
86415         version of autoconf.
86416         * m4/mktime.m4: Likewise.
86417
86418         * m4/check-type.m4: Remove file, now that the latest version of
86419         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86420
86421         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86422         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86423         AC_CHECK_TYPE.
86424
86425 1999-10-04  Jim Meyering  <meyering@ascend.com>
86426
86427         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86428
86429 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86430
86431         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86432         2.95.1 bug with HP-UX 10.20.
86433
86434 1999-09-17  Jim Meyering  <meyering@ascend.com>
86435
86436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86437         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86438         due to missing strdup (against sh-utils-2.0).
86439
86440 1999-08-29  Jim Meyering  <meyering@ascend.com>
86441
86442         * m4/jm-macros.m4: Require jm_BISON.
86443         * m4/bison.m4: New file.
86444
86445 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86446
86447         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86448         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86449
86450 1999-08-05  Jim Meyering  <meyering@ascend.com>
86451
86452         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86453         to avoid conflicts with `conftest' on 8+3 filesystems.
86454         Suggestion from Eli Zaretskii.
86455
86456 1999-08-04  Jim Meyering  <meyering@ascend.com>
86457
86458         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86459         fileutils and sh-utils (textutils's getline test was inadequate).
86460         (AM_FUNC_GETLINE): Run this test.
86461         (AC_CHECK_FUNCS): Check for getdelim.
86462         Reported by Bob Proulx.
86463
86464 1999-08-02  Jim Meyering  <meyering@ascend.com>
86465
86466         * m4/jm-macros.m4: Add a comment.
86467
86468 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86469
86470         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86471         <inttypes.h> defines strtoumax as a macro (and not as a
86472         function).
86473
86474 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86475
86476         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86477         that we can shift, multiply and divide unsigned long long
86478         values; Ultrix cc can't do it.
86479
86480 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86481
86482         * m4/mktime.m4: New file, which is a preview of what should appear
86483         in the next public autoconf release.
86484
86485 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86486
86487         * m4/lfs.m4: Remove this file.
86488         * m4/largefile.m4: New file.  It contains the old contents of
86489         lfs.m4, except that all names with prefix AC_LFS have been
86490         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86491         compatible with future autoconf versions.  Also, some minor m4
86492         quoting problems have been fixed.
86493
86494 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86495
86496         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86497         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86498         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86499         and simplify the shell code.
86500
86501 1999-08-01  Jim Meyering  <meyering@ascend.com>
86502
86503         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86504         m4.
86505
86506 1999-07-20  Jim Meyering  <meyering@ascend.com>
86507
86508         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86509
86510 1999-07-15  Jim Meyering  <meyering@ascend.com>
86511
86512         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86513
86514 1999-05-22  Jim Meyering  <meyering@ascend.com>
86515
86516         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86517
86518 1999-05-20  Jim Meyering  <meyering@ascend.com>
86519
86520         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86521         Add a colon after each `then' in case $4 is empty.
86522
86523 1999-05-16  Jim Meyering  <meyering@ascend.com>
86524
86525         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86526
86527 1999-05-10  Jim Meyering  <meyering@ascend.com>
86528
86529         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86530
86531         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86532         AC_FUNC_MKTIME.
86533
86534 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86535
86536         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86537
86538 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86539
86540         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86541         not CPPFLAGS, so that linking works correctly in IRIX.
86542
86543 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86544
86545         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86546
86547 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86548
86549         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86550         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86551         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86552         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86553         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86554
86555         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86556
86557 1999-04-20  Jim Meyering  <meyering@ascend.com>
86558
86559         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86560         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86561         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86562
86563 1999-04-18  Jim Meyering  <meyering@ascend.com>
86564
86565         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86566         * m4/jm-macros.m4: Use it.
86567
86568 1999-04-06  Jim Meyering  <meyering@ascend.com>
86569
86570         * m4/strftime.m4: Remove test for %f.
86571
86572 1999-03-29  Jim Meyering  <meyering@ascend.com>
86573
86574         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86575         superset of the AC_TYPE_* checks in the textutils, fileutils,
86576         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86577         AC_TYPE_PID_T.
86578
86579 1999-03-28  Jim Meyering  <meyering@ascend.com>
86580
86581         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86582         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86583         replaced e.g., in the *.sh files of the sh-utils.
86584
86585 1999-03-20  Jim Meyering  <meyering@ascend.com>
86586
86587         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86588         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86589         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86590
86591 1999-03-19  Jim Meyering  <meyering@ascend.com>
86592
86593         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86594
86595 1999-03-12  Jim Meyering  <meyering@ascend.com>
86596
86597         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86598
86599 1999-03-07  Jim Meyering  <meyering@ascend.com>
86600
86601         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86602         declared.
86603
86604 1999-02-17  Jim Meyering  <meyering@ascend.com>
86605
86606         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86607         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86608
86609 1999-02-07  Jim Meyering  <meyering@ascend.com>
86610
86611         * m4/group-member.m4: New file -- extracted from sh-utils'
86612         configure.in.
86613
86614         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86615         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86616
86617 1999-02-06  Jim Meyering  <meyering@ascend.com>
86618
86619         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86620         * m4/fnmatch.m4: Likewise.
86621         * m4/getgroups.m4: Likewise.
86622         * m4/lstat.m4: Likewise.
86623         * m4/malloc.m4: Likewise.
86624         * m4/putenv.m4: Likewise.
86625         * m4/realloc.m4: Likewise.
86626         * m4/regex.m4: Likewise.
86627         * m4/stat.m4: Likewise.
86628         * m4/strftime.m4: Likewise.
86629         Suggestion from Alain Magloire.
86630
86631         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86632         * m4/fnmatch.m4: Likewise.
86633         * m4/getgroups.m4: Likewise.
86634         * m4/getline.m4: Likewise.
86635         * m4/lstat.m4: Likewise.
86636         * m4/malloc.m4: Likewise.
86637         * m4/memcmp.m4: Likewise.
86638         * m4/putenv.m4: Likewise.
86639         * m4/realloc.m4: Likewise.
86640         * m4/regex.m4: Likewise.
86641         * m4/stat.m4: Likewise.
86642         * m4/strftime.m4: Likewise.
86643         Suggestion from Alain Magloire.
86644
86645         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86646         an argument.
86647
86648         * m4/regex.m4: Add a run-time Test for proper operation of
86649         re_compile_pattern.
86650
86651 1999-01-31  Jim Meyering  <meyering@ascend.com>
86652
86653         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86654
86655 1999-01-30  Jim Meyering  <meyering@ascend.com>
86656
86657         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86658
86659         * m4/jm-mktime.m4: Make this a wrapper around the official
86660         AM_FUNC_MKTIME rather than my private copy, now that the official one
86661         is up to date.
86662         * m4/mktime.m4: Remove file.
86663
86664         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86665         * m4/uptime.m4: Likewise.
86666         * m4/uintmax_t.m4: Likewise.
86667
86668 1999-01-28  Jim Meyering  <meyering@ascend.com>
86669
86670         * m4/jm-macros.m4: Use jm_AFS.
86671         * m4/afs.m4: New file (from fileutils' configure.in).
86672
86673         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86674         * m4/chown.m4: Likewise.
86675         * m4/d-ino.m4: Likewise.
86676         * m4/d-type.m4: Likewise.
86677         * m4/fnmatch.m4: Likewise.
86678         * m4/getgroups.m4: Likewise.
86679         * m4/gettext.m4: Likewise.
86680         * m4/jm-mktime.m4: Likewise.
86681         * m4/jm-winsz2.m4: Likewise.
86682         * m4/lcmessage.m4: Likewise.
86683         * m4/ls-mntd-fs.m4: Likewise.
86684         * m4/malloc.m4: Likewise.
86685         * m4/memcmp.m4: Likewise.
86686         * m4/putenv.m4: Likewise.
86687         * m4/realloc.m4: Likewise.
86688         * m4/st_mtim.m4: Likewise.
86689         * m4/strftime.m4: Likewise.
86690
86691 1999-01-16  Jim Meyering  <meyering@ascend.com>
86692
86693         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86694         (ARGMATCH_DIE_DECL): Define.
86695
86696 1999-01-12  Jim Meyering  <meyering@ascend.com>
86697
86698         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86699         Reported by Lars Hecking.
86700
86701 1999-01-10  Jim Meyering  <meyering@ascend.com>
86702
86703         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86704         gross kludge.
86705         * m4/inttypes_h.m4: Likewise.
86706         * m4/lstat.m4: Likewise.
86707         * m4/malloc.m4: Likewise.
86708         * m4/readdir.m4: Likewise.
86709         * m4/realloc.m4: Likewise.
86710         * m4/st_dm_mode.m4: Likewise.
86711         * m4/stat.m4: Likewise.
86712         * m4/utimbuf.m4: Likewise.
86713         * m4/utimes.m4: Likewise.
86714
86715         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86716         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86717         comments in config.h.in are meaningful.
86718
86719         * m4/jm-macros.m4: Require autoconf-2.13 here.
86720
86721         * m4/regex.m4: By default, don't use the included regex.c on systems
86722         with glibc 2.  Suggestion from Uli Drepper.
86723
86724 1999-01-02  Jim Meyering  <meyering@ascend.com>
86725
86726         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86727
86728 1998-12-18  Jim Meyering  <meyering@ascend.com>
86729
86730         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86731         Based on a suggestion from Lars Hecking.
86732
86733 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86734
86735         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86736
86737 1998-11-16  Jim Meyering  <meyering@ascend.com>
86738
86739         * m4/lfs.m4: Double-quote the `uname...` expression.
86740
86741 1998-11-14  Jim Meyering  <meyering@ascend.com>
86742
86743         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86744         * m4/stat.m4: Likewise.
86745
86746 1998-11-03  Jim Meyering  <meyering@ascend.com>
86747
86748         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86749         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86750
86751 1998-10-18  Jim Meyering  <meyering@ascend.com>
86752
86753         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86754
86755 1998-10-17  Jim Meyering  <meyering@ascend.com>
86756
86757         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86758         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86759         calls for those previously hard-coded headers.  Instead, take a new
86760         parameter.
86761         (jm_CHECK_DECLARATIONS): Reflect interface change.
86762         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86763         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86764
86765         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86766
86767 1998-10-14  Jim Meyering  <meyering@ascend.com>
86768
86769         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86770         instead of "TZ=America/Vancouver".  From Paul Eggert.
86771
86772 1998-10-11  Jim Meyering  <meyering@ascend.com>
86773
86774         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86775         This adds a test for a recently added compatibility fix for mktime.c.
86776         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86777
86778 1998-09-27  Jim Meyering  <meyering@ascend.com>
86779
86780         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86781
86782         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86783         ../configure.in, including a change from Gordon Matzigkeit to allow
86784         cross-compiling for the Hurd.
86785
86786         * m4/glibc.m4: New file/macro to test for the GNU C Library
86787         versions 1 and 2.  From Gordon Matzigkeit.
86788         Indent.
86789
86790 1998-09-21  Jim Meyering  <meyering@ascend.com>
86791
86792         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86793
86794 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86795
86796         Port nanosecond-resolution times to UnixWare 2.1.2 and
86797         pedantic Solaris 2.6.
86798
86799         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86800         AC_STRUCT_ST_MTIM.
86801         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86802         Generate name of ns member, instead of just 1 or undef.
86803         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86804
86805 1998-08-15  Jim Meyering  <meyering@ascend.com>
86806
86807         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86808         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86809         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86810         instead of jm_TYPE_SSIZE_T.
86811
86812 1998-08-12  Jim Meyering  <meyering@ascend.com>
86813
86814         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86815
86816 1998-08-02  Jim Meyering  <meyering@ascend.com>
86817
86818         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86819         in acconfig.h manually.
86820
86821 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86822
86823         * m4/st_mtim.m4: New file.
86824
86825 1998-07-28  Jim Meyering  <meyering@ascend.com>
86826
86827         * m4/utimes.m4: Undef stat.
86828
86829 1998-07-25  Jim Meyering  <meyering@ascend.com>
86830
86831         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86832         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86833
86834 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86835
86836         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86837         uid and gid actually remain unchanged.
86838
86839 1998-07-07  Jim Meyering  <meyering@ascend.com>
86840
86841         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86842
86843 1998-07-04  Jim Meyering  <meyering@ascend.com>
86844
86845         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86846         to prove that this macro can be used in packages without regex.c.
86847
86848 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86849
86850         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86851         is to be used.
86852
86853 1998-07-03  Jim Meyering  <meyering@ascend.com>
86854
86855         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86856
86857         * m4/gettext.m4: New file -- from gettext-0.10.35.
86858         * m4/lcmessage.m4: Likewise.
86859         * m4/progtest.m4: Likewise.
86860
86861         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86862         * m4/jm-macros.m4: Require the new macro.
86863
86864 1998-06-29  Jim Meyering  <meyering@ascend.com>
86865
86866         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86867         for the definition of NGROUPS (used in a system header included
86868         by sys/mount.h).
86869
86870 1998-06-28  Jim Meyering  <meyering@ascend.com>
86871
86872         * m4/ls-mntd-fs.m4: New file.
86873         * m4/fstypename.m4: New file.
86874
86875         * m4/jm-macros.m4: Require the new macro.
86876         * m4/jm-glibc-io.m4: New file.
86877
86878 1998-05-19  Jim Meyering  <meyering@ascend.com>
86879
86880         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86881         * m4/lchown.m4: New file.
86882
86883         * m4/Makefile.am.in: New file.
86884         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86885
86886 1998-05-14  Jim Meyering  <meyering@ascend.com>
86887
86888         * m4/Makefile.am (EXTRA_DIST): Add them.
86889         * m4/jm-macros.m4: New file.
86890         * m4/utimbuf.m4: New file.
86891
86892 1998-05-12  Jim Meyering  <meyering@ascend.com>
86893
86894         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86895
86896 1998-05-11  Jim Meyering  <meyering@ascend.com>
86897
86898         * m4/isc-posix.m4: New file.
86899
86900 1998-05-10  Jim Meyering  <meyering@ascend.com>
86901
86902         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86903
86904 1998-05-09  Jim Meyering  <meyering@ascend.com>
86905
86906         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86907         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86908         with automake.
86909
86910         * m4/ssize_t.m4: New file.
86911         * m4/mktime.m4: Remove file -- the new automake has this now.
86912
86913 1998-04-26  Jim Meyering  <meyering@ascend.com>
86914
86915         * m4/assert.m4: New file.
86916         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86917
86918 1998-04-05  Jim Meyering  <meyering@ascend.com>
86919
86920         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86921         (jm_PREREQ): Use it here.
86922
86923 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86924
86925         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86926         in acconfig.h.
86927
86928 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86929
86930         * m4/prereq.m4: New file.
86931         * m4/error.m4: New file.
86932         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86933
86934 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86935
86936         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86937         cache-check for the same variable -- that defeated the purpose of
86938         the test; the test program was never run.  This was a problem only
86939         on systems with losing getline functions -- HP-UX 10.20 is one.
86940         Reported by Bjorn Helgaas.
86941
86942 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86943
86944         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86945
86946 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86947
86948         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86949
86950         * m4/const.m4: New file.  Use an initializer in this declaration
86951         typedef int charset[2]; const charset x;
86952         Reported by Bob Glickstein.
86953
86954 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86955
86956         * m4/chown.m4: Fix reversed types on -1 args to chown.
86957         From Kaveh Ghazi.
86958
86959 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86960
86961         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86962         Add lseek and memchr.
86963
86964         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86965         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86966         have a 20-character limit on names.
86967
86968 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86969
86970         * m4/inttypes_h.m4: New file.
86971         * m4/uintmax_t.m4: New file.
86972         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86973
86974
86975         -----
86976
86977         Local Variables:
86978         coding: utf-8
86979         End:
86980
86981         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86982
86983         Copying and distribution of this file, with or without
86984         modification, are permitted provided the copyright notice
86985         and this notice are preserved.